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.54.0"
".": "4.55.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: 126
configured_endpoints: 139
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c92fb451e13f157b3735f188acc8d57aa3adfbaac1683645e1ba4f432dd7a4f8.yml
openapi_spec_hash: dbcd87ecfbd3976eb3b99ec6f9fbc606
config_hash: bcf82bddb691f6be773ac6cae8c03b9a
config_hash: 3279841440b02d4e8303c961d6983492
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.55.0 (2026-02-12)

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

### Features

* **api:** manual updates ([1e311d0](https://github.com/orbcorp/orb-python/commit/1e311d0f910abcc60dddaf50fa7a2d13ebc73927))

## 4.54.0 (2026-02-12)

Full Changelog: [v4.53.0...v4.54.0](https://github.com/orbcorp/orb-python/compare/v4.53.0...v4.54.0)
Expand Down
75 changes: 73 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ Methods:
Types:

```python
from orb.types import InvoiceFetchUpcomingResponse, InvoiceListSummaryResponse
from orb.types import (
InvoiceFetchUpcomingResponse,
InvoiceIssueSummaryResponse,
InvoiceListSummaryResponse,
)
```

Methods:
Expand All @@ -401,6 +405,7 @@ Methods:
- <code title="get /invoices/{invoice_id}">client.invoices.<a href="./src/orb/resources/invoices.py">fetch</a>(invoice_id) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
- <code title="get /invoices/upcoming">client.invoices.<a href="./src/orb/resources/invoices.py">fetch_upcoming</a>(\*\*<a href="src/orb/types/invoice_fetch_upcoming_params.py">params</a>) -> <a href="./src/orb/types/invoice_fetch_upcoming_response.py">InvoiceFetchUpcomingResponse</a></code>
- <code title="post /invoices/{invoice_id}/issue">client.invoices.<a href="./src/orb/resources/invoices.py">issue</a>(invoice_id, \*\*<a href="src/orb/types/invoice_issue_params.py">params</a>) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
- <code title="post /invoices/summary/{invoice_id}/issue">client.invoices.<a href="./src/orb/resources/invoices.py">issue_summary</a>(invoice_id, \*\*<a href="src/orb/types/invoice_issue_summary_params.py">params</a>) -> <a href="./src/orb/types/invoice_issue_summary_response.py">InvoiceIssueSummaryResponse</a></code>
- <code title="get /invoices/summary">client.invoices.<a href="./src/orb/resources/invoices.py">list_summary</a>(\*\*<a href="src/orb/types/invoice_list_summary_params.py">params</a>) -> <a href="./src/orb/types/invoice_list_summary_response.py">SyncPage[InvoiceListSummaryResponse]</a></code>
- <code title="post /invoices/{invoice_id}/mark_paid">client.invoices.<a href="./src/orb/resources/invoices.py">mark_paid</a>(invoice_id, \*\*<a href="src/orb/types/invoice_mark_paid_params.py">params</a>) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
- <code title="post /invoices/{invoice_id}/pay">client.invoices.<a href="./src/orb/resources/invoices.py">pay</a>(invoice_id) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
Expand Down Expand Up @@ -641,10 +646,76 @@ Methods:
Types:

```python
from orb.types import CreditBlockRetrieveResponse
from orb.types import CreditBlockRetrieveResponse, CreditBlockListInvoicesResponse
```

Methods:

- <code title="get /credit_blocks/{block_id}">client.credit_blocks.<a href="./src/orb/resources/credit_blocks.py">retrieve</a>(block_id) -> <a href="./src/orb/types/credit_block_retrieve_response.py">CreditBlockRetrieveResponse</a></code>
- <code title="delete /credit_blocks/{block_id}">client.credit_blocks.<a href="./src/orb/resources/credit_blocks.py">delete</a>(block_id) -> None</code>
- <code title="get /credit_blocks/{block_id}/invoices">client.credit_blocks.<a href="./src/orb/resources/credit_blocks.py">list_invoices</a>(block_id) -> <a href="./src/orb/types/credit_block_list_invoices_response.py">CreditBlockListInvoicesResponse</a></code>

# LicenseTypes

Types:

```python
from orb.types import (
LicenseTypeCreateResponse,
LicenseTypeRetrieveResponse,
LicenseTypeListResponse,
)
```

Methods:

- <code title="post /license_types">client.license_types.<a href="./src/orb/resources/license_types.py">create</a>(\*\*<a href="src/orb/types/license_type_create_params.py">params</a>) -> <a href="./src/orb/types/license_type_create_response.py">LicenseTypeCreateResponse</a></code>
- <code title="get /license_types/{license_type_id}">client.license_types.<a href="./src/orb/resources/license_types.py">retrieve</a>(license_type_id) -> <a href="./src/orb/types/license_type_retrieve_response.py">LicenseTypeRetrieveResponse</a></code>
- <code title="get /license_types">client.license_types.<a href="./src/orb/resources/license_types.py">list</a>(\*\*<a href="src/orb/types/license_type_list_params.py">params</a>) -> <a href="./src/orb/types/license_type_list_response.py">SyncPage[LicenseTypeListResponse]</a></code>

# Licenses

Types:

```python
from orb.types import (
LicenseCreateResponse,
LicenseRetrieveResponse,
LicenseListResponse,
LicenseDeactivateResponse,
LicenseRetrieveByExternalIDResponse,
)
```

Methods:

- <code title="post /licenses">client.licenses.<a href="./src/orb/resources/licenses/licenses.py">create</a>(\*\*<a href="src/orb/types/license_create_params.py">params</a>) -> <a href="./src/orb/types/license_create_response.py">LicenseCreateResponse</a></code>
- <code title="get /licenses/{license_id}">client.licenses.<a href="./src/orb/resources/licenses/licenses.py">retrieve</a>(license_id) -> <a href="./src/orb/types/license_retrieve_response.py">LicenseRetrieveResponse</a></code>
- <code title="get /licenses">client.licenses.<a href="./src/orb/resources/licenses/licenses.py">list</a>(\*\*<a href="src/orb/types/license_list_params.py">params</a>) -> <a href="./src/orb/types/license_list_response.py">SyncPage[LicenseListResponse]</a></code>
- <code title="post /licenses/{license_id}/deactivate">client.licenses.<a href="./src/orb/resources/licenses/licenses.py">deactivate</a>(license_id, \*\*<a href="src/orb/types/license_deactivate_params.py">params</a>) -> <a href="./src/orb/types/license_deactivate_response.py">LicenseDeactivateResponse</a></code>
- <code title="get /licenses/external_license_id/{external_license_id}">client.licenses.<a href="./src/orb/resources/licenses/licenses.py">retrieve_by_external_id</a>(external_license_id, \*\*<a href="src/orb/types/license_retrieve_by_external_id_params.py">params</a>) -> <a href="./src/orb/types/license_retrieve_by_external_id_response.py">LicenseRetrieveByExternalIDResponse</a></code>

## ExternalLicenses

Types:

```python
from orb.types.licenses import ExternalLicenseGetUsageResponse
```

Methods:

- <code title="get /licenses/external_licenses/{external_license_id}/usage">client.licenses.external_licenses.<a href="./src/orb/resources/licenses/external_licenses.py">get_usage</a>(external_license_id, \*\*<a href="src/orb/types/licenses/external_license_get_usage_params.py">params</a>) -> <a href="./src/orb/types/licenses/external_license_get_usage_response.py">ExternalLicenseGetUsageResponse</a></code>

## Usage

Types:

```python
from orb.types.licenses import UsageGetAllUsageResponse, UsageGetUsageResponse
```

Methods:

- <code title="get /licenses/usage">client.licenses.usage.<a href="./src/orb/resources/licenses/usage.py">get_all_usage</a>(\*\*<a href="src/orb/types/licenses/usage_get_all_usage_params.py">params</a>) -> <a href="./src/orb/types/licenses/usage_get_all_usage_response.py">UsageGetAllUsageResponse</a></code>
- <code title="get /licenses/{license_id}/usage">client.licenses.usage.<a href="./src/orb/resources/licenses/usage.py">get_usage</a>(license_id, \*\*<a href="src/orb/types/licenses/usage_get_usage_params.py">params</a>) -> <a href="./src/orb/types/licenses/usage_get_usage_response.py">UsageGetUsageResponse</a></code>
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.54.0"
version = "4.55.0"
description = "The official Python library for the orb API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
76 changes: 76 additions & 0 deletions src/orb/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@
metrics,
invoices,
webhooks,
licenses,
customers,
top_level,
credit_notes,
credit_blocks,
license_types,
subscriptions,
invoice_line_items,
subscription_changes,
Expand All @@ -65,9 +67,11 @@
from .resources.credit_notes import CreditNotes, AsyncCreditNotes
from .resources.credit_blocks import CreditBlocks, AsyncCreditBlocks
from .resources.events.events import Events, AsyncEvents
from .resources.license_types import LicenseTypes, AsyncLicenseTypes
from .resources.prices.prices import Prices, AsyncPrices
from .resources.subscriptions import Subscriptions, AsyncSubscriptions
from .resources.coupons.coupons import Coupons, AsyncCoupons
from .resources.licenses.licenses import Licenses, AsyncLicenses
from .resources.invoice_line_items import InvoiceLineItems, AsyncInvoiceLineItems
from .resources.customers.customers import Customers, AsyncCustomers
from .resources.subscription_changes import SubscriptionChanges, AsyncSubscriptionChanges
Expand Down Expand Up @@ -252,6 +256,18 @@ def credit_blocks(self) -> CreditBlocks:

return CreditBlocks(self)

@cached_property
def license_types(self) -> LicenseTypes:
from .resources.license_types import LicenseTypes

return LicenseTypes(self)

@cached_property
def licenses(self) -> Licenses:
from .resources.licenses import Licenses

return Licenses(self)

@cached_property
def with_raw_response(self) -> OrbWithRawResponse:
return OrbWithRawResponse(self)
Expand Down Expand Up @@ -588,6 +604,18 @@ def credit_blocks(self) -> AsyncCreditBlocks:

return AsyncCreditBlocks(self)

@cached_property
def license_types(self) -> AsyncLicenseTypes:
from .resources.license_types import AsyncLicenseTypes

return AsyncLicenseTypes(self)

@cached_property
def licenses(self) -> AsyncLicenses:
from .resources.licenses import AsyncLicenses

return AsyncLicenses(self)

@cached_property
def with_raw_response(self) -> AsyncOrbWithRawResponse:
return AsyncOrbWithRawResponse(self)
Expand Down Expand Up @@ -859,6 +887,18 @@ def credit_blocks(self) -> credit_blocks.CreditBlocksWithRawResponse:

return CreditBlocksWithRawResponse(self._client.credit_blocks)

@cached_property
def license_types(self) -> license_types.LicenseTypesWithRawResponse:
from .resources.license_types import LicenseTypesWithRawResponse

return LicenseTypesWithRawResponse(self._client.license_types)

@cached_property
def licenses(self) -> licenses.LicensesWithRawResponse:
from .resources.licenses import LicensesWithRawResponse

return LicensesWithRawResponse(self._client.licenses)


class AsyncOrbWithRawResponse:
_client: AsyncOrb
Expand Down Expand Up @@ -968,6 +1008,18 @@ def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithRawResponse:

return AsyncCreditBlocksWithRawResponse(self._client.credit_blocks)

@cached_property
def license_types(self) -> license_types.AsyncLicenseTypesWithRawResponse:
from .resources.license_types import AsyncLicenseTypesWithRawResponse

return AsyncLicenseTypesWithRawResponse(self._client.license_types)

@cached_property
def licenses(self) -> licenses.AsyncLicensesWithRawResponse:
from .resources.licenses import AsyncLicensesWithRawResponse

return AsyncLicensesWithRawResponse(self._client.licenses)


class OrbWithStreamedResponse:
_client: Orb
Expand Down Expand Up @@ -1077,6 +1129,18 @@ def credit_blocks(self) -> credit_blocks.CreditBlocksWithStreamingResponse:

return CreditBlocksWithStreamingResponse(self._client.credit_blocks)

@cached_property
def license_types(self) -> license_types.LicenseTypesWithStreamingResponse:
from .resources.license_types import LicenseTypesWithStreamingResponse

return LicenseTypesWithStreamingResponse(self._client.license_types)

@cached_property
def licenses(self) -> licenses.LicensesWithStreamingResponse:
from .resources.licenses import LicensesWithStreamingResponse

return LicensesWithStreamingResponse(self._client.licenses)


class AsyncOrbWithStreamedResponse:
_client: AsyncOrb
Expand Down Expand Up @@ -1186,6 +1250,18 @@ def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithStreamingResponse:

return AsyncCreditBlocksWithStreamingResponse(self._client.credit_blocks)

@cached_property
def license_types(self) -> license_types.AsyncLicenseTypesWithStreamingResponse:
from .resources.license_types import AsyncLicenseTypesWithStreamingResponse

return AsyncLicenseTypesWithStreamingResponse(self._client.license_types)

@cached_property
def licenses(self) -> licenses.AsyncLicensesWithStreamingResponse:
from .resources.licenses import AsyncLicensesWithStreamingResponse

return AsyncLicensesWithStreamingResponse(self._client.licenses)


Client = Orb

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.54.0" # x-release-please-version
__version__ = "4.55.0" # x-release-please-version
28 changes: 28 additions & 0 deletions src/orb/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@
Webhooks,
AsyncWebhooks,
)
from .licenses import (
Licenses,
AsyncLicenses,
LicensesWithRawResponse,
AsyncLicensesWithRawResponse,
LicensesWithStreamingResponse,
AsyncLicensesWithStreamingResponse,
)
from .customers import (
Customers,
AsyncCustomers,
Expand Down Expand Up @@ -108,6 +116,14 @@
CreditBlocksWithStreamingResponse,
AsyncCreditBlocksWithStreamingResponse,
)
from .license_types import (
LicenseTypes,
AsyncLicenseTypes,
LicenseTypesWithRawResponse,
AsyncLicenseTypesWithRawResponse,
LicenseTypesWithStreamingResponse,
AsyncLicenseTypesWithStreamingResponse,
)
from .subscriptions import (
Subscriptions,
AsyncSubscriptions,
Expand Down Expand Up @@ -246,4 +262,16 @@
"AsyncCreditBlocksWithRawResponse",
"CreditBlocksWithStreamingResponse",
"AsyncCreditBlocksWithStreamingResponse",
"LicenseTypes",
"AsyncLicenseTypes",
"LicenseTypesWithRawResponse",
"AsyncLicenseTypesWithRawResponse",
"LicenseTypesWithStreamingResponse",
"AsyncLicenseTypesWithStreamingResponse",
"Licenses",
"AsyncLicenses",
"LicensesWithRawResponse",
"AsyncLicensesWithRawResponse",
"LicensesWithStreamingResponse",
"AsyncLicensesWithStreamingResponse",
]
Loading
Loading