PaymentGetResponse
public struct PaymentGetResponse : Codable
-
A system assigned unique identification for the payment. You may need to use this id to query payments or initiate a refund.
Declaration
Swift
public let id: String?
-
An identification number for the payment that is assigned by the bank. Can have different formats for each bank.
Declaration
Swift
public let bankReferenceID: String?
-
Initiation date and time of the payment request in ISO 8601 format.
Declaration
Swift
public let dateCreated: Date?
-
Status of the payment
Note
Enum: “Initial” “AwaitingAuthorization” “Authorised” “Verified” “Completed” “Canceled” “Failed” “Rejected” “Abandoned”Declaration
Swift
public let status: PaymentStatus?
-
Indicates if the payment is a refund.
Declaration
Swift
public let isRefund: Bool?
-
If
isRefund
=‘true’, provides the payment_id of the original payment that this refund is created for.Declaration
Swift
public let originalPaymentID: String?
-
The URL submitted with the Request.
Declaration
Swift
public let redirectURL: String?
-
The URL to open bank application or website
Declaration
Swift
public let url: String?
-
The
bankID
value submitted with the Request.Declaration
Swift
public let bankID: String?
-
The
amount
value submitted with the Request.Declaration
Swift
public let amount: Decimal?
-
Currency code in ISO 4217 format.
Note
Enum: “GBP” “USD” “EUR”Declaration
Swift
public let currency: PayByBankCurrency?
-
The
description
value submitted with the Request.Declaration
Swift
public let description: String?
-
The
reference
value submitted with the Request.Declaration
Swift
public let reference: String?
-
The
merchantID
value submitted with the Request.Declaration
Swift
public let merchantID: String?
-
The
merchantUserID
value submitted with the Request.Declaration
Swift
public let merchantUserID: String?
-
It determines which type of payment operation will be executed by the Gateway.
Note
Enum: “Auto” “Domestic” “DomesticScheduled” “International” “InternationalScheduled”Declaration
Swift
public let paymentType: PaymentType?
-
It is the account that will receive the payment.
Declaration
Swift
public let creditorAccount: PayByBankAccountResponse?
-
It is the account from which the payment will be taken.
Declaration
Swift
public let debtorAccount: PayByBankAccountResponse?
-
Additional fields for the payment request.
Declaration
Swift
public let paymentOption: PaymentOptionResponse?
-
Represents the refund account information structure of that is returned by the bank.
Declaration
Swift
public let refundAccount: PayByBankAccountResponse?
-
Indicates if the payment transaction is settled on the creditor account. Available with the [optional] Reconciliation Feature.
Declaration
Swift
public let isReconciled: Bool?
-
Date and time information that is gathered from the creditor account statement by the [optional] Reconciliation Feature in ISO 8601 format.
Declaration
Swift
public let reconciliationDate: Date?
-
init(id:
bankReferenceID: dateCreated: status: isRefund: originalPaymentID: redirectURL: url: bankID: amount: currency: description: reference: merchantID: merchantUserID: paymentType: creditorAccount: debtorAccount: paymentOption: refundAccount: isReconciled: reconciliationDate: ) Declaration
Swift
public init(id: String?, bankReferenceID: String?, dateCreated: Date?, status: PaymentStatus?, isRefund: Bool?, originalPaymentID: String?, redirectURL: String?, url: String?, bankID: String?, amount: Decimal?, currency: PayByBankCurrency?, description: String?, reference: String?, merchantID: String?, merchantUserID: String?, paymentType: PaymentType?, creditorAccount: PayByBankAccountResponse?, debtorAccount: PayByBankAccountResponse?, paymentOption: PaymentOptionResponse?, refundAccount: PayByBankAccountResponse?, isReconciled: Bool?, reconciliationDate: Date?)