Class: MetronomeSDK::Models::ContractV2::Override

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

Defined Under Namespace

Modules: Target, Type Classes: OverrideSpecifier, OverwriteRate, Product

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(id: , name: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • name (String) (defaults to: )


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


Instance Attribute Details

#applicable_product_tagsArray<String>?

Returns:

  • (Array<String>, nil)


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

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

#ending_beforeTime?

Returns:

  • (Time, nil)


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

optional :ending_before, Time

#entitledBoolean?

Returns:

  • (Boolean, nil)


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

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

#idString

Returns:

  • (String)


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

required :id, String

#is_commit_specificBoolean?

Returns:

  • (Boolean, nil)


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

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

#multiplierFloat?

Returns:

  • (Float, nil)


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

optional :multiplier, Float

#override_specifiersArray<MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier>?



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

optional :override_specifiers,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::ContractV2::Override::OverrideSpecifier] }

#override_tiersArray<MetronomeSDK::Models::OverrideTier>?

Returns:



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

optional :override_tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::OverrideTier] }

#overwrite_rateMetronomeSDK::Models::ContractV2::Override::OverwriteRate?



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

optional :overwrite_rate, -> { MetronomeSDK::ContractV2::Override::OverwriteRate }

#priorityFloat?

Returns:

  • (Float, nil)


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

optional :priority, Float

#productMetronomeSDK::Models::ContractV2::Override::Product?



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

optional :product, -> { MetronomeSDK::ContractV2::Override::Product }

#starting_atTime

Returns:

  • (Time)


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

required :starting_at, Time

#targetSymbol, ...



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

optional :target, enum: -> { MetronomeSDK::ContractV2::Override::Target }

#typeSymbol, ...



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

optional :type, enum: -> { MetronomeSDK::ContractV2::Override::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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