Class: Orb::Models::BetaCreatePlanVersionParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::BetaCreatePlanVersionParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/orb/models/beta_create_plan_version_params.rb
Overview
Defined Under Namespace
Classes: AddAdjustment, AddPrice, RemoveAdjustment, RemovePrice, ReplaceAdjustment, ReplacePrice
Instance Attribute Summary collapse
-
#add_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::AddAdjustment>?
Additional adjustments to be added to the plan.
-
#add_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::AddPrice>?
Additional prices to be added to the plan.
-
#remove_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::RemoveAdjustment>?
Adjustments to be removed from the plan.
-
#remove_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::RemovePrice>?
Prices to be removed from the plan.
-
#replace_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment>?
Adjustments to be replaced with additional adjustments on the plan.
-
#replace_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::ReplacePrice>?
Prices to be replaced with additional prices on the plan.
-
#set_as_default ⇒ Boolean?
Set this new plan version as the default.
-
#version ⇒ Integer
New version number.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(price_id: , plan_phase_order: nil) ⇒ Object
|
|
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 238
|
Instance Attribute Details
#add_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::AddAdjustment>?
Additional adjustments to be added to the plan.
20 21 22 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 20 optional :add_adjustments, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::AddAdjustment] }, nil?: true |
#add_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::AddPrice>?
Additional prices to be added to the plan.
28 29 30 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 28 optional :add_prices, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::AddPrice] }, nil?: true |
#remove_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::RemoveAdjustment>?
Adjustments to be removed from the plan.
36 37 38 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 36 optional :remove_adjustments, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::RemoveAdjustment] }, nil?: true |
#remove_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::RemovePrice>?
Prices to be removed from the plan.
44 45 46 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 44 optional :remove_prices, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::RemovePrice] }, nil?: true |
#replace_adjustments ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment>?
Adjustments to be replaced with additional adjustments on the plan.
52 53 54 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 52 optional :replace_adjustments, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment] }, nil?: true |
#replace_prices ⇒ Array<Orb::Models::BetaCreatePlanVersionParams::ReplacePrice>?
Prices to be replaced with additional prices on the plan.
60 61 62 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 60 optional :replace_prices, -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::ReplacePrice] }, nil?: true |
#set_as_default ⇒ Boolean?
Set this new plan version as the default
68 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 68 optional :set_as_default, Orb::Internal::Type::Boolean, nil?: true |
#version ⇒ Integer
New version number.
14 |
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 14 required :version, Integer |
Class Method Details
.variants ⇒ Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum)
|
|
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 125
|