/* Options: Date: 2024-12-03 18:15:14 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: TestPaysonApiSettings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class PaysonApiSettingsTestResponse implements IConvertible { /** * If the settings works or not */ // @ApiMember(Description="If the settings works or not") bool? Success; PaysonApiSettingsTestResponse({this.Success}); PaysonApiSettingsTestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; return this; } Map toJson() => { 'Success': Success }; getTypeName() => "PaysonApiSettingsTestResponse"; TypeContext? context = _ctx; } // @Route("/payment/payson/apisettings/test", "POST") // @ValidateRequest(Validator="IsAuthenticated") class TestPaysonApiSettings 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") 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; TestPaysonApiSettings({this.CompanyId,this.SecurityUserId,this.SecurityPassword,this.ReceiverEmail,this.ReceiverFirstname,this.ReceiverLastname}); TestPaysonApiSettings.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() => PaysonApiSettingsTestResponse(); getResponseTypeName() => "PaysonApiSettingsTestResponse"; getTypeName() => "TestPaysonApiSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'PaysonApiSettingsTestResponse': TypeInfo(TypeOf.Class, create:() => PaysonApiSettingsTestResponse()), 'TestPaysonApiSettings': TypeInfo(TypeOf.Class, create:() => TestPaysonApiSettings()), });