Class: MetronomeSDK::Models::V1::ContractListBalancesParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/metronome_sdk/models/v1/contract_list_balances_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(customer_id: , id: nil, covering_date: nil, effective_before: nil, exclude_zero_balances: nil, include_archived: nil, include_balance: nil, include_contract_balances: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::ContractListBalancesParams for more details.

Parameters:

  • customer_id (String) (defaults to: )
  • id (String) (defaults to: nil)
  • covering_date (Time) (defaults to: nil)

    Return only balances that have access schedules that “cover” the provided date

  • effective_before (Time) (defaults to: nil)

    Include only balances that have any access before the provided date (exclusive)

  • exclude_zero_balances (Boolean) (defaults to: nil)

    Exclude balances with zero amounts from the response.

  • include_archived (Boolean) (defaults to: nil)

    Include archived credits and credits from archived contracts.

  • include_balance (Boolean) (defaults to: nil)

    Include the balance of credits and commits in the response. Setting this flag ma

  • include_contract_balances (Boolean) (defaults to: nil)

    Include balances on the contract level.

  • include_ledgers (Boolean) (defaults to: nil)

    Include ledgers in the response. Setting this flag may cause the query to be slo

  • limit (Integer) (defaults to: nil)

    The maximum number of commits to return. Defaults to 25.

  • next_page (String) (defaults to: nil)

    The next page token from a previous response.

  • starting_at (Time) (defaults to: nil)

    Include only balances that have any access on or after the provided date

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


# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 83


Instance Attribute Details

#covering_dateTime?

Return only balances that have access schedules that “cover” the provided date

Returns:

  • (Time, nil)


25
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 25

optional :covering_date, Time

#customer_idString

Returns:

  • (String)


14
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 14

required :customer_id, String

#effective_beforeTime?

Include only balances that have any access before the provided date (exclusive)

Returns:

  • (Time, nil)


31
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 31

optional :effective_before, Time

#exclude_zero_balancesBoolean?

Exclude balances with zero amounts from the response.

Returns:

  • (Boolean, nil)


37
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 37

optional :exclude_zero_balances, MetronomeSDK::Internal::Type::Boolean

#idString?

Returns:

  • (String, nil)


19
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 19

optional :id, String

#include_archivedBoolean?

Include archived credits and credits from archived contracts.

Returns:

  • (Boolean, nil)


43
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 43

optional :include_archived, MetronomeSDK::Internal::Type::Boolean

#include_balanceBoolean?

Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.

Returns:

  • (Boolean, nil)


50
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 50

optional :include_balance, MetronomeSDK::Internal::Type::Boolean

#include_contract_balancesBoolean?

Include balances on the contract level.

Returns:

  • (Boolean, nil)


56
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 56

optional :include_contract_balances, MetronomeSDK::Internal::Type::Boolean

#include_ledgersBoolean?

Include ledgers in the response. Setting this flag may cause the query to be slower.

Returns:

  • (Boolean, nil)


63
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 63

optional :include_ledgers, MetronomeSDK::Internal::Type::Boolean

#limitInteger?

The maximum number of commits to return. Defaults to 25.

Returns:

  • (Integer, nil)


69
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 69

optional :limit, Integer

#next_pageString?

The next page token from a previous response.

Returns:

  • (String, nil)


75
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 75

optional :next_page, String

#starting_atTime?

Include only balances that have any access on or after the provided date

Returns:

  • (Time, nil)


81
# File 'lib/metronome_sdk/models/v1/contract_list_balances_params.rb', line 81

optional :starting_at, Time