Class: Orb::Models::PlanPhasePercentageDiscountAdjustment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::PlanPhasePercentageDiscountAdjustment
- Defined in:
- lib/orb/models/plan_phase_percentage_discount_adjustment.rb
Defined Under Namespace
Modules: AdjustmentType
Instance Attribute Summary collapse
- #adjustment_type ⇒ Symbol, Orb::Models::PlanPhasePercentageDiscountAdjustment::AdjustmentType
- #applies_to_price_ids ⇒ Array<String> deprecated Deprecated.
-
#filters ⇒ Array<Orb::Models::TransformPriceFilter>
The filters that determine which prices to apply this adjustment to.
- #id ⇒ String
-
#is_invoice_level ⇒ Boolean
True for adjustments that apply to an entire invocice, false for adjustments that apply to only one price.
-
#percentage_discount ⇒ Float
The percentage (as a value between 0 and 1) by which to discount the price intervals this adjustment applies to in a given billing period.
-
#plan_phase_order ⇒ Integer?
The plan phase in which this adjustment is active.
-
#reason ⇒ String?
The reason for the adjustment.
-
#replaces_adjustment_id ⇒ String?
The adjustment id this adjustment replaces.
Instance Method Summary collapse
-
#initialize(id: , adjustment_type: , applies_to_price_ids: , filters: , is_invoice_level: , percentage_discount: , plan_phase_order: , reason: , replaces_adjustment_id: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see PlanPhasePercentageDiscountAdjustment for more details.
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(id: , adjustment_type: , applies_to_price_ids: , filters: , is_invoice_level: , percentage_discount: , plan_phase_order: , reason: , replaces_adjustment_id: ) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::PlanPhasePercentageDiscountAdjustment for more details.
|
|
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 63
|
Instance Attribute Details
#adjustment_type ⇒ Symbol, Orb::Models::PlanPhasePercentageDiscountAdjustment::AdjustmentType
14 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 14 required :adjustment_type, enum: -> { Orb::PlanPhasePercentageDiscountAdjustment::AdjustmentType } |
#applies_to_price_ids ⇒ Array<String>
The price IDs that this adjustment applies to.
22 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 22 required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String] |
#filters ⇒ Array<Orb::Models::TransformPriceFilter>
The filters that determine which prices to apply this adjustment to.
28 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 28 required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } |
#id ⇒ String
9 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 9 required :id, String |
#is_invoice_level ⇒ Boolean
True for adjustments that apply to an entire invocice, false for adjustments that apply to only one price.
35 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 35 required :is_invoice_level, Orb::Internal::Type::Boolean |
#percentage_discount ⇒ Float
The percentage (as a value between 0 and 1) by which to discount the price intervals this adjustment applies to in a given billing period.
42 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 42 required :percentage_discount, Float |
#plan_phase_order ⇒ Integer?
The plan phase in which this adjustment is active.
48 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 48 required :plan_phase_order, Integer, nil?: true |
#reason ⇒ String?
The reason for the adjustment.
54 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 54 required :reason, String, nil?: true |
#replaces_adjustment_id ⇒ String?
The adjustment id this adjustment replaces. This adjustment will take the place of the replaced adjustment in plan version migrations.
61 |
# File 'lib/orb/models/plan_phase_percentage_discount_adjustment.rb', line 61 required :replaces_adjustment_id, String, nil?: true |