From 3b4c06a2a8359621d3f6c486a95af39954ac3caa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 22:25:32 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../types/invoice_fetch_upcoming_response.py | 16 ---------------- .../types/invoice_line_item_create_response.py | 18 ------------------ .../shared/changed_subscription_resources.py | 16 ---------------- src/orb/types/shared/invoice.py | 16 ---------------- 5 files changed, 2 insertions(+), 68 deletions(-) diff --git a/.stats.yml b/.stats.yml index a477a2c5..107688d5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-145c6652d32a05c9305e4674643e2aa7d559073e48dc252d6c3c0fe802ce7ec6.yml -openapi_spec_hash: 6bbbbe1687099b69faee47fda12bf82c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9e751a2aefff382af949380b5979a80cb02743eca1583cf5146325fb400ba87f.yml +openapi_spec_hash: 219a1008f47d3293f64f1baebe2d6eb5 config_hash: e6db17547fe854b1c240407cf4c6dc9e diff --git a/src/orb/types/invoice_fetch_upcoming_response.py b/src/orb/types/invoice_fetch_upcoming_response.py index 2a79e064..3b5338cf 100644 --- a/src/orb/types/invoice_fetch_upcoming_response.py +++ b/src/orb/types/invoice_fetch_upcoming_response.py @@ -10,7 +10,6 @@ from .shared.address import Address from .shared.maximum import Maximum from .shared.minimum import Minimum -from .shared.discount import Discount from .shared.tax_amount import TaxAmount from .shared.invoice_tiny import InvoiceTiny from .shared.customer_tax_id import CustomerTaxID @@ -172,9 +171,6 @@ class LineItem(BaseModel): credits_applied: str """The number of prepaid credits applied.""" - discount: Optional[Discount] = None - """This field is deprecated in favor of `adjustments`""" - end_date: datetime """The end date of the range of time applied for this line item's price.""" @@ -188,18 +184,6 @@ class LineItem(BaseModel): values for this particular grouping. """ - maximum: Optional[Maximum] = None - """This field is deprecated in favor of `adjustments`.""" - - maximum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum: Optional[Minimum] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - name: str """The name of the price associated with this line item.""" diff --git a/src/orb/types/invoice_line_item_create_response.py b/src/orb/types/invoice_line_item_create_response.py index ed91c31f..3c8cf8ea 100644 --- a/src/orb/types/invoice_line_item_create_response.py +++ b/src/orb/types/invoice_line_item_create_response.py @@ -7,9 +7,6 @@ from .._utils import PropertyInfo from .._models import BaseModel from .shared.price import Price -from .shared.maximum import Maximum -from .shared.minimum import Minimum -from .shared.discount import Discount from .shared.tax_amount import TaxAmount from .shared.tier_sub_line_item import TierSubLineItem from .shared.other_sub_line_item import OtherSubLineItem @@ -64,9 +61,6 @@ class InvoiceLineItemCreateResponse(BaseModel): credits_applied: str """The number of prepaid credits applied.""" - discount: Optional[Discount] = None - """This field is deprecated in favor of `adjustments`""" - end_date: datetime """The end date of the range of time applied for this line item's price.""" @@ -80,18 +74,6 @@ class InvoiceLineItemCreateResponse(BaseModel): values for this particular grouping. """ - maximum: Optional[Maximum] = None - """This field is deprecated in favor of `adjustments`.""" - - maximum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum: Optional[Minimum] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - name: str """The name of the price associated with this line item.""" diff --git a/src/orb/types/shared/changed_subscription_resources.py b/src/orb/types/shared/changed_subscription_resources.py index 7e31d1b5..402f8aab 100644 --- a/src/orb/types/shared/changed_subscription_resources.py +++ b/src/orb/types/shared/changed_subscription_resources.py @@ -10,7 +10,6 @@ from .maximum import Maximum from .minimum import Minimum from ..._utils import PropertyInfo -from .discount import Discount from ..._models import BaseModel from .tax_amount import TaxAmount from .credit_note import CreditNote @@ -175,9 +174,6 @@ class CreatedInvoiceLineItem(BaseModel): credits_applied: str """The number of prepaid credits applied.""" - discount: Optional[Discount] = None - """This field is deprecated in favor of `adjustments`""" - end_date: datetime """The end date of the range of time applied for this line item's price.""" @@ -191,18 +187,6 @@ class CreatedInvoiceLineItem(BaseModel): values for this particular grouping. """ - maximum: Optional[Maximum] = None - """This field is deprecated in favor of `adjustments`.""" - - maximum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum: Optional[Minimum] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - name: str """The name of the price associated with this line item.""" diff --git a/src/orb/types/shared/invoice.py b/src/orb/types/shared/invoice.py index 5a47ebdf..958244d6 100644 --- a/src/orb/types/shared/invoice.py +++ b/src/orb/types/shared/invoice.py @@ -9,7 +9,6 @@ from .maximum import Maximum from .minimum import Minimum from ..._utils import PropertyInfo -from .discount import Discount from ..._models import BaseModel from .tax_amount import TaxAmount from .invoice_tiny import InvoiceTiny @@ -172,9 +171,6 @@ class LineItem(BaseModel): credits_applied: str """The number of prepaid credits applied.""" - discount: Optional[Discount] = None - """This field is deprecated in favor of `adjustments`""" - end_date: datetime """The end date of the range of time applied for this line item's price.""" @@ -188,18 +184,6 @@ class LineItem(BaseModel): values for this particular grouping. """ - maximum: Optional[Maximum] = None - """This field is deprecated in favor of `adjustments`.""" - - maximum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum: Optional[Minimum] = None - """This field is deprecated in favor of `adjustments`.""" - - minimum_amount: Optional[str] = None - """This field is deprecated in favor of `adjustments`.""" - name: str """The name of the price associated with this line item.""" From 2e34b61d67bd58315e012588cdfafa93dbd2c88e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 22:25:52 +0000 Subject: [PATCH 2/2] release: 4.39.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/orb/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 40b0c20e..7bda38c9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.38.2" + ".": "4.39.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 461d8354..5b41b8af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.39.0 (2025-11-13) + +Full Changelog: [v4.38.2...v4.39.0](https://github.com/orbcorp/orb-python/compare/v4.38.2...v4.39.0) + +### Features + +* **api:** api update ([3b4c06a](https://github.com/orbcorp/orb-python/commit/3b4c06a2a8359621d3f6c486a95af39954ac3caa)) + ## 4.38.2 (2025-11-11) Full Changelog: [v4.38.1...v4.38.2](https://github.com/orbcorp/orb-python/compare/v4.38.1...v4.38.2) diff --git a/pyproject.toml b/pyproject.toml index 9dc4b4be..5cf231bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.38.2" +version = "4.39.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 1d6e014a..7618a36f 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.38.2" # x-release-please-version +__version__ = "4.39.0" # x-release-please-version