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.20.0"
".": "4.21.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-b6ec9a6bf40b74575d917ab145b2413bc61dcd6989bb9d1aa41624bf3437599e.yml
openapi_spec_hash: 53cf9363c3bd9649e0af5f713abdcba7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml
openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.21.0 (2025-10-03)

Full Changelog: [v4.20.0...v4.21.0](https://github.com/orbcorp/orb-python/compare/v4.20.0...v4.21.0)

### Features

* **api:** api update ([d289e1b](https://github.com/orbcorp/orb-python/commit/d289e1b3a1b6d3e5b57d2d3446f6ccd535d3edb6))

## 4.20.0 (2025-09-30)

Full Changelog: [v4.19.0...v4.20.0](https://github.com/orbcorp/orb-python/compare/v4.19.0...v4.20.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.20.0"
version = "4.21.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.20.0" # x-release-please-version
__version__ = "4.21.0" # x-release-please-version
5 changes: 0 additions & 5 deletions src/orb/types/shared/unit_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from ..._models import BaseModel

__all__ = ["UnitConfig"]
Expand All @@ -10,6 +8,3 @@
class UnitConfig(BaseModel):
unit_amount: str
"""Rate per unit of usage"""

scaling_factor: Optional[float] = None
"""Multiplier to scale rated quantity by"""
4 changes: 0 additions & 4 deletions src/orb/types/shared_params/unit_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from typing import Optional
from typing_extensions import Required, TypedDict

__all__ = ["UnitConfig"]
Expand All @@ -11,6 +10,3 @@
class UnitConfig(TypedDict, total=False):
unit_amount: Required[str]
"""Rate per unit of usage"""

scaling_factor: Optional[float]
"""Multiplier to scale rated quantity by"""
20 changes: 4 additions & 16 deletions tests/api_resources/beta/test_external_plan_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ def test_method_create_plan_version_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -157,10 +154,7 @@ def test_method_create_plan_version_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -377,10 +371,7 @@ async def test_method_create_plan_version_with_all_params(self, async_client: As
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -464,10 +455,7 @@ async def test_method_create_plan_version_with_all_params(self, async_client: As
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down
20 changes: 4 additions & 16 deletions tests/api_resources/test_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ def test_method_create_plan_version_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -157,10 +154,7 @@ def test_method_create_plan_version_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -377,10 +371,7 @@ async def test_method_create_plan_version_with_all_params(self, async_client: As
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -464,10 +455,7 @@ async def test_method_create_plan_version_with_all_params(self, async_client: As
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down
10 changes: 2 additions & 8 deletions tests/api_resources/test_invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ def test_method_create_with_all_params(self, client: Orb) -> None:
"name": "Line Item Name",
"quantity": 1,
"start_date": parse_date("2023-09-22"),
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
}
],
customer_id="4khy3nwzktxv7",
Expand Down Expand Up @@ -510,10 +507,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No
"name": "Line Item Name",
"quantity": 1,
"start_date": parse_date("2023-09-22"),
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
}
],
customer_id="4khy3nwzktxv7",
Expand Down
10 changes: 2 additions & 8 deletions tests/api_resources/test_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ def test_method_create_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -311,10 +308,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down
30 changes: 6 additions & 24 deletions tests/api_resources/test_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ def test_method_create_with_all_params_overload_1(self, client: Orb) -> None:
item_id="item_id",
model_type="unit",
name="Annual fee",
unit_config={
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
unit_config={"unit_amount": "unit_amount"},
billable_metric_id="billable_metric_id",
billed_in_advance=True,
billing_cycle_configuration={
Expand Down Expand Up @@ -3259,10 +3256,7 @@ def test_method_evaluate_multiple_with_all_params(self, client: Orb) -> None:
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -3355,10 +3349,7 @@ def test_method_evaluate_preview_events_with_all_params(self, client: Orb) -> No
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -3480,10 +3471,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
item_id="item_id",
model_type="unit",
name="Annual fee",
unit_config={
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
unit_config={"unit_amount": "unit_amount"},
billable_metric_id="billable_metric_id",
billed_in_advance=True,
billing_cycle_configuration={
Expand Down Expand Up @@ -6695,10 +6683,7 @@ async def test_method_evaluate_multiple_with_all_params(self, async_client: Asyn
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down Expand Up @@ -6791,10 +6776,7 @@ async def test_method_evaluate_preview_events_with_all_params(self, async_client
"item_id": "item_id",
"model_type": "unit",
"name": "Annual fee",
"unit_config": {
"unit_amount": "unit_amount",
"scaling_factor": 0,
},
"unit_config": {"unit_amount": "unit_amount"},
"billable_metric_id": "billable_metric_id",
"billed_in_advance": True,
"billing_cycle_configuration": {
Expand Down
Loading