Transaction

public struct Transaction : Hashable

Representation of a Transaction object associated with a Virtual Card in Platform SDK.

Supplementary

  • Type of a Transaction.

    Declaration

    Swift

    public enum TransactionType : Hashable

Properties

  • id

    Identifier generated by the Virtual Cards Service.

    Declaration

    Swift

    public let id: String
  • Associated Card ID of the transaction.

    Declaration

    Swift

    public let cardId: String
  • Associated Sequence ID of the transaction. Used to identify related transactions.

    Declaration

    Swift

    public let sequenceId: String
  • Type of the transaction.

    Declaration

    Swift

    public let type: TransactionType
  • Date in which the transaction was transacted at.

    Declaration

    Swift

    public let transactedAt: Date
  • Transaction amount in the card’s currency value.

    Declaration

    Swift

    public let billedAmount: CurrencyAmount
  • Transaction amount in the merchant’s currency value.

    Declaration

    Swift

    public let transactedAmount: CurrencyAmount
  • Description of the transaction - typically is the name of the merchant.

    Declaration

    Swift

    public let description: String
  • Associated reason for why the tranaction was declined (if applicable).

    Declaration

    Swift

    public let declineReason: DeclineReason?
  • List of details about this transaction depending on transaction type. Pending, complete and refund transactions will always have detail.

    Declaration

    Swift

    public let detail: [TransactionDetailChargeAttribute]
  • Date stamp that the transaction was created on the Virtual Cards Service.

    Declaration

    Swift

    public let created: Date
  • Date stamp that the transaction was last updated on the Virtual Cards Service.

    Declaration

    Swift

    public let updated: Date

Lifecycle