ReceiptTransaction

public struct ReceiptTransaction : Codable, Sendable

The receipt transaction model.

  • This field is Alviere’s internal unique transaction identifier and is required to reference the transaciton that we wish to perform an operation on.

    Declaration

    Swift

    public let transactionUuid: String
  • The ID of this transaction in your own platform. This ID can be used to identify the transaction as well as protect our API against duplicate transactions.

    Declaration

    Swift

    public let externalId: String
  • The payment transaction type details either the direction of funds flow such as debits or credits, or other types such as refunds.

    Declaration

    Swift

    public let transactionTypeString: String
  • The payment transaction type details either the direction of funds flow such as debits or credits, or other types such as refunds. Check transactionTypeString if nil.

    Declaration

    Swift

    public var transactionType: TransactionType? { get }
  • Origin of the receipt.

    Declaration

    Swift

    public let origin: ReceiptOrigin?
  • Destination of the receipt.

    Declaration

    Swift

    public let destination: ReceiptDestination?
  • A short description about the transaction.

    Declaration

    Swift

    public let description: String
  • The exchange rate set for the transaction.

    Declaration

    Swift

    public let exchangeRate: String
  • The transaction date.

    Declaration

    Swift

    public let transactionDate: String
  • If a payment method exists for this transaction, information pertaining to it will be returned in this object.

    Declaration

    Swift

    public let paymentMethod: PaymentMethod?
  • Service fees associated with the transaction.

    Declaration

    Swift

    public let serviceFees: [ReceiptServiceFee]?
  • The amount is the value associated with the request, in cents.

    Declaration

    Swift

    public let amount: Int64
  • The currency code in ISO-4217 format.

    Declaration

    Swift

    public let currencyString: String
  • The currency code in ISO-4217 format. Check currencyString if nil.

    Declaration

    Swift

    public var currency: Currency? { get }
  • The type details.

    Declaration

    Swift

    public let typeDetails: ReceiptTransationTypeDetails?
  • Allows for any number of custom metadata keys and values to be stored with a given transaction.

    Declaration

    Swift

    public let metadata: [String : CustomValue]?