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
The table of contents is too big for display.
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 @@
{
".": "3.24.0"
".": "4.0.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 115
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-fee4c7438579fd72ae7c08ad11cc502da279ad3cccfe2235b18afcacc91ad0d9.yml
openapi_spec_hash: dc9d553a388715ba22d873aee54a3ed1
config_hash: 1e2186b09e57d7d27b6ab5c8e6410b31
configured_endpoints: 116
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c2a4808c828c8288c5c8dfe2fdfa51d4d7c1bcc33cacc6b859d0cf4b35ce95cc.yml
openapi_spec_hash: a2b5a1bfabbd03dd1b411791576eb502
config_hash: 3c3524be9607afb24d2139ce26ce5389
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 4.0.0 (2025-06-09)

Full Changelog: [v3.24.0...v4.0.0](https://github.com/orbcorp/orb-python/compare/v3.24.0...v4.0.0)

### ⚠ BREAKING CHANGES

* **client:** breaking change to re-use types

### Features

* **api:** api update ([1703727](https://github.com/orbcorp/orb-python/commit/17037277fa161738f83680233c04f597741b1c1c))
* **api:** api update ([a76a33a](https://github.com/orbcorp/orb-python/commit/a76a33a422924747a24845a5e083cdca26e59c9b))
* **api:** manual updates ([45ce124](https://github.com/orbcorp/orb-python/commit/45ce124f58e30ccb43cc3e0d3e3ce9c28c0b54a2))
* **client:** breaking change to re-use types ([fd639a0](https://github.com/orbcorp/orb-python/commit/fd639a083f97949fea5cdbc9c0e24b593445d44f))

## 3.24.0 (2025-06-04)

Full Changelog: [v3.23.0...v3.24.0](https://github.com/orbcorp/orb-python/compare/v3.23.0...v3.24.0)
Expand Down
265 changes: 216 additions & 49 deletions api.md

Large diffs are not rendered by default.

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 = "3.24.0"
version = "4.0.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__ = "3.24.0" # x-release-please-version
__version__ = "4.0.0" # x-release-please-version
17 changes: 9 additions & 8 deletions src/orb/resources/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from ..pagination import SyncPage, AsyncPage
from ..types.alert import Alert
from .._base_client import AsyncPaginator, make_request_options
from ..types.threshold_param import ThresholdParam

__all__ = ["Alerts", "AsyncAlerts"]

Expand Down Expand Up @@ -87,7 +88,7 @@ def update(
self,
alert_configuration_id: str,
*,
thresholds: Iterable[alert_update_params.Threshold],
thresholds: Iterable[ThresholdParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -213,7 +214,7 @@ def create_for_customer(
*,
currency: str,
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -278,7 +279,7 @@ def create_for_external_customer(
*,
currency: str,
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -343,7 +344,7 @@ def create_for_subscription(
self,
subscription_id: str,
*,
thresholds: Iterable[alert_create_for_subscription_params.Threshold],
thresholds: Iterable[ThresholdParam],
type: Literal["usage_exceeded", "cost_exceeded"],
metric_id: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -562,7 +563,7 @@ async def update(
self,
alert_configuration_id: str,
*,
thresholds: Iterable[alert_update_params.Threshold],
thresholds: Iterable[ThresholdParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -688,7 +689,7 @@ async def create_for_customer(
*,
currency: str,
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -753,7 +754,7 @@ async def create_for_external_customer(
*,
currency: str,
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -818,7 +819,7 @@ async def create_for_subscription(
self,
subscription_id: str,
*,
thresholds: Iterable[alert_create_for_subscription_params.Threshold],
thresholds: Iterable[ThresholdParam],
type: Literal["usage_exceeded", "cost_exceeded"],
metric_id: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
2 changes: 1 addition & 1 deletion src/orb/resources/credit_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from .._base_client import AsyncPaginator, make_request_options
from ..types.credit_note import CreditNote
from ..types.shared.credit_note import CreditNote

__all__ = ["CreditNotes", "AsyncCreditNotes"]

Expand Down
Loading