/* Options: Date: 2025-02-05 11:57:43 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PaymentGatewayService.GetPaymentGatewayByIdRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum GatewayType { Stripe, GoCardlessPro, Dfc, SmartDebit, Harlands, SageOne, NuPay, EFT, PesaPal, PayPalSms, PayChoiceCreditCard, PayChoiceBankAccount, eDebitCreditCard, eDebitBankAccount, DoBillingPayFastCreditCard, DoBillingNedBankEFTBankAccount, HarlandsCloud, IntegraPayCreditCard, IntegraPayBankAccount, Payfast, } class Configuration implements IConvertible { bool? ShowConfirmation; bool? ShowBillingDetails; String? GatewayKey; bool? HideCvv; DateTime? MinimumAdultDateOfBirth; Configuration({this.ShowConfirmation,this.ShowBillingDetails,this.GatewayKey,this.HideCvv,this.MinimumAdultDateOfBirth}); Configuration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ShowConfirmation = json['ShowConfirmation']; ShowBillingDetails = json['ShowBillingDetails']; GatewayKey = json['GatewayKey']; HideCvv = json['HideCvv']; MinimumAdultDateOfBirth = JsonConverters.fromJson(json['MinimumAdultDateOfBirth'],'DateTime',context!); return this; } Map toJson() => { 'ShowConfirmation': ShowConfirmation, 'ShowBillingDetails': ShowBillingDetails, 'GatewayKey': GatewayKey, 'HideCvv': HideCvv, 'MinimumAdultDateOfBirth': JsonConverters.toJson(MinimumAdultDateOfBirth,'DateTime',context!) }; getTypeName() => "Configuration"; TypeContext? context = _ctx; } class Creditor implements IConvertible { String? Id; List? Schemes; String? Name; String? AddressLine1; String? AddressLine2; String? AddressLine3; String? City; String? CountryCode; String? PostalCode; String? Region; String? TermsAndConditionsUrl; List? Countries; Creditor({this.Id,this.Schemes,this.Name,this.AddressLine1,this.AddressLine2,this.AddressLine3,this.City,this.CountryCode,this.PostalCode,this.Region,this.TermsAndConditionsUrl,this.Countries}); Creditor.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Schemes = JsonConverters.fromJson(json['Schemes'],'List',context!); Name = json['Name']; AddressLine1 = json['AddressLine1']; AddressLine2 = json['AddressLine2']; AddressLine3 = json['AddressLine3']; City = json['City']; CountryCode = json['CountryCode']; PostalCode = json['PostalCode']; Region = json['Region']; TermsAndConditionsUrl = json['TermsAndConditionsUrl']; Countries = JsonConverters.fromJson(json['Countries'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Schemes': JsonConverters.toJson(Schemes,'List',context!), 'Name': Name, 'AddressLine1': AddressLine1, 'AddressLine2': AddressLine2, 'AddressLine3': AddressLine3, 'City': City, 'CountryCode': CountryCode, 'PostalCode': PostalCode, 'Region': Region, 'TermsAndConditionsUrl': TermsAndConditionsUrl, 'Countries': JsonConverters.toJson(Countries,'List',context!) }; getTypeName() => "Creditor"; TypeContext? context = _ctx; } class PaymentGateway implements IConvertible { int? PaymentGatewayId; String? Name; String? Currency; String? TypeName; GatewayType? GatewayType; DateTime? Created; DateTime? AccountingStartDate; bool? IsDefault; bool? IsPublic; bool? Disabled; String? DisabledReason; Configuration? Configuration; Creditor? Creditor; bool? IsCreditCard; bool? IsClubManagerCreditCard; bool? IsDirectDebit; bool? HasSignUpLink; bool? CanProvidePaymentToken; bool? CanProvidePaymentRedirect; bool? CanImport; bool? CanSupplyRawData; bool? CanImportPaymentMethod; String? PublicTranslation; String? BankAccount; PaymentGateway({this.PaymentGatewayId,this.Name,this.Currency,this.TypeName,this.GatewayType,this.Created,this.AccountingStartDate,this.IsDefault,this.IsPublic,this.Disabled,this.DisabledReason,this.Configuration,this.Creditor,this.IsCreditCard,this.IsClubManagerCreditCard,this.IsDirectDebit,this.HasSignUpLink,this.CanProvidePaymentToken,this.CanProvidePaymentRedirect,this.CanImport,this.CanSupplyRawData,this.CanImportPaymentMethod,this.PublicTranslation,this.BankAccount}); PaymentGateway.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentGatewayId = json['PaymentGatewayId']; Name = json['Name']; Currency = json['Currency']; TypeName = json['TypeName']; GatewayType = JsonConverters.fromJson(json['GatewayType'],'GatewayType',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); AccountingStartDate = JsonConverters.fromJson(json['AccountingStartDate'],'DateTime',context!); IsDefault = json['IsDefault']; IsPublic = json['IsPublic']; Disabled = json['Disabled']; DisabledReason = json['DisabledReason']; Configuration = JsonConverters.fromJson(json['Configuration'],'Configuration',context!); Creditor = JsonConverters.fromJson(json['Creditor'],'Creditor',context!); IsCreditCard = json['IsCreditCard']; IsClubManagerCreditCard = json['IsClubManagerCreditCard']; IsDirectDebit = json['IsDirectDebit']; HasSignUpLink = json['HasSignUpLink']; CanProvidePaymentToken = json['CanProvidePaymentToken']; CanProvidePaymentRedirect = json['CanProvidePaymentRedirect']; CanImport = json['CanImport']; CanSupplyRawData = json['CanSupplyRawData']; CanImportPaymentMethod = json['CanImportPaymentMethod']; PublicTranslation = json['PublicTranslation']; BankAccount = json['BankAccount']; return this; } Map toJson() => { 'PaymentGatewayId': PaymentGatewayId, 'Name': Name, 'Currency': Currency, 'TypeName': TypeName, 'GatewayType': JsonConverters.toJson(GatewayType,'GatewayType',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'AccountingStartDate': JsonConverters.toJson(AccountingStartDate,'DateTime',context!), 'IsDefault': IsDefault, 'IsPublic': IsPublic, 'Disabled': Disabled, 'DisabledReason': DisabledReason, 'Configuration': JsonConverters.toJson(Configuration,'Configuration',context!), 'Creditor': JsonConverters.toJson(Creditor,'Creditor',context!), 'IsCreditCard': IsCreditCard, 'IsClubManagerCreditCard': IsClubManagerCreditCard, 'IsDirectDebit': IsDirectDebit, 'HasSignUpLink': HasSignUpLink, 'CanProvidePaymentToken': CanProvidePaymentToken, 'CanProvidePaymentRedirect': CanProvidePaymentRedirect, 'CanImport': CanImport, 'CanSupplyRawData': CanSupplyRawData, 'CanImportPaymentMethod': CanImportPaymentMethod, 'PublicTranslation': PublicTranslation, 'BankAccount': BankAccount }; getTypeName() => "PaymentGateway"; TypeContext? context = _ctx; } // @Route("/api/PaymentGateway/GetPaymentGatewayById", "POST,GET") class GetPaymentGatewayByIdRequest implements IReturn, IConvertible { int? PaymentGatewayId; GetPaymentGatewayByIdRequest({this.PaymentGatewayId}); GetPaymentGatewayByIdRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentGatewayId = json['PaymentGatewayId']; return this; } Map toJson() => { 'PaymentGatewayId': PaymentGatewayId }; createResponse() => PaymentGateway(); getResponseTypeName() => "PaymentGateway"; getTypeName() => "GetPaymentGatewayByIdRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'GatewayType': TypeInfo(TypeOf.Enum, enumValues:GatewayType.values), 'Configuration': TypeInfo(TypeOf.Class, create:() => Configuration()), 'Creditor': TypeInfo(TypeOf.Class, create:() => Creditor()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Scheme': TypeInfo(TypeOf.Class, create:() => Scheme()), 'PaymentGateway': TypeInfo(TypeOf.Class, create:() => PaymentGateway()), 'GetPaymentGatewayByIdRequest': TypeInfo(TypeOf.Class, create:() => GetPaymentGatewayByIdRequest()), });