Class: ModernTreasury::Models::InternalAccount

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/internal_account.rb

Overview

Defined Under Namespace

Modules: AccountType, PartyType, Status Classes: AccountCapability

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from ModernTreasury::Internal::Type::BaseModel

Instance Attribute Details

#account_capabilitiesArray<ModernTreasury::Models::InternalAccount::AccountCapability>

An array of AccountCapability objects that list the originating abilities of the internal account and any relevant information for them.



17
18
# File 'lib/modern_treasury/models/internal_account.rb', line 17

required :account_capabilities,
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::AccountCapability] }

#account_detailsArray<ModernTreasury::Models::AccountDetail>

An array of account detail objects.



24
# File 'lib/modern_treasury/models/internal_account.rb', line 24

required :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] }

#account_typeSymbol, ...

Can be checking, savings or other.



30
# File 'lib/modern_treasury/models/internal_account.rb', line 30

required :account_type, enum: -> { ModernTreasury::InternalAccount::AccountType }, nil?: true

#connectionModernTreasury::Models::Connection

Specifies which financial institution the accounts belong to.



36
# File 'lib/modern_treasury/models/internal_account.rb', line 36

required :connection, -> { ModernTreasury::Connection }

#counterparty_idString?

The Counterparty associated to this account.

Returns:

  • (String, nil)


42
# File 'lib/modern_treasury/models/internal_account.rb', line 42

required :counterparty_id, String, nil?: true

#created_atTime

Returns:

  • (Time)


47
# File 'lib/modern_treasury/models/internal_account.rb', line 47

required :created_at, Time

#currencySymbol, ModernTreasury::Models::Currency

The currency of the account.



53
# File 'lib/modern_treasury/models/internal_account.rb', line 53

required :currency, enum: -> { ModernTreasury::Currency }

#idString

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/internal_account.rb', line 10

required :id, String

#ledger_account_idString?

If the internal account links to a ledger account in Modern Treasury, the id of the ledger account will be populated here.

Returns:

  • (String, nil)


60
# File 'lib/modern_treasury/models/internal_account.rb', line 60

required :ledger_account_id, String, nil?: true

The Legal Entity associated to this account.

Returns:

  • (String, nil)


66
# File 'lib/modern_treasury/models/internal_account.rb', line 66

required :legal_entity_id, String, nil?: true

#live_modeBoolean

This field will be true if this object exists in the live environment or false if it exists in the test environment.

Returns:

  • (Boolean)


73
# File 'lib/modern_treasury/models/internal_account.rb', line 73

required :live_mode, ModernTreasury::Internal::Type::Boolean

#metadataHash{Symbol=>String}

Additional data represented as key-value pairs. Both the key and value must be strings.

Returns:

  • (Hash{Symbol=>String})


80
# File 'lib/modern_treasury/models/internal_account.rb', line 80

required :metadata, ModernTreasury::Internal::Type::HashOf[String]

#nameString?

A nickname for the account.

Returns:

  • (String, nil)


86
# File 'lib/modern_treasury/models/internal_account.rb', line 86

required :name, String, nil?: true

#objectString

Returns:

  • (String)


91
# File 'lib/modern_treasury/models/internal_account.rb', line 91

required :object, String

#parent_account_idString?

The parent InternalAccount of this account.

Returns:

  • (String, nil)


97
# File 'lib/modern_treasury/models/internal_account.rb', line 97

required :parent_account_id, String, nil?: true

#party_addressModernTreasury::Models::Address?

The address associated with the owner or null.



103
# File 'lib/modern_treasury/models/internal_account.rb', line 103

required :party_address, -> { ModernTreasury::Address }, nil?: true

#party_nameString

The legal name of the entity which owns the account.

Returns:

  • (String)


109
# File 'lib/modern_treasury/models/internal_account.rb', line 109

required :party_name, String

#party_typeSymbol, ...

Either individual or business.



115
# File 'lib/modern_treasury/models/internal_account.rb', line 115

required :party_type, enum: -> { ModernTreasury::InternalAccount::PartyType }, nil?: true

#routing_detailsArray<ModernTreasury::Models::RoutingDetail>

An array of routing detail objects.



121
# File 'lib/modern_treasury/models/internal_account.rb', line 121

required :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] }

#statusSymbol, ...

The internal account status.



127
# File 'lib/modern_treasury/models/internal_account.rb', line 127

required :status, enum: -> { ModernTreasury::InternalAccount::Status }, nil?: true

#updated_atTime

Returns:

  • (Time)


132
# File 'lib/modern_treasury/models/internal_account.rb', line 132

required :updated_at, Time

#vendor_idString?

The vendor ID associated with this account.

Returns:

  • (String, nil)


138
# File 'lib/modern_treasury/models/internal_account.rb', line 138

required :vendor_id, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/internal_account.rb', line 307