Skip to content

Commit 1e311d0

Browse files
feat(api): manual updates
added new endpoints
1 parent aaa2d8d commit 1e311d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4693
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 126
1+
configured_endpoints: 139
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c92fb451e13f157b3735f188acc8d57aa3adfbaac1683645e1ba4f432dd7a4f8.yml
33
openapi_spec_hash: dbcd87ecfbd3976eb3b99ec6f9fbc606
4-
config_hash: bcf82bddb691f6be773ac6cae8c03b9a
4+
config_hash: 3279841440b02d4e8303c961d6983492

api.md

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,11 @@ Methods:
389389
Types:
390390

391391
```python
392-
from orb.types import InvoiceFetchUpcomingResponse, InvoiceListSummaryResponse
392+
from orb.types import (
393+
InvoiceFetchUpcomingResponse,
394+
InvoiceIssueSummaryResponse,
395+
InvoiceListSummaryResponse,
396+
)
393397
```
394398

395399
Methods:
@@ -401,6 +405,7 @@ Methods:
401405
- <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>
402406
- <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>
403407
- <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>
408+
- <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>
404409
- <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>
405410
- <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>
406411
- <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>
@@ -641,10 +646,76 @@ Methods:
641646
Types:
642647

643648
```python
644-
from orb.types import CreditBlockRetrieveResponse
649+
from orb.types import CreditBlockRetrieveResponse, CreditBlockListInvoicesResponse
645650
```
646651

647652
Methods:
648653

649654
- <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>
650655
- <code title="delete /credit_blocks/{block_id}">client.credit_blocks.<a href="./src/orb/resources/credit_blocks.py">delete</a>(block_id) -> None</code>
656+
- <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>
657+
658+
# LicenseTypes
659+
660+
Types:
661+
662+
```python
663+
from orb.types import (
664+
LicenseTypeCreateResponse,
665+
LicenseTypeRetrieveResponse,
666+
LicenseTypeListResponse,
667+
)
668+
```
669+
670+
Methods:
671+
672+
- <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>
673+
- <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>
674+
- <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>
675+
676+
# Licenses
677+
678+
Types:
679+
680+
```python
681+
from orb.types import (
682+
LicenseCreateResponse,
683+
LicenseRetrieveResponse,
684+
LicenseListResponse,
685+
LicenseDeactivateResponse,
686+
LicenseRetrieveByExternalIDResponse,
687+
)
688+
```
689+
690+
Methods:
691+
692+
- <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>
693+
- <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>
694+
- <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>
695+
- <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>
696+
- <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>
697+
698+
## ExternalLicenses
699+
700+
Types:
701+
702+
```python
703+
from orb.types.licenses import ExternalLicenseGetUsageResponse
704+
```
705+
706+
Methods:
707+
708+
- <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>
709+
710+
## Usage
711+
712+
Types:
713+
714+
```python
715+
from orb.types.licenses import UsageGetAllUsageResponse, UsageGetUsageResponse
716+
```
717+
718+
Methods:
719+
720+
- <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>
721+
- <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>

src/orb/_client.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@
4646
metrics,
4747
invoices,
4848
webhooks,
49+
licenses,
4950
customers,
5051
top_level,
5152
credit_notes,
5253
credit_blocks,
54+
license_types,
5355
subscriptions,
5456
invoice_line_items,
5557
subscription_changes,
@@ -65,9 +67,11 @@
6567
from .resources.credit_notes import CreditNotes, AsyncCreditNotes
6668
from .resources.credit_blocks import CreditBlocks, AsyncCreditBlocks
6769
from .resources.events.events import Events, AsyncEvents
70+
from .resources.license_types import LicenseTypes, AsyncLicenseTypes
6871
from .resources.prices.prices import Prices, AsyncPrices
6972
from .resources.subscriptions import Subscriptions, AsyncSubscriptions
7073
from .resources.coupons.coupons import Coupons, AsyncCoupons
74+
from .resources.licenses.licenses import Licenses, AsyncLicenses
7175
from .resources.invoice_line_items import InvoiceLineItems, AsyncInvoiceLineItems
7276
from .resources.customers.customers import Customers, AsyncCustomers
7377
from .resources.subscription_changes import SubscriptionChanges, AsyncSubscriptionChanges
@@ -252,6 +256,18 @@ def credit_blocks(self) -> CreditBlocks:
252256

253257
return CreditBlocks(self)
254258

259+
@cached_property
260+
def license_types(self) -> LicenseTypes:
261+
from .resources.license_types import LicenseTypes
262+
263+
return LicenseTypes(self)
264+
265+
@cached_property
266+
def licenses(self) -> Licenses:
267+
from .resources.licenses import Licenses
268+
269+
return Licenses(self)
270+
255271
@cached_property
256272
def with_raw_response(self) -> OrbWithRawResponse:
257273
return OrbWithRawResponse(self)
@@ -588,6 +604,18 @@ def credit_blocks(self) -> AsyncCreditBlocks:
588604

589605
return AsyncCreditBlocks(self)
590606

607+
@cached_property
608+
def license_types(self) -> AsyncLicenseTypes:
609+
from .resources.license_types import AsyncLicenseTypes
610+
611+
return AsyncLicenseTypes(self)
612+
613+
@cached_property
614+
def licenses(self) -> AsyncLicenses:
615+
from .resources.licenses import AsyncLicenses
616+
617+
return AsyncLicenses(self)
618+
591619
@cached_property
592620
def with_raw_response(self) -> AsyncOrbWithRawResponse:
593621
return AsyncOrbWithRawResponse(self)
@@ -859,6 +887,18 @@ def credit_blocks(self) -> credit_blocks.CreditBlocksWithRawResponse:
859887

860888
return CreditBlocksWithRawResponse(self._client.credit_blocks)
861889

890+
@cached_property
891+
def license_types(self) -> license_types.LicenseTypesWithRawResponse:
892+
from .resources.license_types import LicenseTypesWithRawResponse
893+
894+
return LicenseTypesWithRawResponse(self._client.license_types)
895+
896+
@cached_property
897+
def licenses(self) -> licenses.LicensesWithRawResponse:
898+
from .resources.licenses import LicensesWithRawResponse
899+
900+
return LicensesWithRawResponse(self._client.licenses)
901+
862902

863903
class AsyncOrbWithRawResponse:
864904
_client: AsyncOrb
@@ -968,6 +1008,18 @@ def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithRawResponse:
9681008

9691009
return AsyncCreditBlocksWithRawResponse(self._client.credit_blocks)
9701010

1011+
@cached_property
1012+
def license_types(self) -> license_types.AsyncLicenseTypesWithRawResponse:
1013+
from .resources.license_types import AsyncLicenseTypesWithRawResponse
1014+
1015+
return AsyncLicenseTypesWithRawResponse(self._client.license_types)
1016+
1017+
@cached_property
1018+
def licenses(self) -> licenses.AsyncLicensesWithRawResponse:
1019+
from .resources.licenses import AsyncLicensesWithRawResponse
1020+
1021+
return AsyncLicensesWithRawResponse(self._client.licenses)
1022+
9711023

9721024
class OrbWithStreamedResponse:
9731025
_client: Orb
@@ -1077,6 +1129,18 @@ def credit_blocks(self) -> credit_blocks.CreditBlocksWithStreamingResponse:
10771129

10781130
return CreditBlocksWithStreamingResponse(self._client.credit_blocks)
10791131

1132+
@cached_property
1133+
def license_types(self) -> license_types.LicenseTypesWithStreamingResponse:
1134+
from .resources.license_types import LicenseTypesWithStreamingResponse
1135+
1136+
return LicenseTypesWithStreamingResponse(self._client.license_types)
1137+
1138+
@cached_property
1139+
def licenses(self) -> licenses.LicensesWithStreamingResponse:
1140+
from .resources.licenses import LicensesWithStreamingResponse
1141+
1142+
return LicensesWithStreamingResponse(self._client.licenses)
1143+
10801144

10811145
class AsyncOrbWithStreamedResponse:
10821146
_client: AsyncOrb
@@ -1186,6 +1250,18 @@ def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithStreamingResponse:
11861250

11871251
return AsyncCreditBlocksWithStreamingResponse(self._client.credit_blocks)
11881252

1253+
@cached_property
1254+
def license_types(self) -> license_types.AsyncLicenseTypesWithStreamingResponse:
1255+
from .resources.license_types import AsyncLicenseTypesWithStreamingResponse
1256+
1257+
return AsyncLicenseTypesWithStreamingResponse(self._client.license_types)
1258+
1259+
@cached_property
1260+
def licenses(self) -> licenses.AsyncLicensesWithStreamingResponse:
1261+
from .resources.licenses import AsyncLicensesWithStreamingResponse
1262+
1263+
return AsyncLicensesWithStreamingResponse(self._client.licenses)
1264+
11891265

11901266
Client = Orb
11911267

src/orb/resources/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@
7676
Webhooks,
7777
AsyncWebhooks,
7878
)
79+
from .licenses import (
80+
Licenses,
81+
AsyncLicenses,
82+
LicensesWithRawResponse,
83+
AsyncLicensesWithRawResponse,
84+
LicensesWithStreamingResponse,
85+
AsyncLicensesWithStreamingResponse,
86+
)
7987
from .customers import (
8088
Customers,
8189
AsyncCustomers,
@@ -108,6 +116,14 @@
108116
CreditBlocksWithStreamingResponse,
109117
AsyncCreditBlocksWithStreamingResponse,
110118
)
119+
from .license_types import (
120+
LicenseTypes,
121+
AsyncLicenseTypes,
122+
LicenseTypesWithRawResponse,
123+
AsyncLicenseTypesWithRawResponse,
124+
LicenseTypesWithStreamingResponse,
125+
AsyncLicenseTypesWithStreamingResponse,
126+
)
111127
from .subscriptions import (
112128
Subscriptions,
113129
AsyncSubscriptions,
@@ -246,4 +262,16 @@
246262
"AsyncCreditBlocksWithRawResponse",
247263
"CreditBlocksWithStreamingResponse",
248264
"AsyncCreditBlocksWithStreamingResponse",
265+
"LicenseTypes",
266+
"AsyncLicenseTypes",
267+
"LicenseTypesWithRawResponse",
268+
"AsyncLicenseTypesWithRawResponse",
269+
"LicenseTypesWithStreamingResponse",
270+
"AsyncLicenseTypesWithStreamingResponse",
271+
"Licenses",
272+
"AsyncLicenses",
273+
"LicensesWithRawResponse",
274+
"AsyncLicensesWithRawResponse",
275+
"LicensesWithStreamingResponse",
276+
"AsyncLicensesWithStreamingResponse",
249277
]

0 commit comments

Comments
 (0)