/* Options: Date: 2026-11-08 12:02:52 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ACHPayment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; abstract class IDTOHasApiKey { String? APIKey; } // @DataContract(Namespace="www.billhighway.com/api") class LegacyApiResponse implements IHaveErrorField, IConvertible { // @DataMember double? amount; // @DataMember String? confirmationNumber; // @DataMember String? responseCode; // @DataMember String? responseDescription; // @DataMember ResultCode? resultCode; LegacyApiResponse({this.amount,this.confirmationNumber,this.responseCode,this.responseDescription,this.resultCode}); LegacyApiResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']); confirmationNumber = json['confirmationNumber']; responseCode = json['responseCode']; responseDescription = json['responseDescription']; resultCode = JsonConverters.fromJson(json['resultCode'],'ResultCode',context!); return this; } Map toJson() => { 'amount': amount, 'confirmationNumber': confirmationNumber, 'responseCode': responseCode, 'responseDescription': responseDescription, 'resultCode': JsonConverters.toJson(resultCode,'ResultCode',context!) }; getTypeName() => "LegacyApiResponse"; TypeContext? context = _ctx; } class ACHPaymentResult extends LegacyApiResponse implements IConvertible { ACHPaymentResult(); ACHPaymentResult.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "ACHPaymentResult"; TypeContext? context = _ctx; } // @DataContract(Name="ACHPaymentResponse", Namespace="www.billhighway.com/api") class ACHPaymentResponse implements IHaveErrorField, IConvertible { // @DataMember(Name="ACHPaymentResult") ACHPaymentResult? Result; ACHPaymentResponse({this.Result}); ACHPaymentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Result = JsonConverters.fromJson(json['Result'],'ACHPaymentResult',context!); return this; } Map toJson() => { 'Result': JsonConverters.toJson(Result,'ACHPaymentResult',context!) }; getTypeName() => "ACHPaymentResponse"; TypeContext? context = _ctx; } class ACHPayment extends ACHPayment implements IReturn, IConvertible { ACHPayment(); ACHPayment.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => ACHPaymentResponse(); getResponseTypeName() => "ACHPaymentResponse"; getTypeName() => "ACHPayment"; TypeContext? context = _ctx; } // @DataContract(Namespace="www.billhighway.com/api") class ACHPayment implements IDTOHasApiKey, IConvertible { // @DataMember(Name="apiKey", Order=1) String? APIKey; // @DataMember(Name="clientId", Order=2) int? ClientID; // @DataMember(Name="groupId", Order=3) int? GroupId; // @DataMember(Name="amount", Order=4) double? Amount; // @DataMember(Name="routingNumber", Order=5) String? RoutingNumber; // @DataMember(Name="accountNumber", Order=6) String? AccountNumber; // @DataMember(Name="payerName", Order=7) String? PayerName; // @DataMember(Name="checkNumber", Order=8) String? CheckNumber; // @DataMember(Name="emailAddress", Order=9) String? EmailAddress; // @DataMember(Name="memo", Order=10) String? Memo; // @DataMember(Name="occurs", Order=11) String? Occurs; // @DataMember(Name="numberOfOccurences", Order=12) String? NumberOfOccurences; ACHPayment({this.APIKey,this.ClientID,this.GroupId,this.Amount,this.RoutingNumber,this.AccountNumber,this.PayerName,this.CheckNumber,this.EmailAddress,this.Memo,this.Occurs,this.NumberOfOccurences}); ACHPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { APIKey = json['APIKey']; ClientID = json['ClientID']; GroupId = json['GroupId']; Amount = JsonConverters.toDouble(json['Amount']); RoutingNumber = json['RoutingNumber']; AccountNumber = json['AccountNumber']; PayerName = json['PayerName']; CheckNumber = json['CheckNumber']; EmailAddress = json['EmailAddress']; Memo = json['Memo']; Occurs = json['Occurs']; NumberOfOccurences = json['NumberOfOccurences']; return this; } Map toJson() => { 'APIKey': APIKey, 'ClientID': ClientID, 'GroupId': GroupId, 'Amount': Amount, 'RoutingNumber': RoutingNumber, 'AccountNumber': AccountNumber, 'PayerName': PayerName, 'CheckNumber': CheckNumber, 'EmailAddress': EmailAddress, 'Memo': Memo, 'Occurs': Occurs, 'NumberOfOccurences': NumberOfOccurences }; getTypeName() => "ACHPayment"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'IDTOHasApiKey': TypeInfo(TypeOf.Interface), 'LegacyApiResponse': TypeInfo(TypeOf.Class, create:() => LegacyApiResponse()), 'ResultCode': TypeInfo(TypeOf.Class, create:() => ResultCode()), 'ACHPaymentResult': TypeInfo(TypeOf.Class, create:() => ACHPaymentResult()), 'ACHPaymentResponse': TypeInfo(TypeOf.Class, create:() => ACHPaymentResponse()), 'ACHPayment': TypeInfo(TypeOf.Class, create:() => ACHPayment()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });