/* Options: Date: 2024-12-03 12:00:42 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.paysecure.acculynk.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PSBINCheckRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RequestorCredentials implements IConvertible { // @Required() String? MerchantId; // @Required() String? UserName; // @Required() String? Password; // @Required() String? Version; RequestorCredentials({this.MerchantId,this.UserName,this.Password,this.Version}); RequestorCredentials.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MerchantId = json['MerchantId']; UserName = json['UserName']; Password = json['Password']; Version = json['Version']; return this; } Map toJson() => { 'MerchantId': MerchantId, 'UserName': UserName, 'Password': Password, 'Version': Version }; getTypeName() => "RequestorCredentials"; TypeContext? context = _ctx; } enum CardInfoType { CardNumber, Token, Track, EMV, Encrypted, DPAN, ApplePay, GooglePay, SamsungPay, CPToken, EncryptedEnhanced, EncryptedJWE, } class CardAccountUpdaterDescriptor implements IConvertible { CardInfoType? CardDataType; String? CardNumberInfo; String? ExpiryDate; String? Status; String? ErrorCode; String? CardToken; CardAccountUpdaterDescriptor({this.CardDataType,this.CardNumberInfo,this.ExpiryDate,this.Status,this.ErrorCode,this.CardToken}); CardAccountUpdaterDescriptor.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CardDataType = JsonConverters.fromJson(json['CardDataType'],'CardInfoType',context!); CardNumberInfo = json['CardNumberInfo']; ExpiryDate = json['ExpiryDate']; Status = json['Status']; ErrorCode = json['ErrorCode']; CardToken = json['CardToken']; return this; } Map toJson() => { 'CardDataType': JsonConverters.toJson(CardDataType,'CardInfoType',context!), 'CardNumberInfo': CardNumberInfo, 'ExpiryDate': ExpiryDate, 'Status': Status, 'ErrorCode': ErrorCode, 'CardToken': CardToken }; getTypeName() => "CardAccountUpdaterDescriptor"; TypeContext? context = _ctx; } // @DataContract class ExtendedResponse implements IConvertible { // @DataMember(EmitDefaultValue=false) CardAccountUpdaterDescriptor? CardAccountUpdater; // @DataMember(EmitDefaultValue=false) String? ProductId; // @DataMember(EmitDefaultValue=false) String? NetworkResponseCode; // @DataMember(EmitDefaultValue=false) String? NetworkTransactionId; // @DataMember(EmitDefaultValue=false) String? CHEmailAddrResult; ExtendedResponse({this.CardAccountUpdater,this.ProductId,this.NetworkResponseCode,this.NetworkTransactionId,this.CHEmailAddrResult}); ExtendedResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CardAccountUpdater = JsonConverters.fromJson(json['CardAccountUpdater'],'CardAccountUpdaterDescriptor',context!); ProductId = json['ProductId']; NetworkResponseCode = json['NetworkResponseCode']; NetworkTransactionId = json['NetworkTransactionId']; CHEmailAddrResult = json['CHEmailAddrResult']; return this; } Map toJson() => { 'CardAccountUpdater': JsonConverters.toJson(CardAccountUpdater,'CardAccountUpdaterDescriptor',context!), 'ProductId': ProductId, 'NetworkResponseCode': NetworkResponseCode, 'NetworkTransactionId': NetworkTransactionId, 'CHEmailAddrResult': CHEmailAddrResult }; getTypeName() => "ExtendedResponse"; TypeContext? context = _ctx; } // @DataContract class InOutTimes implements IConvertible { InOutTimes(); InOutTimes.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "InOutTimes"; TypeContext? context = _ctx; } // @DataContract class RequestTimestamps implements IConvertible { // @DataMember(EmitDefaultValue=false) InOutTimes? AppLayer; // @DataMember(EmitDefaultValue=false) InOutTimes? ParentLookup; // @DataMember(EmitDefaultValue=false) InOutTimes? RetryLookup; // @DataMember(EmitDefaultValue=false) InOutTimes? GetCardData; // @DataMember(EmitDefaultValue=false) InOutTimes? CardTokenize; // @DataMember(EmitDefaultValue=false) InOutTimes? CardEncrypt; // @DataMember(EmitDefaultValue=false) InOutTimes? DBInsert; // @DataMember(EmitDefaultValue=false) InOutTimes? BackendProcess; // @DataMember(EmitDefaultValue=false) InOutTimes? DBUpdate; // @DataMember(EmitDefaultValue=false) InOutTimes? ParentUpdate; // @DataMember(EmitDefaultValue=false) InOutTimes? Network; RequestTimestamps({this.AppLayer,this.ParentLookup,this.RetryLookup,this.GetCardData,this.CardTokenize,this.CardEncrypt,this.DBInsert,this.BackendProcess,this.DBUpdate,this.ParentUpdate,this.Network}); RequestTimestamps.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AppLayer = JsonConverters.fromJson(json['AppLayer'],'InOutTimes',context!); ParentLookup = JsonConverters.fromJson(json['ParentLookup'],'InOutTimes',context!); RetryLookup = JsonConverters.fromJson(json['RetryLookup'],'InOutTimes',context!); GetCardData = JsonConverters.fromJson(json['GetCardData'],'InOutTimes',context!); CardTokenize = JsonConverters.fromJson(json['CardTokenize'],'InOutTimes',context!); CardEncrypt = JsonConverters.fromJson(json['CardEncrypt'],'InOutTimes',context!); DBInsert = JsonConverters.fromJson(json['DBInsert'],'InOutTimes',context!); BackendProcess = JsonConverters.fromJson(json['BackendProcess'],'InOutTimes',context!); DBUpdate = JsonConverters.fromJson(json['DBUpdate'],'InOutTimes',context!); ParentUpdate = JsonConverters.fromJson(json['ParentUpdate'],'InOutTimes',context!); Network = JsonConverters.fromJson(json['Network'],'InOutTimes',context!); return this; } Map toJson() => { 'AppLayer': JsonConverters.toJson(AppLayer,'InOutTimes',context!), 'ParentLookup': JsonConverters.toJson(ParentLookup,'InOutTimes',context!), 'RetryLookup': JsonConverters.toJson(RetryLookup,'InOutTimes',context!), 'GetCardData': JsonConverters.toJson(GetCardData,'InOutTimes',context!), 'CardTokenize': JsonConverters.toJson(CardTokenize,'InOutTimes',context!), 'CardEncrypt': JsonConverters.toJson(CardEncrypt,'InOutTimes',context!), 'DBInsert': JsonConverters.toJson(DBInsert,'InOutTimes',context!), 'BackendProcess': JsonConverters.toJson(BackendProcess,'InOutTimes',context!), 'DBUpdate': JsonConverters.toJson(DBUpdate,'InOutTimes',context!), 'ParentUpdate': JsonConverters.toJson(ParentUpdate,'InOutTimes',context!), 'Network': JsonConverters.toJson(Network,'InOutTimes',context!) }; getTypeName() => "RequestTimestamps"; TypeContext? context = _ctx; } // @DataContract class PaysecureResponseInternal implements IConvertible { // @DataMember(EmitDefaultValue=false) RequestTimestamps? Timestamps; PaysecureResponseInternal({this.Timestamps}); PaysecureResponseInternal.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Timestamps = JsonConverters.fromJson(json['Timestamps'],'RequestTimestamps',context!); return this; } Map toJson() => { 'Timestamps': JsonConverters.toJson(Timestamps,'RequestTimestamps',context!) }; getTypeName() => "PaysecureResponseInternal"; TypeContext? context = _ctx; } // @DataContract class PaysecureVersion extends PaysecureResponseInternal implements IConvertible { // @DataMember(EmitDefaultValue=false) String? LocalDateTime; // @DataMember(EmitDefaultValue=false) String? Token; // @DataMember(EmitDefaultValue=false) ExtendedResponse? ExtendedData; PaysecureVersion({this.LocalDateTime,this.Token,this.ExtendedData}); PaysecureVersion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LocalDateTime = json['LocalDateTime']; Token = json['Token']; ExtendedData = JsonConverters.fromJson(json['ExtendedData'],'ExtendedResponse',context!); return this; } Map toJson() => super.toJson()..addAll({ 'LocalDateTime': LocalDateTime, 'Token': Token, 'ExtendedData': JsonConverters.toJson(ExtendedData,'ExtendedResponse',context!) }); getTypeName() => "PaysecureVersion"; TypeContext? context = _ctx; } // @DataContract class PSBINCheck extends PaysecureVersion implements IConvertible { // @DataMember String? BIN; // @DataMember bool? InternetPinDebit; // @DataMember bool? EcomEBTSNAP; // @DataMember bool? EcomEBTCash; // @DataMember bool? POSFlag; // @DataMember bool? PinlessEcommerce; // @DataMember bool? PinlessBillPay; // @DataMember bool? OnDemandPaymentCredit; // @DataMember bool? OnDemandPaymentDebit; // @DataMember bool? PinlessA2ACredit; // @DataMember bool? PinlessA2ADebit; // @DataMember bool? PinlessPrePaidLoad; // @DataMember bool? DualMessage; // @DataMember bool? Recurring; // @DataMember bool? CardVerify; // @DataMember bool? POSPinlessDualMessageFlag; // @DataMember String? ErrorMessage; // @DataMember String? ErrorCode; // @DataMember bool? OTP; // @DataMember String? FastFunds; // @DataMember bool? IncrementalAuth; // @DataMember bool? WIC; // @DataMember String? CardDesignation; PSBINCheck({this.BIN,this.InternetPinDebit,this.EcomEBTSNAP,this.EcomEBTCash,this.POSFlag,this.PinlessEcommerce,this.PinlessBillPay,this.OnDemandPaymentCredit,this.OnDemandPaymentDebit,this.PinlessA2ACredit,this.PinlessA2ADebit,this.PinlessPrePaidLoad,this.DualMessage,this.Recurring,this.CardVerify,this.POSPinlessDualMessageFlag,this.ErrorMessage,this.ErrorCode,this.OTP,this.FastFunds,this.IncrementalAuth,this.WIC,this.CardDesignation}); PSBINCheck.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); BIN = json['BIN']; InternetPinDebit = json['InternetPinDebit']; EcomEBTSNAP = json['EcomEBTSNAP']; EcomEBTCash = json['EcomEBTCash']; POSFlag = json['POSFlag']; PinlessEcommerce = json['PinlessEcommerce']; PinlessBillPay = json['PinlessBillPay']; OnDemandPaymentCredit = json['OnDemandPaymentCredit']; OnDemandPaymentDebit = json['OnDemandPaymentDebit']; PinlessA2ACredit = json['PinlessA2ACredit']; PinlessA2ADebit = json['PinlessA2ADebit']; PinlessPrePaidLoad = json['PinlessPrePaidLoad']; DualMessage = json['DualMessage']; Recurring = json['Recurring']; CardVerify = json['CardVerify']; POSPinlessDualMessageFlag = json['POSPinlessDualMessageFlag']; ErrorMessage = json['ErrorMessage']; ErrorCode = json['ErrorCode']; OTP = json['OTP']; FastFunds = json['FastFunds']; IncrementalAuth = json['IncrementalAuth']; WIC = json['WIC']; CardDesignation = json['CardDesignation']; return this; } Map toJson() => super.toJson()..addAll({ 'BIN': BIN, 'InternetPinDebit': InternetPinDebit, 'EcomEBTSNAP': EcomEBTSNAP, 'EcomEBTCash': EcomEBTCash, 'POSFlag': POSFlag, 'PinlessEcommerce': PinlessEcommerce, 'PinlessBillPay': PinlessBillPay, 'OnDemandPaymentCredit': OnDemandPaymentCredit, 'OnDemandPaymentDebit': OnDemandPaymentDebit, 'PinlessA2ACredit': PinlessA2ACredit, 'PinlessA2ADebit': PinlessA2ADebit, 'PinlessPrePaidLoad': PinlessPrePaidLoad, 'DualMessage': DualMessage, 'Recurring': Recurring, 'CardVerify': CardVerify, 'POSPinlessDualMessageFlag': POSPinlessDualMessageFlag, 'ErrorMessage': ErrorMessage, 'ErrorCode': ErrorCode, 'OTP': OTP, 'FastFunds': FastFunds, 'IncrementalAuth': IncrementalAuth, 'WIC': WIC, 'CardDesignation': CardDesignation }); getTypeName() => "PSBINCheck"; TypeContext? context = _ctx; } // @Route("/PSBINCheck", "POST") // @DataContract class PSBINCheckRequest implements IReturn, IConvertible, IPost { // @DataMember RequestorCredentials? Credentials; // @DataMember String? BIN; PSBINCheckRequest({this.Credentials,this.BIN}); PSBINCheckRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Credentials = JsonConverters.fromJson(json['Credentials'],'RequestorCredentials',context!); BIN = json['BIN']; return this; } Map toJson() => { 'Credentials': JsonConverters.toJson(Credentials,'RequestorCredentials',context!), 'BIN': BIN }; createResponse() => PSBINCheck(); getResponseTypeName() => "PSBINCheck"; getTypeName() => "PSBINCheckRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.paysecure.acculynk.net', types: { 'RequestorCredentials': TypeInfo(TypeOf.Class, create:() => RequestorCredentials()), 'CardInfoType': TypeInfo(TypeOf.Enum, enumValues:CardInfoType.values), 'CardAccountUpdaterDescriptor': TypeInfo(TypeOf.Class, create:() => CardAccountUpdaterDescriptor()), 'ExtendedResponse': TypeInfo(TypeOf.Class, create:() => ExtendedResponse()), 'InOutTimes': TypeInfo(TypeOf.Class, create:() => InOutTimes()), 'RequestTimestamps': TypeInfo(TypeOf.Class, create:() => RequestTimestamps()), 'PaysecureResponseInternal': TypeInfo(TypeOf.Class, create:() => PaysecureResponseInternal()), 'PaysecureVersion': TypeInfo(TypeOf.Class, create:() => PaysecureVersion()), 'PSBINCheck': TypeInfo(TypeOf.Class, create:() => PSBINCheck()), 'PSBINCheckRequest': TypeInfo(TypeOf.Class, create:() => PSBINCheckRequest()), });