Skip to content

Commit f0784d8

Browse files
feat(api): price evaluation endpoint generally available (#240)
1 parent 90f2146 commit f0784d8

15 files changed

+330
-571
lines changed

api.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,14 @@ Methods:
289289
Types:
290290

291291
```python
292-
from orb.types import Price
292+
from orb.types import EvaluatePriceGroup, Price, PriceEvaluateResponse
293293
```
294294

295295
Methods:
296296

297297
- <code title="post /prices">client.prices.<a href="./src/orb/resources/prices/prices.py">create</a>(\*\*<a href="src/orb/types/price_create_params.py">params</a>) -> <a href="./src/orb/types/price.py">Price</a></code>
298298
- <code title="get /prices">client.prices.<a href="./src/orb/resources/prices/prices.py">list</a>(\*\*<a href="src/orb/types/price_list_params.py">params</a>) -> <a href="./src/orb/types/price.py">SyncPage[Price]</a></code>
299+
- <code title="post /prices/{price_id}/evaluate">client.prices.<a href="./src/orb/resources/prices/prices.py">evaluate</a>(price_id, \*\*<a href="src/orb/types/price_evaluate_params.py">params</a>) -> <a href="./src/orb/types/price_evaluate_response.py">PriceEvaluateResponse</a></code>
299300
- <code title="get /prices/{price_id}">client.prices.<a href="./src/orb/resources/prices/prices.py">fetch</a>(price_id) -> <a href="./src/orb/types/price.py">Price</a></code>
300301

301302
## ExternalPriceID
@@ -335,17 +336,3 @@ Methods:
335336
- <code title="post /subscriptions/{subscription_id}/unschedule_fixed_fee_quantity_updates">client.subscriptions.<a href="./src/orb/resources/subscriptions.py">unschedule_fixed_fee_quantity_updates</a>(subscription_id, \*\*<a href="src/orb/types/subscription_unschedule_fixed_fee_quantity_updates_params.py">params</a>) -> <a href="./src/orb/types/subscription.py">Subscription</a></code>
336337
- <code title="post /subscriptions/{subscription_id}/unschedule_pending_plan_changes">client.subscriptions.<a href="./src/orb/resources/subscriptions.py">unschedule_pending_plan_changes</a>(subscription_id) -> <a href="./src/orb/types/subscription.py">Subscription</a></code>
337338
- <code title="post /subscriptions/{subscription_id}/update_fixed_fee_quantity">client.subscriptions.<a href="./src/orb/resources/subscriptions.py">update_fixed_fee_quantity</a>(subscription_id, \*\*<a href="src/orb/types/subscription_update_fixed_fee_quantity_params.py">params</a>) -> <a href="./src/orb/types/subscription.py">Subscription</a></code>
338-
339-
# Beta
340-
341-
## Price
342-
343-
Types:
344-
345-
```python
346-
from orb.types.beta import EvaluatePriceGroup, PriceEvaluateResponse
347-
```
348-
349-
Methods:
350-
351-
- <code title="post /prices/{price_id}/evaluate">client.beta.price.<a href="./src/orb/resources/beta/price.py">evaluate</a>(price_id, \*\*<a href="src/orb/types/beta/price_evaluate_params.py">params</a>) -> <a href="./src/orb/types/beta/price_evaluate_response.py">PriceEvaluateResponse</a></code>

src/orb/_client.py

-8
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class Orb(SyncAPIClient):
5959
plans: resources.Plans
6060
prices: resources.Prices
6161
subscriptions: resources.Subscriptions
62-
beta: resources.Beta
6362
with_raw_response: OrbWithRawResponse
6463
with_streaming_response: OrbWithStreamedResponse
6564

@@ -139,7 +138,6 @@ def __init__(
139138
self.plans = resources.Plans(self)
140139
self.prices = resources.Prices(self)
141140
self.subscriptions = resources.Subscriptions(self)
142-
self.beta = resources.Beta(self)
143141
self.with_raw_response = OrbWithRawResponse(self)
144142
self.with_streaming_response = OrbWithStreamedResponse(self)
145143

@@ -311,7 +309,6 @@ class AsyncOrb(AsyncAPIClient):
311309
plans: resources.AsyncPlans
312310
prices: resources.AsyncPrices
313311
subscriptions: resources.AsyncSubscriptions
314-
beta: resources.AsyncBeta
315312
with_raw_response: AsyncOrbWithRawResponse
316313
with_streaming_response: AsyncOrbWithStreamedResponse
317314

@@ -391,7 +388,6 @@ def __init__(
391388
self.plans = resources.AsyncPlans(self)
392389
self.prices = resources.AsyncPrices(self)
393390
self.subscriptions = resources.AsyncSubscriptions(self)
394-
self.beta = resources.AsyncBeta(self)
395391
self.with_raw_response = AsyncOrbWithRawResponse(self)
396392
self.with_streaming_response = AsyncOrbWithStreamedResponse(self)
397393

@@ -564,7 +560,6 @@ def __init__(self, client: Orb) -> None:
564560
self.plans = resources.PlansWithRawResponse(client.plans)
565561
self.prices = resources.PricesWithRawResponse(client.prices)
566562
self.subscriptions = resources.SubscriptionsWithRawResponse(client.subscriptions)
567-
self.beta = resources.BetaWithRawResponse(client.beta)
568563

569564

570565
class AsyncOrbWithRawResponse:
@@ -581,7 +576,6 @@ def __init__(self, client: AsyncOrb) -> None:
581576
self.plans = resources.AsyncPlansWithRawResponse(client.plans)
582577
self.prices = resources.AsyncPricesWithRawResponse(client.prices)
583578
self.subscriptions = resources.AsyncSubscriptionsWithRawResponse(client.subscriptions)
584-
self.beta = resources.AsyncBetaWithRawResponse(client.beta)
585579

586580

587581
class OrbWithStreamedResponse:
@@ -598,7 +592,6 @@ def __init__(self, client: Orb) -> None:
598592
self.plans = resources.PlansWithStreamingResponse(client.plans)
599593
self.prices = resources.PricesWithStreamingResponse(client.prices)
600594
self.subscriptions = resources.SubscriptionsWithStreamingResponse(client.subscriptions)
601-
self.beta = resources.BetaWithStreamingResponse(client.beta)
602595

603596

604597
class AsyncOrbWithStreamedResponse:
@@ -615,7 +608,6 @@ def __init__(self, client: AsyncOrb) -> None:
615608
self.plans = resources.AsyncPlansWithStreamingResponse(client.plans)
616609
self.prices = resources.AsyncPricesWithStreamingResponse(client.prices)
617610
self.subscriptions = resources.AsyncSubscriptionsWithStreamingResponse(client.subscriptions)
618-
self.beta = resources.AsyncBetaWithStreamingResponse(client.beta)
619611

620612

621613
Client = Orb

src/orb/resources/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .beta import (
4-
Beta,
5-
AsyncBeta,
6-
BetaWithRawResponse,
7-
AsyncBetaWithRawResponse,
8-
BetaWithStreamingResponse,
9-
AsyncBetaWithStreamingResponse,
10-
)
113
from .items import (
124
Items,
135
AsyncItems,
@@ -178,10 +170,4 @@
178170
"AsyncSubscriptionsWithRawResponse",
179171
"SubscriptionsWithStreamingResponse",
180172
"AsyncSubscriptionsWithStreamingResponse",
181-
"Beta",
182-
"AsyncBeta",
183-
"BetaWithRawResponse",
184-
"AsyncBetaWithRawResponse",
185-
"BetaWithStreamingResponse",
186-
"AsyncBetaWithStreamingResponse",
187173
]

src/orb/resources/beta/__init__.py

-33
This file was deleted.

src/orb/resources/beta/beta.py

-80
This file was deleted.

0 commit comments

Comments
 (0)