PayByBankAccountRequest
public struct PayByBankAccountRequest : Codable
-
- Enum: “SortCode” “Iban” “Bban”
Declaration
Swift
public let type: PayByBankAccountType
-
Account identification. The value of this parameter depends on the value of AccountType. If type = “SortCode” then a 6-digit SortCode appended with a 8-digit Account Number merged into a 14-digit value, with no dashes in between. For type = “IBAN” the IBAN of the account (compliant with ISO 13616-1) and for type = “BNAN” the BBAN of the account must be set.
Declaration
Swift
public let identification: String
-
Full legal name of the account owner.
Declaration
Swift
public let name: String
-
Currency code of the account in ISO 4217 format.
- Enum: “GBP” “USD” “EUR”
Declaration
Swift
public let currency: PayByBankCurrency
-
A standard ISO 9362 compliant Bank Identifier Code. It is required for international payments (if either sender or the creditor account is outside the SEPA region).
Declaration
Swift
public let bic: String?
-
Declaration
Swift
public init(type: PayByBankAccountType, identification: String, name: String, currency: PayByBankCurrency, bic: String? = nil)
-
Declaration
Swift
init(from decoder: Decoder) throws
-
Declaration
Swift
func encode(to encoder: Encoder) throws