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 @@
{
".": "2.25.0"
".": "2.26.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-326205df28a52e9ad57c34d7ed1ec85fadd67f9a041df2882ebaa65f6de09930.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-8663e8fc543041d9694eddcd2f7e9784611369606700f99340e6dc80607b2dfa.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.26.0 (2025-01-30)

Full Changelog: [v2.25.0...v2.26.0](https://github.com/orbcorp/orb-python/compare/v2.25.0...v2.26.0)

### Features

* **api:** api update ([#513](https://github.com/orbcorp/orb-python/issues/513)) ([e67b68c](https://github.com/orbcorp/orb-python/commit/e67b68cb9acf4217ab9aecf7f96c06f6fcf785da))

## 2.25.0 (2025-01-23)

Full Changelog: [v2.24.0...v2.25.0](https://github.com/orbcorp/orb-python/compare/v2.24.0...v2.25.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 = "2.25.0"
version = "2.26.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__ = "2.25.0" # x-release-please-version
__version__ = "2.26.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/orb/resources/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def issue(
Args:
synchronous: If true, the invoice will be issued synchronously. If false, the invoice will be
issued asynchronously. The synchronous option is only available for invoices
containin no usage fees. If the invoice is configured to sync to an external
that have no usage fees. If the invoice is configured to sync to an external
provider, a successful response from this endpoint guarantees the invoice is
present in the provider.

Expand Down Expand Up @@ -927,7 +927,7 @@ async def issue(
Args:
synchronous: If true, the invoice will be issued synchronously. If false, the invoice will be
issued asynchronously. The synchronous option is only available for invoices
containin no usage fees. If the invoice is configured to sync to an external
that have no usage fees. If the invoice is configured to sync to an external
provider, a successful response from this endpoint guarantees the invoice is
present in the provider.

Expand Down
32 changes: 16 additions & 16 deletions src/orb/resources/prices/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,21 +1128,21 @@ def create(
cadence: Literal["annual", "semi_annual", "monthly", "quarterly", "one_time", "custom"],
currency: str,
item_id: str,
max_group_tiered_config: Dict[str, object],
model_type: Literal["max_group_tiered"],
max_group_tiered_package_config: Dict[str, object],
model_type: Literal["max_group_tiered_package"],
name: str,
billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN,
billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN,
billing_cycle_configuration: Optional[
price_create_params.NewFloatingMaxGroupTieredPriceBillingCycleConfiguration
price_create_params.NewFloatingMaxGroupTieredPackagePriceBillingCycleConfiguration
]
| NotGiven = NOT_GIVEN,
conversion_rate: Optional[float] | NotGiven = NOT_GIVEN,
external_price_id: Optional[str] | NotGiven = NOT_GIVEN,
fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN,
invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN,
invoicing_cycle_configuration: Optional[
price_create_params.NewFloatingMaxGroupTieredPriceInvoicingCycleConfiguration
price_create_params.NewFloatingMaxGroupTieredPackagePriceInvoicingCycleConfiguration
]
| NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2317,7 +2317,7 @@ def create(
["cadence", "currency", "item_id", "model_type", "name", "threshold_total_amount_config"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_package_config"],
["cadence", "currency", "grouped_tiered_config", "item_id", "model_type", "name"],
["cadence", "currency", "item_id", "max_group_tiered_config", "model_type", "name"],
["cadence", "currency", "item_id", "max_group_tiered_package_config", "model_type", "name"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_with_minimum_config"],
["cadence", "currency", "item_id", "model_type", "name", "package_with_allocation_config"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_package_with_minimum_config"],
Expand Down Expand Up @@ -2349,7 +2349,7 @@ def create(
| Literal["threshold_total_amount"]
| Literal["tiered_package"]
| Literal["grouped_tiered"]
| Literal["max_group_tiered"]
| Literal["max_group_tiered_package"]
| Literal["tiered_with_minimum"]
| Literal["package_with_allocation"]
| Literal["tiered_package_with_minimum"]
Expand Down Expand Up @@ -2387,7 +2387,7 @@ def create(
threshold_total_amount_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_package_config: Dict[str, object] | NotGiven = NOT_GIVEN,
grouped_tiered_config: Dict[str, object] | NotGiven = NOT_GIVEN,
max_group_tiered_config: Dict[str, object] | NotGiven = NOT_GIVEN,
max_group_tiered_package_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_with_minimum_config: Dict[str, object] | NotGiven = NOT_GIVEN,
package_with_allocation_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_package_with_minimum_config: Dict[str, object] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2440,7 +2440,7 @@ def create(
"threshold_total_amount_config": threshold_total_amount_config,
"tiered_package_config": tiered_package_config,
"grouped_tiered_config": grouped_tiered_config,
"max_group_tiered_config": max_group_tiered_config,
"max_group_tiered_package_config": max_group_tiered_package_config,
"tiered_with_minimum_config": tiered_with_minimum_config,
"package_with_allocation_config": package_with_allocation_config,
"tiered_package_with_minimum_config": tiered_package_with_minimum_config,
Expand Down Expand Up @@ -3791,21 +3791,21 @@ async def create(
cadence: Literal["annual", "semi_annual", "monthly", "quarterly", "one_time", "custom"],
currency: str,
item_id: str,
max_group_tiered_config: Dict[str, object],
model_type: Literal["max_group_tiered"],
max_group_tiered_package_config: Dict[str, object],
model_type: Literal["max_group_tiered_package"],
name: str,
billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN,
billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN,
billing_cycle_configuration: Optional[
price_create_params.NewFloatingMaxGroupTieredPriceBillingCycleConfiguration
price_create_params.NewFloatingMaxGroupTieredPackagePriceBillingCycleConfiguration
]
| NotGiven = NOT_GIVEN,
conversion_rate: Optional[float] | NotGiven = NOT_GIVEN,
external_price_id: Optional[str] | NotGiven = NOT_GIVEN,
fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN,
invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN,
invoicing_cycle_configuration: Optional[
price_create_params.NewFloatingMaxGroupTieredPriceInvoicingCycleConfiguration
price_create_params.NewFloatingMaxGroupTieredPackagePriceInvoicingCycleConfiguration
]
| NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -4980,7 +4980,7 @@ async def create(
["cadence", "currency", "item_id", "model_type", "name", "threshold_total_amount_config"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_package_config"],
["cadence", "currency", "grouped_tiered_config", "item_id", "model_type", "name"],
["cadence", "currency", "item_id", "max_group_tiered_config", "model_type", "name"],
["cadence", "currency", "item_id", "max_group_tiered_package_config", "model_type", "name"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_with_minimum_config"],
["cadence", "currency", "item_id", "model_type", "name", "package_with_allocation_config"],
["cadence", "currency", "item_id", "model_type", "name", "tiered_package_with_minimum_config"],
Expand Down Expand Up @@ -5012,7 +5012,7 @@ async def create(
| Literal["threshold_total_amount"]
| Literal["tiered_package"]
| Literal["grouped_tiered"]
| Literal["max_group_tiered"]
| Literal["max_group_tiered_package"]
| Literal["tiered_with_minimum"]
| Literal["package_with_allocation"]
| Literal["tiered_package_with_minimum"]
Expand Down Expand Up @@ -5050,7 +5050,7 @@ async def create(
threshold_total_amount_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_package_config: Dict[str, object] | NotGiven = NOT_GIVEN,
grouped_tiered_config: Dict[str, object] | NotGiven = NOT_GIVEN,
max_group_tiered_config: Dict[str, object] | NotGiven = NOT_GIVEN,
max_group_tiered_package_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_with_minimum_config: Dict[str, object] | NotGiven = NOT_GIVEN,
package_with_allocation_config: Dict[str, object] | NotGiven = NOT_GIVEN,
tiered_package_with_minimum_config: Dict[str, object] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -5103,7 +5103,7 @@ async def create(
"threshold_total_amount_config": threshold_total_amount_config,
"tiered_package_config": tiered_package_config,
"grouped_tiered_config": grouped_tiered_config,
"max_group_tiered_config": max_group_tiered_config,
"max_group_tiered_package_config": max_group_tiered_package_config,
"tiered_with_minimum_config": tiered_with_minimum_config,
"package_with_allocation_config": package_with_allocation_config,
"tiered_package_with_minimum_config": tiered_package_with_minimum_config,
Expand Down
2 changes: 1 addition & 1 deletion src/orb/types/invoice_issue_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class InvoiceIssueParams(TypedDict, total=False):
"""If true, the invoice will be issued synchronously.

If false, the invoice will be issued asynchronously. The synchronous option is
only available for invoices containin no usage fees. If the invoice is
only available for invoices that have no usage fees. If the invoice is
configured to sync to an external provider, a successful response from this
endpoint guarantees the invoice is present in the provider.
"""
22 changes: 11 additions & 11 deletions src/orb/types/plan_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
"PriceNewPlanGroupedTieredPackagePrice",
"PriceNewPlanGroupedTieredPackagePriceBillingCycleConfiguration",
"PriceNewPlanGroupedTieredPackagePriceInvoicingCycleConfiguration",
"PriceNewPlanMaxGroupTieredPrice",
"PriceNewPlanMaxGroupTieredPriceBillingCycleConfiguration",
"PriceNewPlanMaxGroupTieredPriceInvoicingCycleConfiguration",
"PriceNewPlanMaxGroupTieredPackagePrice",
"PriceNewPlanMaxGroupTieredPackagePriceBillingCycleConfiguration",
"PriceNewPlanMaxGroupTieredPackagePriceInvoicingCycleConfiguration",
]


Expand Down Expand Up @@ -1994,32 +1994,32 @@ class PriceNewPlanGroupedTieredPackagePrice(TypedDict, total=False):
"""


class PriceNewPlanMaxGroupTieredPriceBillingCycleConfiguration(TypedDict, total=False):
class PriceNewPlanMaxGroupTieredPackagePriceBillingCycleConfiguration(TypedDict, total=False):
duration: Required[int]
"""The duration of the billing period."""

duration_unit: Required[Literal["day", "month"]]
"""The unit of billing period duration."""


class PriceNewPlanMaxGroupTieredPriceInvoicingCycleConfiguration(TypedDict, total=False):
class PriceNewPlanMaxGroupTieredPackagePriceInvoicingCycleConfiguration(TypedDict, total=False):
duration: Required[int]
"""The duration of the billing period."""

duration_unit: Required[Literal["day", "month"]]
"""The unit of billing period duration."""


class PriceNewPlanMaxGroupTieredPrice(TypedDict, total=False):
class PriceNewPlanMaxGroupTieredPackagePrice(TypedDict, total=False):
cadence: Required[Literal["annual", "semi_annual", "monthly", "quarterly", "one_time", "custom"]]
"""The cadence to bill for this price on."""

item_id: Required[str]
"""The id of the item the plan will be associated with."""

max_group_tiered_config: Required[Dict[str, object]]
max_group_tiered_package_config: Required[Dict[str, object]]

model_type: Required[Literal["max_group_tiered"]]
model_type: Required[Literal["max_group_tiered_package"]]

name: Required[str]
"""The name of the price."""
Expand All @@ -2036,7 +2036,7 @@ class PriceNewPlanMaxGroupTieredPrice(TypedDict, total=False):
this is true, and in-arrears if this is false.
"""

billing_cycle_configuration: Optional[PriceNewPlanMaxGroupTieredPriceBillingCycleConfiguration]
billing_cycle_configuration: Optional[PriceNewPlanMaxGroupTieredPackagePriceBillingCycleConfiguration]
"""
For custom cadence: specifies the duration of the billing period in days or
months.
Expand All @@ -2063,7 +2063,7 @@ class PriceNewPlanMaxGroupTieredPrice(TypedDict, total=False):
invoice_grouping_key: Optional[str]
"""The property used to group this price on an invoice"""

invoicing_cycle_configuration: Optional[PriceNewPlanMaxGroupTieredPriceInvoicingCycleConfiguration]
invoicing_cycle_configuration: Optional[PriceNewPlanMaxGroupTieredPackagePriceInvoicingCycleConfiguration]
"""Within each billing cycle, specifies the cadence at which invoices are produced.

If unspecified, a single invoice is produced per billing cycle.
Expand Down Expand Up @@ -2099,5 +2099,5 @@ class PriceNewPlanMaxGroupTieredPrice(TypedDict, total=False):
PriceNewPlanMatrixWithDisplayNamePrice,
PriceNewPlanBulkWithProrationPrice,
PriceNewPlanGroupedTieredPackagePrice,
PriceNewPlanMaxGroupTieredPrice,
PriceNewPlanMaxGroupTieredPackagePrice,
]
Loading