Class: ModernTreasury::Models::LedgerAccountCategoryCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/modern_treasury/models/ledger_account_category_create_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance 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, 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(currency: , ledger_id: , name: , normal_balance: , currency_exponent: nil, description: nil, ledger_account_category_ids: nil, metadata: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::LedgerAccountCategoryCreateParams for more details.

Parameters:

  • currency (String) (defaults to: )

    The currency of the ledger account category.

  • ledger_id (String) (defaults to: )

    The id of the ledger that this account category belongs to.

  • name (String) (defaults to: )

    The name of the ledger account category.

  • normal_balance (Symbol, ModernTreasury::Models::TransactionDirection) (defaults to: )

    The normal balance of the ledger account category.

  • currency_exponent (Integer, nil) (defaults to: nil)

    The currency exponent of the ledger account category.

  • description (String, nil) (defaults to: nil)

    The description of the ledger account category.

  • ledger_account_category_ids (Array<String>) (defaults to: nil)

    The array of ledger account category ids that this ledger account category shoul

  • metadata (Hash{Symbol=>String}) (defaults to: nil)

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

  • request_options (ModernTreasury::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


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


Instance Attribute Details

#currencyString

The currency of the ledger account category.

Returns:

  • (String)


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

required :currency, String

#currency_exponentInteger?

The currency exponent of the ledger account category.

Returns:

  • (Integer, nil)


38
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 38

optional :currency_exponent, Integer, nil?: true

#descriptionString?

The description of the ledger account category.

Returns:

  • (String, nil)


44
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 44

optional :description, String, nil?: true

#ledger_account_category_idsArray<String>?

The array of ledger account category ids that this ledger account category should be a child of.

Returns:

  • (Array<String>, nil)


51
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 51

optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]

#ledger_idString

The id of the ledger that this account category belongs to.

Returns:

  • (String)


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

required :ledger_id, String

#metadataHash{Symbol=>String}?

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

Returns:

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


58
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 58

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

#nameString

The name of the ledger account category.

Returns:

  • (String)


26
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 26

required :name, String

#normal_balanceSymbol, ModernTreasury::Models::TransactionDirection

The normal balance of the ledger account category.



32
# File 'lib/modern_treasury/models/ledger_account_category_create_params.rb', line 32

required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }