From 258810ecb3b28bb443e4636e0df174e931d0ec16 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 20:03:36 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 +-- src/orb/resources/credit_notes.py | 32 ++++++++++---------- src/orb/types/credit_note_create_params.py | 35 +++++++++++----------- tests/api_resources/test_credit_notes.py | 16 +++++----- 4 files changed, 44 insertions(+), 43 deletions(-) diff --git a/.stats.yml b/.stats.yml index d44c6fa9..3888ba9f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 116 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml -openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml +openapi_spec_hash: 1e04880dccbcc082ba451083e421a471 config_hash: 3c3524be9607afb24d2139ce26ce5389 diff --git a/src/orb/resources/credit_notes.py b/src/orb/resources/credit_notes.py index 3dceea3b..d4ebf528 100644 --- a/src/orb/resources/credit_notes.py +++ b/src/orb/resources/credit_notes.py @@ -90,17 +90,17 @@ def create( Args: reason: An optional reason for the credit note. - end_date: A date string to specify the global credit note service period end date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + end_date: An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. memo: An optional memo to attach to the credit note. - start_date: A date string to specify the global credit note service period start date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + start_date: An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. extra_headers: Send extra headers @@ -296,17 +296,17 @@ async def create( Args: reason: An optional reason for the credit note. - end_date: A date string to specify the global credit note service period end date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + end_date: An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. memo: An optional memo to attach to the credit note. - start_date: A date string to specify the global credit note service period start date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + start_date: An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. extra_headers: Send extra headers diff --git a/src/orb/types/credit_note_create_params.py b/src/orb/types/credit_note_create_params.py index 8e58bceb..0ac287c8 100644 --- a/src/orb/types/credit_note_create_params.py +++ b/src/orb/types/credit_note_create_params.py @@ -19,10 +19,10 @@ class CreditNoteCreateParams(TypedDict, total=False): end_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - A date string to specify the global credit note service period end date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. """ memo: Optional[str] @@ -30,10 +30,10 @@ class CreditNoteCreateParams(TypedDict, total=False): start_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - A date string to specify the global credit note service period start date in the - customer's timezone. This will be applied to all line items that don't have - their own individual service periods specified. If not provided, line items will - use their original invoice line item service periods. This date is inclusive. + An optional date string to specify the global credit note service period end + date in the customer's timezone. This will be applied to all line items. If not + provided, line items will use their original invoice line item service periods. + This date is inclusive. """ @@ -46,17 +46,18 @@ class LineItem(TypedDict, total=False): end_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - A date string to specify this line item's credit note service period end date in - the customer's timezone. If provided, this will be used for this specific line - item. If not provided, will use the global end_date if available, otherwise - defaults to the original invoice line item's end date. This date is inclusive. + An optional date string to specify this line item's credit note service period + end date in the customer's timezone. If provided, this will be used for this + specific line item. If not provided, will use the global end_date if available, + otherwise defaults to the original invoice line item's end date. This date is + inclusive. """ start_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - A date string to specify this line item's credit note service period start date - in the customer's timezone. If provided, this will be used for this specific - line item. If not provided, will use the global start_date if available, - otherwise defaults to the original invoice line item's start date. This date is - inclusive. + An optional date string to specify this line item's credit note service period + start date in the customer's timezone. If provided, this will be used for this + specific line item. If not provided, will use the global start_date if + available, otherwise defaults to the original invoice line item's start date. + This date is inclusive. """ diff --git a/tests/api_resources/test_credit_notes.py b/tests/api_resources/test_credit_notes.py index 01c84445..3aacbae9 100644 --- a/tests/api_resources/test_credit_notes.py +++ b/tests/api_resources/test_credit_notes.py @@ -39,14 +39,14 @@ def test_method_create_with_all_params(self, client: Orb) -> None: { "amount": "amount", "invoice_line_item_id": "4khy3nwzktxv7", - "end_date": parse_date("2023-09-22"), - "start_date": parse_date("2023-09-22"), + "end_date": parse_date("2023-01-31"), + "start_date": parse_date("2023-01-01"), } ], reason="duplicate", - end_date=parse_date("2023-09-22"), + end_date=parse_date("2023-01-31"), memo="An optional memo for my credit note.", - start_date=parse_date("2023-09-22"), + start_date=parse_date("2023-01-01"), ) assert_matches_type(CreditNote, credit_note, path=["response"]) @@ -187,14 +187,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No { "amount": "amount", "invoice_line_item_id": "4khy3nwzktxv7", - "end_date": parse_date("2023-09-22"), - "start_date": parse_date("2023-09-22"), + "end_date": parse_date("2023-01-31"), + "start_date": parse_date("2023-01-01"), } ], reason="duplicate", - end_date=parse_date("2023-09-22"), + end_date=parse_date("2023-01-31"), memo="An optional memo for my credit note.", - start_date=parse_date("2023-09-22"), + start_date=parse_date("2023-01-01"), ) assert_matches_type(CreditNote, credit_note, path=["response"]) From 576c98b3afdbafe4d351603ad84b78af9e28c1e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 22:58:51 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +-- src/orb/resources/credit_notes.py | 32 ++++++++++---------- src/orb/types/credit_note_create_params.py | 35 +++++++++++----------- tests/api_resources/test_credit_notes.py | 16 +++++----- 4 files changed, 43 insertions(+), 44 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3888ba9f..d44c6fa9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 116 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml -openapi_spec_hash: 1e04880dccbcc082ba451083e421a471 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml +openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e config_hash: 3c3524be9607afb24d2139ce26ce5389 diff --git a/src/orb/resources/credit_notes.py b/src/orb/resources/credit_notes.py index d4ebf528..3dceea3b 100644 --- a/src/orb/resources/credit_notes.py +++ b/src/orb/resources/credit_notes.py @@ -90,17 +90,17 @@ def create( Args: reason: An optional reason for the credit note. - end_date: An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + end_date: A date string to specify the global credit note service period end date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. memo: An optional memo to attach to the credit note. - start_date: An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + start_date: A date string to specify the global credit note service period start date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. extra_headers: Send extra headers @@ -296,17 +296,17 @@ async def create( Args: reason: An optional reason for the credit note. - end_date: An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + end_date: A date string to specify the global credit note service period end date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. memo: An optional memo to attach to the credit note. - start_date: An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + start_date: A date string to specify the global credit note service period start date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. extra_headers: Send extra headers diff --git a/src/orb/types/credit_note_create_params.py b/src/orb/types/credit_note_create_params.py index 0ac287c8..8e58bceb 100644 --- a/src/orb/types/credit_note_create_params.py +++ b/src/orb/types/credit_note_create_params.py @@ -19,10 +19,10 @@ class CreditNoteCreateParams(TypedDict, total=False): end_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + A date string to specify the global credit note service period end date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. """ memo: Optional[str] @@ -30,10 +30,10 @@ class CreditNoteCreateParams(TypedDict, total=False): start_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - An optional date string to specify the global credit note service period end - date in the customer's timezone. This will be applied to all line items. If not - provided, line items will use their original invoice line item service periods. - This date is inclusive. + A date string to specify the global credit note service period start date in the + customer's timezone. This will be applied to all line items that don't have + their own individual service periods specified. If not provided, line items will + use their original invoice line item service periods. This date is inclusive. """ @@ -46,18 +46,17 @@ class LineItem(TypedDict, total=False): end_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - An optional date string to specify this line item's credit note service period - end date in the customer's timezone. If provided, this will be used for this - specific line item. If not provided, will use the global end_date if available, - otherwise defaults to the original invoice line item's end date. This date is - inclusive. + A date string to specify this line item's credit note service period end date in + the customer's timezone. If provided, this will be used for this specific line + item. If not provided, will use the global end_date if available, otherwise + defaults to the original invoice line item's end date. This date is inclusive. """ start_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")] """ - An optional date string to specify this line item's credit note service period - start date in the customer's timezone. If provided, this will be used for this - specific line item. If not provided, will use the global start_date if - available, otherwise defaults to the original invoice line item's start date. - This date is inclusive. + A date string to specify this line item's credit note service period start date + in the customer's timezone. If provided, this will be used for this specific + line item. If not provided, will use the global start_date if available, + otherwise defaults to the original invoice line item's start date. This date is + inclusive. """ diff --git a/tests/api_resources/test_credit_notes.py b/tests/api_resources/test_credit_notes.py index 3aacbae9..01c84445 100644 --- a/tests/api_resources/test_credit_notes.py +++ b/tests/api_resources/test_credit_notes.py @@ -39,14 +39,14 @@ def test_method_create_with_all_params(self, client: Orb) -> None: { "amount": "amount", "invoice_line_item_id": "4khy3nwzktxv7", - "end_date": parse_date("2023-01-31"), - "start_date": parse_date("2023-01-01"), + "end_date": parse_date("2023-09-22"), + "start_date": parse_date("2023-09-22"), } ], reason="duplicate", - end_date=parse_date("2023-01-31"), + end_date=parse_date("2023-09-22"), memo="An optional memo for my credit note.", - start_date=parse_date("2023-01-01"), + start_date=parse_date("2023-09-22"), ) assert_matches_type(CreditNote, credit_note, path=["response"]) @@ -187,14 +187,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No { "amount": "amount", "invoice_line_item_id": "4khy3nwzktxv7", - "end_date": parse_date("2023-01-31"), - "start_date": parse_date("2023-01-01"), + "end_date": parse_date("2023-09-22"), + "start_date": parse_date("2023-09-22"), } ], reason="duplicate", - end_date=parse_date("2023-01-31"), + end_date=parse_date("2023-09-22"), memo="An optional memo for my credit note.", - start_date=parse_date("2023-01-01"), + start_date=parse_date("2023-09-22"), ) assert_matches_type(CreditNote, credit_note, path=["response"]) From dee101a5d7cb798d8346f022c3ce4c95a71f8277 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 22:59:10 +0000 Subject: [PATCH 3/3] release: 4.6.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/orb/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3d5f4e35..1269f909 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.5.0" + ".": "4.6.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bace10a..33481e6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 4.6.0 (2025-07-16) + +Full Changelog: [v4.5.0...v4.6.0](https://github.com/orbcorp/orb-python/compare/v4.5.0...v4.6.0) + +### Features + +* **api:** api update ([68861a7](https://github.com/orbcorp/orb-python/commit/68861a77e782f1d4129e5302c835426b60dfdd6a)) +* **api:** api update ([5e17454](https://github.com/orbcorp/orb-python/commit/5e174540067c48cbd1172803284b77141689c43e)) + ## 4.5.0 (2025-07-16) Full Changelog: [v4.4.2...v4.5.0](https://github.com/orbcorp/orb-python/compare/v4.4.2...v4.5.0) diff --git a/pyproject.toml b/pyproject.toml index 216b11ec..21b1e194 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.5.0" +version = "4.6.0" description = "The official Python library for the orb API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/orb/_version.py b/src/orb/_version.py index 1a9597d2..6ba547e0 100644 --- a/src/orb/_version.py +++ b/src/orb/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "orb" -__version__ = "4.5.0" # x-release-please-version +__version__ = "4.6.0" # x-release-please-version