/* Options: Date: 2024-12-03 18:16:36 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: AddPaysonApiSettings.* //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 json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; SecurityUserId = json['SecurityUserId']; SecurityPassword = json['SecurityPassword']; ReceiverEmail = json['ReceiverEmail']; ReceiverFirstname = json['ReceiverFirstname']; ReceiverLastname = json['ReceiverLastname']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'SecurityUserId': SecurityUserId, 'SecurityPassword': SecurityPassword, 'ReceiverEmail': ReceiverEmail, 'ReceiverFirstname': ReceiverFirstname, 'ReceiverLastname': ReceiverLastname }; getTypeName() => "PaysonApiSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/payment/payson/apisettings", "POST") // @ValidateRequest(Validator="IsAuthenticated") class AddPaysonApiSettings implements IReturn, ICompany, IConvertible, IPost { /** * 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", IsRequired=true) String? SecurityUserId; /** * The payson security user password */ // @ApiMember(Description="The payson security user password", IsRequired=true) String? SecurityPassword; /** * The payson receiver email */ // @ApiMember(Description="The payson receiver email", IsRequired=true) String? ReceiverEmail; /** * The payson receiver firstname */ // @ApiMember(Description="The payson receiver firstname", IsRequired=true) String? ReceiverFirstname; /** * The payson receiver lastname */ // @ApiMember(Description="The payson receiver lastname", IsRequired=true) String? ReceiverLastname; AddPaysonApiSettings({this.CompanyId,this.SecurityUserId,this.SecurityPassword,this.ReceiverEmail,this.ReceiverFirstname,this.ReceiverLastname}); AddPaysonApiSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; SecurityUserId = json['SecurityUserId']; SecurityPassword = json['SecurityPassword']; ReceiverEmail = json['ReceiverEmail']; ReceiverFirstname = json['ReceiverFirstname']; ReceiverLastname = json['ReceiverLastname']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'SecurityUserId': SecurityUserId, 'SecurityPassword': SecurityPassword, 'ReceiverEmail': ReceiverEmail, 'ReceiverFirstname': ReceiverFirstname, 'ReceiverLastname': ReceiverLastname }; createResponse() => PaysonApiSettingsQueryResponse(); getResponseTypeName() => "PaysonApiSettingsQueryResponse"; getTypeName() => "AddPaysonApiSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'PaysonApiSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => PaysonApiSettingsQueryResponse()), 'AddPaysonApiSettings': TypeInfo(TypeOf.Class, create:() => AddPaysonApiSettings()), });