Class: MetronomeSDK::Models::ContractV2::UsageFilter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/contract_v2.rb

Instance Attribute Summary collapse

Method Summary

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 MetronomeSDK::Internal::Type::BaseModel

Instance Attribute Details

#ending_beforeTime?

This will match contract ending_before value if usage filter is active until the end of the contract. It will be undefined if the contract is open-ended.

Returns:

  • (Time, nil)


1547
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1547

optional :ending_before, Time

#group_keyString

Returns:

  • (String)


1528
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1528

required :group_key, String

#group_valuesArray<String>

Returns:

  • (Array<String>)


1533
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1533

required :group_values, MetronomeSDK::Internal::Type::ArrayOf[String]

#starting_atTime

This will match contract starting_at value if usage filter is active from the beginning of the contract.

Returns:

  • (Time)


1540
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1540

required :starting_at, Time