Skip to content

Commit 0e10172

Browse files
feat(api): api update (#242)
1 parent 4824206 commit 0e10172

26 files changed

+18493
-12353
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-ed7676e9e6ad97f50ea386e7aa6fdbbf5b6286a5a96ead62be4077f212fe3605.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-25409f3b13e6d1d003e351fc18d248ecf3c5821cfde5f409a1d356e4fc917d8c.yml

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

Lines changed: 57 additions & 375 deletions
Large diffs are not rendered by default.

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

Lines changed: 57 additions & 375 deletions
Large diffs are not rendered by default.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5759,6 +5759,21 @@ private constructor(
57595759
fun price(scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricingPrice) =
57605760
price(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
57615761

5762+
/**
5763+
* The Price resource represents a price that can be billed on a subscription, resulting
5764+
* in a charge on an invoice in the form of an invoice line item. Prices take a quantity
5765+
* and determine an amount to bill.
5766+
*
5767+
* Orb supports a few different pricing models out of the box. Each of these models is
5768+
* serialized differently in a given Price object. The model_type field determines the
5769+
* key for the configuration object that is present.
5770+
*
5771+
* For more on the types of prices, see
5772+
* [the core concepts documentation](/core-concepts#plan-and-price)
5773+
*/
5774+
fun price(cumulativeGroupedBulk: Price.CumulativeGroupedBulkPrice) =
5775+
price(Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk))
5776+
57625777
/** Either the fixed fee quantity or the usage during the service period. */
57635778
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
57645779

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5752,6 +5752,21 @@ private constructor(
57525752
fun price(scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricingPrice) =
57535753
price(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
57545754

5755+
/**
5756+
* The Price resource represents a price that can be billed on a subscription, resulting
5757+
* in a charge on an invoice in the form of an invoice line item. Prices take a quantity
5758+
* and determine an amount to bill.
5759+
*
5760+
* Orb supports a few different pricing models out of the box. Each of these models is
5761+
* serialized differently in a given Price object. The model_type field determines the
5762+
* key for the configuration object that is present.
5763+
*
5764+
* For more on the types of prices, see
5765+
* [the core concepts documentation](/core-concepts#plan-and-price)
5766+
*/
5767+
fun price(cumulativeGroupedBulk: Price.CumulativeGroupedBulkPrice) =
5768+
price(Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk))
5769+
57555770
/** Either the fixed fee quantity or the usage during the service period. */
57565771
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
57575772

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,21 @@ private constructor(
10291029
fun price(scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricingPrice) =
10301030
price(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
10311031

1032+
/**
1033+
* The Price resource represents a price that can be billed on a subscription, resulting in
1034+
* a charge on an invoice in the form of an invoice line item. Prices take a quantity and
1035+
* determine an amount to bill.
1036+
*
1037+
* Orb supports a few different pricing models out of the box. Each of these models is
1038+
* serialized differently in a given Price object. The model_type field determines the key
1039+
* for the configuration object that is present.
1040+
*
1041+
* For more on the types of prices, see
1042+
* [the core concepts documentation](/core-concepts#plan-and-price)
1043+
*/
1044+
fun price(cumulativeGroupedBulk: Price.CumulativeGroupedBulkPrice) =
1045+
price(Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk))
1046+
10321047
/** Either the fixed fee quantity or the usage during the service period. */
10331048
fun quantity(quantity: Double) = quantity(JsonField.of(quantity))
10341049

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,13 @@ private constructor(
923923
fun addPrice(scalableMatrixWithTieredPricing: Price.ScalableMatrixWithTieredPricingPrice) =
924924
addPrice(Price.ofScalableMatrixWithTieredPricing(scalableMatrixWithTieredPricing))
925925

926+
/**
927+
* Prices for this plan. If the plan has phases, this includes prices across all phases of
928+
* the plan.
929+
*/
930+
fun addPrice(cumulativeGroupedBulk: Price.CumulativeGroupedBulkPrice) =
931+
addPrice(Price.ofCumulativeGroupedBulk(cumulativeGroupedBulk))
932+
926933
fun product(product: Product) = product(JsonField.of(product))
927934

928935
fun product(product: JsonField<Product>) = apply { this.product = product }

0 commit comments

Comments
 (0)