Class: Inttegro::Shared::FinancialInstitutionBank

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/financial_institution_bank.rb

Overview

Typed representation of the financial institution bank object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#bank_account_type ⇒ String (readonly)

Value of the bank_account_type field in the Inttegro API payload.

Required in the API payload. Wire name: bank_account_type.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/financial_institution_bank.rb', line 48

class FinancialInstitutionBank < T::Struct
  const :bank_account_type, String
  const :branch, T.nilable(Inttegro::Shared::FinancialInstitutionBankBranch), default: nil
  const :code_scheme, String
  const :sort_code_prefix, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#branch ⇒ Inttegro::Shared::FinancialInstitutionBankBranch? (readonly)

Value of the branch field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: branch.



48
49
50
51
52
53
54
# File 'lib/inttegro/shared/financial_institution_bank.rb', line 48

class FinancialInstitutionBank < T::Struct
  const :bank_account_type, String
  const :branch, T.nilable(Inttegro::Shared::FinancialInstitutionBankBranch), default: nil
  const :code_scheme, String
  const :sort_code_prefix, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#code_scheme ⇒ String (readonly)

Value of the code_scheme field in the Inttegro API payload.

Required in the API payload. Wire name: code_scheme.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/financial_institution_bank.rb', line 48

class FinancialInstitutionBank < T::Struct
  const :bank_account_type, String
  const :branch, T.nilable(Inttegro::Shared::FinancialInstitutionBankBranch), default: nil
  const :code_scheme, String
  const :sort_code_prefix, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#sort_code_prefix ⇒ String? (readonly)

Value of the sort_code_prefix field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: sort_code_prefix.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/financial_institution_bank.rb', line 48

class FinancialInstitutionBank < T::Struct
  const :bank_account_type, String
  const :branch, T.nilable(Inttegro::Shared::FinancialInstitutionBankBranch), default: nil
  const :code_scheme, String
  const :sort_code_prefix, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#swift_code ⇒ String? (readonly)

Value of the swift_code field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: swift_code.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/financial_institution_bank.rb', line 48

class FinancialInstitutionBank < T::Struct
  const :bank_account_type, String
  const :branch, T.nilable(Inttegro::Shared::FinancialInstitutionBankBranch), default: nil
  const :code_scheme, String
  const :sort_code_prefix, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end