Skip to content

Commit 856c20c

Browse files
feat(api): api update (#206)
1 parent 20614df commit 856c20c

168 files changed

Lines changed: 4270 additions & 118264 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import java.util.Objects
2121
import java.util.Optional
2222

2323
/**
24-
* [Alerts within Orb](https://docs.withorb.com/guides/product-catalog/configuring-alerts) monitor
25-
* spending, usage, or credit balance and trigger webhooks when a threshold is exceeded.
24+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending, usage, or credit
25+
* balance and trigger webhooks when a threshold is exceeded.
2626
*
2727
* Alerts created through the API can be scoped to either customers or subscriptions.
2828
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import java.util.Optional
2525
* This endpoint creates a new alert to monitor a customer's credit balance. There are three types
2626
* of alerts that can be scoped to customers: `credit_balance_depleted`, `credit_balance_dropped`,
2727
* and `credit_balance_recovered`. Customers can have a maximum of one of each type of alert per
28-
* [credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
29-
* `credit_balance_dropped` alerts require a list of thresholds to be provided while
30-
* `credit_balance_depleted` and `credit_balance_recovered` alerts do not require thresholds.
28+
* [credit balance currency](/product-catalog/prepurchase). `credit_balance_dropped` alerts require
29+
* a list of thresholds to be provided while `credit_balance_depleted` and
30+
* `credit_balance_recovered` alerts do not require thresholds.
3131
*/
3232
class AlertCreateForCustomerParams
3333
constructor(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import java.util.Optional
2525
* This endpoint creates a new alert to monitor a customer's credit balance. There are three types
2626
* of alerts that can be scoped to customers: `credit_balance_depleted`, `credit_balance_dropped`,
2727
* and `credit_balance_recovered`. Customers can have a maximum of one of each type of alert per
28-
* [credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
29-
* `credit_balance_dropped` alerts require a list of thresholds to be provided while
30-
* `credit_balance_depleted` and `credit_balance_recovered` alerts do not require thresholds.
28+
* [credit balance currency](/product-catalog/prepurchase). `credit_balance_dropped` alerts require
29+
* a list of thresholds to be provided while `credit_balance_depleted` and
30+
* `credit_balance_recovered` alerts do not require thresholds.
3131
*/
3232
class AlertCreateForExternalCustomerParams
3333
constructor(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import java.util.stream.StreamSupport
2828
* the plan level alerts associated with the subscription.
2929
*
3030
* The list of alerts is ordered starting from the most recently created alert. This endpoint
31-
* follows Orb's [standardized pagination format](../reference/pagination).
31+
* follows Orb's [standardized pagination format](/api-reference/pagination).
3232
*/
3333
class AlertListPage
3434
private constructor(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import java.util.function.Predicate
2929
* the plan level alerts associated with the subscription.
3030
*
3131
* The list of alerts is ordered starting from the most recently created alert. This endpoint
32-
* follows Orb's [standardized pagination format](../reference/pagination).
32+
* follows Orb's [standardized pagination format](/api-reference/pagination).
3333
*/
3434
class AlertListPageAsync
3535
private constructor(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import java.util.Optional
1919
* the plan level alerts associated with the subscription.
2020
*
2121
* The list of alerts is ordered starting from the most recently created alert. This endpoint
22-
* follows Orb's [standardized pagination format](../reference/pagination).
22+
* follows Orb's [standardized pagination format](/api-reference/pagination).
2323
*/
2424
class AlertListParams
2525
constructor(

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,6 @@ import kotlin.jvm.optionals.getOrNull
3535
* percentage amount to an invoice or subscription. Coupons are activated using a redemption code,
3636
* which applies the discount to a subscription or invoice. The duration of a coupon determines how
3737
* long it remains available for use by end users.
38-
*
39-
* ## How to use coupons
40-
*
41-
* Coupons can be created using the Orb dashboard or programmatically through the API. Once a coupon
42-
* is created, it can be managed and applied programmatically via the API. To redeem a coupon, use
43-
* the `redemption_code` property when [creating a subscription](create-subscription.api.mdx) or
44-
* when scheduling a [plan change](schedule-plan-change.api.mdx).
45-
*
46-
* ## When to use coupons
47-
*
48-
* A common use case for coupons is through self-serve signup or upgrade flows in your checkout
49-
* experience or billing portal. Coupons can also be used as one-off to incentivize use for custom
50-
* agreements.
51-
*
52-
* Coupons are effective when launching new features and encouraging existing users to upgrade to a
53-
* higher tier. For example, you could create a coupon code "UPGRADE20" that offers a 20% discount
54-
* on the first month of the new plan. This code can be applied during the upgrade process in your
55-
* billing portal, making it straightforward for users to benefit from the new features at a reduced
56-
* cost.
57-
*
58-
* ## Coupon scoping
59-
*
60-
* When a coupon is applied on a subscription, it creates a discount adjustment that applies to all
61-
* of the prices on the subscription at the time of the coupon application. Notably, coupons do not
62-
* scope in new price additions to a subscription automatically — if a new price is added to the
63-
* subscription with a subscription edit or plan version migration, the discount created with the
64-
* coupon will not apply to it automatically. If you'd like the coupon to apply to newly added
65-
* prices, you can [edit the adjustment intervals](add-edit-price-intervals.api.mdx) to end the
66-
* discount interval created by the coupon at the time of the migration and add a new one starting
67-
* at the time of the migration that includes the newly added prices you'd like the coupon to apply
68-
* to.
6938
*/
7039
@NoAutoDetect
7140
class Coupon

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import java.util.stream.StreamSupport
2121

2222
/**
2323
* This endpoint returns a list of all subscriptions that have redeemed a given coupon as a
24-
* [paginated](../reference/pagination) list, ordered starting from the most recently created
24+
* [paginated](/api-reference/pagination) list, ordered starting from the most recently created
2525
* subscription. For a full discussion of the subscription resource, see
26-
* [Subscription](../guides/concepts#subscription).
26+
* [Subscription](/core-concepts#subscription).
2727
*/
2828
class CouponSubscriptionListPage
2929
private constructor(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import java.util.function.Predicate
2222

2323
/**
2424
* This endpoint returns a list of all subscriptions that have redeemed a given coupon as a
25-
* [paginated](../reference/pagination) list, ordered starting from the most recently created
25+
* [paginated](/api-reference/pagination) list, ordered starting from the most recently created
2626
* subscription. For a full discussion of the subscription resource, see
27-
* [Subscription](../guides/concepts#subscription).
27+
* [Subscription](/core-concepts#subscription).
2828
*/
2929
class CouponSubscriptionListPageAsync
3030
private constructor(

0 commit comments

Comments
 (0)