/* Options: Date: 2026-11-08 12:02:27 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: CreditCardDonation.* //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/creditcard", "POST") class CreditCardDonation extends CreditCardDonation implements IReturn, ICanBeRecurring, IReturnLegacyException, IConvertible { CreditCardDonation(); CreditCardDonation.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => LegacyApiResponse(); getResponseTypeName() => "LegacyApiResponse"; getTypeName() => "CreditCardDonation"; TypeContext? context = _ctx; } class CreditCardDonation implements IConvertible { int? ClientId; int? GroupId; double? Amount; String? NameOnCard; String? CardNumber; String? Cvv; String? ExpMonth; String? ExpYear; String? Address; String? City; String? State; String? PostalCode; String? EmailAddress; String? Phone; String? Memo; String? Occurs; String? NumberOfOccurences; CreditCardDonation({this.ClientId,this.GroupId,this.Amount,this.NameOnCard,this.CardNumber,this.Cvv,this.ExpMonth,this.ExpYear,this.Address,this.City,this.State,this.PostalCode,this.EmailAddress,this.Phone,this.Memo,this.Occurs,this.NumberOfOccurences}); CreditCardDonation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClientId = json['ClientId']; GroupId = json['GroupId']; Amount = JsonConverters.toDouble(json['Amount']); NameOnCard = json['NameOnCard']; CardNumber = json['CardNumber']; Cvv = json['Cvv']; ExpMonth = json['ExpMonth']; ExpYear = json['ExpYear']; Address = json['Address']; City = json['City']; State = json['State']; PostalCode = json['PostalCode']; EmailAddress = json['EmailAddress']; Phone = json['Phone']; Memo = json['Memo']; Occurs = json['Occurs']; NumberOfOccurences = json['NumberOfOccurences']; return this; } Map toJson() => { 'ClientId': ClientId, 'GroupId': GroupId, 'Amount': Amount, 'NameOnCard': NameOnCard, 'CardNumber': CardNumber, 'Cvv': Cvv, 'ExpMonth': ExpMonth, 'ExpYear': ExpYear, 'Address': Address, 'City': City, 'State': State, 'PostalCode': PostalCode, 'EmailAddress': EmailAddress, 'Phone': Phone, 'Memo': Memo, 'Occurs': Occurs, 'NumberOfOccurences': NumberOfOccurences }; getTypeName() => "CreditCardDonation"; 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()), 'CreditCardDonation': TypeInfo(TypeOf.Class, create:() => CreditCardDonation()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });