Class: Orb::Models::Price::GroupedAllocation
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_allocation_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_allocation) ⇒ Object
constructor
Some parameter documentations has been truncated, see GroupedAllocation for more details.
==, #==, #[], 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_allocation_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_allocation) ⇒ Object
|
# File 'lib/orb/models/price.rb', line 4548
|
Instance Attribute Details
4413
|
# File 'lib/orb/models/price.rb', line 4413
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
4423
|
# File 'lib/orb/models/price.rb', line 4423
required :cadence, enum: -> { Orb::Price::GroupedAllocation::Cadence }
|
#conversion_rate ⇒ Float?
4428
|
# File 'lib/orb/models/price.rb', line 4428
required :conversion_rate, Float, nil?: true
|
4433
4434
4435
|
# File 'lib/orb/models/price.rb', line 4433
required :conversion_rate_config,
union: -> { Orb::Price::GroupedAllocation::ConversionRateConfig },
nil?: true
|
#created_at ⇒ Time
4440
|
# File 'lib/orb/models/price.rb', line 4440
required :created_at, Time
|
4445
|
# File 'lib/orb/models/price.rb', line 4445
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
#currency ⇒ String
4450
|
# File 'lib/orb/models/price.rb', line 4450
required :currency, String
|
4456
|
# File 'lib/orb/models/price.rb', line 4456
required :discount, union: -> { Orb::Discount }, nil?: true
|
#external_price_id ⇒ String?
4461
|
# File 'lib/orb/models/price.rb', line 4461
required :external_price_id, String, nil?: true
|
#fixed_price_quantity ⇒ Float?
4466
|
# File 'lib/orb/models/price.rb', line 4466
required :fixed_price_quantity, Float, nil?: true
|
#grouped_allocation_config ⇒ Hash{Symbol=>Object}
#id ⇒ String
4408
|
# File 'lib/orb/models/price.rb', line 4408
required :id, String
|
4481
|
# File 'lib/orb/models/price.rb', line 4481
required :item, -> { Orb::ItemSlim }
|
4487
|
# File 'lib/orb/models/price.rb', line 4487
required :maximum, -> { Orb::Maximum }, nil?: true
|
#maximum_amount ⇒ String?
4493
|
# File 'lib/orb/models/price.rb', line 4493
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`.
4508
|
# File 'lib/orb/models/price.rb', line 4508
required :minimum, -> { Orb::Minimum }, nil?: true
|
#minimum_amount ⇒ String?
4514
|
# File 'lib/orb/models/price.rb', line 4514
required :minimum_amount, String, nil?: true
|
#model_type ⇒ Symbol, :grouped_allocation
4519
|
# File 'lib/orb/models/price.rb', line 4519
required :model_type, const: :grouped_allocation
|
#name ⇒ String
4524
|
# File 'lib/orb/models/price.rb', line 4524
required :name, String
|
#plan_phase_order ⇒ Integer?
4529
|
# File 'lib/orb/models/price.rb', line 4529
required :plan_phase_order, Integer, nil?: true
|
4534
|
# File 'lib/orb/models/price.rb', line 4534
required :price_type, enum: -> { Orb::Price::GroupedAllocation::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.
4541
|
# File 'lib/orb/models/price.rb', line 4541
required :replaces_price_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/orb/models/price.rb', line 4615
|
|
# File 'lib/orb/models/price.rb', line 4629
|