Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.22.0"
".": "2.23.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-11f40c15fa889d9752019e8a35b82d2e7a3d42f2b42c850b469f120a5b2c47ba.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e480186cdd0e2cc631befa7e2c6ba5f2d7ae52052f0e79a748214f3ade8a98ee.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 2.23.0 (2025-01-18)

Full Changelog: [v2.22.0...v2.23.0](https://github.com/orbcorp/orb-python/compare/v2.22.0...v2.23.0)

### Features

* **api:** api update ([#496](https://github.com/orbcorp/orb-python/issues/496)) ([07fa67c](https://github.com/orbcorp/orb-python/commit/07fa67c837abccaac994d3fe61ec099d95e0a4ac))


### Chores

* **internal:** version bump ([#493](https://github.com/orbcorp/orb-python/issues/493)) ([09c4724](https://github.com/orbcorp/orb-python/commit/09c47240beade631d15ade50f3a09447c4c49ab5))

## 2.22.0 (2025-01-16)

Full Changelog: [v2.21.0...v2.22.0](https://github.com/orbcorp/orb-python/compare/v2.21.0...v2.22.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "orb-billing"
version = "2.22.0"
version = "2.23.0"
description = "The official Python library for the orb API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/orb/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "orb"
__version__ = "2.22.0" # x-release-please-version
__version__ = "2.23.0" # x-release-please-version
16 changes: 6 additions & 10 deletions src/orb/resources/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def list(

The list of alerts is ordered starting from the most recently created alert.
This endpoint follows Orb's
[standardized pagination format](../reference/pagination).
[standardized pagination format](/api-reference/pagination).

Args:
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
Expand Down Expand Up @@ -237,8 +237,7 @@ def create_for_customer(
are three types of alerts that can be scoped to customers:
`credit_balance_depleted`, `credit_balance_dropped`, and
`credit_balance_recovered`. Customers can have a maximum of one of each type of
alert per
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
alert per [credit balance currency](/product-catalog/prepurchase).
`credit_balance_dropped` alerts require a list of thresholds to be provided
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
require thresholds.
Expand Down Expand Up @@ -309,8 +308,7 @@ def create_for_external_customer(
are three types of alerts that can be scoped to customers:
`credit_balance_depleted`, `credit_balance_dropped`, and
`credit_balance_recovered`. Customers can have a maximum of one of each type of
alert per
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
alert per [credit balance currency](/product-catalog/prepurchase).
`credit_balance_dropped` alerts require a list of thresholds to be provided
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
require thresholds.
Expand Down Expand Up @@ -657,7 +655,7 @@ def list(

The list of alerts is ordered starting from the most recently created alert.
This endpoint follows Orb's
[standardized pagination format](../reference/pagination).
[standardized pagination format](/api-reference/pagination).

Args:
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
Expand Down Expand Up @@ -732,8 +730,7 @@ async def create_for_customer(
are three types of alerts that can be scoped to customers:
`credit_balance_depleted`, `credit_balance_dropped`, and
`credit_balance_recovered`. Customers can have a maximum of one of each type of
alert per
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
alert per [credit balance currency](/product-catalog/prepurchase).
`credit_balance_dropped` alerts require a list of thresholds to be provided
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
require thresholds.
Expand Down Expand Up @@ -804,8 +801,7 @@ async def create_for_external_customer(
are three types of alerts that can be scoped to customers:
`credit_balance_depleted`, `credit_balance_dropped`, and
`credit_balance_recovered`. Customers can have a maximum of one of each type of
alert per
[credit balance currency](https://docs.withorb.com/guides/product-catalog/prepurchase).
alert per [credit balance currency](/product-catalog/prepurchase).
`credit_balance_dropped` alerts require a list of thresholds to be provided
while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
require thresholds.
Expand Down
12 changes: 6 additions & 6 deletions src/orb/resources/coupons/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def list(
) -> SyncPage[Subscription]:
"""
This endpoint returns a list of all subscriptions that have redeemed a given
coupon as a [paginated](../reference/pagination) list, ordered starting from the
most recently created subscription. For a full discussion of the subscription
resource, see [Subscription](../guides/concepts#subscription).
coupon as a [paginated](/api-reference/pagination) list, ordered starting from
the most recently created subscription. For a full discussion of the
subscription resource, see [Subscription](/core-concepts#subscription).

Args:
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
Expand Down Expand Up @@ -130,9 +130,9 @@ def list(
) -> AsyncPaginator[Subscription, AsyncPage[Subscription]]:
"""
This endpoint returns a list of all subscriptions that have redeemed a given
coupon as a [paginated](../reference/pagination) list, ordered starting from the
most recently created subscription. For a full discussion of the subscription
resource, see [Subscription](../guides/concepts#subscription).
coupon as a [paginated](/api-reference/pagination) list, ordered starting from
the most recently created subscription. For a full discussion of the
subscription resource, see [Subscription](/core-concepts#subscription).

Args:
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
Expand Down
12 changes: 6 additions & 6 deletions src/orb/resources/credit_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def create(
) -> CreditNote:
"""
This endpoint is used to create a single
[`Credit Note`](../guides/invoicing/credit-notes).
[`Credit Note`](/invoicing/credit-notes).

Args:
memo: An optional memo to attach to the credit note.
Expand Down Expand Up @@ -161,8 +161,8 @@ def fetch(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CreditNote:
"""
This endpoint is used to fetch a single
[`Credit Note`](../guides/invoicing/credit-notes) given an identifier.
This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
given an identifier.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -221,7 +221,7 @@ async def create(
) -> CreditNote:
"""
This endpoint is used to create a single
[`Credit Note`](../guides/invoicing/credit-notes).
[`Credit Note`](/invoicing/credit-notes).

Args:
memo: An optional memo to attach to the credit note.
Expand Down Expand Up @@ -321,8 +321,8 @@ async def fetch(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CreditNote:
"""
This endpoint is used to fetch a single
[`Credit Note`](../guides/invoicing/credit-notes) given an identifier.
This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
given an identifier.

Args:
extra_headers: Send extra headers
Expand Down
32 changes: 16 additions & 16 deletions src/orb/resources/customers/costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def list(
"""
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
Orb, calculated by applying pricing information to the underlying usage (see the
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
per metric, in usage units rather than a currency).
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
to fetch usage per metric, in usage units rather than a currency).

This endpoint can be leveraged for internal tooling and to provide a more
transparent billing experience for your end users:
Expand All @@ -73,8 +73,8 @@ def list(
the current billing period.
2. Provide customer visibility into how different services are contributing to
the overall invoice with a per-day timeseries (as compared to the
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
snapshot for the current period).
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
which represents a snapshot for the current period).
3. Assess how minimums and discounts affect your customers by teasing apart
costs directly as a result of usage, as opposed to minimums and discounts at
the plan and price level.
Expand Down Expand Up @@ -239,8 +239,8 @@ def list_by_external_id(
"""
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
Orb, calculated by applying pricing information to the underlying usage (see the
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
per metric, in usage units rather than a currency).
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
to fetch usage per metric, in usage units rather than a currency).

This endpoint can be leveraged for internal tooling and to provide a more
transparent billing experience for your end users:
Expand All @@ -249,8 +249,8 @@ def list_by_external_id(
the current billing period.
2. Provide customer visibility into how different services are contributing to
the overall invoice with a per-day timeseries (as compared to the
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
snapshot for the current period).
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
which represents a snapshot for the current period).
3. Assess how minimums and discounts affect your customers by teasing apart
costs directly as a result of usage, as opposed to minimums and discounts at
the plan and price level.
Expand Down Expand Up @@ -438,8 +438,8 @@ async def list(
"""
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
Orb, calculated by applying pricing information to the underlying usage (see the
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
per metric, in usage units rather than a currency).
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
to fetch usage per metric, in usage units rather than a currency).

This endpoint can be leveraged for internal tooling and to provide a more
transparent billing experience for your end users:
Expand All @@ -448,8 +448,8 @@ async def list(
the current billing period.
2. Provide customer visibility into how different services are contributing to
the overall invoice with a per-day timeseries (as compared to the
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
snapshot for the current period).
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
which represents a snapshot for the current period).
3. Assess how minimums and discounts affect your customers by teasing apart
costs directly as a result of usage, as opposed to minimums and discounts at
the plan and price level.
Expand Down Expand Up @@ -614,8 +614,8 @@ async def list_by_external_id(
"""
This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
Orb, calculated by applying pricing information to the underlying usage (see the
[subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
per metric, in usage units rather than a currency).
[subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage)
to fetch usage per metric, in usage units rather than a currency).

This endpoint can be leveraged for internal tooling and to provide a more
transparent billing experience for your end users:
Expand All @@ -624,8 +624,8 @@ async def list_by_external_id(
the current billing period.
2. Provide customer visibility into how different services are contributing to
the overall invoice with a per-day timeseries (as compared to the
[upcoming invoice](fetch-upcoming-invoice) resource, which represents a
snapshot for the current period).
[upcoming invoice](/api-reference/invoice/fetch-upcoming-invoice) resource,
which represents a snapshot for the current period).
3. Assess how minimums and discounts affect your customers by teasing apart
costs directly as a result of usage, as opposed to minimums and discounts at
the plan and price level.
Expand Down
24 changes: 12 additions & 12 deletions src/orb/resources/customers/credits/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def list(
"""
The credits ledger provides _auditing_ functionality over Orb's credits system
with a list of actions that have taken place to modify a customer's credit
balance. This [paginated endpoint](../reference/pagination) lists these entries,
starting from the most recent ledger entry.
balance. This [paginated endpoint](/api-reference/pagination) lists these
entries, starting from the most recent ledger entry.

More details on using Orb's real-time credit feature are
[here](../guides/product-catalog/prepurchase.md).
[here](/product-catalog/prepurchase).

There are four major types of modifications to credit balance, detailed below.

Expand Down Expand Up @@ -2045,11 +2045,11 @@ def list_by_external_id(
"""
The credits ledger provides _auditing_ functionality over Orb's credits system
with a list of actions that have taken place to modify a customer's credit
balance. This [paginated endpoint](../reference/pagination) lists these entries,
starting from the most recent ledger entry.
balance. This [paginated endpoint](/api-reference/pagination) lists these
entries, starting from the most recent ledger entry.

More details on using Orb's real-time credit feature are
[here](../guides/product-catalog/prepurchase.md).
[here](/product-catalog/prepurchase).

There are four major types of modifications to credit balance, detailed below.

Expand Down Expand Up @@ -2230,11 +2230,11 @@ def list(
"""
The credits ledger provides _auditing_ functionality over Orb's credits system
with a list of actions that have taken place to modify a customer's credit
balance. This [paginated endpoint](../reference/pagination) lists these entries,
starting from the most recent ledger entry.
balance. This [paginated endpoint](/api-reference/pagination) lists these
entries, starting from the most recent ledger entry.

More details on using Orb's real-time credit feature are
[here](../guides/product-catalog/prepurchase.md).
[here](/product-catalog/prepurchase).

There are four major types of modifications to credit balance, detailed below.

Expand Down Expand Up @@ -4184,11 +4184,11 @@ def list_by_external_id(
"""
The credits ledger provides _auditing_ functionality over Orb's credits system
with a list of actions that have taken place to modify a customer's credit
balance. This [paginated endpoint](../reference/pagination) lists these entries,
starting from the most recent ledger entry.
balance. This [paginated endpoint](/api-reference/pagination) lists these
entries, starting from the most recent ledger entry.

More details on using Orb's real-time credit feature are
[here](../guides/product-catalog/prepurchase.md).
[here](/product-catalog/prepurchase).

There are four major types of modifications to credit balance, detailed below.

Expand Down
Loading
Loading