Class: ModernTreasury::Models::LedgerAccountListParams

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

Overview

Defined Under Namespace

Classes: AvailableBalanceAmount, Balances, PendingBalanceAmount, PostedBalanceAmount

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(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil, not_eq: nil) ⇒ Object

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.

Parameters:

  • eq (Integer) (defaults to: nil)
  • gt (Integer) (defaults to: nil)
  • gte (Integer) (defaults to: nil)
  • lt (Integer) (defaults to: nil)
  • lte (Integer) (defaults to: nil)
  • not_eq (Integer) (defaults to: nil)


# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 183


Instance Attribute Details

#after_cursorString?

Returns:

  • (String, nil)


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

optional :after_cursor, String, nil?: true

#available_balance_amountModernTreasury::Models::LedgerAccountListParams::AvailableBalanceAmount?

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.



27
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 27

optional :available_balance_amount, -> { ModernTreasury::LedgerAccountListParams::AvailableBalanceAmount }

#balancesModernTreasury::Models::LedgerAccountListParams::Balances?

Use ‘balances` and `balances` to get the balances change between the two timestamps. The lower bound is inclusive while the upper bound is exclusive of the provided timestamps. If no value is supplied the balances will be retrieved not including that bound.



37
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 37

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

#created_atHash{Symbol=>Time}?

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For example, for all times after Jan 1 2000 12:00 UTC, use created_at%5Bgt%5D=2000-01-01T12:00:00Z.

Returns:

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


45
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 45

optional :created_at, ModernTreasury::Internal::Type::HashOf[Time]

#currencyString?

Returns:

  • (String, nil)


50
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 50

optional :currency, String

#external_idString?

Returns:

  • (String, nil)


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

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_list_params.rb', line 15

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

#ledger_account_category_idString?

Returns:

  • (String, nil)


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

optional :ledger_account_category_id, String

#ledger_idString?

Returns:

  • (String, nil)


65
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 65

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)


73
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 73

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)


80
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 80

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

#normal_balanceSymbol, ...



85
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 85

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

#pending_balance_amountModernTreasury::Models::LedgerAccountListParams::PendingBalanceAmount?

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.



92
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 92

optional :pending_balance_amount, -> { ModernTreasury::LedgerAccountListParams::PendingBalanceAmount }

#per_pageInteger?

Returns:

  • (Integer, nil)


97
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 97

optional :per_page, Integer

#posted_balance_amountModernTreasury::Models::LedgerAccountListParams::PostedBalanceAmount?

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.



104
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 104

optional :posted_balance_amount, -> { ModernTreasury::LedgerAccountListParams::PostedBalanceAmount }

#updated_atHash{Symbol=>Time}?

Use ‘gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the updated at timestamp. For example, for all times after Jan 1 2000 12:00 UTC, use updated_at%5Bgt%5D=2000-01-01T12:00:00Z.

Returns:

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


112
# File 'lib/modern_treasury/models/ledger_account_list_params.rb', line 112

optional :updated_at, ModernTreasury::Internal::Type::HashOf[Time]