Class: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/beta/external_plan_id_create_plan_version_params.rb,
sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs

Defined Under Namespace

Modules: Price Classes: LicenseAllocationPrice

Constant Summary collapse

Orb =

Returns:

  • (:NewPlanUnitPrice)

Instance Attribute Summary collapse

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

Parameters:



# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 393

Instance Attribute Details

#allocation_priceOrb::Models::NewAllocationPrice?

The allocation price to add to the plan.

Parameters:

Returns:



369
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 369

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

#license_allocation_priceOrb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?

The license allocation price to add to the plan.

Parameters:

  • value (Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice, nil)

Returns:



375
376
377
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 375

optional :license_allocation_price,
-> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice },
nil?: true

#plan_phase_orderInteger?

The phase to add this price to.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


383
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 383

optional :plan_phase_order, Integer, nil?: true

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

New plan price request body params.

Parameters:

  • value (Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price, nil)

Returns:



389
390
391
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 389

optional :price,
union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 641

Instance Method Details

#to_hash{

Returns:

  • ({)


294
# File 'sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs', line 294

def to_hash: -> {