Skip to content

Commit 128669a

Browse files
feat(api): api update (#222)
1 parent d47e476 commit 128669a

24 files changed

+446
-374
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-326205df28a52e9ad57c34d7ed1ec85fadd67f9a041df2882ebaa65f6de09930.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-8663e8fc543041d9694eddcd2f7e9784611369606700f99340e6dc80607b2dfa.yml

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ private constructor(
788788
* For more on the types of prices, see
789789
* [the core concepts documentation](/core-concepts#plan-and-price)
790790
*/
791-
fun price(maxGroupTiered: Price.MaxGroupTieredPrice) =
792-
price(Price.ofMaxGroupTiered(maxGroupTiered))
791+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
792+
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
793793

794794
/**
795795
* Price's contributions for the timeframe, excluding any minimums and discounts.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ private constructor(
785785
* For more on the types of prices, see
786786
* [the core concepts documentation](/core-concepts#plan-and-price)
787787
*/
788-
fun price(maxGroupTiered: Price.MaxGroupTieredPrice) =
789-
price(Price.ofMaxGroupTiered(maxGroupTiered))
788+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
789+
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
790790

791791
/**
792792
* Price's contributions for the timeframe, excluding any minimums and discounts.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,8 +5316,8 @@ private constructor(
53165316
* For more on the types of prices, see
53175317
* [the core concepts documentation](/core-concepts#plan-and-price)
53185318
*/
5319-
fun price(maxGroupTiered: Price.MaxGroupTieredPrice) =
5320-
price(Price.ofMaxGroupTiered(maxGroupTiered))
5319+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
5320+
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
53215321

53225322
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
53235323

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5309,8 +5309,8 @@ private constructor(
53095309
* For more on the types of prices, see
53105310
* [the core concepts documentation](/core-concepts#plan-and-price)
53115311
*/
5312-
fun price(maxGroupTiered: Price.MaxGroupTieredPrice) =
5313-
price(Price.ofMaxGroupTiered(maxGroupTiered))
5312+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
5313+
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
53145314

53155315
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
53165316

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ constructor(
3838

3939
/**
4040
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
41-
* asynchronously. The synchronous option is only available for invoices containin no usage
41+
* asynchronously. The synchronous option is only available for invoices that have no usage
4242
* fees. If the invoice is configured to sync to an external provider, a successful response
4343
* from this endpoint guarantees the invoice is present in the provider.
4444
*/
4545
fun synchronous(): Optional<Boolean> = body.synchronous()
4646

4747
/**
4848
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
49-
* asynchronously. The synchronous option is only available for invoices containin no usage
49+
* asynchronously. The synchronous option is only available for invoices that have no usage
5050
* fees. If the invoice is configured to sync to an external provider, a successful response
5151
* from this endpoint guarantees the invoice is present in the provider.
5252
*/
@@ -84,7 +84,7 @@ constructor(
8484

8585
/**
8686
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
87-
* asynchronously. The synchronous option is only available for invoices containin no usage
87+
* asynchronously. The synchronous option is only available for invoices that have no usage
8888
* fees. If the invoice is configured to sync to an external provider, a successful response
8989
* from this endpoint guarantees the invoice is present in the provider.
9090
*/
@@ -93,7 +93,7 @@ constructor(
9393

9494
/**
9595
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
96-
* asynchronously. The synchronous option is only available for invoices containin no usage
96+
* asynchronously. The synchronous option is only available for invoices that have no usage
9797
* fees. If the invoice is configured to sync to an external provider, a successful response
9898
* from this endpoint guarantees the invoice is present in the provider.
9999
*/
@@ -136,19 +136,19 @@ constructor(
136136

137137
/**
138138
* If true, the invoice will be issued synchronously. If false, the invoice will be
139-
* issued asynchronously. The synchronous option is only available for invoices
140-
* containin no usage fees. If the invoice is configured to sync to an external
141-
* provider, a successful response from this endpoint guarantees the invoice is present
142-
* in the provider.
139+
* issued asynchronously. The synchronous option is only available for invoices that
140+
* have no usage fees. If the invoice is configured to sync to an external provider, a
141+
* successful response from this endpoint guarantees the invoice is present in the
142+
* provider.
143143
*/
144144
fun synchronous(synchronous: Boolean) = synchronous(JsonField.of(synchronous))
145145

146146
/**
147147
* If true, the invoice will be issued synchronously. If false, the invoice will be
148-
* issued asynchronously. The synchronous option is only available for invoices
149-
* containin no usage fees. If the invoice is configured to sync to an external
150-
* provider, a successful response from this endpoint guarantees the invoice is present
151-
* in the provider.
148+
* issued asynchronously. The synchronous option is only available for invoices that
149+
* have no usage fees. If the invoice is configured to sync to an external provider, a
150+
* successful response from this endpoint guarantees the invoice is present in the
151+
* provider.
152152
*/
153153
fun synchronous(synchronous: JsonField<Boolean>) = apply {
154154
this.synchronous = synchronous
@@ -222,15 +222,15 @@ constructor(
222222

223223
/**
224224
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
225-
* asynchronously. The synchronous option is only available for invoices containin no usage
225+
* asynchronously. The synchronous option is only available for invoices that have no usage
226226
* fees. If the invoice is configured to sync to an external provider, a successful response
227227
* from this endpoint guarantees the invoice is present in the provider.
228228
*/
229229
fun synchronous(synchronous: Boolean) = apply { body.synchronous(synchronous) }
230230

231231
/**
232232
* If true, the invoice will be issued synchronously. If false, the invoice will be issued
233-
* asynchronously. The synchronous option is only available for invoices containin no usage
233+
* asynchronously. The synchronous option is only available for invoices that have no usage
234234
* fees. If the invoice is configured to sync to an external provider, a successful response
235235
* from this endpoint guarantees the invoice is present in the provider.
236236
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,8 @@ private constructor(
791791
* For more on the types of prices, see
792792
* [the core concepts documentation](/core-concepts#plan-and-price)
793793
*/
794-
fun price(maxGroupTiered: Price.MaxGroupTieredPrice) =
795-
price(Price.ofMaxGroupTiered(maxGroupTiered))
794+
fun price(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
795+
price(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
796796

797797
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
798798

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@ private constructor(
896896
* Prices for this plan. If the plan has phases, this includes prices across all phases of
897897
* the plan.
898898
*/
899-
fun addPrice(maxGroupTiered: Price.MaxGroupTieredPrice) =
900-
addPrice(Price.ofMaxGroupTiered(maxGroupTiered))
899+
fun addPrice(maxGroupTieredPackage: Price.MaxGroupTieredPackagePrice) =
900+
addPrice(Price.ofMaxGroupTieredPackage(maxGroupTieredPackage))
901901

902902
fun product(product: Product) = product(JsonField.of(product))
903903

0 commit comments

Comments
 (0)