/* Options: Date: 2026-11-08 11:30:34 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: CreditCardVerify.* //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/v2/PaymentMethods/CC/Verification", Verbs="POST") public static class CreditCardVerify extends CreditCardVerify implements IReturn { private static Object responseType = CreditCardVerifyResult.class; public Object getResponseType() { return responseType; } } public static class CreditCardVerifyResult extends CreditCardCloudServiceResponse { public String CardRef = null; public String getCardRef() { return CardRef; } public CreditCardVerifyResult setCardRef(String value) { this.CardRef = value; return this; } } 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 class CreditCardVerify { public Integer UserId = null; public Integer GroupId = 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; @ApiMember(Format="decimal", ParameterType="model") public BigDecimal Amount = null; public String ChapAndUser = null; public String Description = null; public Integer PayLinkID = null; public Boolean EnsureValidZipAndCvc = null; public BigDecimal ReCaptchaScore = null; public Integer getUserId() { return UserId; } public CreditCardVerify setUserId(Integer value) { this.UserId = value; return this; } public Integer getGroupId() { return GroupId; } public CreditCardVerify setGroupId(Integer value) { this.GroupId = value; return this; } public String getLocation() { return Location; } public CreditCardVerify setLocation(String value) { this.Location = value; return this; } public String getCurrencyCode() { return CurrencyCode; } public CreditCardVerify setCurrencyCode(String value) { this.CurrencyCode = value; return this; } public String getNameOnCard() { return NameOnCard; } public CreditCardVerify setNameOnCard(String value) { this.NameOnCard = value; return this; } public String getAddress1() { return Address1; } public CreditCardVerify setAddress1(String value) { this.Address1 = value; return this; } public String getAddress2() { return Address2; } public CreditCardVerify setAddress2(String value) { this.Address2 = value; return this; } public String getCity() { return City; } public CreditCardVerify setCity(String value) { this.City = value; return this; } public String getState() { return State; } public CreditCardVerify setState(String value) { this.State = value; return this; } public String getPostalCode() { return PostalCode; } public CreditCardVerify setPostalCode(String value) { this.PostalCode = value; return this; } public String getCountry() { return Country; } public CreditCardVerify setCountry(String value) { this.Country = value; return this; } public CreditCardType getCardType() { return CardType; } public CreditCardVerify setCardType(CreditCardType value) { this.CardType = value; return this; } public String getCardNumber() { return CardNumber; } public CreditCardVerify setCardNumber(String value) { this.CardNumber = value; return this; } public Integer getExpMonth() { return ExpMonth; } public CreditCardVerify setExpMonth(Integer value) { this.ExpMonth = value; return this; } public Integer getExpYear() { return ExpYear; } public CreditCardVerify setExpYear(Integer value) { this.ExpYear = value; return this; } public String getCvv() { return CVV; } public CreditCardVerify setCvv(String value) { this.CVV = value; return this; } public BigDecimal getAmount() { return Amount; } public CreditCardVerify setAmount(BigDecimal value) { this.Amount = value; return this; } public String getChapAndUser() { return ChapAndUser; } public CreditCardVerify setChapAndUser(String value) { this.ChapAndUser = value; return this; } public String getDescription() { return Description; } public CreditCardVerify setDescription(String value) { this.Description = value; return this; } public Integer getPayLinkID() { return PayLinkID; } public CreditCardVerify setPayLinkID(Integer value) { this.PayLinkID = value; return this; } public Boolean isEnsureValidZipAndCvc() { return EnsureValidZipAndCvc; } public CreditCardVerify setEnsureValidZipAndCvc(Boolean value) { this.EnsureValidZipAndCvc = value; return this; } public BigDecimal getReCaptchaScore() { return ReCaptchaScore; } public CreditCardVerify 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; } }