@@ -16,6 +16,18 @@ class Plan < Orb::Internal::Type::BaseModel
1616 # @return [Array<Orb::Models::PlanPhaseUsageDiscountAdjustment, Orb::Models::PlanPhaseAmountDiscountAdjustment, Orb::Models::PlanPhasePercentageDiscountAdjustment, Orb::Models::PlanPhaseMinimumAdjustment, Orb::Models::PlanPhaseMaximumAdjustment>]
1717 required :adjustments , -> { Orb ::Internal ::Type ::ArrayOf [ union : Orb ::Plan ::Adjustment ] }
1818
19+ # @!attribute base_plan
20+ #
21+ # @return [Orb::Models::Plan::BasePlan, nil]
22+ required :base_plan , -> { Orb ::Plan ::BasePlan } , nil? : true
23+
24+ # @!attribute base_plan_id
25+ # The parent plan id if the given plan was created by overriding one or more of
26+ # the parent's prices
27+ #
28+ # @return [String, nil]
29+ required :base_plan_id , String , nil? : true
30+
1931 # @!attribute created_at
2032 #
2133 # @return [Time]
@@ -143,19 +155,7 @@ class Plan < Orb::Internal::Type::BaseModel
143155 # @return [Integer]
144156 required :version , Integer
145157
146- # @!attribute base_plan
147- #
148- # @return [Orb::Models::Plan::BasePlan, nil]
149- optional :base_plan , -> { Orb ::Plan ::BasePlan } , nil? : true
150-
151- # @!attribute base_plan_id
152- # The parent plan id if the given plan was created by overriding one or more of
153- # the parent's prices
154- #
155- # @return [String, nil]
156- optional :base_plan_id , String , nil? : true
157-
158- # @!method initialize(id:, adjustments:, created_at:, currency:, default_invoice_memo:, description:, discount:, external_plan_id:, invoicing_currency:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, net_terms:, plan_phases:, prices:, product:, status:, trial_config:, version:, base_plan: nil, base_plan_id: nil)
158+ # @!method initialize(id:, adjustments:, base_plan:, base_plan_id:, created_at:, currency:, default_invoice_memo:, description:, discount:, external_plan_id:, invoicing_currency:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, net_terms:, plan_phases:, prices:, product:, status:, trial_config:, version:)
159159 # Some parameter documentations has been truncated, see {Orb::Models::Plan} for
160160 # more details.
161161 #
@@ -168,6 +168,10 @@ class Plan < Orb::Internal::Type::BaseModel
168168 #
169169 # @param adjustments [Array<Orb::Models::PlanPhaseUsageDiscountAdjustment, Orb::Models::PlanPhaseAmountDiscountAdjustment, Orb::Models::PlanPhasePercentageDiscountAdjustment, Orb::Models::PlanPhaseMinimumAdjustment, Orb::Models::PlanPhaseMaximumAdjustment>] Adjustments for this plan. If the plan has phases, this includes adjustments acr
170170 #
171+ # @param base_plan [Orb::Models::Plan::BasePlan, nil]
172+ #
173+ # @param base_plan_id [String, nil] The parent plan id if the given plan was created by overriding one or more of th
174+ #
171175 # @param created_at [Time]
172176 #
173177 # @param currency [String] An ISO 4217 currency string or custom pricing unit (`credits`) for this plan's p
@@ -207,10 +211,6 @@ class Plan < Orb::Internal::Type::BaseModel
207211 # @param trial_config [Orb::Models::Plan::TrialConfig]
208212 #
209213 # @param version [Integer]
210- #
211- # @param base_plan [Orb::Models::Plan::BasePlan, nil]
212- #
213- # @param base_plan_id [String, nil] The parent plan id if the given plan was created by overriding one or more of th
214214
215215 module Adjustment
216216 extend Orb ::Internal ::Type ::Union
@@ -231,6 +231,37 @@ module Adjustment
231231 # @return [Array(Orb::Models::PlanPhaseUsageDiscountAdjustment, Orb::Models::PlanPhaseAmountDiscountAdjustment, Orb::Models::PlanPhasePercentageDiscountAdjustment, Orb::Models::PlanPhaseMinimumAdjustment, Orb::Models::PlanPhaseMaximumAdjustment)]
232232 end
233233
234+ # @see Orb::Models::Plan#base_plan
235+ class BasePlan < Orb ::Internal ::Type ::BaseModel
236+ # @!attribute id
237+ #
238+ # @return [String, nil]
239+ required :id , String , nil? : true
240+
241+ # @!attribute external_plan_id
242+ # An optional user-defined ID for this plan resource, used throughout the system
243+ # as an alias for this Plan. Use this field to identify a plan by an existing
244+ # identifier in your system.
245+ #
246+ # @return [String, nil]
247+ required :external_plan_id , String , nil? : true
248+
249+ # @!attribute name
250+ #
251+ # @return [String, nil]
252+ required :name , String , nil? : true
253+
254+ # @!method initialize(id:, external_plan_id:, name:)
255+ # Some parameter documentations has been truncated, see
256+ # {Orb::Models::Plan::BasePlan} for more details.
257+ #
258+ # @param id [String, nil]
259+ #
260+ # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
261+ #
262+ # @param name [String, nil]
263+ end
264+
234265 class PlanPhase < Orb ::Internal ::Type ::BaseModel
235266 # @!attribute id
236267 #
@@ -392,37 +423,6 @@ module TrialPeriodUnit
392423 # @return [Array<Symbol>]
393424 end
394425 end
395-
396- # @see Orb::Models::Plan#base_plan
397- class BasePlan < Orb ::Internal ::Type ::BaseModel
398- # @!attribute id
399- #
400- # @return [String, nil]
401- required :id , String , nil? : true
402-
403- # @!attribute external_plan_id
404- # An optional user-defined ID for this plan resource, used throughout the system
405- # as an alias for this Plan. Use this field to identify a plan by an existing
406- # identifier in your system.
407- #
408- # @return [String, nil]
409- required :external_plan_id , String , nil? : true
410-
411- # @!attribute name
412- #
413- # @return [String, nil]
414- required :name , String , nil? : true
415-
416- # @!method initialize(id:, external_plan_id:, name:)
417- # Some parameter documentations has been truncated, see
418- # {Orb::Models::Plan::BasePlan} for more details.
419- #
420- # @param id [String, nil]
421- #
422- # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
423- #
424- # @param name [String, nil]
425- end
426426 end
427427 end
428428end
0 commit comments