/* Options: Date: 2026-11-08 12:07:39 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: AnywhereTokenDepositRq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AnywhereDonorInfo implements IConvertible { String? Name; String? Email; String? AddressLine1; String? AddressLine2; String? City; String? State; String? PostalCode; AnywhereDonorInfo({this.Name,this.Email,this.AddressLine1,this.AddressLine2,this.City,this.State,this.PostalCode}); AnywhereDonorInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Email = json['Email']; AddressLine1 = json['AddressLine1']; AddressLine2 = json['AddressLine2']; City = json['City']; State = json['State']; PostalCode = json['PostalCode']; return this; } Map toJson() => { 'Name': Name, 'Email': Email, 'AddressLine1': AddressLine1, 'AddressLine2': AddressLine2, 'City': City, 'State': State, 'PostalCode': PostalCode }; getTypeName() => "AnywhereDonorInfo"; TypeContext? context = _ctx; } abstract class AnywherePaymentRequestBase { int? UserId; int? ChapId; String? Memo; String? ReceiptEmail; int? Amount; int? LoggedInUserId; AnywhereDonorInfo? DonorInfo; AnywherePaymentRequestBase({this.UserId,this.ChapId,this.Memo,this.ReceiptEmail,this.Amount,this.LoggedInUserId,this.DonorInfo}); AnywherePaymentRequestBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; ChapId = json['ChapId']; Memo = json['Memo']; ReceiptEmail = json['ReceiptEmail']; Amount = json['Amount']; LoggedInUserId = json['LoggedInUserId']; DonorInfo = JsonConverters.fromJson(json['DonorInfo'],'AnywhereDonorInfo',context!); return this; } Map toJson() => { 'UserId': UserId, 'ChapId': ChapId, 'Memo': Memo, 'ReceiptEmail': ReceiptEmail, 'Amount': Amount, 'LoggedInUserId': LoggedInUserId, 'DonorInfo': JsonConverters.toJson(DonorInfo,'AnywhereDonorInfo',context!) }; getTypeName() => "AnywherePaymentRequestBase"; TypeContext? context = _ctx; } abstract class AnywhereTokenRequestBase extends AnywherePaymentRequestBase { String? TokenId; int? IntegrationPartnerId; AnywhereTokenRequestBase({this.TokenId,this.IntegrationPartnerId}); AnywhereTokenRequestBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TokenId = json['TokenId']; IntegrationPartnerId = json['IntegrationPartnerId']; return this; } Map toJson() => super.toJson()..addAll({ 'TokenId': TokenId, 'IntegrationPartnerId': IntegrationPartnerId }); getTypeName() => "AnywhereTokenRequestBase"; TypeContext? context = _ctx; } class AnywherePaymentRs extends AnywherePaymentRs implements IConvertible { AnywherePaymentRs(); AnywherePaymentRs.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AnywherePaymentRs"; TypeContext? context = _ctx; } // @Route("/anywhere/token/deposit", "POST") class AnywhereTokenDepositRq extends AnywhereTokenDepositRq implements IReturn, IConvertible { AnywhereTokenDepositRq(); AnywhereTokenDepositRq.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => AnywherePaymentRs(); getResponseTypeName() => "AnywherePaymentRs"; getTypeName() => "AnywhereTokenDepositRq"; TypeContext? context = _ctx; } class AnywhereTokenDepositRq extends AnywhereTokenRequestBase implements IConvertible { int? ChapAcctId; int? ChapBillCatId; AnywhereTokenDepositRq({this.ChapAcctId,this.ChapBillCatId}); AnywhereTokenDepositRq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ChapAcctId = json['ChapAcctId']; ChapBillCatId = json['ChapBillCatId']; return this; } Map toJson() => super.toJson()..addAll({ 'ChapAcctId': ChapAcctId, 'ChapBillCatId': ChapBillCatId }); getTypeName() => "AnywhereTokenDepositRq"; TypeContext? context = _ctx; } class AnywherePaymentRs implements IConvertible { String? LastFour; String? ConfirmationNumber; String? CardType; String? NameOnCard; int? Amount; String? Notes; bool? Success; bool? IsDuplicate; String? Message; int? PaymentConfirmationNumber; AnywherePaymentRs({this.LastFour,this.ConfirmationNumber,this.CardType,this.NameOnCard,this.Amount,this.Notes,this.Success,this.IsDuplicate,this.Message,this.PaymentConfirmationNumber}); AnywherePaymentRs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LastFour = json['LastFour']; ConfirmationNumber = json['ConfirmationNumber']; CardType = json['CardType']; NameOnCard = json['NameOnCard']; Amount = json['Amount']; Notes = json['Notes']; Success = json['Success']; IsDuplicate = json['IsDuplicate']; Message = json['Message']; PaymentConfirmationNumber = json['PaymentConfirmationNumber']; return this; } Map toJson() => { 'LastFour': LastFour, 'ConfirmationNumber': ConfirmationNumber, 'CardType': CardType, 'NameOnCard': NameOnCard, 'Amount': Amount, 'Notes': Notes, 'Success': Success, 'IsDuplicate': IsDuplicate, 'Message': Message, 'PaymentConfirmationNumber': PaymentConfirmationNumber }; getTypeName() => "AnywherePaymentRs"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'AnywhereDonorInfo': TypeInfo(TypeOf.Class, create:() => AnywhereDonorInfo()), 'AnywherePaymentRequestBase': TypeInfo(TypeOf.AbstractClass), 'AnywhereTokenRequestBase': TypeInfo(TypeOf.AbstractClass), 'AnywherePaymentRs': TypeInfo(TypeOf.Class, create:() => AnywherePaymentRs()), 'AnywhereTokenDepositRq': TypeInfo(TypeOf.Class, create:() => AnywhereTokenDepositRq()), });