Class: ModernTreasury::Models::LedgerAccountCategoryListParams

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_list_params.rb

Overview

Defined Under Namespace

Classes: Balances

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Method Summary

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

#after_cursorString?

Returns:

  • (String, nil)


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

optional :after_cursor, String, nil?: true

#balancesModernTreasury::Models::LedgerAccountCategoryListParams::Balances?

For example, if you want the balances as of a particular time (ISO8601), the encoded query string would be ‘balances%5Beffective_at%5D=2000-12-31T12:00:00Z`. The balances as of a time are inclusive of entries with that exact time, but with respect to the ledger accounts that are currently present in the category.



29
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 29

optional :balances, -> { ModernTreasury::LedgerAccountCategoryListParams::Balances }

#currencyString?

Returns:

  • (String, nil)


34
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 34

optional :currency, String

#external_idString?

Returns:

  • (String, nil)


39
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 39

optional :external_id, String

#idArray<String>?

If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with ‘id[]=`, for example `?id[]=123&id=abc`.

Returns:

  • (Array<String>, nil)


15
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 15

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

#ledger_account_idString?

Query categories which contain a ledger account directly or through child categories.

Returns:

  • (String, nil)


46
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 46

optional :ledger_account_id, String

#ledger_idString?

Returns:

  • (String, nil)


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

optional :ledger_id, String

#metadataHash{Symbol=>String}?

For example, if you want to query for records with metadata key ‘Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query parameters.

Returns:

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


59
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 59

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

#nameArray<String>?

If you have specific names to retrieve in bulk, you can pass them as query parameters delimited with ‘name[]=`, for example `?name[]=123&name=abc`.

Returns:

  • (Array<String>, nil)


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

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

#parent_ledger_account_category_idString?

Query categories that are nested underneath a parent category

Returns:

  • (String, nil)


72
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 72

optional :parent_ledger_account_category_id, String

#per_pageInteger?

Returns:

  • (Integer, nil)


77
# File 'lib/modern_treasury/models/ledger_account_category_list_params.rb', line 77

optional :per_page, Integer