Class: MetronomeSDK::Models::Override
Defined Under Namespace
Modules: RateType, Target, Type
Classes: OverrideSpecifier, Product
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , name: ) ⇒ Object
|
# File 'lib/metronome_sdk/models/override.rb', line 243
|
Instance Attribute Details
19
|
# File 'lib/metronome_sdk/models/override.rb', line 19
optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]
|
24
|
# File 'lib/metronome_sdk/models/override.rb', line 24
optional :credit_type, -> { MetronomeSDK::CreditTypeData }
|
#ending_before ⇒ Time?
29
|
# File 'lib/metronome_sdk/models/override.rb', line 29
optional :ending_before, Time
|
#entitled ⇒ Boolean?
34
|
# File 'lib/metronome_sdk/models/override.rb', line 34
optional :entitled, MetronomeSDK::Internal::Type::Boolean
|
#id ⇒ String
9
|
# File 'lib/metronome_sdk/models/override.rb', line 9
required :id, String
|
#is_commit_specific ⇒ Boolean?
39
|
# File 'lib/metronome_sdk/models/override.rb', line 39
optional :is_commit_specific, MetronomeSDK::Internal::Type::Boolean
|
#is_prorated ⇒ Boolean?
Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.
46
|
# File 'lib/metronome_sdk/models/override.rb', line 46
optional :is_prorated, MetronomeSDK::Internal::Type::Boolean
|
#multiplier ⇒ Float?
51
|
# File 'lib/metronome_sdk/models/override.rb', line 51
optional :multiplier, Float
|
56
57
|
# File 'lib/metronome_sdk/models/override.rb', line 56
optional :override_specifiers,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Override::OverrideSpecifier] }
|
62
|
# File 'lib/metronome_sdk/models/override.rb', line 62
optional :override_tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::OverrideTier] }
|
67
|
# File 'lib/metronome_sdk/models/override.rb', line 67
optional :overwrite_rate, -> { MetronomeSDK::OverwriteRate }
|
#price ⇒ Float?
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.
74
|
# File 'lib/metronome_sdk/models/override.rb', line 74
optional :price, Float
|
#priority ⇒ Float?
79
|
# File 'lib/metronome_sdk/models/override.rb', line 79
optional :priority, Float
|
84
|
# File 'lib/metronome_sdk/models/override.rb', line 84
optional :product, -> { MetronomeSDK::Override::Product }
|
#quantity ⇒ Float?
Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
90
|
# File 'lib/metronome_sdk/models/override.rb', line 90
optional :quantity, Float
|
#rate_type ⇒ Symbol, ...
95
|
# File 'lib/metronome_sdk/models/override.rb', line 95
optional :rate_type, enum: -> { MetronomeSDK::Override::RateType }
|
#starting_at ⇒ Time
14
|
# File 'lib/metronome_sdk/models/override.rb', line 14
required :starting_at, Time
|
#target ⇒ Symbol, ...
100
|
# File 'lib/metronome_sdk/models/override.rb', line 100
optional :target, enum: -> { MetronomeSDK::Override::Target }
|
Only set for TIERED rate_type.
106
|
# File 'lib/metronome_sdk/models/override.rb', line 106
optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Tier] }
|
#type ⇒ Symbol, ...
111
|
# File 'lib/metronome_sdk/models/override.rb', line 111
optional :type, enum: -> { MetronomeSDK::Override::Type }
|
#value ⇒ Hash{Symbol=>Object}?
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
118
|
# File 'lib/metronome_sdk/models/override.rb', line 118
optional :value, MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown]
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/metronome_sdk/models/override.rb', line 226
|