PayByBankAccountResponse

public struct PayByBankAccountResponse : Codable

Response model for bank account.

  • Format of the account identification text.

    Note

    Enum: “SortCode” “Iban” “Bban”

    Declaration

    Swift

    public let type: PayByBankAccountType?
  • Account identification.

    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.

    Note

    Enum: “GBP” “USD” “EUR”

    Declaration

    Swift

    public let currency: PayByBankCurrency?
  • bic

    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?
  • Creates an instance from the specified parameters.

    Declaration

    Swift

    public init(type: PayByBankAccountType?,
                identification: String?,
                name: String?,
                currency: PayByBankCurrency?,
                bic: String?)

    Parameters

    type

    Instance’s PayByBankAccountType, which is format of the account identification text.

    identification

    Account identification.

    name

    Full legal name of the account owner.

    currency

    Instance’s PayByBankCurrency, which is currency code of the account in ISO 4217 format.

    bic

    A standard ISO 9362 compliant Bank Identifier Code.

Decodable & Encodable

  • Creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes instance into the given encoder.

    Declaration

    Swift

    func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.