Skip to content

Commit 7e3258f

Browse files
feat(api): api update (#496)
1 parent 08f9ac6 commit 7e3258f

Some content is hidden

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

49 files changed

+856
-5382
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: 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

src/orb/resources/alerts.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def list(
162162
163163
The list of alerts is ordered starting from the most recently created alert.
164164
This endpoint follows Orb's
165-
[standardized pagination format](../reference/pagination).
165+
[standardized pagination format](/api-reference/pagination).
166166
167167
Args:
168168
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
@@ -237,8 +237,7 @@ def create_for_customer(
237237
are three types of alerts that can be scoped to customers:
238238
`credit_balance_depleted`, `credit_balance_dropped`, and
239239
`credit_balance_recovered`. Customers can have a maximum of one of each type of
240-
alert per
241-
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
240+
alert per [credit balance currency](/product-catalog/prepurchase).
242241
`credit_balance_dropped` alerts require a list of thresholds to be provided
243242
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
244243
require thresholds.
@@ -309,8 +308,7 @@ def create_for_external_customer(
309308
are three types of alerts that can be scoped to customers:
310309
`credit_balance_depleted`, `credit_balance_dropped`, and
311310
`credit_balance_recovered`. Customers can have a maximum of one of each type of
312-
alert per
313-
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
311+
alert per [credit balance currency](/product-catalog/prepurchase).
314312
`credit_balance_dropped` alerts require a list of thresholds to be provided
315313
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
316314
require thresholds.
@@ -657,7 +655,7 @@ def list(
657655
658656
The list of alerts is ordered starting from the most recently created alert.
659657
This endpoint follows Orb's
660-
[standardized pagination format](../reference/pagination).
658+
[standardized pagination format](/api-reference/pagination).
661659
662660
Args:
663661
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
@@ -732,8 +730,7 @@ async def create_for_customer(
732730
are three types of alerts that can be scoped to customers:
733731
`credit_balance_depleted`, `credit_balance_dropped`, and
734732
`credit_balance_recovered`. Customers can have a maximum of one of each type of
735-
alert per
736-
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
733+
alert per [credit balance currency](/product-catalog/prepurchase).
737734
`credit_balance_dropped` alerts require a list of thresholds to be provided
738735
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
739736
require thresholds.
@@ -804,8 +801,7 @@ async def create_for_external_customer(
804801
are three types of alerts that can be scoped to customers:
805802
`credit_balance_depleted`, `credit_balance_dropped`, and
806803
`credit_balance_recovered`. Customers can have a maximum of one of each type of
807-
alert per
808-
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
804+
alert per [credit balance currency](/product-catalog/prepurchase).
809805
`credit_balance_dropped` alerts require a list of thresholds to be provided
810806
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
811807
require thresholds.

src/orb/resources/coupons/subscriptions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def list(
5555
) -> SyncPage[Subscription]:
5656
"""
5757
This endpoint returns a list of all subscriptions that have redeemed a given
58-
coupon as a [paginated](../reference/pagination) list, ordered starting from the
59-
most recently created subscription. For a full discussion of the subscription
60-
resource, see [Subscription](../guides/concepts#subscription).
58+
coupon as a [paginated](/api-reference/pagination) list, ordered starting from
59+
the most recently created subscription. For a full discussion of the
60+
subscription resource, see [Subscription](/core-concepts#subscription).
6161
6262
Args:
6363
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
@@ -130,9 +130,9 @@ def list(
130130
) -> AsyncPaginator[Subscription, AsyncPage[Subscription]]:
131131
"""
132132
This endpoint returns a list of all subscriptions that have redeemed a given
133-
coupon as a [paginated](../reference/pagination) list, ordered starting from the
134-
most recently created subscription. For a full discussion of the subscription
135-
resource, see [Subscription](../guides/concepts#subscription).
133+
coupon as a [paginated](/api-reference/pagination) list, ordered starting from
134+
the most recently created subscription. For a full discussion of the
135+
subscription resource, see [Subscription](/core-concepts#subscription).
136136
137137
Args:
138138
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned

src/orb/resources/credit_notes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def create(
6161
) -> CreditNote:
6262
"""
6363
This endpoint is used to create a single
64-
[`Credit Note`](../guides/invoicing/credit-notes).
64+
[`Credit Note`](/invoicing/credit-notes).
6565
6666
Args:
6767
memo: An optional memo to attach to the credit note.
@@ -161,8 +161,8 @@ def fetch(
161161
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
162162
) -> CreditNote:
163163
"""
164-
This endpoint is used to fetch a single
165-
[`Credit Note`](../guides/invoicing/credit-notes) given an identifier.
164+
This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
165+
given an identifier.
166166
167167
Args:
168168
extra_headers: Send extra headers
@@ -221,7 +221,7 @@ async def create(
221221
) -> CreditNote:
222222
"""
223223
This endpoint is used to create a single
224-
[`Credit Note`](../guides/invoicing/credit-notes).
224+
[`Credit Note`](/invoicing/credit-notes).
225225
226226
Args:
227227
memo: An optional memo to attach to the credit note.
@@ -321,8 +321,8 @@ async def fetch(
321321
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
322322
) -> CreditNote:
323323
"""
324-
This endpoint is used to fetch a single
325-
[`Credit Note`](../guides/invoicing/credit-notes) given an identifier.
324+
This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
325+
given an identifier.
326326
327327
Args:
328328
extra_headers: Send extra headers

src/orb/resources/customers/costs.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def list(
6363
"""
6464
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
6565
Orb, calculated by applying pricing information to the underlying usage (see the
66-
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
67-
per metric, in usage units rather than a currency).
66+
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
67+
to fetch usage per metric, in usage units rather than a currency).
6868
6969
This endpoint can be leveraged for internal tooling and to provide a more
7070
transparent billing experience for your end users:
@@ -73,8 +73,8 @@ def list(
7373
the current billing period.
7474
2. Provide customer visibility into how different services are contributing to
7575
the overall invoice with a per-day timeseries (as compared to the
76-
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
77-
snapshot for the current period).
76+
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
77+
which represents a snapshot for the current period).
7878
3. Assess how minimums and discounts affect your customers by teasing apart
7979
costs directly as a result of usage, as opposed to minimums and discounts at
8080
the plan and price level.
@@ -239,8 +239,8 @@ def list_by_external_id(
239239
"""
240240
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
241241
Orb, calculated by applying pricing information to the underlying usage (see the
242-
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
243-
per metric, in usage units rather than a currency).
242+
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
243+
to fetch usage per metric, in usage units rather than a currency).
244244
245245
This endpoint can be leveraged for internal tooling and to provide a more
246246
transparent billing experience for your end users:
@@ -249,8 +249,8 @@ def list_by_external_id(
249249
the current billing period.
250250
2. Provide customer visibility into how different services are contributing to
251251
the overall invoice with a per-day timeseries (as compared to the
252-
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
253-
snapshot for the current period).
252+
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
253+
which represents a snapshot for the current period).
254254
3. Assess how minimums and discounts affect your customers by teasing apart
255255
costs directly as a result of usage, as opposed to minimums and discounts at
256256
the plan and price level.
@@ -438,8 +438,8 @@ async def list(
438438
"""
439439
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
440440
Orb, calculated by applying pricing information to the underlying usage (see the
441-
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
442-
per metric, in usage units rather than a currency).
441+
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
442+
to fetch usage per metric, in usage units rather than a currency).
443443
444444
This endpoint can be leveraged for internal tooling and to provide a more
445445
transparent billing experience for your end users:
@@ -448,8 +448,8 @@ async def list(
448448
the current billing period.
449449
2. Provide customer visibility into how different services are contributing to
450450
the overall invoice with a per-day timeseries (as compared to the
451-
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
452-
snapshot for the current period).
451+
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
452+
which represents a snapshot for the current period).
453453
3. Assess how minimums and discounts affect your customers by teasing apart
454454
costs directly as a result of usage, as opposed to minimums and discounts at
455455
the plan and price level.
@@ -614,8 +614,8 @@ async def list_by_external_id(
614614
"""
615615
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
616616
Orb, calculated by applying pricing information to the underlying usage (see the
617-
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
618-
per metric, in usage units rather than a currency).
617+
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
618+
to fetch usage per metric, in usage units rather than a currency).
619619
620620
This endpoint can be leveraged for internal tooling and to provide a more
621621
transparent billing experience for your end users:
@@ -624,8 +624,8 @@ async def list_by_external_id(
624624
the current billing period.
625625
2. Provide customer visibility into how different services are contributing to
626626
the overall invoice with a per-day timeseries (as compared to the
627-
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
628-
snapshot for the current period).
627+
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
628+
which represents a snapshot for the current period).
629629
3. Assess how minimums and discounts affect your customers by teasing apart
630630
costs directly as a result of usage, as opposed to minimums and discounts at
631631
the plan and price level.

src/orb/resources/customers/credits/ledger.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def list(
9191
"""
9292
The credits ledger provides _auditing_ functionality over Orb's credits system
9393
with a list of actions that have taken place to modify a customer's credit
94-
balance. This [paginated endpoint](../reference/pagination) lists these entries,
95-
starting from the most recent ledger entry.
94+
balance. This [paginated endpoint](/api-reference/pagination) lists these
95+
entries, starting from the most recent ledger entry.
9696
9797
More details on using Orb's real-time credit feature are
98-
[here](../guides/product-catalog/prepurchase.md).
98+
[here](/product-catalog/prepurchase).
9999
100100
There are four major types of modifications to credit balance, detailed below.
101101
@@ -2045,11 +2045,11 @@ def list_by_external_id(
20452045
"""
20462046
The credits ledger provides _auditing_ functionality over Orb's credits system
20472047
with a list of actions that have taken place to modify a customer's credit
2048-
balance. This [paginated endpoint](../reference/pagination) lists these entries,
2049-
starting from the most recent ledger entry.
2048+
balance. This [paginated endpoint](/api-reference/pagination) lists these
2049+
entries, starting from the most recent ledger entry.
20502050
20512051
More details on using Orb's real-time credit feature are
2052-
[here](../guides/product-catalog/prepurchase.md).
2052+
[here](/product-catalog/prepurchase).
20532053
20542054
There are four major types of modifications to credit balance, detailed below.
20552055
@@ -2230,11 +2230,11 @@ def list(
22302230
"""
22312231
The credits ledger provides _auditing_ functionality over Orb's credits system
22322232
with a list of actions that have taken place to modify a customer's credit
2233-
balance. This [paginated endpoint](../reference/pagination) lists these entries,
2234-
starting from the most recent ledger entry.
2233+
balance. This [paginated endpoint](/api-reference/pagination) lists these
2234+
entries, starting from the most recent ledger entry.
22352235
22362236
More details on using Orb's real-time credit feature are
2237-
[here](../guides/product-catalog/prepurchase.md).
2237+
[here](/product-catalog/prepurchase).
22382238
22392239
There are four major types of modifications to credit balance, detailed below.
22402240
@@ -4184,11 +4184,11 @@ def list_by_external_id(
41844184
"""
41854185
The credits ledger provides _auditing_ functionality over Orb's credits system
41864186
with a list of actions that have taken place to modify a customer's credit
4187-
balance. This [paginated endpoint](../reference/pagination) lists these entries,
4188-
starting from the most recent ledger entry.
4187+
balance. This [paginated endpoint](/api-reference/pagination) lists these
4188+
entries, starting from the most recent ledger entry.
41894189
41904190
More details on using Orb's real-time credit feature are
4191-
[here](../guides/product-catalog/prepurchase.md).
4191+
[here](/product-catalog/prepurchase).
41924192
41934193
There are four major types of modifications to credit balance, detailed below.
41944194

0 commit comments

Comments
 (0)