Class: MetronomeSDK::Models::V2::ContractEditParams::AddOverride
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditParams::AddOverride
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_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::V2::ContractEditParams::AddOverride::OverrideSpecifier>?
Cannot be used in conjunction with product_id or applicable_product_tags.
-
#overwrite_rate ⇒ MetronomeSDK::Models::V2::ContractEditParams::AddOverride::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::V2::ContractEditParams::AddOverride::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/v2/contract_edit_params.rb', line 1718
|
Instance Attribute Details
#applicable_product_tags ⇒ Array<String>?
tags identifying products whose rates are being overridden
1407 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1407 optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String] |
#ending_before ⇒ Time?
RFC 3339 timestamp indicating when the override will stop applying (exclusive)
1413 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1413 optional :ending_before, Time |
#entitled ⇒ Boolean?
1418 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1418 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`.
1426 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1426 optional :is_commit_specific, MetronomeSDK::Internal::Type::Boolean |
#multiplier ⇒ Float?
Required for MULTIPLIER type. Must be >=0.
1432 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1432 optional :multiplier, Float |
#override_specifiers ⇒ Array<MetronomeSDK::Models::V2::ContractEditParams::AddOverride::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.
1439 1440 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1439 optional :override_specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditParams::AddOverride::OverrideSpecifier] } |
#overwrite_rate ⇒ MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate?
Required for OVERWRITE type.
1446 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1446 optional :overwrite_rate, -> { MetronomeSDK::V2::ContractEditParams::AddOverride::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.
1455 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1455 optional :priority, Float |
#product_id ⇒ String?
ID of the product whose rate is being overridden
1461 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1461 optional :product_id, String |
#starting_at ⇒ Time
RFC 3339 timestamp indicating when the override will start applying (inclusive)
1401 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1401 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”`.
1469 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1469 optional :target, enum: -> { MetronomeSDK::V2::ContractEditParams::AddOverride::Target } |
#tiers ⇒ Array<MetronomeSDK::Models::V2::ContractEditParams::AddOverride::Tier>?
Required for TIERED type. Must have at least one tier.
1475 1476 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1475 optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditParams::AddOverride::Tier] } |
#type ⇒ Symbol, ...
Overwrites are prioritized over multipliers and tiered overrides.
1482 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1482 optional :type, enum: -> { MetronomeSDK::V2::ContractEditParams::AddOverride::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1605
|