Skip to content

Commit 4435313

Browse files
feat(api): api update
1 parent 9b9d608 commit 4435313

23 files changed

Lines changed: 54261 additions & 21493 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-07428f2af8d77b3af7d838375b0fb5adce7fba2c8312ca84bcd8ef340d782bbc.yml
3-
openapi_spec_hash: 99d6e3e97bab8a25399a63f3db134542
3+
openapi_spec_hash: bba0e6257d3d2f8612c5ad14b95839e2
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

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

Lines changed: 10271 additions & 5827 deletions
Large diffs are not rendered by default.

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

Lines changed: 10271 additions & 5827 deletions
Large diffs are not rendered by default.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5438,6 +5438,13 @@ private constructor(
54385438
fun price(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
54395439
price(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
54405440

5441+
/**
5442+
* Alias for calling [price] with
5443+
* `Price.ofDailyCreditAllowance(dailyCreditAllowance)`.
5444+
*/
5445+
fun price(dailyCreditAllowance: Price.DailyCreditAllowance) =
5446+
price(Price.ofDailyCreditAllowance(dailyCreditAllowance))
5447+
54415448
/** Alias for calling [price] with `Price.ofMinimumComposite(minimumComposite)`. */
54425449
fun price(minimumComposite: Price.MinimumComposite) =
54435450
price(Price.ofMinimumComposite(minimumComposite))

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4909,6 +4909,12 @@ private constructor(
49094909
fun price(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
49104910
price(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
49114911

4912+
/**
4913+
* Alias for calling [price] with `Price.ofDailyCreditAllowance(dailyCreditAllowance)`.
4914+
*/
4915+
fun price(dailyCreditAllowance: Price.DailyCreditAllowance) =
4916+
price(Price.ofDailyCreditAllowance(dailyCreditAllowance))
4917+
49124918
/** Alias for calling [price] with `Price.ofMinimumComposite(minimumComposite)`. */
49134919
fun price(minimumComposite: Price.MinimumComposite) =
49144920
price(Price.ofMinimumComposite(minimumComposite))

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4903,6 +4903,12 @@ private constructor(
49034903
fun price(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
49044904
price(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
49054905

4906+
/**
4907+
* Alias for calling [price] with `Price.ofDailyCreditAllowance(dailyCreditAllowance)`.
4908+
*/
4909+
fun price(dailyCreditAllowance: Price.DailyCreditAllowance) =
4910+
price(Price.ofDailyCreditAllowance(dailyCreditAllowance))
4911+
49064912
/** Alias for calling [price] with `Price.ofMinimumComposite(minimumComposite)`. */
49074913
fun price(minimumComposite: Price.MinimumComposite) =
49084914
price(Price.ofMinimumComposite(minimumComposite))

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,10 @@ private constructor(
826826
fun price(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
827827
price(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
828828

829+
/** Alias for calling [price] with `Price.ofDailyCreditAllowance(dailyCreditAllowance)`. */
830+
fun price(dailyCreditAllowance: Price.DailyCreditAllowance) =
831+
price(Price.ofDailyCreditAllowance(dailyCreditAllowance))
832+
829833
/** Alias for calling [price] with `Price.ofMinimumComposite(minimumComposite)`. */
830834
fun price(minimumComposite: Price.MinimumComposite) =
831835
price(Price.ofMinimumComposite(minimumComposite))

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ private constructor(
305305
fun price(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
306306
price(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
307307

308+
/** Alias for calling [price] with `Price.ofDailyCreditAllowance(dailyCreditAllowance)`. */
309+
fun price(dailyCreditAllowance: Price.DailyCreditAllowance) =
310+
price(Price.ofDailyCreditAllowance(dailyCreditAllowance))
311+
308312
/** Alias for calling [price] with `Price.ofMinimumComposite(minimumComposite)`. */
309313
fun price(minimumComposite: Price.MinimumComposite) =
310314
price(Price.ofMinimumComposite(minimumComposite))

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,12 @@ private constructor(
12531253
fun addPrice(cumulativeGroupedAllocation: Price.CumulativeGroupedAllocation) =
12541254
addPrice(Price.ofCumulativeGroupedAllocation(cumulativeGroupedAllocation))
12551255

1256+
/**
1257+
* Alias for calling [addPrice] with `Price.ofDailyCreditAllowance(dailyCreditAllowance)`.
1258+
*/
1259+
fun addPrice(dailyCreditAllowance: Price.DailyCreditAllowance) =
1260+
addPrice(Price.ofDailyCreditAllowance(dailyCreditAllowance))
1261+
12561262
/** Alias for calling [addPrice] with `Price.ofMinimumComposite(minimumComposite)`. */
12571263
fun addPrice(minimumComposite: Price.MinimumComposite) =
12581264
addPrice(Price.ofMinimumComposite(minimumComposite))

0 commit comments

Comments
 (0)