Class: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/beta_create_plan_version_params.rb

Defined Under Namespace

Modules: Price

Instance Attribute Summary collapse

Instance Method Summary collapse

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(replaces_price_id: , allocation_price: nil, plan_phase_order: nil, price: nil) ⇒ Object

Parameters:



# File 'lib/orb/models/beta_create_plan_version_params.rb', line 337


Instance Attribute Details

#allocation_priceOrb::Models::NewAllocationPrice?

The allocation price to add to the plan.



323
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 323

optional :allocation_price, -> { Orb::NewAllocationPrice }, nil?: true

#plan_phase_orderInteger?

The phase to replace this price from.

Returns:

  • (Integer, nil)


329
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 329

optional :plan_phase_order, Integer, nil?: true

#priceOrb::Models::NewPlanUnitPrice, ...

The price to add to the plan



335
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 335

optional :price, union: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price }, nil?: true

#replaces_price_idString

The id of the price on the plan to replace in the plan.

Returns:

  • (String)


317
# File 'lib/orb/models/beta_create_plan_version_params.rb', line 317

required :replaces_price_id, String