VirtualCard
public struct VirtualCard : Hashable, VirtualCardAttributes, VirtualCardSealedAttributes
Representation of a Virtual Card used in Platform SDK.
-
Declaration
Swift
public var id: String
-
Declaration
Swift
public var owners: [Owner]
-
Declaration
Swift
public var owner: String
-
Declaration
Swift
public var version: Int
-
Declaration
Swift
public var fundingSourceId: String
-
Declaration
Swift
public var state: VirtualCardState
-
Declaration
Swift
public var cardHolder: String
-
Declaration
Swift
@available(*, deprecated, message: "Please use metadata") public var alias: String?
-
Declaration
Swift
public var metadata: JSONValue?
-
Declaration
Swift
public var last4: String
-
Declaration
Swift
public var pan: String
-
Declaration
Swift
public var csc: String
-
Declaration
Swift
public var billingAddress: VirtualCardBillingAddress?
-
Declaration
Swift
public var expiry: VirtualCardExpiry
-
Declaration
Swift
public var currency: String
-
Declaration
Swift
public var activeTo: Date
-
Declaration
Swift
public var cancelledAt: Date?
-
Declaration
Swift
public var createdAt: Date
-
Declaration
Swift
public var updatedAt: Date
-
Declaration
Swift
public var lastTransaction: Transaction?
-
init(id:
owners: owner: version: fundingSourceId: state: cardHolder: alias: last4: pan: csc: billingAddress: expiry: currency: activeTo: cancelledAt: createdAt: updatedAt: lastTransaction: metadata: ) Initialize an instance of
VirtualCard
.Declaration
Swift
public init( id: String, owners: [Owner], owner: String, version: Int, fundingSourceId: String, state: VirtualCardState, cardHolder: String, alias: String?, last4: String, pan: String, csc: String, billingAddress: VirtualCardBillingAddress?, expiry: VirtualCardExpiry, currency: String, activeTo: Date, cancelledAt: Date? = nil, createdAt: Date, updatedAt: Date, lastTransaction: Transaction?, metadata: JSONValue? )