CardRequest
public struct CardRequest : Codable, Sendable
Card request model.
-
The unique identifier of the card in your own system.
Declaration
Swift
public let externalId: String
-
The payment card number.
Declaration
Swift
public let pan: String
-
The expiration year of the card.
Declaration
Swift
public let expirationYear: String
-
The expiration month of the card.
Declaration
Swift
public let expirationMonth: String
-
Card billing address postal code (ZIP Code for the US).
Declaration
Swift
public let postalCode: String?
-
The name of the cardholder as it shows on the face of the card.
Declaration
Swift
public let nameOnCard: String?
-
The card CVC or CVV code.
Declaration
Swift
public let securityCode: String
-
Allows for any number of custom metadata keys and values to be stored with a given entity.
Declaration
Swift
public let metadata: [String : CustomValue]?
-
Auxiliary constructor
Declaration
Swift
public init( externalId: String, pan: String, expirationYear: String, expirationMonth: String, securityCode: String, postalCode: String? = nil, nameOnCard: String? = nil, metadata: [String: CustomValue]? = nil)
Parameters
externalId
The unique identifier of the card in your own system.
pan
The payment card number.
expirationYear
The expiration year of the card.
expirationMonth
The expiration month of the card.
securityCode
The card CVC or CVV code.
postalCode
Card billing address postal code (ZIP Code for the US).
nameOnCard
The name of the cardholder as it shows on the face of the card.
metadata
Allows for any number of custom metadata keys and values to be stored with a given entity.