Skip to content

Commit 3146da6

Browse files
authored
Merge pull request #629 from orbcorp/release-please--branches--main--changes--next
release: 4.0.0
2 parents 4eb45e4 + b2855f4 commit 3146da6

File tree

356 files changed

+21711
-60902
lines changed

Some content is hidden

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

356 files changed

+21711
-60902
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.24.0"
2+
".": "4.0.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-fee4c7438579fd72ae7c08ad11cc502da279ad3cccfe2235b18afcacc91ad0d9.yml
3-
openapi_spec_hash: dc9d553a388715ba22d873aee54a3ed1
4-
config_hash: 1e2186b09e57d7d27b6ab5c8e6410b31
1+
configured_endpoints: 116
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c2a4808c828c8288c5c8dfe2fdfa51d4d7c1bcc33cacc6b859d0cf4b35ce95cc.yml
3+
openapi_spec_hash: a2b5a1bfabbd03dd1b411791576eb502
4+
config_hash: 3c3524be9607afb24d2139ce26ce5389

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 4.0.0 (2025-06-09)
4+
5+
Full Changelog: [v3.24.0...v4.0.0](https://github.com/orbcorp/orb-python/compare/v3.24.0...v4.0.0)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **client:** breaking change to re-use types
10+
11+
### Features
12+
13+
* **api:** api update ([1703727](https://github.com/orbcorp/orb-python/commit/17037277fa161738f83680233c04f597741b1c1c))
14+
* **api:** api update ([a76a33a](https://github.com/orbcorp/orb-python/commit/a76a33a422924747a24845a5e083cdca26e59c9b))
15+
* **api:** manual updates ([45ce124](https://github.com/orbcorp/orb-python/commit/45ce124f58e30ccb43cc3e0d3e3ce9c28c0b54a2))
16+
* **client:** breaking change to re-use types ([fd639a0](https://github.com/orbcorp/orb-python/commit/fd639a083f97949fea5cdbc9c0e24b593445d44f))
17+
318
## 3.24.0 (2025-06-04)
419

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

api.md

Lines changed: 216 additions & 49 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "orb-billing"
3-
version = "3.24.0"
3+
version = "4.0.0"
44
description = "The official Python library for the orb API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/orb/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "orb"
4-
__version__ = "3.24.0" # x-release-please-version
4+
__version__ = "4.0.0" # x-release-please-version

src/orb/resources/alerts.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from ..pagination import SyncPage, AsyncPage
2727
from ..types.alert import Alert
2828
from .._base_client import AsyncPaginator, make_request_options
29+
from ..types.threshold_param import ThresholdParam
2930

3031
__all__ = ["Alerts", "AsyncAlerts"]
3132

@@ -87,7 +88,7 @@ def update(
8788
self,
8889
alert_configuration_id: str,
8990
*,
90-
thresholds: Iterable[alert_update_params.Threshold],
91+
thresholds: Iterable[ThresholdParam],
9192
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9293
# The extra values given here take precedence over values defined on the client or passed to this method.
9394
extra_headers: Headers | None = None,
@@ -213,7 +214,7 @@ def create_for_customer(
213214
*,
214215
currency: str,
215216
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
216-
thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
217+
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
217218
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
218219
# The extra values given here take precedence over values defined on the client or passed to this method.
219220
extra_headers: Headers | None = None,
@@ -278,7 +279,7 @@ def create_for_external_customer(
278279
*,
279280
currency: str,
280281
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
281-
thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
282+
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
282283
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
283284
# The extra values given here take precedence over values defined on the client or passed to this method.
284285
extra_headers: Headers | None = None,
@@ -343,7 +344,7 @@ def create_for_subscription(
343344
self,
344345
subscription_id: str,
345346
*,
346-
thresholds: Iterable[alert_create_for_subscription_params.Threshold],
347+
thresholds: Iterable[ThresholdParam],
347348
type: Literal["usage_exceeded", "cost_exceeded"],
348349
metric_id: Optional[str] | NotGiven = NOT_GIVEN,
349350
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -562,7 +563,7 @@ async def update(
562563
self,
563564
alert_configuration_id: str,
564565
*,
565-
thresholds: Iterable[alert_update_params.Threshold],
566+
thresholds: Iterable[ThresholdParam],
566567
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
567568
# The extra values given here take precedence over values defined on the client or passed to this method.
568569
extra_headers: Headers | None = None,
@@ -688,7 +689,7 @@ async def create_for_customer(
688689
*,
689690
currency: str,
690691
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
691-
thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
692+
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
692693
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
693694
# The extra values given here take precedence over values defined on the client or passed to this method.
694695
extra_headers: Headers | None = None,
@@ -753,7 +754,7 @@ async def create_for_external_customer(
753754
*,
754755
currency: str,
755756
type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"],
756-
thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN,
757+
thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN,
757758
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
758759
# The extra values given here take precedence over values defined on the client or passed to this method.
759760
extra_headers: Headers | None = None,
@@ -818,7 +819,7 @@ async def create_for_subscription(
818819
self,
819820
subscription_id: str,
820821
*,
821-
thresholds: Iterable[alert_create_for_subscription_params.Threshold],
822+
thresholds: Iterable[ThresholdParam],
822823
type: Literal["usage_exceeded", "cost_exceeded"],
823824
metric_id: Optional[str] | NotGiven = NOT_GIVEN,
824825
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/orb/resources/credit_notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
1818
from ..pagination import SyncPage, AsyncPage
1919
from .._base_client import AsyncPaginator, make_request_options
20-
from ..types.credit_note import CreditNote
20+
from ..types.shared.credit_note import CreditNote
2121

2222
__all__ = ["CreditNotes", "AsyncCreditNotes"]
2323

0 commit comments

Comments
 (0)