/* Options: Date: 2026-11-08 11:31:42 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: CreditCardDonation.* //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="/v1.2/payments/creditcard", Verbs="POST") public static class CreditCardDonation extends CreditCardDonation implements IReturn, ICanBeRecurring, IReturnLegacyException { private static Object responseType = LegacyApiResponse.class; public Object getResponseType() { return responseType; } } @DataContract(Namespace="www.billhighway.com/api") public static class LegacyApiResponse implements IHaveErrorField { @DataMember public BigDecimal amount = null; @DataMember public String confirmationNumber = null; @DataMember public String responseCode = null; @DataMember public String responseDescription = null; @DataMember public ResultCode resultCode = null; public BigDecimal getAmount() { return amount; } public LegacyApiResponse setAmount(BigDecimal value) { this.amount = value; return this; } public String getConfirmationNumber() { return confirmationNumber; } public LegacyApiResponse setConfirmationNumber(String value) { this.confirmationNumber = value; return this; } public String getResponseCode() { return responseCode; } public LegacyApiResponse setResponseCode(String value) { this.responseCode = value; return this; } public String getResponseDescription() { return responseDescription; } public LegacyApiResponse setResponseDescription(String value) { this.responseDescription = value; return this; } public ResultCode getResultCode() { return resultCode; } public LegacyApiResponse setResultCode(ResultCode value) { this.resultCode = value; return this; } } public static interface ICanBeRecurring { public String Occurs = null; public String NumberOfOccurences = null; } public static interface IReturnLegacyException { } public static class CreditCardDonation { public Integer ClientId = null; public Integer GroupId = null; public BigDecimal Amount = null; public String NameOnCard = null; public String CardNumber = null; public String Cvv = null; public String ExpMonth = null; public String ExpYear = null; public String Address = null; public String City = null; public String State = null; public String PostalCode = null; public String EmailAddress = null; public String Phone = null; public String Memo = null; public String Occurs = null; public String NumberOfOccurences = null; public Integer getClientId() { return ClientId; } public CreditCardDonation setClientId(Integer value) { this.ClientId = value; return this; } public Integer getGroupId() { return GroupId; } public CreditCardDonation setGroupId(Integer value) { this.GroupId = value; return this; } public BigDecimal getAmount() { return Amount; } public CreditCardDonation setAmount(BigDecimal value) { this.Amount = value; return this; } public String getNameOnCard() { return NameOnCard; } public CreditCardDonation setNameOnCard(String value) { this.NameOnCard = value; return this; } public String getCardNumber() { return CardNumber; } public CreditCardDonation setCardNumber(String value) { this.CardNumber = value; return this; } public String getCvv() { return Cvv; } public CreditCardDonation setCvv(String value) { this.Cvv = value; return this; } public String getExpMonth() { return ExpMonth; } public CreditCardDonation setExpMonth(String value) { this.ExpMonth = value; return this; } public String getExpYear() { return ExpYear; } public CreditCardDonation setExpYear(String value) { this.ExpYear = value; return this; } public String getAddress() { return Address; } public CreditCardDonation setAddress(String value) { this.Address = value; return this; } public String getCity() { return City; } public CreditCardDonation setCity(String value) { this.City = value; return this; } public String getState() { return State; } public CreditCardDonation setState(String value) { this.State = value; return this; } public String getPostalCode() { return PostalCode; } public CreditCardDonation setPostalCode(String value) { this.PostalCode = value; return this; } public String getEmailAddress() { return EmailAddress; } public CreditCardDonation setEmailAddress(String value) { this.EmailAddress = value; return this; } public String getPhone() { return Phone; } public CreditCardDonation setPhone(String value) { this.Phone = value; return this; } public String getMemo() { return Memo; } public CreditCardDonation setMemo(String value) { this.Memo = value; return this; } public String getOccurs() { return Occurs; } public CreditCardDonation setOccurs(String value) { this.Occurs = value; return this; } public String getNumberOfOccurences() { return NumberOfOccurences; } public CreditCardDonation setNumberOfOccurences(String value) { this.NumberOfOccurences = value; return this; } } public static interface IHaveErrorField { public Boolean IsError = null; } public static interface IHaveErrorField { public Boolean IsError = null; } public static enum ResultCode { @SerializedName("0") Success(0), @SerializedName("-7") Duplicate(-7), @SerializedName("-6") NotAvailable(-6), @SerializedName("-5") NotFound(-5), @SerializedName("-4") GeneralError(-4), @SerializedName("-3") UnexpectedError(-3), @SerializedName("-2") CreditCardDeclined(-2), @SerializedName("-1") DataValidationFailure(-1); private final int value; ResultCode(final int intValue) { value = intValue; } public int getValue() { return value; } } }