POAssignCustomerTokenRequest

data class POAssignCustomerTokenRequest(val customerId: String, val tokenId: String, val source: String, val preferredScheme: String? = null, val enableThreeDS2: Boolean = true, val verify: Boolean = false, val invoiceId: String? = null, val thirdPartySdkVersion: String? = null, val metadata: Map<String, String>? = null)

Request parameters used to assign new source to existing customer token and potentially verify it.

Parameters

customerId

ID of the customer who token belongs to.

tokenId

Token ID that belong to the customer.

source

Payment source to associate with token. The source can be a card, an APM or a gateway request. For the source to be valid, you must not have used it for any previous payment or to create any other customer tokens.

preferredScheme

Card scheme or co-scheme that should get priority if it is available.

enableThreeDS2

Boolean value indicating whether 3DS2 is enabled. Default value is true.

verify

Boolean value that indicates whether token should be verified. Make sure to also pass valid invoiceId if you want verification to happen. Default value is false.

invoiceId

Invoice identifier that will be used for token verification.

thirdPartySdkVersion

Can be used for a 3DS2 request to indicate which third party SDK is used for the call.

metadata

Additional metadata.

Constructors

Link copied to clipboard
constructor(customerId: String, tokenId: String, source: String, preferredScheme: String? = null, enableThreeDS2: Boolean = true, verify: Boolean = false, invoiceId: String? = null, thirdPartySdkVersion: String? = null, metadata: Map<String, String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val invoiceId: String? = null
Link copied to clipboard
val metadata: Map<String, String>? = null
Link copied to clipboard
val preferredScheme: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val verify: Boolean = false