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
Jump to file
Failed to load files.
Loading
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 @@
{
".": "4.40.0"
".": "4.41.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
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 = "4.40.0"
version = "4.41.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__ = "4.40.0" # x-release-please-version
__version__ = "4.41.0" # x-release-please-version
44 changes: 22 additions & 22 deletions src/orb/types/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
"""