Skip to content

Commit 42a3bf2

Browse files
feat(api): api update
1 parent 8d40c66 commit 42a3bf2

File tree

3 files changed

+38
-13
lines changed

3 files changed

+38
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4ad3b44ca7f484243d8706b6aa7f4498fc5bf2b37fadf3da0a06d657e482c08f.yml
3-
openapi_spec_hash: 9ead1a2aae36be1086c627c3636064ea
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e639b12e0daebce74f42d1f31f675bda4287b9c749dd7d4620a1e96a83343ec4.yml
3+
openapi_spec_hash: 51eb3d47b25e299de670b2d52f5e9017
44
config_hash: e6db17547fe854b1c240407cf4c6dc9e

orb-java-core/src/main/kotlin/com/withorb/api/models/Plan.kt

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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(

orb-java-core/src/main/kotlin/com/withorb/api/models/SubscriptionPriceIntervalsParams.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14735,8 +14735,8 @@ private constructor(
1473514735

1473614736
/**
1473714737
* If true, ending an in-arrears price interval mid-cycle will defer billing the final line
14738-
* itemuntil the next scheduled invoice. If false, it will be billed on its end date. If not
14739-
* provided, behaviorwill follow account default.
14738+
* item until the next scheduled invoice. If false, it will be billed on its end date. If
14739+
* not provided, behavior will follow account default.
1474014740
*
1474114741
* @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
1474214742
* server responded with an unexpected value).
@@ -14969,8 +14969,8 @@ private constructor(
1496914969

1497014970
/**
1497114971
* If true, ending an in-arrears price interval mid-cycle will defer billing the final
14972-
* line itemuntil the next scheduled invoice. If false, it will be billed on its end
14973-
* date. If not provided, behaviorwill follow account default.
14972+
* line item until the next scheduled invoice. If false, it will be billed on its end
14973+
* date. If not provided, behavior will follow account default.
1497414974
*/
1497514975
fun canDeferBilling(canDeferBilling: Boolean?) =
1497614976
canDeferBilling(JsonField.ofNullable(canDeferBilling))

0 commit comments

Comments
 (0)