UpdateCardRequest
public struct UpdateCardRequest : Encodable
Card update request model.
-
Unique identification of the card in your system.
Declaration
Swift
public var externalId: String?
-
The rules this card should use when authorizing a transaction.
Declaration
Swift
public var authRules: AuthRules?
-
Card metadata fields.
Declaration
Swift
public var metadata: [String : Any]?
-
Address to ship the card to.
Declaration
Swift
public var shippingAddress: Address?
-
Array of incentive rules that should apply to this card.
Declaration
Swift
public var incentives: CardIncentivesRules?
-
Auxiliary constructor
Declaration
Swift
public init(authRules: AuthRules? = nil, metadata: [String: Any]? = nil, shippingAddress: Address? = nil, incentives: CardIncentivesRules? = nil, externalId: String? = nil)
Parameters
authRules
The rules this card should use when authorizing a transaction.
metadata
Card metadata fields.
shippingAddress
Address to ship the card to.
incentives
Array of incentive rules that should apply to this card.
externalId
Unique identification of the card in your system.
-
Encodes this value into the given encoder.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.