/* Options: Date: 2026-11-08 12:03:33 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: CreditCardDonation.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/v1.2/payments/creditcard", Verbs="POST") open class CreditCardDonation : CreditCardDonation(), IReturn, ICanBeRecurring, IReturnLegacyException { companion object { private val responseType = LegacyApiResponse::class.java } override fun getResponseType(): Any? = CreditCardDonation.responseType } @DataContract(Namespace="www.billhighway.com/api") open class LegacyApiResponse : IHaveErrorField { @DataMember var amount:BigDecimal? = null @DataMember var confirmationNumber:String? = null @DataMember var responseCode:String? = null @DataMember var responseDescription:String? = null @DataMember var resultCode:ResultCode? = null } open interface ICanBeRecurring { var Occurs:String? var NumberOfOccurences:String? } open interface IReturnLegacyException { } open class CreditCardDonation { var ClientId:Int? = null var GroupId:Int? = null var Amount:BigDecimal? = null var NameOnCard:String? = null var CardNumber:String? = null var Cvv:String? = null var ExpMonth:String? = null var ExpYear:String? = null var Address:String? = null var City:String? = null var State:String? = null var PostalCode:String? = null var EmailAddress:String? = null var Phone:String? = null var Memo:String? = null var Occurs:String? = null var NumberOfOccurences:String? = null } open interface IHaveErrorField { var IsError:Boolean? } open interface IHaveErrorField { var IsError:Boolean? } enum class ResultCode(val value:Int) { @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), }