/* Options: Date: 2024-05-17 03:08:44 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddPaymentAccount.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/sales/member/{MemberId}/payment/profile", Verbs="POST") @ApiResponse(Description="", ResponseType=AddPaymentProfileResponse.class, StatusCode=200) open class AddPaymentAccount : AddPaymentProfileRequest(), IReturn, IRestrictedApiRequest { /** * Api Authentication Key */ @ApiMember(Description="Api Authentication Key", IsRequired=true, ParameterType="query") var ApiKey:String? = null /** * Id of the store for the user */ @ApiMember(Description="Id of the store for the user", IsRequired=true, ParameterType="query") var StoreId:Int? = null /** * Member Id of the user to update their Payment Profile */ @ApiMember(Description="Member Id of the user to update their Payment Profile", IsRequired=true, ParameterType="path") var MemberId:Int? = null /** * The AcctToken provided by creating a Payment Profile with the Vault Api */ @ApiMember(Description="The AcctToken provided by creating a Payment Profile with the Vault Api", IsRequired=true) var AcctToken:String? = null /** * Last 4 digits of the Payment Profile */ @ApiMember(Description="Last 4 digits of the Payment Profile") var Last4:String? = null /** * 2 digit expiration month **Required for Credit Card** */ @ApiMember(Description="2 digit expiration month \n**Required for Credit Card**") var ExpMonth:Int? = null /** * 2 digit expiration year **Required for Credit Card** */ @ApiMember(Description="2 digit expiration year \n**Required for Credit Card**") var ExpYear:Int? = null /** * The Account Type of the Payment Profile **Required when adding Gift Card**
Common Values
TextNumericalAccount Type
VISA1Visa
MC2MasterCard
Disc3Discover
Amex4American Express
PC11Personal Checking
PS12Personal Savings
BC13Business Checking
Factor442Factor4 Gift Card

You may use the Text or the Numerical value.

*/ @ApiMember(Description="\r\nThe Account Type of the Payment Profile \r\n**Required when adding Gift Card**\r\n\r\n
\r\nCommon Values\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
TextNumericalAccount Type
VISA1Visa
MC2MasterCard
Disc3Discover
Amex4American Express
PC11Personal Checking
PS12Personal Savings
BC13Business Checking
Factor442Factor4 Gift Card
\r\n

You may use the Text or the Numerical value.

\r\n
") var AcctType:AcctType? = null /** * Bank Routing Number **Required for Bank Accounts** */ @ApiMember(Description="Bank Routing Number \n**Required for Bank Accounts**") var BnkRoute:Int? = null /** * Set to `true` to not set the user's Payment Type Preference when adding an on-file profile */ @ApiMember(Description="Set to `true` to not set the user's Payment Type Preference when adding an on-file profile") var DoNotUpdatePaymentTypePreference:Boolean? = null /** * Whether the Payment Profile is Temporary (One time transactions and Gift Cards are IsTemp = `true`) */ @ApiMember(Description="Whether the Payment Profile is Temporary (One time transactions and Gift Cards are IsTemp = `true`)") var IsTemp:Boolean? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = AddPaymentProfileResponse::class.java } override fun getResponseType(): Any? = AddPaymentAccount.responseType } open class AddPaymentProfileResponse { var Success:String? = null var Message:String? = null } enum class RestrictedResourceType { Store, Chain, User, Undefined, } open interface IRestrictedApiRequest : IApiKeyEndpoint { var RestrictedId:Int? var RestrictedResourceType:RestrictedResourceType? } open interface IApiKeyEndpoint { var ApiKey:String? } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } @DataContract enum class AcctType(val value:Int) { Uninitialized(0), Visa(1), Mc(2), Disc(3), Amex(4), Diners(5), Jcb(6), EnRoute(7), PayPal(8), BillMe(9), Pc(11), Ps(12), Bc(13), Bs(14), Becs(15), Bacs(16), Maestro(20), Solo(21), VisaElectron(22), Cibc(23), RoyalBankCa(24), TdCaTrust(25), Scotia(26), Bmo(27), HsbcCa(28), UnionPay(29), InterPayment(30), Laser(31), UnknownCredit(40), TransArmor(41), Factor4(42), XPass(43), ConnectedAccount(44), Error(-1), } open class AddPaymentProfileRequest : ApiDtoBase() { var UserId:Int? = null var AcctToken:String? = null var Last4:String? = null var ExpMonth:Int? = null var ExpYear:Int? = null var AcctType:AcctType? = null var BnkRoute:Int? = null var FirstName:String? = null var MiddleName:String? = null var LastName:String? = null var Address1:String? = null var Address2:String? = null var City:String? = null var State:String? = null var PostalCode:String? = null var CountryCode:String? = null var Urbanization:String? = null var DoNotUpdatePaymentTypePreference:Boolean? = null var IsTemp:Boolean? = null }