/* Options: Date: 2026-11-08 11:31:33 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: CreditCardSale.* //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="/api/CreditCard/Sale", Verbs="POST") public static class CreditCardSale extends CreditCardSale implements IReturn { private static Object responseType = CreditCardSaleResult.class; public Object getResponseType() { return responseType; } } public static class CreditCardSaleResult extends CreditCardCloudServiceResponse { } public static enum CreditCardType { @SerializedName("0") AmericanExpress(0), @SerializedName("1") Discover(1), @SerializedName("2") MasterCard(2), @SerializedName("3") Visa(3), @SerializedName("4") DinersClub(4), @SerializedName("5") DinersCartBlanche(5), @SerializedName("6") Unknown(6); private final int value; CreditCardType(final int intValue) { value = intValue; } public int getValue() { return value; } } public static enum CreditCardProcessingTypes { @SerializedName("0") Default(0), @SerializedName("1") CardOnFile(1), @SerializedName("2") Initial(2), @SerializedName("3") Recurring(3); private final int value; CreditCardProcessingTypes(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class CreditCardSale { public Integer ClientId = null; public String GroupId = null; public String UserId = null; public Integer BhUserId = null; public String UniqueId = null; public String Location = null; public String CurrencyCode = null; public String NameOnCard = null; public String Address1 = null; public String Address2 = null; public String City = null; public String State = null; public String PostalCode = null; public String Country = null; public CreditCardType CardType = null; public String CardNumber = null; public Integer ExpMonth = null; public Integer ExpYear = null; public String CVV = null; public BigDecimal Amount = null; public String ChapAndUser = null; public String Description = null; public Integer PayLinkID = null; public Boolean AutoPay = null; public Boolean StoreCardInfo = null; public Integer PaymentSourceTypeID = null; public Integer PaymentSourceID = null; public CreditCardProcessingTypes ProcessingType = null; public String NetworkTransactionID = null; public BigDecimal ReCaptchaScore = null; public Integer getClientId() { return ClientId; } public CreditCardSale setClientId(Integer value) { this.ClientId = value; return this; } public String getGroupId() { return GroupId; } public CreditCardSale setGroupId(String value) { this.GroupId = value; return this; } public String getUserId() { return UserId; } public CreditCardSale setUserId(String value) { this.UserId = value; return this; } public Integer getBhUserId() { return BhUserId; } public CreditCardSale setBhUserId(Integer value) { this.BhUserId = value; return this; } public String getUniqueId() { return UniqueId; } public CreditCardSale setUniqueId(String value) { this.UniqueId = value; return this; } public String getLocation() { return Location; } public CreditCardSale setLocation(String value) { this.Location = value; return this; } public String getCurrencyCode() { return CurrencyCode; } public CreditCardSale setCurrencyCode(String value) { this.CurrencyCode = value; return this; } public String getNameOnCard() { return NameOnCard; } public CreditCardSale setNameOnCard(String value) { this.NameOnCard = value; return this; } public String getAddress1() { return Address1; } public CreditCardSale setAddress1(String value) { this.Address1 = value; return this; } public String getAddress2() { return Address2; } public CreditCardSale setAddress2(String value) { this.Address2 = value; return this; } public String getCity() { return City; } public CreditCardSale setCity(String value) { this.City = value; return this; } public String getState() { return State; } public CreditCardSale setState(String value) { this.State = value; return this; } public String getPostalCode() { return PostalCode; } public CreditCardSale setPostalCode(String value) { this.PostalCode = value; return this; } public String getCountry() { return Country; } public CreditCardSale setCountry(String value) { this.Country = value; return this; } public CreditCardType getCardType() { return CardType; } public CreditCardSale setCardType(CreditCardType value) { this.CardType = value; return this; } public String getCardNumber() { return CardNumber; } public CreditCardSale setCardNumber(String value) { this.CardNumber = value; return this; } public Integer getExpMonth() { return ExpMonth; } public CreditCardSale setExpMonth(Integer value) { this.ExpMonth = value; return this; } public Integer getExpYear() { return ExpYear; } public CreditCardSale setExpYear(Integer value) { this.ExpYear = value; return this; } public String getCvv() { return CVV; } public CreditCardSale setCvv(String value) { this.CVV = value; return this; } public BigDecimal getAmount() { return Amount; } public CreditCardSale setAmount(BigDecimal value) { this.Amount = value; return this; } public String getChapAndUser() { return ChapAndUser; } public CreditCardSale setChapAndUser(String value) { this.ChapAndUser = value; return this; } public String getDescription() { return Description; } public CreditCardSale setDescription(String value) { this.Description = value; return this; } public Integer getPayLinkID() { return PayLinkID; } public CreditCardSale setPayLinkID(Integer value) { this.PayLinkID = value; return this; } public Boolean isAutoPay() { return AutoPay; } public CreditCardSale setAutoPay(Boolean value) { this.AutoPay = value; return this; } public Boolean isStoreCardInfo() { return StoreCardInfo; } public CreditCardSale setStoreCardInfo(Boolean value) { this.StoreCardInfo = value; return this; } public Integer getPaymentSourceTypeID() { return PaymentSourceTypeID; } public CreditCardSale setPaymentSourceTypeID(Integer value) { this.PaymentSourceTypeID = value; return this; } public Integer getPaymentSourceID() { return PaymentSourceID; } public CreditCardSale setPaymentSourceID(Integer value) { this.PaymentSourceID = value; return this; } public CreditCardProcessingTypes getProcessingType() { return ProcessingType; } public CreditCardSale setProcessingType(CreditCardProcessingTypes value) { this.ProcessingType = value; return this; } public String getNetworkTransactionID() { return NetworkTransactionID; } public CreditCardSale setNetworkTransactionID(String value) { this.NetworkTransactionID = value; return this; } public BigDecimal getReCaptchaScore() { return ReCaptchaScore; } public CreditCardSale setReCaptchaScore(BigDecimal value) { this.ReCaptchaScore = value; return this; } } public static interface IHaveErrorField { public Boolean IsError = null; } public static class CreditCardCloudServiceResponse implements IHaveErrorField { public Boolean IsDuplicate = null; public Boolean IsSuccessful = null; public String ErrorCode = null; public String Message = null; public Integer GatewayId = null; public String ConfirmationNumber = null; public String NetworkTransactionId = null; public Boolean IsError = null; public Boolean getIsDuplicate() { return IsDuplicate; } public CreditCardCloudServiceResponse setIsDuplicate(Boolean value) { this.IsDuplicate = value; return this; } public Boolean getIsSuccessful() { return IsSuccessful; } public CreditCardCloudServiceResponse setIsSuccessful(Boolean value) { this.IsSuccessful = value; return this; } public String getErrorCode() { return ErrorCode; } public CreditCardCloudServiceResponse setErrorCode(String value) { this.ErrorCode = value; return this; } public String getMessage() { return Message; } public CreditCardCloudServiceResponse setMessage(String value) { this.Message = value; return this; } public Integer getGatewayId() { return GatewayId; } public CreditCardCloudServiceResponse setGatewayId(Integer value) { this.GatewayId = value; return this; } public String getConfirmationNumber() { return ConfirmationNumber; } public CreditCardCloudServiceResponse setConfirmationNumber(String value) { this.ConfirmationNumber = value; return this; } public String getNetworkTransactionId() { return NetworkTransactionId; } public CreditCardCloudServiceResponse setNetworkTransactionId(String value) { this.NetworkTransactionId = value; return this; } public Boolean getIsError() { return IsError; } public CreditCardCloudServiceResponse setIsError(Boolean value) { this.IsError = value; return this; } } public static interface IHaveErrorField { public Boolean IsError = null; } }