/* Options: Date: 2025-08-03 08:58:24 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PaymentProfileImportEndpoint.* //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/paymentprofile/import", Verbs="POST") @ApiResponse(Description="", ResponseType=PaymentProfileImportResponse.class, StatusCode=200) open class PaymentProfileImportEndpoint : PaymentProfileImportRequest(), IReturn, IApiKeyEndpoint { /** * IP address of the end user */ @ApiMember(Description="IP address of the end user", Name="X-Forwarded-For", ParameterType="header") var XForwardedFor:String? = null /** * API Authentication Key */ @ApiMember(Description="API Authentication Key", IsRequired=true, ParameterType="query") var ApiKey:String? = null /** * The ProfileToken JWT to import (see description above) */ @ApiMember(Description="The ProfileToken JWT to import (see description above)", IsRequired=true) var ProfileToken:String? = null /** * When adding a PaymentMethod that is 'on-file' (`IsTemp == true`), the default behavior is toset this PaymentMethod as the preferred method. If you do not wish this to be the preferredmethod, you can set `DoNotUpdatePaymentTypePreference` to `true`. Otherwise, this can beomitted or `false`.For non 'on-file' PaymentMethods, this setting is ignored. */ @ApiMember(Description="When adding a PaymentMethod that is 'on-file' (`IsTemp == true`), the default behavior is to\r\nset this PaymentMethod as the preferred method. If you do not wish this to be the preferred\r\nmethod, you can set `DoNotUpdatePaymentTypePreference` to `true`. Otherwise, this can be\r\nomitted or `false`.\r\n\r\nFor non 'on-file' PaymentMethods, this setting is ignored.") var DoNotUpdatePaymentTypePreference:Boolean? = null /** * **Conditionally Required** When importing a ProfileToken with an OwnerType of `TempStUser`, the ownership will be changed toOwnerType of `User` with the userId of the supplied `NewOwnerId`.This is needed when a PaymentMethod is created for a User that has not been selected or created, yet. */ @ApiMember(Description="**Conditionally Required** \r\n\r\nWhen importing a ProfileToken with an OwnerType of `TempStUser`, the ownership will be changed to\r\nOwnerType of `User` with the userId of the supplied `NewOwnerId`.\r\n\r\nThis is needed when a PaymentMethod is created for a User that has not been selected or created, yet.") var NewOwnerId:Int? = null companion object { private val responseType = PaymentProfileImportResponse::class.java } override fun getResponseType(): Any? = PaymentProfileImportEndpoint.responseType } open class PaymentProfileImportResponse { var Success:Boolean? = null var Message:String? = null var PaymentProfile:PaymentProfile? = null } open interface IApiKeyEndpoint { var ApiKey:String? } open class PaymentProfileImportRequest { var ProfileToken:String? = null var DoNotUpdatePaymentTypePreference:Boolean? = null var NewOwnerId:Int? = null } open class PaymentProfile : IFullNameContainer { var PaymentProfileId:Int? = null var AcctToken:String? = null var OwnerId:Int? = null var OwnerTypeId:Short? = null var AcctTypeId:Short? = null var AcctClassId:Short? = null var PrefixName:String? = null var FirstName:String? = null var MiddleName:String? = null var LastName:String? = null var SuffixName:String? = null var Address1:String? = null var Address2:String? = null var Urbanization:String? = null var City:String? = null var State:String? = null var PostalCode:String? = null var CountryCode:String? = null var Last4:String? = null var CcExpMonth:Short? = null var CcExpYear:Short? = null var IsTemp:Boolean? = null var IsDisabled:Boolean? = null var OnHoldUtc:Date? = null var OnHoldReasonCode:Short? = null var OnHoldReasonDetail:String? = null var AcctUpdaterFlagUtc:Date? = null var CreatedBy:Int? = null var CreatedUtc:Date? = null var ModifiedBy:Int? = null var ModifiedUtc:Date? = null var AcctUpdaterFlag:Boolean? = null var EntryModeId:Short? = null var ExcludeFromAcctUpdater:Boolean? = null } open interface IFullNameContainer { var FirstLastName:String? var FullName:String? var PrefixName:String? var FirstName:String? var MiddleName:String? var LastName:String? var SuffixName:String? }