/* Options: Date: 2026-11-08 11:43:42 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCardRef.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/api/creditcard/createcardref", Verbs="POST") open class CreateCardRef : CreateCardRef(), IReturn { companion object { private val responseType = CreateCardRefResponse::class.java } override fun getResponseType(): Any? = CreateCardRef.responseType } open class CreateCardRefResponse : CreditCardCloudServiceResponse() { var CardRef:String? = null var CardType:CreditCardType? = null } enum class CreditCardType(val value:Int) { @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), } open class CreateCardRef { var UserId:Int? = null var GroupId:Int? = null var Location:String? = null var CurrencyCode:String? = null var CardType:CreditCardType? = null var NameOnCard:String? = null var CardNumber:String? = null var ExpirationMonth:Int? = null var ExpirationYear:Int? = null var ValidationNum:String? = null } open interface IHaveErrorField { var IsError:Boolean? } open class CreditCardCloudServiceResponse : IHaveErrorField { var IsDuplicate:Boolean? = null var IsSuccessful:Boolean? = null var ErrorCode:String? = null var Message:String? = null var GatewayId:Int? = null var ConfirmationNumber:String? = null var NetworkTransactionId:String? = null var IsError:Boolean? = null } open interface IHaveErrorField { var IsError:Boolean? }