Class: Orb::Models::Price::MatrixWithAllocation
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: , invoicing_cycle_configuration: , item: , matrix_with_allocation_config: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :matrix_with_allocation) ⇒ 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: , invoicing_cycle_configuration: , item: , matrix_with_allocation_config: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :matrix_with_allocation) ⇒ Object
|
# File 'lib/orb/models/price.rb', line 3825
|
Instance Attribute Details
3690
|
# File 'lib/orb/models/price.rb', line 3690
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
3695
|
# File 'lib/orb/models/price.rb', line 3695
required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration }
|
3700
|
# File 'lib/orb/models/price.rb', line 3700
required :cadence, enum: -> { Orb::Price::MatrixWithAllocation::Cadence }
|
#conversion_rate ⇒ Float?
3705
|
# File 'lib/orb/models/price.rb', line 3705
required :conversion_rate, Float, nil?: true
|
3710
3711
3712
|
# File 'lib/orb/models/price.rb', line 3710
required :conversion_rate_config,
union: -> { Orb::Price::MatrixWithAllocation::ConversionRateConfig },
nil?: true
|
#created_at ⇒ Time
3717
|
# File 'lib/orb/models/price.rb', line 3717
required :created_at, Time
|
3722
|
# File 'lib/orb/models/price.rb', line 3722
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
#currency ⇒ String
3727
|
# File 'lib/orb/models/price.rb', line 3727
required :currency, String
|
3823
|
# File 'lib/orb/models/price.rb', line 3823
optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true
|
3733
|
# File 'lib/orb/models/price.rb', line 3733
required :discount, union: -> { Orb::Discount }, nil?: true
|
#external_price_id ⇒ String?
3738
|
# File 'lib/orb/models/price.rb', line 3738
required :external_price_id, String, nil?: true
|
#fixed_price_quantity ⇒ Float?
3743
|
# File 'lib/orb/models/price.rb', line 3743
required :fixed_price_quantity, Float, nil?: true
|
#id ⇒ String
3685
|
# File 'lib/orb/models/price.rb', line 3685
required :id, String
|
3748
|
# File 'lib/orb/models/price.rb', line 3748
required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true
|
3753
|
# File 'lib/orb/models/price.rb', line 3753
required :item, -> { Orb::ItemSlim }
|
3758
|
# File 'lib/orb/models/price.rb', line 3758
required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig }
|
3764
|
# File 'lib/orb/models/price.rb', line 3764
required :maximum, -> { Orb::Maximum }, nil?: true
|
#maximum_amount ⇒ String?
3770
|
# File 'lib/orb/models/price.rb', line 3770
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`.
3779
|
# File 'lib/orb/models/price.rb', line 3779
required :metadata, Orb::Internal::Type::HashOf[String]
|
3785
|
# File 'lib/orb/models/price.rb', line 3785
required :minimum, -> { Orb::Minimum }, nil?: true
|
#minimum_amount ⇒ String?
3791
|
# File 'lib/orb/models/price.rb', line 3791
required :minimum_amount, String, nil?: true
|
#model_type ⇒ Symbol, :matrix_with_allocation
3796
|
# File 'lib/orb/models/price.rb', line 3796
required :model_type, const: :matrix_with_allocation
|
#name ⇒ String
3801
|
# File 'lib/orb/models/price.rb', line 3801
required :name, String
|
#plan_phase_order ⇒ Integer?
3806
|
# File 'lib/orb/models/price.rb', line 3806
required :plan_phase_order, Integer, nil?: true
|
3811
|
# File 'lib/orb/models/price.rb', line 3811
required :price_type, enum: -> { Orb::Price::MatrixWithAllocation::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.
3818
|
# File 'lib/orb/models/price.rb', line 3818
required :replaces_price_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/orb/models/price.rb', line 3892
|
|
# File 'lib/orb/models/price.rb', line 3906
|