ReceiptTransaction
public struct ReceiptTransaction : Codable
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 var 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 var 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 var 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
ifnil
.Declaration
Swift
public var transactionType: TransactionType? { get }
-
Origin of the receipt.
Declaration
Swift
public var origin: ReceiptOrigin?
-
Destination of the receipt.
Declaration
Swift
public var destination: ReceiptDestination?
-
A short description about the transaction.
Declaration
Swift
public var description: String
-
The exchange rate set for the transaction.
Declaration
Swift
public var exchangeRate: String
-
The transaction date.
Declaration
Swift
public var transactionDate: String
-
If a payment method exists for this transaction, information pertaining to it will be returned in this object.
Declaration
Swift
public var paymentMethod: PaymentMethod?
-
Service fees associated with the transaction.
Declaration
Swift
public var serviceFees: [ReceiptServiceFee]?
-
The amount is the value associated with the request, in cents.
Declaration
Swift
public var amount: Int64
-
The currency code in ISO-4217 format.
Declaration
Swift
public var currencyString: String
-
The currency code in ISO-4217 format. Check
currencyString
ifnil
.Declaration
Swift
public var currency: Currency? { get }
-
The type details.
Declaration
Swift
public var typeDetails: ReceiptTransationTypeDetails?
-
Allows for any number of custom metadata keys and values to be stored with a given transaction.
Declaration
Swift
public var metadata: [String : Any]?
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes the instance by encoding to the given decoder.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.