/* Options: Date: 2026-11-08 11:29:39 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: CreateCardRef.* //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/createcardref", Verbs="POST") public static class CreateCardRef extends CreateCardRef implements IReturn { private static Object responseType = CreateCardRefResponse.class; public Object getResponseType() { return responseType; } } public static class CreateCardRefResponse extends CreditCardCloudServiceResponse { public String CardRef = null; public CreditCardType CardType = null; public String getCardRef() { return CardRef; } public CreateCardRefResponse setCardRef(String value) { this.CardRef = value; return this; } public CreditCardType getCardType() { return CardType; } public CreateCardRefResponse setCardType(CreditCardType value) { this.CardType = 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 CreateCardRef { public Integer UserId = null; public Integer GroupId = null; public String Location = null; public String CurrencyCode = null; public CreditCardType CardType = null; public String NameOnCard = null; public String CardNumber = null; public Integer ExpirationMonth = null; public Integer ExpirationYear = null; public String ValidationNum = null; public Integer getUserId() { return UserId; } public CreateCardRef setUserId(Integer value) { this.UserId = value; return this; } public Integer getGroupId() { return GroupId; } public CreateCardRef setGroupId(Integer value) { this.GroupId = value; return this; } public String getLocation() { return Location; } public CreateCardRef setLocation(String value) { this.Location = value; return this; } public String getCurrencyCode() { return CurrencyCode; } public CreateCardRef setCurrencyCode(String value) { this.CurrencyCode = value; return this; } public CreditCardType getCardType() { return CardType; } public CreateCardRef setCardType(CreditCardType value) { this.CardType = value; return this; } public String getNameOnCard() { return NameOnCard; } public CreateCardRef setNameOnCard(String value) { this.NameOnCard = value; return this; } public String getCardNumber() { return CardNumber; } public CreateCardRef setCardNumber(String value) { this.CardNumber = value; return this; } public Integer getExpirationMonth() { return ExpirationMonth; } public CreateCardRef setExpirationMonth(Integer value) { this.ExpirationMonth = value; return this; } public Integer getExpirationYear() { return ExpirationYear; } public CreateCardRef setExpirationYear(Integer value) { this.ExpirationYear = value; return this; } public String getValidationNum() { return ValidationNum; } public CreateCardRef setValidationNum(String value) { this.ValidationNum = 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; } }