/* Options:
Date: 2025-04-17 05:24:13
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se

//GlobalNamespace: 
//AddServiceStackTypes: True
//AddResponseStatus: False
//AddImplicitVersion: 
//AddDescriptionAsComments: True
IncludeTypes: UpdatePaysonApiSettings.*
//ExcludeTypes: 
//DefaultImports: package:servicestack/servicestack.dart
*/

import 'package:servicestack/servicestack.dart';

abstract class ICompany
{
    String? CompanyId;
}

class PaysonApiSettingsQueryResponse implements IConvertible
{
    /**
    * The company id
    */
    // @ApiMember(Description="The company id")
    String? CompanyId;

    /**
    * The payson security user id
    */
    // @ApiMember(Description="The payson security user id")
    String? SecurityUserId;

    /**
    * The payson security user password
    */
    // @ApiMember(Description="The payson security user password")
    String? SecurityPassword;

    /**
    * The payson receiver email
    */
    // @ApiMember(Description="The payson receiver email")
    String? ReceiverEmail;

    /**
    * The payson receiver firstname
    */
    // @ApiMember(Description="The payson receiver firstname")
    String? ReceiverFirstname;

    /**
    * The payson receiver lastname
    */
    // @ApiMember(Description="The payson receiver lastname")
    String? ReceiverLastname;

    PaysonApiSettingsQueryResponse({this.CompanyId,this.SecurityUserId,this.SecurityPassword,this.ReceiverEmail,this.ReceiverFirstname,this.ReceiverLastname});
    PaysonApiSettingsQueryResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CompanyId = json['CompanyId'];
        SecurityUserId = json['SecurityUserId'];
        SecurityPassword = json['SecurityPassword'];
        ReceiverEmail = json['ReceiverEmail'];
        ReceiverFirstname = json['ReceiverFirstname'];
        ReceiverLastname = json['ReceiverLastname'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CompanyId': CompanyId,
        'SecurityUserId': SecurityUserId,
        'SecurityPassword': SecurityPassword,
        'ReceiverEmail': ReceiverEmail,
        'ReceiverFirstname': ReceiverFirstname,
        'ReceiverLastname': ReceiverLastname
    };

    getTypeName() => "PaysonApiSettingsQueryResponse";
    TypeContext? context = _ctx;
}

// @Route("/payment/payson/apisettings/", "PUT")
// @ValidateRequest(Validator="IsAuthenticated")
class UpdatePaysonApiSettings implements IReturn<PaysonApiSettingsQueryResponse>, ICompany, IConvertible, IPut
{
    /**
    * The company id, if empty will use the company id for the user you are logged in with.
    */
    // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
    String? CompanyId;

    /**
    * The payson security user id
    */
    // @ApiMember(Description="The payson security user id")
    String? SecurityUserId;

    /**
    * The payson security user password
    */
    // @ApiMember(Description="The payson security user password")
    String? SecurityPassword;

    /**
    * The payson receiver email
    */
    // @ApiMember(Description="The payson receiver email")
    String? ReceiverEmail;

    /**
    * The payson receiver firstname
    */
    // @ApiMember(Description="The payson receiver firstname")
    String? ReceiverFirstname;

    /**
    * The payson receiver lastname
    */
    // @ApiMember(Description="The payson receiver lastname")
    String? ReceiverLastname;

    UpdatePaysonApiSettings({this.CompanyId,this.SecurityUserId,this.SecurityPassword,this.ReceiverEmail,this.ReceiverFirstname,this.ReceiverLastname});
    UpdatePaysonApiSettings.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CompanyId = json['CompanyId'];
        SecurityUserId = json['SecurityUserId'];
        SecurityPassword = json['SecurityPassword'];
        ReceiverEmail = json['ReceiverEmail'];
        ReceiverFirstname = json['ReceiverFirstname'];
        ReceiverLastname = json['ReceiverLastname'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CompanyId': CompanyId,
        'SecurityUserId': SecurityUserId,
        'SecurityPassword': SecurityPassword,
        'ReceiverEmail': ReceiverEmail,
        'ReceiverFirstname': ReceiverFirstname,
        'ReceiverLastname': ReceiverLastname
    };

    createResponse() => PaysonApiSettingsQueryResponse();
    getResponseTypeName() => "PaysonApiSettingsQueryResponse";
    getTypeName() => "UpdatePaysonApiSettings";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
    'ICompany': TypeInfo(TypeOf.Interface),
    'PaysonApiSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => PaysonApiSettingsQueryResponse()),
    'UpdatePaysonApiSettings': TypeInfo(TypeOf.Class, create:() => UpdatePaysonApiSettings()),
});