Class: Orb::Models::Price::GroupedWithMinMaxThresholds
Defined Under Namespace
Modules: Cadence, ConversionRateConfig, PriceType
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
-
#initialize(id: , billable_metric: , billing_cycle_configuration: , cadence: , conversion_rate: , conversion_rate_config: , created_at: , credit_allocation: , currency: , discount: , external_price_id: , fixed_price_quantity: , grouped_with_min_max_thresholds_config: , invoicing_cycle_configuration: , item: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) ⇒ Object
constructor
==, #==, #[], 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: , billable_metric: , billing_cycle_configuration: , cadence: , conversion_rate: , conversion_rate_config: , created_at: , credit_allocation: , currency: , discount: , external_price_id: , fixed_price_quantity: , grouped_with_min_max_thresholds_config: , invoicing_cycle_configuration: , item: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) ⇒ Object
|
# File 'lib/orb/models/price.rb', line 6961
|
Instance Attribute Details
6825
|
# File 'lib/orb/models/price.rb', line 6825
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
6835
|
# File 'lib/orb/models/price.rb', line 6835
required :cadence, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::Cadence }
|
#conversion_rate ⇒ Float?
6840
|
# File 'lib/orb/models/price.rb', line 6840
required :conversion_rate, Float, nil?: true
|
6845
6846
6847
|
# File 'lib/orb/models/price.rb', line 6845
required :conversion_rate_config,
union: -> { Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig },
nil?: true
|
#created_at ⇒ Time
6852
|
# File 'lib/orb/models/price.rb', line 6852
required :created_at, Time
|
6857
|
# File 'lib/orb/models/price.rb', line 6857
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
#currency ⇒ String
6862
|
# File 'lib/orb/models/price.rb', line 6862
required :currency, String
|
6868
|
# File 'lib/orb/models/price.rb', line 6868
required :discount, union: -> { Orb::Discount }, nil?: true
|
#external_price_id ⇒ String?
6873
|
# File 'lib/orb/models/price.rb', line 6873
required :external_price_id, String, nil?: true
|
#fixed_price_quantity ⇒ Float?
6878
|
# File 'lib/orb/models/price.rb', line 6878
required :fixed_price_quantity, Float, nil?: true
|
#grouped_with_min_max_thresholds_config ⇒ Hash{Symbol=>Object}
#id ⇒ String
6820
|
# File 'lib/orb/models/price.rb', line 6820
required :id, String
|
6894
|
# File 'lib/orb/models/price.rb', line 6894
required :item, -> { Orb::ItemSlim }
|
6900
|
# File 'lib/orb/models/price.rb', line 6900
required :maximum, -> { Orb::Maximum }, nil?: true
|
#maximum_amount ⇒ String?
6906
|
# File 'lib/orb/models/price.rb', line 6906
required :maximum_amount, String, nil?: true
|
User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to ‘null`, and the entire metadata mapping can be cleared by setting `metadata` to `null`.
6921
|
# File 'lib/orb/models/price.rb', line 6921
required :minimum, -> { Orb::Minimum }, nil?: true
|
#minimum_amount ⇒ String?
6927
|
# File 'lib/orb/models/price.rb', line 6927
required :minimum_amount, String, nil?: true
|
#model_type ⇒ Symbol, :grouped_with_min_max_thresholds
6932
|
# File 'lib/orb/models/price.rb', line 6932
required :model_type, const: :grouped_with_min_max_thresholds
|
#name ⇒ String
6937
|
# File 'lib/orb/models/price.rb', line 6937
required :name, String
|
#plan_phase_order ⇒ Integer?
6942
|
# File 'lib/orb/models/price.rb', line 6942
required :plan_phase_order, Integer, nil?: true
|
6947
|
# File 'lib/orb/models/price.rb', line 6947
required :price_type, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::PriceType }
|
#replaces_price_id ⇒ String?
The price id this price replaces. This price will take the place of the replaced price in plan version migrations.
6954
|
# File 'lib/orb/models/price.rb', line 6954
required :replaces_price_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/orb/models/price.rb', line 7028
|
|
# File 'lib/orb/models/price.rb', line 7042
|