Class: MetronomeSDK::Models::V1::ContractCreateParams::Override
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractCreateParams::Override
- Defined in:
- lib/metronome_sdk/models/v1/contract_create_params.rb
Defined Under Namespace
Modules: Target, Type Classes: OverrideSpecifier, OverwriteRate, Tier
Instance Attribute Summary collapse
-
#applicable_product_tags ⇒ Array<String>?
tags identifying products whose rates are being overridden.
-
#ending_before ⇒ Time?
RFC 3339 timestamp indicating when the override will stop applying (exclusive).
- #entitled ⇒ Boolean?
-
#is_commit_specific ⇒ Boolean?
Indicates whether the override should only apply to commits.
-
#multiplier ⇒ Float?
Required for MULTIPLIER type.
-
#override_specifiers ⇒ Array<MetronomeSDK::Models::V1::ContractCreateParams::Override::OverrideSpecifier>?
Cannot be used in conjunction with product_id or applicable_product_tags.
-
#overwrite_rate ⇒ MetronomeSDK::Models::V1::ContractCreateParams::Override::OverwriteRate?
Required for OVERWRITE type.
-
#priority ⇒ Float?
Required for EXPLICIT multiplier prioritization scheme and all TIERED overrides.
-
#product_id ⇒ String?
ID of the product whose rate is being overridden.
-
#starting_at ⇒ Time
RFC 3339 timestamp indicating when the override will start applying (inclusive).
-
#target ⇒ Symbol, ...
Indicates whether the override applies to commit rates or list rates.
-
#tiers ⇒ Array<MetronomeSDK::Models::V1::ContractCreateParams::Override::Tier>?
Required for TIERED type.
-
#type ⇒ Symbol, ...
Overwrites are prioritized over multipliers and tiered overrides.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(multiplier: , size: nil) ⇒ Object constructor
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(multiplier: , size: nil) ⇒ Object
|
|
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1835
|
Instance Attribute Details
#applicable_product_tags ⇒ Array<String>?
tags identifying products whose rates are being overridden. Cannot be used in conjunction with override_specifiers.
1522 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1522 optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String] |
#ending_before ⇒ Time?
RFC 3339 timestamp indicating when the override will stop applying (exclusive)
1528 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1528 optional :ending_before, Time |
#entitled ⇒ Boolean?
1533 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1533 optional :entitled, MetronomeSDK::Internal::Type::Boolean |
#is_commit_specific ⇒ Boolean?
Indicates whether the override should only apply to commits. Defaults to ‘false`. If `true`, you can specify relevant commits in `override_specifiers` by passing `commit_ids`. if you do not specify `commit_ids`, then the override will apply when consuming any prepaid or postpaid commit.
1542 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1542 optional :is_commit_specific, MetronomeSDK::Internal::Type::Boolean |
#multiplier ⇒ Float?
Required for MULTIPLIER type. Must be >=0.
1548 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1548 optional :multiplier, Float |
#override_specifiers ⇒ Array<MetronomeSDK::Models::V1::ContractCreateParams::Override::OverrideSpecifier>?
Cannot be used in conjunction with product_id or applicable_product_tags. If provided, the override will apply to all products with the specified specifiers.
1555 1556 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1555 optional :override_specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::Override::OverrideSpecifier] } |
#overwrite_rate ⇒ MetronomeSDK::Models::V1::ContractCreateParams::Override::OverwriteRate?
Required for OVERWRITE type.
1562 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1562 optional :overwrite_rate, -> { MetronomeSDK::V1::ContractCreateParams::Override::OverwriteRate } |
#priority ⇒ Float?
Required for EXPLICIT multiplier prioritization scheme and all TIERED overrides. Under EXPLICIT prioritization, overwrites are prioritized first, and then tiered and multiplier overrides are prioritized by their priority value (lowest first). Must be > 0.
1571 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1571 optional :priority, Float |
#product_id ⇒ String?
ID of the product whose rate is being overridden. Cannot be used in conjunction with override_specifiers.
1578 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1578 optional :product_id, String |
#starting_at ⇒ Time
RFC 3339 timestamp indicating when the override will start applying (inclusive)
1515 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1515 required :starting_at, Time |
#target ⇒ Symbol, ...
Indicates whether the override applies to commit rates or list rates. Can only be used for overrides that have ‘is_commit_specific` set to `true`. Defaults to `“LIST_RATE”`.
1586 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1586 optional :target, enum: -> { MetronomeSDK::V1::ContractCreateParams::Override::Target } |
#tiers ⇒ Array<MetronomeSDK::Models::V1::ContractCreateParams::Override::Tier>?
Required for TIERED type. Must have at least one tier.
1592 1593 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1592 optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::Override::Tier] } |
#type ⇒ Symbol, ...
Overwrites are prioritized over multipliers and tiered overrides.
1599 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1599 optional :type, enum: -> { MetronomeSDK::V1::ContractCreateParams::Override::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1722
|