Record

public struct Record : Sendable

Data structure containing data related to a transaction.

Since

7.0.0
  • id

    The ID of the transaction which is dependent on the scheme used.

    Declaration

    Swift

    public let id: String?
  • The transaction date in ISO 8601 format: YYYY-MM-DDThh:mm:ssTZD.

    Declaration

    Swift

    public let date: String
  • The status of the transaction.

    Declaration

    Swift

    public let status: Status
  • The type of the transaction.

    Declaration

    Swift

    public let type: TransactionType
  • The 3-letter currency code in ISO 4217 format.

    Declaration

    Swift

    public let currencyCode: String
  • The transaction amount. In the event of a refund, the transaction amount may be negative.

    Declaration

    Swift

    public let amount: Double?
  • String representation of amount in ISO 4217 format, with the correct number of digits after the decimal separator.

    Declaration

    Swift

    public let displayAmount: String?
  • The merchant name.

    Declaration

    Swift

    public let merchantName: String?
  • The merchant category code (MCC).

    Declaration

    Swift

    public let merchantType: String?
  • The merchant postal code.

    Declaration

    Swift

    public let merchantPostalCode: String?
  • Helps acquirers, issuers, or merchants trace and audit transactions for specific terminals.

    Declaration

    Swift

    public let terminalID: String?
  • Uniquely identifies each merchant and their transaction location.

    Declaration

    Swift

    public let merchantID: String?