/* Options: Date: 2026-11-08 11:51:57 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: Pmi.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SalesForceMemberPaymentInvoiceDetail implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; int? Invoice; String? AmountPaid; SalesForceMemberPaymentInvoiceDetail({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.Invoice,this.AmountPaid}); SalesForceMemberPaymentInvoiceDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; Invoice = json['Invoice']; AmountPaid = json['AmountPaid']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'Invoice': Invoice, 'AmountPaid': AmountPaid }; getTypeName() => "SalesForceMemberPaymentInvoiceDetail"; TypeContext? context = _ctx; } class AchPayment implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; int? BhUserId; double? Amount; String? CurrencyType; String? Country; String? RoutingNumber; String? AccountNumber; String? AchReference; String? AccountType; bool? IsSavingsAccount; String? PayerName; String? CheckNumber; String? PreferredEmailAddress; String? Memo; List? InvoiceList; bool? AutoPay; bool? StoreAchInfo; int? EncryptionTypeId; AchPayment({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.Amount,this.CurrencyType,this.Country,this.RoutingNumber,this.AccountNumber,this.AchReference,this.AccountType,this.IsSavingsAccount,this.PayerName,this.CheckNumber,this.PreferredEmailAddress,this.Memo,this.InvoiceList,this.AutoPay,this.StoreAchInfo,this.EncryptionTypeId}); AchPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; BhUserId = json['BhUserId']; Amount = JsonConverters.toDouble(json['Amount']); CurrencyType = json['CurrencyType']; Country = json['Country']; RoutingNumber = json['RoutingNumber']; AccountNumber = json['AccountNumber']; AchReference = json['AchReference']; AccountType = json['AccountType']; IsSavingsAccount = json['IsSavingsAccount']; PayerName = json['PayerName']; CheckNumber = json['CheckNumber']; PreferredEmailAddress = json['PreferredEmailAddress']; Memo = json['Memo']; InvoiceList = JsonConverters.fromJson(json['InvoiceList'],'List',context!); AutoPay = json['AutoPay']; StoreAchInfo = json['StoreAchInfo']; EncryptionTypeId = json['EncryptionTypeId']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'BhUserId': BhUserId, 'Amount': Amount, 'CurrencyType': CurrencyType, 'Country': Country, 'RoutingNumber': RoutingNumber, 'AccountNumber': AccountNumber, 'AchReference': AchReference, 'AccountType': AccountType, 'IsSavingsAccount': IsSavingsAccount, 'PayerName': PayerName, 'CheckNumber': CheckNumber, 'PreferredEmailAddress': PreferredEmailAddress, 'Memo': Memo, 'InvoiceList': JsonConverters.toJson(InvoiceList,'List',context!), 'AutoPay': AutoPay, 'StoreAchInfo': StoreAchInfo, 'EncryptionTypeId': EncryptionTypeId }; getTypeName() => "AchPayment"; TypeContext? context = _ctx; } class RecurringInvoiceSettings implements IConvertible { String? DonationAmount; RecurringInvoiceSettings({this.DonationAmount}); RecurringInvoiceSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DonationAmount = json['DonationAmount']; return this; } Map toJson() => { 'DonationAmount': DonationAmount }; getTypeName() => "RecurringInvoiceSettings"; TypeContext? context = _ctx; } class SubscriberFormField implements IConvertible { int? FormTemplateFieldID; String? Name; String? Value; SubscriberFormField({this.FormTemplateFieldID,this.Name,this.Value}); SubscriberFormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormTemplateFieldID = json['FormTemplateFieldID']; Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'FormTemplateFieldID': FormTemplateFieldID, 'Name': Name, 'Value': Value }; getTypeName() => "SubscriberFormField"; TypeContext? context = _ctx; } class AttributeItem implements IConvertible { String? Name; String? Value; AttributeItem({this.Name,this.Value}); AttributeItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "AttributeItem"; TypeContext? context = _ctx; } class Chapter implements IConvertible { String? GroupId; Chapter({this.GroupId}); Chapter.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GroupId = json['GroupId']; return this; } Map toJson() => { 'GroupId': GroupId }; getTypeName() => "Chapter"; TypeContext? context = _ctx; } class Member implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; String? AlternateUserId; int? BhUserId; String? FirstName; String? LastName; String? MiddleName; String? PreferredEmailAddress; String? OtherEmailAddress; String? PreferredPhoneNumber; String? PreferredAddress1; String? PreferredAddress2; String? PreferredCity; String? PreferredState; String? PreferredZip; String? PreferredCountry; String? AccessLevel; String? MemberStatus; String? MemberTypeClient; String? BillingType; int? FiscalYear; String? WorkLocation; DateTime? DOB; String? Paperless; String? DisplayName; String? DisableLogin; RecurringInvoiceSettings? RecurringInvoiceSettings; List? FormFields; List? Attributes; List? GroupList; Member({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.AlternateUserId,this.BhUserId,this.FirstName,this.LastName,this.MiddleName,this.PreferredEmailAddress,this.OtherEmailAddress,this.PreferredPhoneNumber,this.PreferredAddress1,this.PreferredAddress2,this.PreferredCity,this.PreferredState,this.PreferredZip,this.PreferredCountry,this.AccessLevel,this.MemberStatus,this.MemberTypeClient,this.BillingType,this.FiscalYear,this.WorkLocation,this.DOB,this.Paperless,this.DisplayName,this.DisableLogin,this.RecurringInvoiceSettings,this.FormFields,this.Attributes,this.GroupList}); Member.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; AlternateUserId = json['AlternateUserId']; BhUserId = json['BhUserId']; FirstName = json['FirstName']; LastName = json['LastName']; MiddleName = json['MiddleName']; PreferredEmailAddress = json['PreferredEmailAddress']; OtherEmailAddress = json['OtherEmailAddress']; PreferredPhoneNumber = json['PreferredPhoneNumber']; PreferredAddress1 = json['PreferredAddress1']; PreferredAddress2 = json['PreferredAddress2']; PreferredCity = json['PreferredCity']; PreferredState = json['PreferredState']; PreferredZip = json['PreferredZip']; PreferredCountry = json['PreferredCountry']; AccessLevel = json['AccessLevel']; MemberStatus = json['MemberStatus']; MemberTypeClient = json['MemberTypeClient']; BillingType = json['BillingType']; FiscalYear = json['FiscalYear']; WorkLocation = json['WorkLocation']; DOB = JsonConverters.fromJson(json['DOB'],'DateTime',context!); Paperless = json['Paperless']; DisplayName = json['DisplayName']; DisableLogin = json['DisableLogin']; RecurringInvoiceSettings = JsonConverters.fromJson(json['RecurringInvoiceSettings'],'RecurringInvoiceSettings',context!); FormFields = JsonConverters.fromJson(json['FormFields'],'List',context!); Attributes = JsonConverters.fromJson(json['Attributes'],'List',context!); GroupList = JsonConverters.fromJson(json['GroupList'],'List',context!); return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'AlternateUserId': AlternateUserId, 'BhUserId': BhUserId, 'FirstName': FirstName, 'LastName': LastName, 'MiddleName': MiddleName, 'PreferredEmailAddress': PreferredEmailAddress, 'OtherEmailAddress': OtherEmailAddress, 'PreferredPhoneNumber': PreferredPhoneNumber, 'PreferredAddress1': PreferredAddress1, 'PreferredAddress2': PreferredAddress2, 'PreferredCity': PreferredCity, 'PreferredState': PreferredState, 'PreferredZip': PreferredZip, 'PreferredCountry': PreferredCountry, 'AccessLevel': AccessLevel, 'MemberStatus': MemberStatus, 'MemberTypeClient': MemberTypeClient, 'BillingType': BillingType, 'FiscalYear': FiscalYear, 'WorkLocation': WorkLocation, 'DOB': JsonConverters.toJson(DOB,'DateTime',context!), 'Paperless': Paperless, 'DisplayName': DisplayName, 'DisableLogin': DisableLogin, 'RecurringInvoiceSettings': JsonConverters.toJson(RecurringInvoiceSettings,'RecurringInvoiceSettings',context!), 'FormFields': JsonConverters.toJson(FormFields,'List',context!), 'Attributes': JsonConverters.toJson(Attributes,'List',context!), 'GroupList': JsonConverters.toJson(GroupList,'List',context!) }; getTypeName() => "Member"; TypeContext? context = _ctx; } // @Route("/api/CreditCard/Payment", "POST") class CreditCardPayment extends CreditCardPayment implements IReturn, IConvertible { CreditCardPayment(); CreditCardPayment.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CreditCardPaymentResponse(); getResponseTypeName() => "CreditCardPaymentResponse"; getTypeName() => "CreditCardPayment"; TypeContext? context = _ctx; } class CreditCardPayment implements IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; int? BhUserId; String? Amount; bool? AutoPay; String? CurrencyType; String? Country; String? CardReferenceOrCardNumber; bool? StoreCardInfo; String? Address1; String? Address2; String? BillingCity; String? BillingState; String? PreferredEmailAddress; String? Memo; String? OpportunityId; int? ExpMonth; int? ExpYear; String? Cvv; String? PostalCode; String? Location; String? NameOnCard; String? CardType; List? InvoiceList; CreditCardPayment({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.Amount,this.AutoPay,this.CurrencyType,this.Country,this.CardReferenceOrCardNumber,this.StoreCardInfo,this.Address1,this.Address2,this.BillingCity,this.BillingState,this.PreferredEmailAddress,this.Memo,this.OpportunityId,this.ExpMonth,this.ExpYear,this.Cvv,this.PostalCode,this.Location,this.NameOnCard,this.CardType,this.InvoiceList}); CreditCardPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; BhUserId = json['BhUserId']; Amount = json['Amount']; AutoPay = json['AutoPay']; CurrencyType = json['CurrencyType']; Country = json['Country']; CardReferenceOrCardNumber = json['CardReferenceOrCardNumber']; StoreCardInfo = json['StoreCardInfo']; Address1 = json['Address1']; Address2 = json['Address2']; BillingCity = json['BillingCity']; BillingState = json['BillingState']; PreferredEmailAddress = json['PreferredEmailAddress']; Memo = json['Memo']; OpportunityId = json['OpportunityId']; ExpMonth = json['ExpMonth']; ExpYear = json['ExpYear']; Cvv = json['Cvv']; PostalCode = json['PostalCode']; Location = json['Location']; NameOnCard = json['NameOnCard']; CardType = json['CardType']; InvoiceList = JsonConverters.fromJson(json['InvoiceList'],'List',context!); return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'BhUserId': BhUserId, 'Amount': Amount, 'AutoPay': AutoPay, 'CurrencyType': CurrencyType, 'Country': Country, 'CardReferenceOrCardNumber': CardReferenceOrCardNumber, 'StoreCardInfo': StoreCardInfo, 'Address1': Address1, 'Address2': Address2, 'BillingCity': BillingCity, 'BillingState': BillingState, 'PreferredEmailAddress': PreferredEmailAddress, 'Memo': Memo, 'OpportunityId': OpportunityId, 'ExpMonth': ExpMonth, 'ExpYear': ExpYear, 'Cvv': Cvv, 'PostalCode': PostalCode, 'Location': Location, 'NameOnCard': NameOnCard, 'CardType': CardType, 'InvoiceList': JsonConverters.toJson(InvoiceList,'List',context!) }; getTypeName() => "CreditCardPayment"; TypeContext? context = _ctx; } class CreditCardPayment implements IConvertible { ApiClientHeader? Header; AddressInformation? BillingAddress; CreditCardInformation? CardInfo; PaymentInformation? PaymentInfo; CreditCardPayment({this.Header,this.BillingAddress,this.CardInfo,this.PaymentInfo}); CreditCardPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Header = JsonConverters.fromJson(json['Header'],'ApiClientHeader',context!); BillingAddress = JsonConverters.fromJson(json['BillingAddress'],'AddressInformation',context!); CardInfo = JsonConverters.fromJson(json['CardInfo'],'CreditCardInformation',context!); PaymentInfo = JsonConverters.fromJson(json['PaymentInfo'],'PaymentInformation',context!); return this; } Map toJson() => { 'Header': JsonConverters.toJson(Header,'ApiClientHeader',context!), 'BillingAddress': JsonConverters.toJson(BillingAddress,'AddressInformation',context!), 'CardInfo': JsonConverters.toJson(CardInfo,'CreditCardInformation',context!), 'PaymentInfo': JsonConverters.toJson(PaymentInfo,'PaymentInformation',context!) }; getTypeName() => "CreditCardPayment"; TypeContext? context = _ctx; } // @DataContract(Namespace="www.billhighway.com/api") class CreditCardPayment 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="nameOnCard", Order=5) String? NameOnCard; // @DataMember(Name="cardNumber", Order=6) String? CardNumber; // @DataMember(Name="cvv", Order=7) String? CVV; // @DataMember(Name="expMonth", Order=8) int? ExpMonth; // @DataMember(Name="expYear", Order=9) int? ExpYear; // @DataMember(Name="address", Order=10) String? Address; // @DataMember(Name="city", Order=11) String? City; // @DataMember(Name="state", Order=12) String? State; // @DataMember(Name="postalCode", Order=13) String? PostalCode; // @DataMember(Name="emailAddress", Order=14) String? EmailAddress; // @DataMember(Name="memo", Order=15) String? Memo; // @DataMember(Name="occurs", Order=16) String? Occurs; // @DataMember(Name="numberOfOccurences", Order=17) String? NumberOfOccurences; CreditCardPayment({this.APIKey,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.Memo,this.Occurs,this.NumberOfOccurences}); CreditCardPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { APIKey = json['APIKey']; 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']; Memo = json['Memo']; Occurs = json['Occurs']; NumberOfOccurences = json['NumberOfOccurences']; return this; } Map toJson() => { 'APIKey': APIKey, '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, 'Memo': Memo, 'Occurs': Occurs, 'NumberOfOccurences': NumberOfOccurences }; getTypeName() => "CreditCardPayment"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } class SubscriberFormField implements IConvertible { String? Name; String? Value; SubscriberFormField({this.Name,this.Value}); SubscriberFormField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "SubscriberFormField"; TypeContext? context = _ctx; } class AttributeItem implements IConvertible { String? Name; String? Value; AttributeItem({this.Name,this.Value}); AttributeItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "AttributeItem"; TypeContext? context = _ctx; } class PmiReply implements IHaveErrorField, IConvertible { String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? BillhighwayPaymentConfirmationNumber; int? BillhighwayUserId; List? BhInvoiceBatchId; int? ChapMemPayid; int? ErrorCode; String? ErrorMessage; bool? IsError; PmiReply({this.UniqueId,this.CreatedDateTime,this.ClientId,this.BillhighwayPaymentConfirmationNumber,this.BillhighwayUserId,this.BhInvoiceBatchId,this.ChapMemPayid,this.ErrorCode,this.ErrorMessage,this.IsError}); PmiReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; BillhighwayPaymentConfirmationNumber = json['BillhighwayPaymentConfirmationNumber']; BillhighwayUserId = json['BillhighwayUserId']; BhInvoiceBatchId = JsonConverters.fromJson(json['BhInvoiceBatchId'],'List',context!); ChapMemPayid = json['ChapMemPayid']; ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; IsError = json['IsError']; return this; } Map toJson() => { 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'BillhighwayPaymentConfirmationNumber': BillhighwayPaymentConfirmationNumber, 'BillhighwayUserId': BillhighwayUserId, 'BhInvoiceBatchId': JsonConverters.toJson(BhInvoiceBatchId,'List',context!), 'ChapMemPayid': ChapMemPayid, 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'IsError': IsError }; getTypeName() => "PmiReply"; TypeContext? context = _ctx; } class Invoice implements IInvoiceValidation, IConvertible { String? UniqueId; int? ClientId; String? GroupId; String? UserId; String? OpportunityId; DateTime? InvoiceDueDate; int? Installments; int? Frequency; int? BhUserId; String? Description; bool? Deliver; String? CurrencyType; List? InvoiceItems; int? InvoiceNo; double? InvoiceAmt; String? ExternalInvBatchNo; bool? ExemptFromLateFee; Invoice({this.UniqueId,this.ClientId,this.GroupId,this.UserId,this.OpportunityId,this.InvoiceDueDate,this.Installments,this.Frequency,this.BhUserId,this.Description,this.Deliver,this.CurrencyType,this.InvoiceItems,this.InvoiceNo,this.InvoiceAmt,this.ExternalInvBatchNo,this.ExemptFromLateFee}); Invoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UniqueId = json['UniqueId']; ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; OpportunityId = json['OpportunityId']; InvoiceDueDate = JsonConverters.fromJson(json['InvoiceDueDate'],'DateTime',context!); Installments = json['Installments']; Frequency = json['Frequency']; BhUserId = json['BhUserId']; Description = json['Description']; Deliver = json['Deliver']; CurrencyType = json['CurrencyType']; InvoiceItems = JsonConverters.fromJson(json['InvoiceItems'],'List',context!); InvoiceNo = json['InvoiceNo']; InvoiceAmt = JsonConverters.toDouble(json['InvoiceAmt']); ExternalInvBatchNo = json['ExternalInvBatchNo']; ExemptFromLateFee = json['ExemptFromLateFee']; return this; } Map toJson() => { 'UniqueId': UniqueId, 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'OpportunityId': OpportunityId, 'InvoiceDueDate': JsonConverters.toJson(InvoiceDueDate,'DateTime',context!), 'Installments': Installments, 'Frequency': Frequency, 'BhUserId': BhUserId, 'Description': Description, 'Deliver': Deliver, 'CurrencyType': CurrencyType, 'InvoiceItems': JsonConverters.toJson(InvoiceItems,'List',context!), 'InvoiceNo': InvoiceNo, 'InvoiceAmt': InvoiceAmt, 'ExternalInvBatchNo': ExternalInvBatchNo, 'ExemptFromLateFee': ExemptFromLateFee }; getTypeName() => "Invoice"; TypeContext? context = _ctx; } // @Route("/payments/credit", "POST") class CreateApplyCredit implements IReturn, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? UserId; int? BhUserId; int? CreditId; String? CurrencyType; String? CreditType; String? Notes; List? InvoiceDetails; CreateApplyCredit({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.CreditId,this.CurrencyType,this.CreditType,this.Notes,this.InvoiceDetails}); CreateApplyCredit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; BhUserId = json['BhUserId']; CreditId = json['CreditId']; CurrencyType = json['CurrencyType']; CreditType = json['CreditType']; Notes = json['Notes']; InvoiceDetails = JsonConverters.fromJson(json['InvoiceDetails'],'List',context!); return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'BhUserId': BhUserId, 'CreditId': CreditId, 'CurrencyType': CurrencyType, 'CreditType': CreditType, 'Notes': Notes, 'InvoiceDetails': JsonConverters.toJson(InvoiceDetails,'List',context!) }; createResponse() => CreateApplyCreditReply(); getResponseTypeName() => "CreateApplyCreditReply"; getTypeName() => "CreateApplyCredit"; TypeContext? context = _ctx; } // @Route("/PMI", "POST") class Pmi implements IReturn, IConvertible { String? UniqueId; DateTime? CreatedDateTime; int? ClientId; int? GroupId; Member? MemberInfo; List? InvoiceCollection; CreditCardPayment? CcPaymentInfo; CreateApplyCredit? CreditInfo; AchPayment? AchPaymentInfo; int? LockboxId; int? MemberSubscriptionInvoiceId; Pmi({this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.MemberInfo,this.InvoiceCollection,this.CcPaymentInfo,this.CreditInfo,this.AchPaymentInfo,this.LockboxId,this.MemberSubscriptionInvoiceId}); Pmi.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; MemberInfo = JsonConverters.fromJson(json['MemberInfo'],'Member',context!); InvoiceCollection = JsonConverters.fromJson(json['InvoiceCollection'],'List',context!); CcPaymentInfo = JsonConverters.fromJson(json['CcPaymentInfo'],'CreditCardPayment',context!); CreditInfo = JsonConverters.fromJson(json['CreditInfo'],'CreateApplyCredit',context!); AchPaymentInfo = JsonConverters.fromJson(json['AchPaymentInfo'],'AchPayment',context!); LockboxId = json['LockboxId']; MemberSubscriptionInvoiceId = json['MemberSubscriptionInvoiceId']; return this; } Map toJson() => { 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'MemberInfo': JsonConverters.toJson(MemberInfo,'Member',context!), 'InvoiceCollection': JsonConverters.toJson(InvoiceCollection,'List',context!), 'CcPaymentInfo': JsonConverters.toJson(CcPaymentInfo,'CreditCardPayment',context!), 'CreditInfo': JsonConverters.toJson(CreditInfo,'CreateApplyCredit',context!), 'AchPaymentInfo': JsonConverters.toJson(AchPaymentInfo,'AchPayment',context!), 'LockboxId': LockboxId, 'MemberSubscriptionInvoiceId': MemberSubscriptionInvoiceId }; createResponse() => PmiReply(); getResponseTypeName() => "PmiReply"; getTypeName() => "Pmi"; TypeContext? context = _ctx; } // @Route("/api/CreditCard/Payment", "POST") class CreditCardPayment extends CreditCardPayment implements IReturn, IConvertible { SubscriptionParameters? SubscriptionInfo; CreditCardPayment({this.SubscriptionInfo}); CreditCardPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SubscriptionInfo = JsonConverters.fromJson(json['SubscriptionInfo'],'SubscriptionParameters',context!); return this; } Map toJson() => super.toJson()..addAll({ 'SubscriptionInfo': JsonConverters.toJson(SubscriptionInfo,'SubscriptionParameters',context!) }); createResponse() => CreditCardPaymentResult(); getResponseTypeName() => "CreditCardPaymentResult"; getTypeName() => "CreditCardPayment"; TypeContext? context = _ctx; } class Invoice implements IInvoiceValidation, IConvertible { String? UniqueId; int? ClientId; String? GroupId; String? Description; String? OpportunityId; int? Installments; int? Frequency; DateTime? InvoiceDueDate; bool? Deliver; String? UserId; int? BhUserId; String? CurrencyType; List? InvoiceItems; int? InvoiceNo; double? InvoiceAmt; String? ExternalInvBatchNo; bool? ExemptFromLateFee; Invoice({this.UniqueId,this.ClientId,this.GroupId,this.Description,this.OpportunityId,this.Installments,this.Frequency,this.InvoiceDueDate,this.Deliver,this.UserId,this.BhUserId,this.CurrencyType,this.InvoiceItems,this.InvoiceNo,this.InvoiceAmt,this.ExternalInvBatchNo,this.ExemptFromLateFee}); Invoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UniqueId = json['UniqueId']; ClientId = json['ClientId']; GroupId = json['GroupId']; Description = json['Description']; OpportunityId = json['OpportunityId']; Installments = json['Installments']; Frequency = json['Frequency']; InvoiceDueDate = JsonConverters.fromJson(json['InvoiceDueDate'],'DateTime',context!); Deliver = json['Deliver']; UserId = json['UserId']; BhUserId = json['BhUserId']; CurrencyType = json['CurrencyType']; InvoiceItems = JsonConverters.fromJson(json['InvoiceItems'],'List',context!); InvoiceNo = json['InvoiceNo']; InvoiceAmt = JsonConverters.toDouble(json['InvoiceAmt']); ExternalInvBatchNo = json['ExternalInvBatchNo']; ExemptFromLateFee = json['ExemptFromLateFee']; return this; } Map toJson() => { 'UniqueId': UniqueId, 'ClientId': ClientId, 'GroupId': GroupId, 'Description': Description, 'OpportunityId': OpportunityId, 'Installments': Installments, 'Frequency': Frequency, 'InvoiceDueDate': JsonConverters.toJson(InvoiceDueDate,'DateTime',context!), 'Deliver': Deliver, 'UserId': UserId, 'BhUserId': BhUserId, 'CurrencyType': CurrencyType, 'InvoiceItems': JsonConverters.toJson(InvoiceItems,'List',context!), 'InvoiceNo': InvoiceNo, 'InvoiceAmt': InvoiceAmt, 'ExternalInvBatchNo': ExternalInvBatchNo, 'ExemptFromLateFee': ExemptFromLateFee }; getTypeName() => "Invoice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'SalesForceMemberPaymentInvoiceDetail': TypeInfo(TypeOf.Class, create:() => SalesForceMemberPaymentInvoiceDetail()), 'AchPayment': TypeInfo(TypeOf.Class, create:() => AchPayment()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecurringInvoiceSettings': TypeInfo(TypeOf.Class, create:() => RecurringInvoiceSettings()), 'SubscriberFormField': TypeInfo(TypeOf.Class, create:() => SubscriberFormField()), 'AttributeItem': TypeInfo(TypeOf.Class, create:() => AttributeItem()), 'Chapter': TypeInfo(TypeOf.Class, create:() => Chapter()), 'Member': TypeInfo(TypeOf.Class, create:() => Member()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CreditCardPayment': TypeInfo(TypeOf.Class, create:() => CreditCardPayment()), 'ApiClientHeader': TypeInfo(TypeOf.Class, create:() => ApiClientHeader()), 'AddressInformation': TypeInfo(TypeOf.Class, create:() => AddressInformation()), 'CreditCardInformation': TypeInfo(TypeOf.Class, create:() => CreditCardInformation()), 'PaymentInformation': TypeInfo(TypeOf.Class, create:() => PaymentInformation()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), 'PmiReply': TypeInfo(TypeOf.Class, create:() => PmiReply()), 'Invoice': TypeInfo(TypeOf.Class, create:() => Invoice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InvoiceItem': TypeInfo(TypeOf.Class, create:() => InvoiceItem()), 'CreateApplyCredit': TypeInfo(TypeOf.Class, create:() => CreateApplyCredit()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SalesForceCreditInvoiceDetails': TypeInfo(TypeOf.Class, create:() => SalesForceCreditInvoiceDetails()), 'Pmi': TypeInfo(TypeOf.Class, create:() => Pmi()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SubscriptionParameters': TypeInfo(TypeOf.Class, create:() => SubscriptionParameters()), });