Skip to content

feat(api): api update #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 24, 2024
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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77f4e8cf0fc3b3f18c894408f322af7988ae90606235fe5058442409142a33e1.yml
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-726c25fdf0fdd4b7c5a9c36d30e33990d2a4b63c4260be340400f8ded23b578f.yml
20 changes: 20 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,23 @@ Methods:
- <code title="post /alerts/subscription_id/{subscription_id}">client.alerts.<a href="./src/orb/resources/alerts.py">create_for_subscription</a>(subscription_id, \*\*<a href="src/orb/types/alert_create_for_subscription_params.py">params</a>) -> <a href="./src/orb/types/alert.py">Alert</a></code>
- <code title="post /alerts/{alert_configuration_id}/disable">client.alerts.<a href="./src/orb/resources/alerts.py">disable</a>(alert_configuration_id, \*\*<a href="src/orb/types/alert_disable_params.py">params</a>) -> <a href="./src/orb/types/alert.py">Alert</a></code>
- <code title="post /alerts/{alert_configuration_id}/enable">client.alerts.<a href="./src/orb/resources/alerts.py">enable</a>(alert_configuration_id, \*\*<a href="src/orb/types/alert_enable_params.py">params</a>) -> <a href="./src/orb/types/alert.py">Alert</a></code>

# DimensionalPriceGroups

Types:

```python
from orb.types import DimensionalPriceGroup, DimensionalPriceGroups
```

Methods:

- <code title="post /dimensional_price_groups">client.dimensional_price_groups.<a href="./src/orb/resources/dimensional_price_groups/dimensional_price_groups.py">create</a>(\*\*<a href="src/orb/types/dimensional_price_group_create_params.py">params</a>) -> <a href="./src/orb/types/dimensional_price_group.py">DimensionalPriceGroup</a></code>
- <code title="get /dimensional_price_groups/{dimensional_price_group_id}">client.dimensional_price_groups.<a href="./src/orb/resources/dimensional_price_groups/dimensional_price_groups.py">retrieve</a>(dimensional_price_group_id) -> <a href="./src/orb/types/dimensional_price_group.py">DimensionalPriceGroup</a></code>
- <code title="get /dimensional_price_groups">client.dimensional_price_groups.<a href="./src/orb/resources/dimensional_price_groups/dimensional_price_groups.py">list</a>(\*\*<a href="src/orb/types/dimensional_price_group_list_params.py">params</a>) -> <a href="./src/orb/types/dimensional_price_group.py">SyncPage[DimensionalPriceGroup]</a></code>

## ExternalDimensionalPriceGroupID

Methods:

- <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>
17 changes: 17 additions & 0 deletions src/orb/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from .resources.prices import prices
from .resources.coupons import coupons
from .resources.customers import customers
from .resources.dimensional_price_groups import dimensional_price_groups

__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Orb", "AsyncOrb", "Client", "AsyncClient"]

Expand All @@ -56,6 +57,7 @@ class Orb(SyncAPIClient):
prices: prices.Prices
subscriptions: subscriptions.Subscriptions
alerts: alerts.Alerts
dimensional_price_groups: dimensional_price_groups.DimensionalPriceGroups
with_raw_response: OrbWithRawResponse
with_streaming_response: OrbWithStreamedResponse

Expand Down Expand Up @@ -136,6 +138,7 @@ def __init__(
self.prices = prices.Prices(self)
self.subscriptions = subscriptions.Subscriptions(self)
self.alerts = alerts.Alerts(self)
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroups(self)
self.with_raw_response = OrbWithRawResponse(self)
self.with_streaming_response = OrbWithStreamedResponse(self)

Expand Down Expand Up @@ -308,6 +311,7 @@ class AsyncOrb(AsyncAPIClient):
prices: prices.AsyncPrices
subscriptions: subscriptions.AsyncSubscriptions
alerts: alerts.AsyncAlerts
dimensional_price_groups: dimensional_price_groups.AsyncDimensionalPriceGroups
with_raw_response: AsyncOrbWithRawResponse
with_streaming_response: AsyncOrbWithStreamedResponse

Expand Down Expand Up @@ -388,6 +392,7 @@ def __init__(
self.prices = prices.AsyncPrices(self)
self.subscriptions = subscriptions.AsyncSubscriptions(self)
self.alerts = alerts.AsyncAlerts(self)
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroups(self)
self.with_raw_response = AsyncOrbWithRawResponse(self)
self.with_streaming_response = AsyncOrbWithStreamedResponse(self)

Expand Down Expand Up @@ -561,6 +566,9 @@ def __init__(self, client: Orb) -> None:
self.prices = prices.PricesWithRawResponse(client.prices)
self.subscriptions = subscriptions.SubscriptionsWithRawResponse(client.subscriptions)
self.alerts = alerts.AlertsWithRawResponse(client.alerts)
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroupsWithRawResponse(
client.dimensional_price_groups
)


class AsyncOrbWithRawResponse:
Expand All @@ -578,6 +586,9 @@ def __init__(self, client: AsyncOrb) -> None:
self.prices = prices.AsyncPricesWithRawResponse(client.prices)
self.subscriptions = subscriptions.AsyncSubscriptionsWithRawResponse(client.subscriptions)
self.alerts = alerts.AsyncAlertsWithRawResponse(client.alerts)
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroupsWithRawResponse(
client.dimensional_price_groups
)


class OrbWithStreamedResponse:
Expand All @@ -595,6 +606,9 @@ def __init__(self, client: Orb) -> None:
self.prices = prices.PricesWithStreamingResponse(client.prices)
self.subscriptions = subscriptions.SubscriptionsWithStreamingResponse(client.subscriptions)
self.alerts = alerts.AlertsWithStreamingResponse(client.alerts)
self.dimensional_price_groups = dimensional_price_groups.DimensionalPriceGroupsWithStreamingResponse(
client.dimensional_price_groups
)


class AsyncOrbWithStreamedResponse:
Expand All @@ -614,6 +628,9 @@ def __init__(self, client: AsyncOrb) -> None:
self.prices = prices.AsyncPricesWithStreamingResponse(client.prices)
self.subscriptions = subscriptions.AsyncSubscriptionsWithStreamingResponse(client.subscriptions)
self.alerts = alerts.AsyncAlertsWithStreamingResponse(client.alerts)
self.dimensional_price_groups = dimensional_price_groups.AsyncDimensionalPriceGroupsWithStreamingResponse(
client.dimensional_price_groups
)


Client = Orb
Expand Down
14 changes: 14 additions & 0 deletions src/orb/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
InvoiceLineItemsWithStreamingResponse,
AsyncInvoiceLineItemsWithStreamingResponse,
)
from .dimensional_price_groups import (
DimensionalPriceGroups,
AsyncDimensionalPriceGroups,
DimensionalPriceGroupsWithRawResponse,
AsyncDimensionalPriceGroupsWithRawResponse,
DimensionalPriceGroupsWithStreamingResponse,
AsyncDimensionalPriceGroupsWithStreamingResponse,
)

__all__ = [
"TopLevel",
Expand Down Expand Up @@ -184,4 +192,10 @@
"AsyncAlertsWithRawResponse",
"AlertsWithStreamingResponse",
"AsyncAlertsWithStreamingResponse",
"DimensionalPriceGroups",
"AsyncDimensionalPriceGroups",
"DimensionalPriceGroupsWithRawResponse",
"AsyncDimensionalPriceGroupsWithRawResponse",
"DimensionalPriceGroupsWithStreamingResponse",
"AsyncDimensionalPriceGroupsWithStreamingResponse",
]
33 changes: 33 additions & 0 deletions src/orb/resources/dimensional_price_groups/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .dimensional_price_groups import (
DimensionalPriceGroups,
AsyncDimensionalPriceGroups,
DimensionalPriceGroupsWithRawResponse,
AsyncDimensionalPriceGroupsWithRawResponse,
DimensionalPriceGroupsWithStreamingResponse,
AsyncDimensionalPriceGroupsWithStreamingResponse,
)
from .external_dimensional_price_group_id import (
ExternalDimensionalPriceGroupID,
AsyncExternalDimensionalPriceGroupID,
ExternalDimensionalPriceGroupIDWithRawResponse,
AsyncExternalDimensionalPriceGroupIDWithRawResponse,
ExternalDimensionalPriceGroupIDWithStreamingResponse,
AsyncExternalDimensionalPriceGroupIDWithStreamingResponse,
)

__all__ = [
"ExternalDimensionalPriceGroupID",
"AsyncExternalDimensionalPriceGroupID",
"ExternalDimensionalPriceGroupIDWithRawResponse",
"AsyncExternalDimensionalPriceGroupIDWithRawResponse",
"ExternalDimensionalPriceGroupIDWithStreamingResponse",
"AsyncExternalDimensionalPriceGroupIDWithStreamingResponse",
"DimensionalPriceGroups",
"AsyncDimensionalPriceGroups",
"DimensionalPriceGroupsWithRawResponse",
"AsyncDimensionalPriceGroupsWithRawResponse",
"DimensionalPriceGroupsWithStreamingResponse",
"AsyncDimensionalPriceGroupsWithStreamingResponse",
]
Loading