Class: Orb::Models::Plan::PlanPhase
Defined Under Namespace
Modules: DurationUnit
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(id:, description:, discount:, duration:, duration_unit:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, order:) ⇒ Object
constructor
Some parameter documentations has been truncated, see PlanPhase for more details.
-
#to_hash ⇒ {
==, #==, #[], 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:, description:, discount:, duration:, duration_unit:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, order:) ⇒ Object
|
# File 'lib/orb/models/plan.rb', line 515
|
Instance Attribute Details
#description ⇒ String?
465
|
# File 'lib/orb/models/plan.rb', line 465
required :description, String, nil?: true
|
470
|
# File 'lib/orb/models/plan.rb', line 470
required :discount, union: -> { Orb::Discount }, nil?: true
|
#duration ⇒ Integer?
How many terms of length duration_unit this phase is active for. If null, this
phase is evergreen and active indefinitely
477
|
# File 'lib/orb/models/plan.rb', line 477
required :duration, Integer, nil?: true
|
#duration_unit ⇒ Symbol, ...
482
|
# File 'lib/orb/models/plan.rb', line 482
required :duration_unit, enum: -> { Orb::Plan::PlanPhase::DurationUnit }, nil?: true
|
#id ⇒ String
460
|
# File 'lib/orb/models/plan.rb', line 460
required :id, String
|
487
|
# File 'lib/orb/models/plan.rb', line 487
required :maximum, -> { Orb::Maximum }, nil?: true
|
#maximum_amount ⇒ String?
492
|
# File 'lib/orb/models/plan.rb', line 492
required :maximum_amount, String, nil?: true
|
497
|
# File 'lib/orb/models/plan.rb', line 497
required :minimum, -> { Orb::Minimum }, nil?: true
|
#minimum_amount ⇒ String?
502
|
# File 'lib/orb/models/plan.rb', line 502
required :minimum_amount, String, nil?: true
|
#name ⇒ String
507
|
# File 'lib/orb/models/plan.rb', line 507
required :name, String
|
#order ⇒ Integer
Determines the ordering of the phase in a plan's lifecycle. 1 = first phase.
513
|
# File 'lib/orb/models/plan.rb', line 513
required :order, Integer
|
Instance Method Details
#to_hash ⇒ {
355
|
# File 'sig/orb/models/plan.rbs', line 355
def to_hash: -> {
|