Skip to content

Commit b4a20ab

Browse files
feat(api): api update (#614)
1 parent c4c0573 commit b4a20ab

30 files changed

+2972
-41
lines changed

.stats.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-95a3d7780935a38e0cf076d4ad2d68bd1a5641bced8398d972db2e92751d364a.yml
3-
openapi_spec_hash: 9ebe818c4ad4f2d9c4e473b5192d7544
4-
config_hash: 54edf41f0377bc235f622fdaa7405f22
1+
configured_endpoints: 106
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e8dad7eee5621fe2ba948dfd00dabf170d9d92ce615a9f04b0f546f4d8bf39ba.yml
3+
openapi_spec_hash: 3f6a98e3a1b3a47acebd67a960090ebf
4+
config_hash: 7e523cf79552b8936bd772f2e1025e5f

api.md

+18
Original file line numberDiff line numberDiff line change
@@ -410,3 +410,21 @@ Methods:
410410
Methods:
411411

412412
- <code title="get /dimensional_price_groups/external_dimensional_price_group_id/{external_dimensional_price_group_id}">client.dimensional_price_groups.external_dimensional_price_group_id.<a href="./src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py">retrieve</a>(external_dimensional_price_group_id) -> <a href="./src/orb/types/dimensional_price_group.py">DimensionalPriceGroup</a></code>
413+
414+
# SubscriptionChanges
415+
416+
Types:
417+
418+
```python
419+
from orb.types import (
420+
SubscriptionChangeRetrieveResponse,
421+
SubscriptionChangeApplyResponse,
422+
SubscriptionChangeCancelResponse,
423+
)
424+
```
425+
426+
Methods:
427+
428+
- <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>
429+
- <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>
430+
- <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>

src/orb/_client.py

+15
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
credit_notes,
3636
subscriptions,
3737
invoice_line_items,
38+
subscription_changes,
3839
)
3940
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
4041
from ._exceptions import OrbError, APIStatusError
@@ -69,6 +70,7 @@ class Orb(SyncAPIClient):
6970
webhooks: webhooks.Webhooks
7071
alerts: alerts.Alerts
7172
dimensional_price_groups: dimensional_price_groups.DimensionalPriceGroups
73+
subscription_changes: subscription_changes.SubscriptionChanges
7274
with_raw_response: OrbWithRawResponse
7375
with_streaming_response: OrbWithStreamedResponse
7476

@@ -151,6 +153,7 @@ def __init__(
151153
self.webhooks = webhooks.Webhooks(self)
152154
self.alerts = alerts.Alerts(self)
153155
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroups(self)
156+
self.subscription_changes = subscription_changes.SubscriptionChanges(self)
154157
self.with_raw_response = OrbWithRawResponse(self)
155158
self.with_streaming_response = OrbWithStreamedResponse(self)
156159

@@ -325,6 +328,7 @@ class AsyncOrb(AsyncAPIClient):
325328
webhooks: webhooks.AsyncWebhooks
326329
alerts: alerts.AsyncAlerts
327330
dimensional_price_groups: dimensional_price_groups.AsyncDimensionalPriceGroups
331+
subscription_changes: subscription_changes.AsyncSubscriptionChanges
328332
with_raw_response: AsyncOrbWithRawResponse
329333
with_streaming_response: AsyncOrbWithStreamedResponse
330334

@@ -407,6 +411,7 @@ def __init__(
407411
self.webhooks = webhooks.AsyncWebhooks(self)
408412
self.alerts = alerts.AsyncAlerts(self)
409413
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroups(self)
414+
self.subscription_changes = subscription_changes.AsyncSubscriptionChanges(self)
410415
self.with_raw_response = AsyncOrbWithRawResponse(self)
411416
self.with_streaming_response = AsyncOrbWithStreamedResponse(self)
412417

@@ -583,6 +588,7 @@ def __init__(self, client: Orb) -> None:
583588
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroupsWithRawResponse(
584589
client.dimensional_price_groups
585590
)
591+
self.subscription_changes = subscription_changes.SubscriptionChangesWithRawResponse(client.subscription_changes)
586592

587593

588594
class AsyncOrbWithRawResponse:
@@ -603,6 +609,9 @@ def __init__(self, client: AsyncOrb) -> None:
603609
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroupsWithRawResponse(
604610
client.dimensional_price_groups
605611
)
612+
self.subscription_changes = subscription_changes.AsyncSubscriptionChangesWithRawResponse(
613+
client.subscription_changes
614+
)
606615

607616

608617
class OrbWithStreamedResponse:
@@ -623,6 +632,9 @@ def __init__(self, client: Orb) -> None:
623632
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroupsWithStreamingResponse(
624633
client.dimensional_price_groups
625634
)
635+
self.subscription_changes = subscription_changes.SubscriptionChangesWithStreamingResponse(
636+
client.subscription_changes
637+
)
626638

627639

628640
class AsyncOrbWithStreamedResponse:
@@ -645,6 +657,9 @@ def __init__(self, client: AsyncOrb) -> None:
645657
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroupsWithStreamingResponse(
646658
client.dimensional_price_groups
647659
)
660+
self.subscription_changes = subscription_changes.AsyncSubscriptionChangesWithStreamingResponse(
661+
client.subscription_changes
662+
)
648663

649664

650665
Client = Orb

src/orb/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@
108108
InvoiceLineItemsWithStreamingResponse,
109109
AsyncInvoiceLineItemsWithStreamingResponse,
110110
)
111+
from .subscription_changes import (
112+
SubscriptionChanges,
113+
AsyncSubscriptionChanges,
114+
SubscriptionChangesWithRawResponse,
115+
AsyncSubscriptionChangesWithRawResponse,
116+
SubscriptionChangesWithStreamingResponse,
117+
AsyncSubscriptionChangesWithStreamingResponse,
118+
)
111119
from .dimensional_price_groups import (
112120
DimensionalPriceGroups,
113121
AsyncDimensionalPriceGroups,
@@ -204,4 +212,10 @@
204212
"AsyncDimensionalPriceGroupsWithRawResponse",
205213
"DimensionalPriceGroupsWithStreamingResponse",
206214
"AsyncDimensionalPriceGroupsWithStreamingResponse",
215+
"SubscriptionChanges",
216+
"AsyncSubscriptionChanges",
217+
"SubscriptionChangesWithRawResponse",
218+
"AsyncSubscriptionChangesWithRawResponse",
219+
"SubscriptionChangesWithStreamingResponse",
220+
"AsyncSubscriptionChangesWithStreamingResponse",
207221
]

src/orb/resources/invoices.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ def create(
104104
by setting the value to `null`, and the entire metadata mapping can be cleared
105105
by setting `metadata` to `null`.
106106
107-
will_auto_issue: When true, this invoice will automatically be issued upon creation. When false,
108-
the resulting invoice will require manual review to issue. Defaulted to false.
107+
will_auto_issue: When true, this invoice will be submitted for issuance upon creation. When
108+
false, the resulting invoice will require manual review to issue. Defaulted to
109+
false.
109110
110111
extra_headers: Send extra headers
111112
@@ -643,8 +644,9 @@ async def create(
643644
by setting the value to `null`, and the entire metadata mapping can be cleared
644645
by setting `metadata` to `null`.
645646
646-
will_auto_issue: When true, this invoice will automatically be issued upon creation. When false,
647-
the resulting invoice will require manual review to issue. Defaulted to false.
647+
will_auto_issue: When true, this invoice will be submitted for issuance upon creation. When
648+
false, the resulting invoice will require manual review to issue. Defaulted to
649+
false.
648650
649651
extra_headers: Send extra headers
650652

0 commit comments

Comments
 (0)