Class: MetronomeSDK::Models::V2::ContractEditParams::AddOverride

Inherits:
Internal::Type::BaseModel show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

Parameters:

  • multiplier (Float) (defaults to: )
  • size (Float) (defaults to: nil)


# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1718

Instance Attribute Details

#applicable_product_tagsArray<String>?

tags identifying products whose rates are being overridden

Returns:

  • (Array<String>, nil)


1407
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1407

optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]

#ending_beforeTime?

RFC 3339 timestamp indicating when the override will stop applying (exclusive)

Returns:

  • (Time, nil)


1413
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1413

optional :ending_before, Time

#entitledBoolean?

Returns:

  • (Boolean, nil)


1418
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1418

optional :entitled, MetronomeSDK::Internal::Type::Boolean

#is_commit_specificBoolean?

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`.

Returns:

  • (Boolean, nil)


1426
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1426

optional :is_commit_specific, MetronomeSDK::Internal::Type::Boolean

#multiplierFloat?

Required for MULTIPLIER type. Must be >=0.

Returns:

  • (Float, nil)


1432
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1432

optional :multiplier, Float

#override_specifiersArray<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_rateMetronomeSDK::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 }

#priorityFloat?

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.

Returns:

  • (Float, nil)


1455
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1455

optional :priority, Float

#product_idString?

ID of the product whose rate is being overridden

Returns:

  • (String, nil)


1461
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1461

optional :product_id, String

#starting_atTime

RFC 3339 timestamp indicating when the override will start applying (inclusive)

Returns:

  • (Time)


1401
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1401

required :starting_at, Time

#targetSymbol, ...

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 }

#tiersArray<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] }

#typeSymbol, ...

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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1605