Class: ModernTreasury::Models::VirtualAccountCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::VirtualAccountCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/modern_treasury/models/virtual_account_create_params.rb
Overview
Defined Under Namespace
Classes: AccountDetail, RoutingDetail
Instance Attribute Summary collapse
-
#account_details ⇒ Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>?
An array of account detail objects.
-
#counterparty_id ⇒ String?
The ID of the counterparty that the virtual account belongs to.
-
#credit_ledger_account_id ⇒ String?
The ID of a credit normal ledger account.
-
#debit_ledger_account_id ⇒ String?
The ID of a debit normal ledger account.
-
#description ⇒ String?
An optional description for internal use.
-
#internal_account_id ⇒ String
The ID of the internal account that this virtual account is associated with.
-
#ledger_account ⇒ ModernTreasury::Models::LedgerAccountCreateRequest?
Specifies a ledger account object that will be created with the virtual account.
-
#metadata ⇒ Hash{Symbol=>String}?
Additional data represented as key-value pairs.
-
#name ⇒ String
The name of the virtual account.
-
#routing_details ⇒ Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>?
An array of routing detail objects.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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_details ⇒ Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>?
An array of account detail objects.
26 27 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 26 optional :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail] } |
#counterparty_id ⇒ String?
The ID of the counterparty that the virtual account belongs to.
33 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 33 optional :counterparty_id, String |
#credit_ledger_account_id ⇒ String?
The ID of a credit normal ledger account. When money leaves the virtual account, this ledger account will be credited. Must be accompanied by a debit_ledger_account_id if present.
41 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 41 optional :credit_ledger_account_id, String |
#debit_ledger_account_id ⇒ String?
The ID of a debit normal ledger account. When money enters the virtual account, this ledger account will be debited. Must be accompanied by a credit_ledger_account_id if present.
49 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 49 optional :debit_ledger_account_id, String |
#description ⇒ String?
An optional description for internal use.
55 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 55 optional :description, String |
#internal_account_id ⇒ String
The ID of the internal account that this virtual account is associated with.
14 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 14 required :internal_account_id, String |
#ledger_account ⇒ ModernTreasury::Models::LedgerAccountCreateRequest?
Specifies a ledger account object that will be created with the virtual account. The resulting ledger account is linked to the virtual account for auto-ledgering IPDs.
63 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 63 optional :ledger_account, -> { ModernTreasury::LedgerAccountCreateRequest } |
#metadata ⇒ Hash{Symbol=>String}?
Additional data represented as key-value pairs. Both the key and value must be strings.
70 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 70 optional :metadata, ModernTreasury::Internal::Type::HashOf[String] |
#name ⇒ String
The name of the virtual account.
20 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 20 required :name, String |
#routing_details ⇒ Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>?
An array of routing detail objects.
76 77 |
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 76 optional :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail] } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 151
|