Transaction
public struct Transaction : TransactionAttributes, TransactionSealedAttributes, Hashable
Representation of a Transaction object associated with a Virtual Card in Platform SDK.
-
Declaration
Swift
public var id: String
-
Declaration
Swift
public var cardId: String
-
Declaration
Swift
public var sequenceId: String
-
Declaration
Swift
public var type: TransactionType
-
Declaration
Swift
public var sortDate: Date
-
Declaration
Swift
public var transactedAt: Date
-
Declaration
Swift
public var settledAt: Date?
-
Declaration
Swift
public var billedAmount: CurrencyAmount
-
Declaration
Swift
public var transactedAmount: CurrencyAmount
-
Declaration
Swift
public var description: String
-
Declaration
Swift
public var declineReason: TransactionDeclineReason?
-
Declaration
Swift
public var detail: [TransactionDetailChargeAttribute]
-
Declaration
Swift
public var createdAt: Date
-
Declaration
Swift
public var updatedAt: Date
-
init(id:
cardId: sequenceId: type: sortDate: transactedAt: settledAt: billedAmount: transactedAmount: description: declineReason: detail: createdAt: updatedAt: ) Initialize an instance of
Transaction
.Declaration
Swift
public init( id: String, cardId: String, sequenceId: String, type: TransactionType, sortDate: Date, transactedAt: Date, settledAt: Date?, billedAmount: CurrencyAmount, transactedAmount: CurrencyAmount, description: String, declineReason: TransactionDeclineReason? = nil, detail: [TransactionDetailChargeAttribute] = [], createdAt: Date, updatedAt: Date )