/* Options: Date: 2026-11-08 12:08:31 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: AnywhereInPersonDonationRq.* //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 AnywhereInPersonRequestBase extends AnywherePaymentRequestBase { String? EncryptedPaymentData; AnywhereInPersonRequestBase({this.EncryptedPaymentData}); AnywhereInPersonRequestBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); EncryptedPaymentData = json['EncryptedPaymentData']; return this; } Map toJson() => super.toJson()..addAll({ 'EncryptedPaymentData': EncryptedPaymentData }); getTypeName() => "AnywhereInPersonRequestBase"; 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/inperson/donation", "POST") class AnywhereInPersonDonationRq extends AnywhereInPersonDonationRq implements IReturn, IConvertible { AnywhereInPersonDonationRq(); AnywhereInPersonDonationRq.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => AnywherePaymentRs(); getResponseTypeName() => "AnywherePaymentRs"; getTypeName() => "AnywhereInPersonDonationRq"; TypeContext? context = _ctx; } class AnywhereInPersonDonationRq extends AnywhereInPersonRequestBase implements IConvertible { int? CampaignId; bool? CreateAsDeposit; AnywhereInPersonDonationRq({this.CampaignId,this.CreateAsDeposit}); AnywhereInPersonDonationRq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CampaignId = json['CampaignId']; CreateAsDeposit = json['CreateAsDeposit']; return this; } Map toJson() => super.toJson()..addAll({ 'CampaignId': CampaignId, 'CreateAsDeposit': CreateAsDeposit }); getTypeName() => "AnywhereInPersonDonationRq"; 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), 'AnywhereInPersonRequestBase': TypeInfo(TypeOf.AbstractClass), 'AnywherePaymentRs': TypeInfo(TypeOf.Class, create:() => AnywherePaymentRs()), 'AnywhereInPersonDonationRq': TypeInfo(TypeOf.Class, create:() => AnywhereInPersonDonationRq()), });