/* Options: Date: 2025-10-14 04:14:45 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PaymentSettingsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class AdminPaymentOptionsResponse implements IConvertible { /** * The payment options id */ // @ApiMember(Description="The payment options id") int? Id; /** * The payment options name */ // @ApiMember(Description="The payment options name") String? Name; /** * The payment options description */ // @ApiMember(Description="The payment options description") String? Description; AdminPaymentOptionsResponse({this.Id,this.Name,this.Description}); AdminPaymentOptionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "AdminPaymentOptionsResponse"; TypeContext? context = _ctx; } class PaymentProviderOptionsResponse implements IConvertible { /** * The payment provider id */ // @ApiMember(Description="The payment provider id") int? Id; /** * The payment provider name */ // @ApiMember(Description="The payment provider name") String? Name; /** * The payment provider description */ // @ApiMember(Description="The payment provider description") String? Description; PaymentProviderOptionsResponse({this.Id,this.Name,this.Description}); PaymentProviderOptionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "PaymentProviderOptionsResponse"; TypeContext? context = _ctx; } class PaymentSettingsQueryResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; /** * The payment is enabled */ // @ApiMember(Description="The payment is enabled") bool? Enabled; /** * Automatically refund customer on canceled booking */ // @ApiMember(Description="Automatically refund customer on canceled booking") bool? RefundOnCancelBooking; /** * The default option when admin creates a new booking */ // @ApiMember(Description="The default option when admin creates a new booking") int? DefaultPaymentOptionId; /** * What payment provider to use */ // @ApiMember(Description="What payment provider to use") int? PaymentProviderId; /** * If you want to include the admin payment options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the admin payment options to select from", ParameterType="query") List? AdminPaymentOptions = []; /** * If you want to include the payment provider options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the payment provider options to select from", ParameterType="query") List? PaymentProviderOptions = []; PaymentSettingsQueryResponse({this.CompanyId,this.Enabled,this.RefundOnCancelBooking,this.DefaultPaymentOptionId,this.PaymentProviderId,this.AdminPaymentOptions,this.PaymentProviderOptions}); PaymentSettingsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Enabled = json['Enabled']; RefundOnCancelBooking = json['RefundOnCancelBooking']; DefaultPaymentOptionId = json['DefaultPaymentOptionId']; PaymentProviderId = json['PaymentProviderId']; AdminPaymentOptions = JsonConverters.fromJson(json['AdminPaymentOptions'],'List',context!); PaymentProviderOptions = JsonConverters.fromJson(json['PaymentProviderOptions'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Enabled': Enabled, 'RefundOnCancelBooking': RefundOnCancelBooking, 'DefaultPaymentOptionId': DefaultPaymentOptionId, 'PaymentProviderId': PaymentProviderId, 'AdminPaymentOptions': JsonConverters.toJson(AdminPaymentOptions,'List',context!), 'PaymentProviderOptions': JsonConverters.toJson(PaymentProviderOptions,'List',context!) }; getTypeName() => "PaymentSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/payment/settings", "GET") // @ValidateRequest(Validator="IsAuthenticated") class PaymentSettingsQuery implements IReturn, ICompany, IConvertible, IGet { /** * 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; /** * If you want to include the admin payment options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the admin payment options to select from") bool? IncludeAdminPaymentOptions; /** * If you want to include the payment provider options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the payment provider options to select from") bool? IncludePaymentProviderOptions; PaymentSettingsQuery({this.CompanyId,this.IncludeAdminPaymentOptions,this.IncludePaymentProviderOptions}); PaymentSettingsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; IncludeAdminPaymentOptions = json['IncludeAdminPaymentOptions']; IncludePaymentProviderOptions = json['IncludePaymentProviderOptions']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'IncludeAdminPaymentOptions': IncludeAdminPaymentOptions, 'IncludePaymentProviderOptions': IncludePaymentProviderOptions }; createResponse() => PaymentSettingsQueryResponse(); getResponseTypeName() => "PaymentSettingsQueryResponse"; getTypeName() => "PaymentSettingsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'AdminPaymentOptionsResponse': TypeInfo(TypeOf.Class, create:() => AdminPaymentOptionsResponse()), 'PaymentProviderOptionsResponse': TypeInfo(TypeOf.Class, create:() => PaymentProviderOptionsResponse()), 'PaymentSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => PaymentSettingsQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PaymentSettingsQuery': TypeInfo(TypeOf.Class, create:() => PaymentSettingsQuery()), });