Class: MetronomeSDK::Models::Override

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

Defined Under Namespace

Modules: RateType, Target, Type Classes: OverrideSpecifier, 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/override.rb', line 243


Instance Attribute Details

#applicable_product_tagsArray<String>?

Returns:

  • (Array<String>, nil)


19
# File 'lib/metronome_sdk/models/override.rb', line 19

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

#credit_typeMetronomeSDK::Models::CreditTypeData?



24
# File 'lib/metronome_sdk/models/override.rb', line 24

optional :credit_type, -> { MetronomeSDK::CreditTypeData }

#ending_beforeTime?

Returns:

  • (Time, nil)


29
# File 'lib/metronome_sdk/models/override.rb', line 29

optional :ending_before, Time

#entitledBoolean?

Returns:

  • (Boolean, nil)


34
# File 'lib/metronome_sdk/models/override.rb', line 34

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

#idString

Returns:

  • (String)


9
# File 'lib/metronome_sdk/models/override.rb', line 9

required :id, String

#is_commit_specificBoolean?

Returns:

  • (Boolean, nil)


39
# File 'lib/metronome_sdk/models/override.rb', line 39

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

#is_proratedBoolean?

Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.

Returns:

  • (Boolean, nil)


46
# File 'lib/metronome_sdk/models/override.rb', line 46

optional :is_prorated, MetronomeSDK::Internal::Type::Boolean

#multiplierFloat?

Returns:

  • (Float, nil)


51
# File 'lib/metronome_sdk/models/override.rb', line 51

optional :multiplier, Float

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



56
57
# File 'lib/metronome_sdk/models/override.rb', line 56

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

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

Returns:



62
# File 'lib/metronome_sdk/models/override.rb', line 62

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

#overwrite_rateMetronomeSDK::Models::OverwriteRate?



67
# File 'lib/metronome_sdk/models/override.rb', line 67

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

#priceFloat?

Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.

Returns:

  • (Float, nil)


74
# File 'lib/metronome_sdk/models/override.rb', line 74

optional :price, Float

#priorityFloat?

Returns:

  • (Float, nil)


79
# File 'lib/metronome_sdk/models/override.rb', line 79

optional :priority, Float

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



84
# File 'lib/metronome_sdk/models/override.rb', line 84

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

#quantityFloat?

Default quantity. For SUBSCRIPTION rate_type, this must be >=0.

Returns:

  • (Float, nil)


90
# File 'lib/metronome_sdk/models/override.rb', line 90

optional :quantity, Float

#rate_typeSymbol, ...



95
# File 'lib/metronome_sdk/models/override.rb', line 95

optional :rate_type, enum: -> { MetronomeSDK::Override::RateType }

#starting_atTime

Returns:

  • (Time)


14
# File 'lib/metronome_sdk/models/override.rb', line 14

required :starting_at, Time

#targetSymbol, ...

Returns:



100
# File 'lib/metronome_sdk/models/override.rb', line 100

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

#tiersArray<MetronomeSDK::Models::Tier>?

Only set for TIERED rate_type.

Returns:



106
# File 'lib/metronome_sdk/models/override.rb', line 106

optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Tier] }

#typeSymbol, ...

Returns:



111
# File 'lib/metronome_sdk/models/override.rb', line 111

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

#valueHash{Symbol=>Object}?

Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.

Returns:

  • (Hash{Symbol=>Object}, nil)


118
# File 'lib/metronome_sdk/models/override.rb', line 118

optional :value, MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown]

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/override.rb', line 226