/* Options: Date: 2026-11-08 12:03:12 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: AchDonation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; abstract class ICanBeRecurring { String? Occurs; String? NumberOfOccurences; } abstract class IReturnLegacyException { } class ResultCode { static const ResultCode Success = const ResultCode._(0); static const ResultCode Duplicate = const ResultCode._(-7); static const ResultCode NotAvailable = const ResultCode._(-6); static const ResultCode NotFound = const ResultCode._(-5); static const ResultCode GeneralError = const ResultCode._(-4); static const ResultCode UnexpectedError = const ResultCode._(-3); static const ResultCode CreditCardDeclined = const ResultCode._(-2); static const ResultCode DataValidationFailure = const ResultCode._(-1); final int _value; const ResultCode._(this._value); int get value => _value; static List get values => const [Success,Duplicate,NotAvailable,NotFound,GeneralError,UnexpectedError,CreditCardDeclined,DataValidationFailure]; } // @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; } // @Route("/v1.2/payments/ach", "POST") class AchDonation extends AchDonation implements IReturn, ICanBeRecurring, IReturnLegacyException, IConvertible { AchDonation(); AchDonation.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => LegacyApiResponse(); getResponseTypeName() => "LegacyApiResponse"; getTypeName() => "AchDonation"; TypeContext? context = _ctx; } class AchDonation implements IConvertible { int? ClientId; int? GroupId; double? Amount; String? RoutingNumber; String? AccountNumber; String? PayerName; String? CheckNumber; String? EmailAddress; String? Memo; String? Occurs; String? NumberOfOccurences; AchDonation({this.ClientId,this.GroupId,this.Amount,this.RoutingNumber,this.AccountNumber,this.PayerName,this.CheckNumber,this.EmailAddress,this.Memo,this.Occurs,this.NumberOfOccurences}); AchDonation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { 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() => { 'ClientId': ClientId, 'GroupId': GroupId, 'Amount': Amount, 'RoutingNumber': RoutingNumber, 'AccountNumber': AccountNumber, 'PayerName': PayerName, 'CheckNumber': CheckNumber, 'EmailAddress': EmailAddress, 'Memo': Memo, 'Occurs': Occurs, 'NumberOfOccurences': NumberOfOccurences }; getTypeName() => "AchDonation"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'ICanBeRecurring': TypeInfo(TypeOf.Interface), 'IReturnLegacyException': TypeInfo(TypeOf.Interface), 'ResultCode': TypeInfo(TypeOf.Enum, enumValues:ResultCode.values), 'LegacyApiResponse': TypeInfo(TypeOf.Class, create:() => LegacyApiResponse()), 'AchDonation': TypeInfo(TypeOf.Class, create:() => AchDonation()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });