Class: Orb::Models::Price::PackageWithAllocation
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: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , package_with_allocation_config: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :package_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: , maximum: , maximum_amount: , metadata: , minimum: , minimum_amount: , name: , package_with_allocation_config: , plan_phase_order: , price_type: , replaces_price_id: , dimensional_price_configuration: nil, model_type: :package_with_allocation) ⇒ Object
|
# File 'lib/orb/models/price.rb', line 3343
|
Instance Attribute Details
3208
|
# File 'lib/orb/models/price.rb', line 3208
required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true
|
3218
|
# File 'lib/orb/models/price.rb', line 3218
required :cadence, enum: -> { Orb::Price::PackageWithAllocation::Cadence }
|
#conversion_rate ⇒ Float?
3223
|
# File 'lib/orb/models/price.rb', line 3223
required :conversion_rate, Float, nil?: true
|
3228
3229
3230
|
# File 'lib/orb/models/price.rb', line 3228
required :conversion_rate_config,
union: -> { Orb::Price::PackageWithAllocation::ConversionRateConfig },
nil?: true
|
#created_at ⇒ Time
3235
|
# File 'lib/orb/models/price.rb', line 3235
required :created_at, Time
|
3240
|
# File 'lib/orb/models/price.rb', line 3240
required :credit_allocation, -> { Orb::Allocation }, nil?: true
|
#currency ⇒ String
3245
|
# File 'lib/orb/models/price.rb', line 3245
required :currency, String
|
3251
|
# File 'lib/orb/models/price.rb', line 3251
required :discount, union: -> { Orb::Discount }, nil?: true
|
#external_price_id ⇒ String?
3256
|
# File 'lib/orb/models/price.rb', line 3256
required :external_price_id, String, nil?: true
|
#fixed_price_quantity ⇒ Float?
3261
|
# File 'lib/orb/models/price.rb', line 3261
required :fixed_price_quantity, Float, nil?: true
|
#id ⇒ String
3203
|
# File 'lib/orb/models/price.rb', line 3203
required :id, String
|
3271
|
# File 'lib/orb/models/price.rb', line 3271
required :item, -> { Orb::ItemSlim }
|
3277
|
# File 'lib/orb/models/price.rb', line 3277
required :maximum, -> { Orb::Maximum }, nil?: true
|
#maximum_amount ⇒ String?
3283
|
# File 'lib/orb/models/price.rb', line 3283
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`.
3298
|
# File 'lib/orb/models/price.rb', line 3298
required :minimum, -> { Orb::Minimum }, nil?: true
|
#minimum_amount ⇒ String?
3304
|
# File 'lib/orb/models/price.rb', line 3304
required :minimum_amount, String, nil?: true
|
#model_type ⇒ Symbol, :package_with_allocation
3309
|
# File 'lib/orb/models/price.rb', line 3309
required :model_type, const: :package_with_allocation
|
#name ⇒ String
3314
|
# File 'lib/orb/models/price.rb', line 3314
required :name, String
|
#package_with_allocation_config ⇒ Hash{Symbol=>Object}
#plan_phase_order ⇒ Integer?
3324
|
# File 'lib/orb/models/price.rb', line 3324
required :plan_phase_order, Integer, nil?: true
|
3329
|
# File 'lib/orb/models/price.rb', line 3329
required :price_type, enum: -> { Orb::Price::PackageWithAllocation::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.
3336
|
# File 'lib/orb/models/price.rb', line 3336
required :replaces_price_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/orb/models/price.rb', line 3410
|
|
# File 'lib/orb/models/price.rb', line 3424
|