Skip to content

Commit 19e971e

Browse files
feat(api): manual updates
1 parent 28c3065 commit 19e971e

25 files changed

+2697
-6
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: 118
1+
configured_endpoints: 126
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a5a28a58483355d3cc3da7ac5c452d548ee17183324318198052968121ca7dba.yml
33
openapi_spec_hash: a317931a99e6d4a122919135a0363e40
4-
config_hash: 05c94c0e6dbeab2c9b554c2e0d6371a0
4+
config_hash: bcf82bddb691f6be773ac6cae8c03b9a

api.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,19 @@ Methods:
389389
Types:
390390

391391
```python
392-
from orb.types import InvoiceFetchUpcomingResponse
392+
from orb.types import InvoiceFetchUpcomingResponse, InvoiceListSummaryResponse
393393
```
394394

395395
Methods:
396396

397397
- <code title="post /invoices">client.invoices.<a href="./src/orb/resources/invoices.py">create</a>(\*\*<a href="src/orb/types/invoice_create_params.py">params</a>) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
398398
- <code title="put /invoices/{invoice_id}">client.invoices.<a href="./src/orb/resources/invoices.py">update</a>(invoice_id, \*\*<a href="src/orb/types/invoice_update_params.py">params</a>) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
399399
- <code title="get /invoices">client.invoices.<a href="./src/orb/resources/invoices.py">list</a>(\*\*<a href="src/orb/types/invoice_list_params.py">params</a>) -> <a href="./src/orb/types/shared/invoice.py">SyncPage[Invoice]</a></code>
400+
- <code title="delete /invoices/{invoice_id}/invoice_line_items/{line_item_id}">client.invoices.<a href="./src/orb/resources/invoices.py">delete_line_item</a>(line_item_id, \*, invoice_id) -> None</code>
400401
- <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>
401402
- <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>
402403
- <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>
404+
- <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>
403405
- <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>
404406
- <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>
405407
- <code title="post /invoices/{invoice_id}/void">client.invoices.<a href="./src/orb/resources/invoices.py">void</a>(invoice_id) -> <a href="./src/orb/types/shared/invoice.py">Invoice</a></code>
@@ -457,6 +459,24 @@ Methods:
457459
- <code title="put /plans/external_plan_id/{external_plan_id}">client.plans.external_plan_id.<a href="./src/orb/resources/plans/external_plan_id.py">update</a>(other_external_plan_id, \*\*<a href="src/orb/types/plans/external_plan_id_update_params.py">params</a>) -> <a href="./src/orb/types/plan.py">Plan</a></code>
458460
- <code title="get /plans/external_plan_id/{external_plan_id}">client.plans.external_plan_id.<a href="./src/orb/resources/plans/external_plan_id.py">fetch</a>(external_plan_id) -> <a href="./src/orb/types/plan.py">Plan</a></code>
459461

462+
## Migrations
463+
464+
Types:
465+
466+
```python
467+
from orb.types.plans import (
468+
MigrationRetrieveResponse,
469+
MigrationListResponse,
470+
MigrationCancelResponse,
471+
)
472+
```
473+
474+
Methods:
475+
476+
- <code title="get /plans/{plan_id}/migrations/{migration_id}">client.plans.migrations.<a href="./src/orb/resources/plans/migrations.py">retrieve</a>(migration_id, \*, plan_id) -> <a href="./src/orb/types/plans/migration_retrieve_response.py">MigrationRetrieveResponse</a></code>
477+
- <code title="get /plans/{plan_id}/migrations">client.plans.migrations.<a href="./src/orb/resources/plans/migrations.py">list</a>(plan_id, \*\*<a href="src/orb/types/plans/migration_list_params.py">params</a>) -> <a href="./src/orb/types/plans/migration_list_response.py">SyncPage[MigrationListResponse]</a></code>
478+
- <code title="post /plans/{plan_id}/migrations/{migration_id}/cancel">client.plans.migrations.<a href="./src/orb/resources/plans/migrations.py">cancel</a>(migration_id, \*, plan_id) -> <a href="./src/orb/types/plans/migration_cancel_response.py">MigrationCancelResponse</a></code>
479+
460480
# Prices
461481

462482
Types:
@@ -603,6 +623,7 @@ Types:
603623
from orb.types import (
604624
MutatedSubscription,
605625
SubscriptionChangeRetrieveResponse,
626+
SubscriptionChangeListResponse,
606627
SubscriptionChangeApplyResponse,
607628
SubscriptionChangeCancelResponse,
608629
)
@@ -611,5 +632,19 @@ from orb.types import (
611632
Methods:
612633

613634
- <code title="get /subscription_changes/{subscription_change_id}">client.subscription_changes.<a href="./src/orb/resources/subscription_changes.py">retrieve</a>(subscription_change_id) -> <a href="./src/orb/types/subscription_change_retrieve_response.py">SubscriptionChangeRetrieveResponse</a></code>
635+
- <code title="get /subscription_changes">client.subscription_changes.<a href="./src/orb/resources/subscription_changes.py">list</a>(\*\*<a href="src/orb/types/subscription_change_list_params.py">params</a>) -> <a href="./src/orb/types/subscription_change_list_response.py">SyncPage[SubscriptionChangeListResponse]</a></code>
614636
- <code title="post /subscription_changes/{subscription_change_id}/apply">client.subscription_changes.<a href="./src/orb/resources/subscription_changes.py">apply</a>(subscription_change_id, \*\*<a href="src/orb/types/subscription_change_apply_params.py">params</a>) -> <a href="./src/orb/types/subscription_change_apply_response.py">SubscriptionChangeApplyResponse</a></code>
615637
- <code title="post /subscription_changes/{subscription_change_id}/cancel">client.subscription_changes.<a href="./src/orb/resources/subscription_changes.py">cancel</a>(subscription_change_id) -> <a href="./src/orb/types/subscription_change_cancel_response.py">SubscriptionChangeCancelResponse</a></code>
638+
639+
# CreditBlocks
640+
641+
Types:
642+
643+
```python
644+
from orb.types import CreditBlockRetrieveResponse
645+
```
646+
647+
Methods:
648+
649+
- <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>
650+
- <code title="delete /credit_blocks/{block_id}">client.credit_blocks.<a href="./src/orb/resources/credit_blocks.py">delete</a>(block_id) -> None</code>

src/orb/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
customers,
5050
top_level,
5151
credit_notes,
52+
credit_blocks,
5253
subscriptions,
5354
invoice_line_items,
5455
subscription_changes,
@@ -62,6 +63,7 @@
6263
from .resources.top_level import TopLevel, AsyncTopLevel
6364
from .resources.plans.plans import Plans, AsyncPlans
6465
from .resources.credit_notes import CreditNotes, AsyncCreditNotes
66+
from .resources.credit_blocks import CreditBlocks, AsyncCreditBlocks
6567
from .resources.events.events import Events, AsyncEvents
6668
from .resources.prices.prices import Prices, AsyncPrices
6769
from .resources.subscriptions import Subscriptions, AsyncSubscriptions
@@ -244,6 +246,12 @@ def webhooks(self) -> webhooks.Webhooks:
244246

245247
return Webhooks(self)
246248

249+
@cached_property
250+
def credit_blocks(self) -> CreditBlocks:
251+
from .resources.credit_blocks import CreditBlocks
252+
253+
return CreditBlocks(self)
254+
247255
@cached_property
248256
def with_raw_response(self) -> OrbWithRawResponse:
249257
return OrbWithRawResponse(self)
@@ -574,6 +582,12 @@ def webhooks(self) -> webhooks.AsyncWebhooks:
574582

575583
return AsyncWebhooks(self)
576584

585+
@cached_property
586+
def credit_blocks(self) -> AsyncCreditBlocks:
587+
from .resources.credit_blocks import AsyncCreditBlocks
588+
589+
return AsyncCreditBlocks(self)
590+
577591
@cached_property
578592
def with_raw_response(self) -> AsyncOrbWithRawResponse:
579593
return AsyncOrbWithRawResponse(self)
@@ -839,6 +853,12 @@ def subscription_changes(self) -> subscription_changes.SubscriptionChangesWithRa
839853

840854
return SubscriptionChangesWithRawResponse(self._client.subscription_changes)
841855

856+
@cached_property
857+
def credit_blocks(self) -> credit_blocks.CreditBlocksWithRawResponse:
858+
from .resources.credit_blocks import CreditBlocksWithRawResponse
859+
860+
return CreditBlocksWithRawResponse(self._client.credit_blocks)
861+
842862

843863
class AsyncOrbWithRawResponse:
844864
_client: AsyncOrb
@@ -942,6 +962,12 @@ def subscription_changes(self) -> subscription_changes.AsyncSubscriptionChangesW
942962

943963
return AsyncSubscriptionChangesWithRawResponse(self._client.subscription_changes)
944964

965+
@cached_property
966+
def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithRawResponse:
967+
from .resources.credit_blocks import AsyncCreditBlocksWithRawResponse
968+
969+
return AsyncCreditBlocksWithRawResponse(self._client.credit_blocks)
970+
945971

946972
class OrbWithStreamedResponse:
947973
_client: Orb
@@ -1045,6 +1071,12 @@ def subscription_changes(self) -> subscription_changes.SubscriptionChangesWithSt
10451071

10461072
return SubscriptionChangesWithStreamingResponse(self._client.subscription_changes)
10471073

1074+
@cached_property
1075+
def credit_blocks(self) -> credit_blocks.CreditBlocksWithStreamingResponse:
1076+
from .resources.credit_blocks import CreditBlocksWithStreamingResponse
1077+
1078+
return CreditBlocksWithStreamingResponse(self._client.credit_blocks)
1079+
10481080

10491081
class AsyncOrbWithStreamedResponse:
10501082
_client: AsyncOrb
@@ -1148,6 +1180,12 @@ def subscription_changes(self) -> subscription_changes.AsyncSubscriptionChangesW
11481180

11491181
return AsyncSubscriptionChangesWithStreamingResponse(self._client.subscription_changes)
11501182

1183+
@cached_property
1184+
def credit_blocks(self) -> credit_blocks.AsyncCreditBlocksWithStreamingResponse:
1185+
from .resources.credit_blocks import AsyncCreditBlocksWithStreamingResponse
1186+
1187+
return AsyncCreditBlocksWithStreamingResponse(self._client.credit_blocks)
1188+
11511189

11521190
Client = Orb
11531191

src/orb/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
CreditNotesWithStreamingResponse,
101101
AsyncCreditNotesWithStreamingResponse,
102102
)
103+
from .credit_blocks import (
104+
CreditBlocks,
105+
AsyncCreditBlocks,
106+
CreditBlocksWithRawResponse,
107+
AsyncCreditBlocksWithRawResponse,
108+
CreditBlocksWithStreamingResponse,
109+
AsyncCreditBlocksWithStreamingResponse,
110+
)
103111
from .subscriptions import (
104112
Subscriptions,
105113
AsyncSubscriptions,
@@ -232,4 +240,10 @@
232240
"AsyncSubscriptionChangesWithRawResponse",
233241
"SubscriptionChangesWithStreamingResponse",
234242
"AsyncSubscriptionChangesWithStreamingResponse",
243+
"CreditBlocks",
244+
"AsyncCreditBlocks",
245+
"CreditBlocksWithRawResponse",
246+
"AsyncCreditBlocksWithRawResponse",
247+
"CreditBlocksWithStreamingResponse",
248+
"AsyncCreditBlocksWithStreamingResponse",
235249
]

0 commit comments

Comments
 (0)