Class: ModernTreasury::Models::ExternalAccount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::ExternalAccount
- Defined in:
- lib/modern_treasury/models/external_account.rb
Overview
Defined Under Namespace
Modules: PartyType, VerificationSource, VerificationStatus
Instance Attribute Summary collapse
- #account_details ⇒ Array<ModernTreasury::Models::AccountDetail>
-
#account_type ⇒ Symbol, ModernTreasury::Models::ExternalAccountType
Can be ‘checking`, `savings` or `other`.
- #contact_details ⇒ Array<ModernTreasury::Models::ContactDetail>
- #counterparty_id ⇒ String?
- #created_at ⇒ Time
- #discarded_at ⇒ Time?
-
#external_id ⇒ String?
An optional user-defined 180 character unique identifier.
- #id ⇒ String
-
#ledger_account_id ⇒ String?
If the external account links to a ledger account in Modern Treasury, the id of the ledger account will be populated here.
-
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
-
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs.
-
#name ⇒ String?
A nickname for the external account.
- #object ⇒ String
-
#party_address ⇒ ModernTreasury::Models::Address?
The address associated with the owner or ‘null`.
-
#party_name ⇒ String
The legal name of the entity which owns the account.
-
#party_type ⇒ Symbol, ...
Either ‘individual` or `business`.
- #routing_details ⇒ Array<ModernTreasury::Models::RoutingDetail>
- #updated_at ⇒ Time
- #verification_source ⇒ Symbol, ...
- #verification_status ⇒ Symbol, ModernTreasury::Models::ExternalAccount::VerificationStatus
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , account_details: , account_type: , contact_details: , counterparty_id: , created_at: , discarded_at: , external_id: , ledger_account_id: , live_mode: , metadata: , name: , object: , party_address: , party_name: , party_type: , routing_details: , updated_at: , verification_source: , verification_status: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see ExternalAccount for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(id: , account_details: , account_type: , contact_details: , counterparty_id: , created_at: , discarded_at: , external_id: , ledger_account_id: , live_mode: , metadata: , name: , object: , party_address: , party_name: , party_type: , routing_details: , updated_at: , verification_source: , verification_status: ) ⇒ Object
Some parameter documentations has been truncated, see ModernTreasury::Models::ExternalAccount for more details.
|
|
# File 'lib/modern_treasury/models/external_account.rb', line 122
|
Instance Attribute Details
#account_details ⇒ Array<ModernTreasury::Models::AccountDetail>
15 |
# File 'lib/modern_treasury/models/external_account.rb', line 15 required :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] } |
#account_type ⇒ Symbol, ModernTreasury::Models::ExternalAccountType
Can be ‘checking`, `savings` or `other`.
21 |
# File 'lib/modern_treasury/models/external_account.rb', line 21 required :account_type, enum: -> { ModernTreasury::ExternalAccountType } |
#contact_details ⇒ Array<ModernTreasury::Models::ContactDetail>
26 |
# File 'lib/modern_treasury/models/external_account.rb', line 26 required :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] } |
#counterparty_id ⇒ String?
31 |
# File 'lib/modern_treasury/models/external_account.rb', line 31 required :counterparty_id, String, nil?: true |
#created_at ⇒ Time
36 |
# File 'lib/modern_treasury/models/external_account.rb', line 36 required :created_at, Time |
#discarded_at ⇒ Time?
41 |
# File 'lib/modern_treasury/models/external_account.rb', line 41 required :discarded_at, Time, nil?: true |
#external_id ⇒ String?
An optional user-defined 180 character unique identifier.
47 |
# File 'lib/modern_treasury/models/external_account.rb', line 47 required :external_id, String, nil?: true |
#id ⇒ String
10 |
# File 'lib/modern_treasury/models/external_account.rb', line 10 required :id, String |
#ledger_account_id ⇒ String?
If the external account links to a ledger account in Modern Treasury, the id of the ledger account will be populated here.
54 |
# File 'lib/modern_treasury/models/external_account.rb', line 54 required :ledger_account_id, String, nil?: true |
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
61 |
# File 'lib/modern_treasury/models/external_account.rb', line 61 required :live_mode, ModernTreasury::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs. Both the key and value must be strings.
68 |
# File 'lib/modern_treasury/models/external_account.rb', line 68 required :metadata, ModernTreasury::Internal::Type::HashOf[String] |
#name ⇒ String?
A nickname for the external account. This is only for internal usage and won’t affect any payments
75 |
# File 'lib/modern_treasury/models/external_account.rb', line 75 required :name, String, nil?: true |
#object ⇒ String
80 |
# File 'lib/modern_treasury/models/external_account.rb', line 80 required :object, String |
#party_address ⇒ ModernTreasury::Models::Address?
The address associated with the owner or ‘null`.
86 |
# File 'lib/modern_treasury/models/external_account.rb', line 86 required :party_address, -> { ModernTreasury::Address }, nil?: true |
#party_name ⇒ String
The legal name of the entity which owns the account.
92 |
# File 'lib/modern_treasury/models/external_account.rb', line 92 required :party_name, String |
#party_type ⇒ Symbol, ...
Either ‘individual` or `business`.
98 |
# File 'lib/modern_treasury/models/external_account.rb', line 98 required :party_type, enum: -> { ModernTreasury::ExternalAccount::PartyType }, nil?: true |
#routing_details ⇒ Array<ModernTreasury::Models::RoutingDetail>
103 |
# File 'lib/modern_treasury/models/external_account.rb', line 103 required :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] } |
#updated_at ⇒ Time
108 |
# File 'lib/modern_treasury/models/external_account.rb', line 108 required :updated_at, Time |
#verification_source ⇒ Symbol, ...
113 114 115 |
# File 'lib/modern_treasury/models/external_account.rb', line 113 required :verification_source, enum: -> { ModernTreasury::ExternalAccount::VerificationSource }, nil?: true |
#verification_status ⇒ Symbol, ModernTreasury::Models::ExternalAccount::VerificationStatus
120 |
# File 'lib/modern_treasury/models/external_account.rb', line 120 required :verification_status, enum: -> { ModernTreasury::ExternalAccount::VerificationStatus } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/modern_treasury/models/external_account.rb', line 175
|