From 9081c9b4c008cd7d6ae8914dfd3853d89560ffa8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 16 Nov 2025 04:25:24 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/orb/types/plan.py | 44 +++++++++++++++++++++---------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.stats.yml b/.stats.yml index 30ac7b66..3cb33be6 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-947253d9be505473c1c2cb0193d2602fa6b017e221f482be3f4f374c6156b350.yml -openapi_spec_hash: 1b40d1a85b4b846a1c14634fbbc65da3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4ad3b44ca7f484243d8706b6aa7f4498fc5bf2b37fadf3da0a06d657e482c08f.yml +openapi_spec_hash: 9ead1a2aae36be1086c627c3636064ea config_hash: e6db17547fe854b1c240407cf4c6dc9e diff --git a/src/orb/types/plan.py b/src/orb/types/plan.py index a81bace5..4dee4e7a 100644 --- a/src/orb/types/plan.py +++ b/src/orb/types/plan.py @@ -16,7 +16,7 @@ from .shared.plan_phase_amount_discount_adjustment import PlanPhaseAmountDiscountAdjustment from .shared.plan_phase_percentage_discount_adjustment import PlanPhasePercentageDiscountAdjustment -__all__ = ["Plan", "Adjustment", "PlanPhase", "Product", "TrialConfig", "BasePlan"] +__all__ = ["Plan", "Adjustment", "BasePlan", "PlanPhase", "Product", "TrialConfig"] Adjustment: TypeAlias = Annotated[ Union[ @@ -30,6 +30,19 @@ ] +class BasePlan(BaseModel): + id: Optional[str] = None + + external_plan_id: Optional[str] = None + """ + An optional user-defined ID for this plan resource, used throughout the system + as an alias for this Plan. Use this field to identify a plan by an existing + identifier in your system. + """ + + name: Optional[str] = None + + class PlanPhase(BaseModel): id: str @@ -73,19 +86,6 @@ class TrialConfig(BaseModel): trial_period_unit: Literal["days"] -class BasePlan(BaseModel): - id: Optional[str] = None - - external_plan_id: Optional[str] = None - """ - An optional user-defined ID for this plan resource, used throughout the system - as an alias for this Plan. Use this field to identify a plan by an existing - identifier in your system. - """ - - name: Optional[str] = None - - class Plan(BaseModel): id: str @@ -95,6 +95,14 @@ class Plan(BaseModel): If the plan has phases, this includes adjustments across all phases of the plan. """ + base_plan: Optional[BasePlan] = None + + base_plan_id: Optional[str] = None + """ + The parent plan id if the given plan was created by overriding one or more of + the parent's prices + """ + created_at: datetime currency: str @@ -168,11 +176,3 @@ class Plan(BaseModel): trial_config: TrialConfig version: int - - base_plan: Optional[BasePlan] = None - - base_plan_id: Optional[str] = None - """ - The parent plan id if the given plan was created by overriding one or more of - the parent's prices - """ From 57f6880d657c9ccb8304f79e3ad5952ea1bd6181 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 16 Nov 2025 04:25:42 +0000 Subject: [PATCH 2/2] release: 4.41.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 a92bd0ca..807cc3ab 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.40.0" + ".": "4.41.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e3d52548..ddd014f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.41.0 (2025-11-16) + +Full Changelog: [v4.40.0...v4.41.0](https://github.com/orbcorp/orb-python/compare/v4.40.0...v4.41.0) + +### Features + +* **api:** api update ([9081c9b](https://github.com/orbcorp/orb-python/commit/9081c9b4c008cd7d6ae8914dfd3853d89560ffa8)) + ## 4.40.0 (2025-11-16) Full Changelog: [v4.39.0...v4.40.0](https://github.com/orbcorp/orb-python/compare/v4.39.0...v4.40.0) diff --git a/pyproject.toml b/pyproject.toml index 397d74ed..5ee2c43c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.40.0" +version = "4.41.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 150f1c04..afb8c3b9 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.40.0" # x-release-please-version +__version__ = "4.41.0" # x-release-please-version