Class: Inttegro::FinancialAccount::CreatedBank

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/financial_account/created_bank.rb

Overview

Typed representation of the created 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

#ghana_bank_account ⇒ Inttegro::BankAccount::Created? (readonly)

Value of the ghana_bank_account field in the Inttegro API payload.

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



37
38
39
40
41
# File 'lib/inttegro/financial_account/created_bank.rb', line 37

class CreatedBank < T::Struct
  const :id, String
  const :type, Inttegro::BankAccount::Type
  const :ghana_bank_account, T.nilable(Inttegro::BankAccount::Created), default: nil
end

#id ⇒ String (readonly)

Empty in the current create response.

Required in the API payload. Wire name: id.

Returns:

  • (String)


37
38
39
40
41
# File 'lib/inttegro/financial_account/created_bank.rb', line 37

class CreatedBank < T::Struct
  const :id, String
  const :type, Inttegro::BankAccount::Type
  const :ghana_bank_account, T.nilable(Inttegro::BankAccount::Created), default: nil
end

#type ⇒ Inttegro::BankAccount::Type (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



37
38
39
40
41
# File 'lib/inttegro/financial_account/created_bank.rb', line 37

class CreatedBank < T::Struct
  const :id, String
  const :type, Inttegro::BankAccount::Type
  const :ghana_bank_account, T.nilable(Inttegro::BankAccount::Created), default: nil
end