Class: ModernTreasury::Models::VirtualAccountCreateParams

Inherits:
Internal::Type::BaseModel show all
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

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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_detailsArray<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_idString?

The ID of the counterparty that the virtual account belongs to.

Returns:

  • (String, nil)


33
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 33

optional :counterparty_id, String

#credit_ledger_account_idString?

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.

Returns:

  • (String, nil)


41
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 41

optional :credit_ledger_account_id, String

#debit_ledger_account_idString?

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.

Returns:

  • (String, nil)


49
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 49

optional :debit_ledger_account_id, String

#descriptionString?

An optional description for internal use.

Returns:

  • (String, nil)


55
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 55

optional :description, String

#internal_account_idString

The ID of the internal account that this virtual account is associated with.

Returns:

  • (String)


14
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 14

required :internal_account_id, String

#ledger_accountModernTreasury::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 }

#metadataHash{Symbol=>String}?

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

Returns:

  • (Hash{Symbol=>String}, nil)


70
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 70

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

#nameString

The name of the virtual account.

Returns:

  • (String)


20
# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 20

required :name, String

#routing_detailsArray<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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/virtual_account_create_params.rb', line 151