@@ -158,18 +158,22 @@ private constructor(
158158 fun adjustments (): List <Adjustment > = adjustments.getRequired(" adjustments" )
159159
160160 /* *
161+ * Legacy field representing the parent plan if the current plan is a 'child plan', overriding
162+ * prices from the parent.
163+ *
161164 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
162165 * responded with an unexpected value).
163166 */
164- fun basePlan (): Optional <BasePlan > = basePlan.getOptional(" base_plan" )
167+ @Deprecated( " deprecated " ) fun basePlan (): Optional <BasePlan > = basePlan.getOptional(" base_plan" )
165168
166169 /* *
167- * The parent plan id if the given plan was created by overriding one or more of the parent's
168- * prices
170+ * Legacy field representing the parent plan ID if the current plan is a 'child plan',
171+ * overriding prices from the parent.
169172 *
170173 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
171174 * responded with an unexpected value).
172175 */
176+ @Deprecated(" deprecated" )
173177 fun basePlanId (): Optional <String > = basePlanId.getOptional(" base_plan_id" )
174178
175179 /* *
@@ -339,14 +343,20 @@ private constructor(
339343 *
340344 * Unlike [basePlan], this method doesn't throw if the JSON field has an unexpected type.
341345 */
342- @JsonProperty(" base_plan" ) @ExcludeMissing fun _basePlan (): JsonField <BasePlan > = basePlan
346+ @Deprecated(" deprecated" )
347+ @JsonProperty(" base_plan" )
348+ @ExcludeMissing
349+ fun _basePlan (): JsonField <BasePlan > = basePlan
343350
344351 /* *
345352 * Returns the raw JSON value of [basePlanId].
346353 *
347354 * Unlike [basePlanId], this method doesn't throw if the JSON field has an unexpected type.
348355 */
349- @JsonProperty(" base_plan_id" ) @ExcludeMissing fun _basePlanId (): JsonField <String > = basePlanId
356+ @Deprecated(" deprecated" )
357+ @JsonProperty(" base_plan_id" )
358+ @ExcludeMissing
359+ fun _basePlanId (): JsonField <String > = basePlanId
350360
351361 /* *
352362 * Returns the raw JSON value of [createdAt].
@@ -688,9 +698,15 @@ private constructor(
688698 fun addAdjustment (maximum : PlanPhaseMaximumAdjustment ) =
689699 addAdjustment(Adjustment .ofMaximum(maximum))
690700
701+ /* *
702+ * Legacy field representing the parent plan if the current plan is a 'child plan',
703+ * overriding prices from the parent.
704+ */
705+ @Deprecated(" deprecated" )
691706 fun basePlan (basePlan : BasePlan ? ) = basePlan(JsonField .ofNullable(basePlan))
692707
693708 /* * Alias for calling [Builder.basePlan] with `basePlan.orElse(null)`. */
709+ @Deprecated(" deprecated" )
694710 fun basePlan (basePlan : Optional <BasePlan >) = basePlan(basePlan.getOrNull())
695711
696712 /* *
@@ -700,15 +716,18 @@ private constructor(
700716 * This method is primarily for setting the field to an undocumented or not yet supported
701717 * value.
702718 */
719+ @Deprecated(" deprecated" )
703720 fun basePlan (basePlan : JsonField <BasePlan >) = apply { this .basePlan = basePlan }
704721
705722 /* *
706- * The parent plan id if the given plan was created by overriding one or more of the
707- * parent's prices
723+ * Legacy field representing the parent plan ID if the current plan is a 'child plan',
724+ * overriding prices from the parent.
708725 */
726+ @Deprecated(" deprecated" )
709727 fun basePlanId (basePlanId : String? ) = basePlanId(JsonField .ofNullable(basePlanId))
710728
711729 /* * Alias for calling [Builder.basePlanId] with `basePlanId.orElse(null)`. */
730+ @Deprecated(" deprecated" )
712731 fun basePlanId (basePlanId : Optional <String >) = basePlanId(basePlanId.getOrNull())
713732
714733 /* *
@@ -718,6 +737,7 @@ private constructor(
718737 * This method is primarily for setting the field to an undocumented or not yet supported
719738 * value.
720739 */
740+ @Deprecated(" deprecated" )
721741 fun basePlanId (basePlanId : JsonField <String >) = apply { this .basePlanId = basePlanId }
722742
723743 fun createdAt (createdAt : OffsetDateTime ) = createdAt(JsonField .of(createdAt))
@@ -1731,6 +1751,11 @@ private constructor(
17311751 }
17321752 }
17331753
1754+ /* *
1755+ * Legacy field representing the parent plan if the current plan is a 'child plan', overriding
1756+ * prices from the parent.
1757+ */
1758+ @Deprecated(" deprecated" )
17341759 class BasePlan
17351760 @JsonCreator(mode = JsonCreator .Mode .DISABLED )
17361761 private constructor (
0 commit comments