/* Options: Date: 2024-11-21 05:29:54 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: ClientTokenizeCardRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum TelephoneType { D, H, N, W, } class Avs implements IConvertible { String? Address; String? City; String? State; String? Zip; String? Country; String? Email; String? IPAddress; String? TelephoneNumber; TelephoneType? TelephoneType; int? DeliveryMethod; String? FirstName; String? MiddleName; String? LastName; Avs({this.Address,this.City,this.State,this.Zip,this.Country,this.Email,this.IPAddress,this.TelephoneNumber,this.TelephoneType,this.DeliveryMethod,this.FirstName,this.MiddleName,this.LastName}); Avs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Address = json['Address']; City = json['City']; State = json['State']; Zip = json['Zip']; Country = json['Country']; Email = json['Email']; IPAddress = json['IPAddress']; TelephoneNumber = json['TelephoneNumber']; TelephoneType = JsonConverters.fromJson(json['TelephoneType'],'TelephoneType',context!); DeliveryMethod = json['DeliveryMethod']; FirstName = json['FirstName']; MiddleName = json['MiddleName']; LastName = json['LastName']; return this; } Map toJson() => { 'Address': Address, 'City': City, 'State': State, 'Zip': Zip, 'Country': Country, 'Email': Email, 'IPAddress': IPAddress, 'TelephoneNumber': TelephoneNumber, 'TelephoneType': JsonConverters.toJson(TelephoneType,'TelephoneType',context!), 'DeliveryMethod': DeliveryMethod, 'FirstName': FirstName, 'MiddleName': MiddleName, 'LastName': LastName }; getTypeName() => "Avs"; 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 ClientTokenizeCard extends PaysecureResponseInternal implements IConvertible { // @DataMember String? ErrorMessage; // @DataMember String? ErrorCode; ClientTokenizeCard({this.ErrorMessage,this.ErrorCode}); ClientTokenizeCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ErrorMessage = json['ErrorMessage']; ErrorCode = json['ErrorCode']; return this; } Map toJson() => super.toJson()..addAll({ 'ErrorMessage': ErrorMessage, 'ErrorCode': ErrorCode }); getTypeName() => "ClientTokenizeCard"; TypeContext? context = _ctx; } // @Route("/ClientTokenizeCard", "POST") // @DataContract class ClientTokenizeCardRequest implements IReturn, IConvertible, IPost { // @DataMember String? Version; // @DataMember String? SessionId; // @DataMember String? CardNumber; // @DataMember String? Expiration; // @DataMember String? CVN; // @DataMember Avs? AVS; ClientTokenizeCardRequest({this.Version,this.SessionId,this.CardNumber,this.Expiration,this.CVN,this.AVS}); ClientTokenizeCardRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Version = json['Version']; SessionId = json['SessionId']; CardNumber = json['CardNumber']; Expiration = json['Expiration']; CVN = json['CVN']; AVS = JsonConverters.fromJson(json['AVS'],'Avs',context!); return this; } Map toJson() => { 'Version': Version, 'SessionId': SessionId, 'CardNumber': CardNumber, 'Expiration': Expiration, 'CVN': CVN, 'AVS': JsonConverters.toJson(AVS,'Avs',context!) }; createResponse() => ClientTokenizeCard(); getResponseTypeName() => "ClientTokenizeCard"; getTypeName() => "ClientTokenizeCardRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.paysecure.acculynk.net', types: { 'TelephoneType': TypeInfo(TypeOf.Enum, enumValues:TelephoneType.values), 'Avs': TypeInfo(TypeOf.Class, create:() => Avs()), 'InOutTimes': TypeInfo(TypeOf.Class, create:() => InOutTimes()), 'RequestTimestamps': TypeInfo(TypeOf.Class, create:() => RequestTimestamps()), 'PaysecureResponseInternal': TypeInfo(TypeOf.Class, create:() => PaysecureResponseInternal()), 'ClientTokenizeCard': TypeInfo(TypeOf.Class, create:() => ClientTokenizeCard()), 'ClientTokenizeCardRequest': TypeInfo(TypeOf.Class, create:() => ClientTokenizeCardRequest()), });