Skip to content

Commit

Permalink
chore(internal): minor import restructuring (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 11, 2024
1 parent 4fc3bcb commit eeee65e
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 85 deletions.
5 changes: 1 addition & 4 deletions src/orb/resources/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from ..types.alert import Alert
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options

__all__ = ["Alerts", "AsyncAlerts"]

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/coupons/coupons.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
SubscriptionsWithStreamingResponse,
AsyncSubscriptionsWithStreamingResponse,
)
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.coupon import Coupon

__all__ = ["Coupons", "AsyncCoupons"]
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/coupons/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.coupons import subscription_list_params
from ...types.subscription import Subscription

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/credit_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options
from ..types.credit_note import CreditNote

__all__ = ["CreditNotes", "AsyncCreditNotes"]
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/customers/balance_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.customers import balance_transaction_list_params, balance_transaction_create_params
from ...types.customers.balance_transaction_list_response import BalanceTransactionListResponse
from ...types.customers.balance_transaction_create_response import BalanceTransactionCreateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/customers/costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.customers import cost_list_params, cost_list_by_external_id_params
from ...types.customers.cost_list_response import CostListResponse
from ...types.customers.cost_list_by_external_id_response import CostListByExternalIDResponse
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/customers/credits/credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncPage, AsyncPage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.customers import credit_list_params, credit_list_by_external_id_params
from ....types.customers.credit_list_response import CreditListResponse
from ....types.customers.credit_list_by_external_id_response import CreditListByExternalIDResponse
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/customers/credits/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncPage, AsyncPage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.customers.credits import (
ledger_list_params,
ledger_create_entry_params,
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/customers/credits/top_ups.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncPage, AsyncPage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.customers.credits import (
top_up_list_params,
top_up_create_params,
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/customers/customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from .credits.credits import Credits, AsyncCredits
from ...types.customer import Customer
from .balance_transactions import (
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/customers/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.customers import usage_update_params, usage_update_by_external_id_params
from ...types.customers.usage_update_response import UsageUpdateResponse
from ...types.customers.usage_update_by_external_id_response import UsageUpdateByExternalIDResponse
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/events/backfills.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.events import backfill_list_params, backfill_create_params
from ...types.events.backfill_list_response import BackfillListResponse
from ...types.events.backfill_close_response import BackfillCloseResponse
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
)
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.event_ingest_response import EventIngestResponse
from ...types.event_search_response import EventSearchResponse
from ...types.event_update_response import EventUpdateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/invoice_line_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from .._base_client import make_request_options
from ..types.invoice_line_item_create_response import InvoiceLineItemCreateResponse

__all__ = ["InvoiceLineItems", "AsyncInvoiceLineItems"]
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options
from ..types.invoice import Invoice
from ..types.invoice_fetch_upcoming_response import InvoiceFetchUpcomingResponse

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from ..types.item import Item
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options

__all__ = ["Items", "AsyncItems"]

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options
from ..types.metric_list_response import MetricListResponse
from ..types.metric_fetch_response import MetricFetchResponse
from ..types.metric_create_response import MetricCreateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/plans/external_plan_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...types.plan import Plan
from ...types.plans import external_plan_id_update_params
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options

__all__ = ["ExternalPlanID", "AsyncExternalPlanID"]

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/plans/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ...types.plan import Plan
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from .external_plan_id import (
ExternalPlanID,
AsyncExternalPlanID,
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/prices/external_price_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...types.price import Price
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options

__all__ = ["ExternalPriceID", "AsyncExternalPriceID"]

Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/prices/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ...types.price import Price
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from .external_price_id import (
ExternalPriceID,
AsyncExternalPriceID,
Expand Down
5 changes: 1 addition & 4 deletions src/orb/resources/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options
from ..types.subscription import Subscription
from ..types.subscription_usage import SubscriptionUsage
from ..types.subscription_fetch_costs_response import SubscriptionFetchCostsResponse
Expand Down
4 changes: 1 addition & 3 deletions src/orb/resources/top_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from .._base_client import make_request_options
from ..types.top_level_ping_response import TopLevelPingResponse

__all__ = ["TopLevel", "AsyncTopLevel"]
Expand Down

0 comments on commit eeee65e

Please sign in to comment.