/* Options: Date: 2026-11-08 11:32:03 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ChargeTokenV2Rq.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/integrations/api/v2/{tokenType}/charge/token", Verbs="POST") public static class ChargeTokenV2Rq extends ChargeTokenRqBase implements IReturn { private static Object responseType = ChargeTokenV2Rs.class; public Object getResponseType() { return responseType; } } public static class ChargeTokenV2Rs { public String Token = null; public Integer Amount = null; public String TokenType = null; public String Description = null; public Date ExpiresOn = null; public String Currency = null; public Integer Usages = null; public CreditCardChargeDetailsV2 CardDetails = null; public AchChargeDetailsV2 AchDetails = null; public String getToken() { return Token; } public ChargeTokenV2Rs setToken(String value) { this.Token = value; return this; } public Integer getAmount() { return Amount; } public ChargeTokenV2Rs setAmount(Integer value) { this.Amount = value; return this; } public String getTokenType() { return TokenType; } public ChargeTokenV2Rs setTokenType(String value) { this.TokenType = value; return this; } public String getDescription() { return Description; } public ChargeTokenV2Rs setDescription(String value) { this.Description = value; return this; } public Date getExpiresOn() { return ExpiresOn; } public ChargeTokenV2Rs setExpiresOn(Date value) { this.ExpiresOn = value; return this; } public String getCurrency() { return Currency; } public ChargeTokenV2Rs setCurrency(String value) { this.Currency = value; return this; } public Integer getUsages() { return Usages; } public ChargeTokenV2Rs setUsages(Integer value) { this.Usages = value; return this; } public CreditCardChargeDetailsV2 getCardDetails() { return CardDetails; } public ChargeTokenV2Rs setCardDetails(CreditCardChargeDetailsV2 value) { this.CardDetails = value; return this; } public AchChargeDetailsV2 getAchDetails() { return AchDetails; } public ChargeTokenV2Rs setAchDetails(AchChargeDetailsV2 value) { this.AchDetails = value; return this; } } public static class ReferenceIdTypedAssociationItem { public String Value = null; public String Type = null; public String getValue() { return Value; } public ReferenceIdTypedAssociationItem setValue(String value) { this.Value = value; return this; } public String getType() { return Type; } public ReferenceIdTypedAssociationItem setType(String value) { this.Type = value; return this; } } public static class ChargeTokenOptions { public Integer Usages = null; public Integer Duration = null; public Integer getUsages() { return Usages; } public ChargeTokenOptions setUsages(Integer value) { this.Usages = value; return this; } public Integer getDuration() { return Duration; } public ChargeTokenOptions setDuration(Integer value) { this.Duration = value; return this; } } public static class CreditCardChargeItem { public String NameOnCard = null; public Integer ExpMonth = null; public Integer ExpYear = null; public String CardNumber = null; public String Cvv = null; public CreditCardBillingAddressItem Address = null; public String getNameOnCard() { return NameOnCard; } public CreditCardChargeItem setNameOnCard(String value) { this.NameOnCard = value; return this; } public Integer getExpMonth() { return ExpMonth; } public CreditCardChargeItem setExpMonth(Integer value) { this.ExpMonth = value; return this; } public Integer getExpYear() { return ExpYear; } public CreditCardChargeItem setExpYear(Integer value) { this.ExpYear = value; return this; } public String getCardNumber() { return CardNumber; } public CreditCardChargeItem setCardNumber(String value) { this.CardNumber = value; return this; } public String getCvv() { return Cvv; } public CreditCardChargeItem setCvv(String value) { this.Cvv = value; return this; } public CreditCardBillingAddressItem getAddress() { return Address; } public CreditCardChargeItem setAddress(CreditCardBillingAddressItem value) { this.Address = value; return this; } } public static class AchChargeItem { public String AccountNumber = null; public String RoutingNumber = null; public String AccountType = null; public String AccountHolderName = null; public String getAccountNumber() { return AccountNumber; } public AchChargeItem setAccountNumber(String value) { this.AccountNumber = value; return this; } public String getRoutingNumber() { return RoutingNumber; } public AchChargeItem setRoutingNumber(String value) { this.RoutingNumber = value; return this; } public String getAccountType() { return AccountType; } public AchChargeItem setAccountType(String value) { this.AccountType = value; return this; } public String getAccountHolderName() { return AccountHolderName; } public AchChargeItem setAccountHolderName(String value) { this.AccountHolderName = value; return this; } } public static class ChargeTokenRqBase implements IChapterAuthorizationRequest, IApiResultErrorService { public String tokenType = null; public Integer Amount = null; public String Description = null; public ChargeTokenOptions Options = null; public CreditCardChargeItem CardInfo = null; public AchChargeItem AchInfo = null; public ArrayList ReferenceIds = null; public String getTokenType() { return tokenType; } public ChargeTokenRqBase setTokenType(String value) { this.tokenType = value; return this; } public Integer getAmount() { return Amount; } public ChargeTokenRqBase setAmount(Integer value) { this.Amount = value; return this; } public String getDescription() { return Description; } public ChargeTokenRqBase setDescription(String value) { this.Description = value; return this; } public ChargeTokenOptions getOptions() { return Options; } public ChargeTokenRqBase setOptions(ChargeTokenOptions value) { this.Options = value; return this; } public CreditCardChargeItem getCardInfo() { return CardInfo; } public ChargeTokenRqBase setCardInfo(CreditCardChargeItem value) { this.CardInfo = value; return this; } public AchChargeItem getAchInfo() { return AchInfo; } public ChargeTokenRqBase setAchInfo(AchChargeItem value) { this.AchInfo = value; return this; } public ArrayList getReferenceIds() { return ReferenceIds; } public ChargeTokenRqBase setReferenceIds(ArrayList value) { this.ReferenceIds = value; return this; } } public static interface IChapterAuthorizationRequest { } public static interface IApiResultErrorService { } public static class CreditCardChargeDetailsV2 { public String CardType = null; public Integer ExpMonth = null; public Integer ExpYear = null; public String Last4 = null; public CreditCardBillingAddressItem Address = null; public String getCardType() { return CardType; } public CreditCardChargeDetailsV2 setCardType(String value) { this.CardType = value; return this; } public Integer getExpMonth() { return ExpMonth; } public CreditCardChargeDetailsV2 setExpMonth(Integer value) { this.ExpMonth = value; return this; } public Integer getExpYear() { return ExpYear; } public CreditCardChargeDetailsV2 setExpYear(Integer value) { this.ExpYear = value; return this; } public String getLast4() { return Last4; } public CreditCardChargeDetailsV2 setLast4(String value) { this.Last4 = value; return this; } public CreditCardBillingAddressItem getAddress() { return Address; } public CreditCardChargeDetailsV2 setAddress(CreditCardBillingAddressItem value) { this.Address = value; return this; } } public static class AchChargeDetailsV2 { public String AccountType = null; public String RoutingNumber = null; public String AccountNumberLast4 = null; public String BankName = null; public String getAccountType() { return AccountType; } public AchChargeDetailsV2 setAccountType(String value) { this.AccountType = value; return this; } public String getRoutingNumber() { return RoutingNumber; } public AchChargeDetailsV2 setRoutingNumber(String value) { this.RoutingNumber = value; return this; } public String getAccountNumberLast4() { return AccountNumberLast4; } public AchChargeDetailsV2 setAccountNumberLast4(String value) { this.AccountNumberLast4 = value; return this; } public String getBankName() { return BankName; } public AchChargeDetailsV2 setBankName(String value) { this.BankName = value; return this; } } public static class AttributeItem { public String Name = null; public String Value = null; public String getName() { return Name; } public AttributeItem setName(String value) { this.Name = value; return this; } public String getValue() { return Value; } public AttributeItem setValue(String value) { this.Value = value; return this; } } public static class CreditCardBillingAddressItem { public String Address1 = null; public String Address2 = null; public String City = null; public String PostalCode = null; public String Region = null; public String Country = null; public ArrayList Attributes = null; public String getAddress1() { return Address1; } public CreditCardBillingAddressItem setAddress1(String value) { this.Address1 = value; return this; } public String getAddress2() { return Address2; } public CreditCardBillingAddressItem setAddress2(String value) { this.Address2 = value; return this; } public String getCity() { return City; } public CreditCardBillingAddressItem setCity(String value) { this.City = value; return this; } public String getPostalCode() { return PostalCode; } public CreditCardBillingAddressItem setPostalCode(String value) { this.PostalCode = value; return this; } public String getRegion() { return Region; } public CreditCardBillingAddressItem setRegion(String value) { this.Region = value; return this; } public String getCountry() { return Country; } public CreditCardBillingAddressItem setCountry(String value) { this.Country = value; return this; } public ArrayList getAttributes() { return Attributes; } public CreditCardBillingAddressItem setAttributes(ArrayList value) { this.Attributes = value; return this; } } public static class AttributeItem { public String Name = null; public String Value = null; public String getName() { return Name; } public AttributeItem setName(String value) { this.Name = value; return this; } public String getValue() { return Value; } public AttributeItem setValue(String value) { this.Value = value; return this; } } }