Skip to content

Commit 3dddf85

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): restructure imports (#239)
1 parent c116802 commit 3dddf85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+116
-151
lines changed

src/orb/resources/beta/price.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
from ..._compat import cached_property
1717
from ..._resource import SyncAPIResource, AsyncAPIResource
1818
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
19-
from ...types.beta import PriceEvaluateResponse, price_evaluate_params
19+
from ...types.beta import price_evaluate_params
2020
from ..._base_client import (
2121
make_request_options,
2222
)
23+
from ...types.beta.price_evaluate_response import PriceEvaluateResponse
2324

2425
__all__ = ["Price", "AsyncPrice"]
2526

src/orb/resources/coupons/coupons.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import httpx
88

99
from ... import _legacy_response
10-
from ...types import Coupon, coupon_list_params, coupon_create_params
10+
from ...types import coupon_list_params, coupon_create_params
1111
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1212
from ..._utils import (
1313
maybe_transform,
@@ -29,6 +29,7 @@
2929
AsyncPaginator,
3030
make_request_options,
3131
)
32+
from ...types.coupon import Coupon
3233

3334
__all__ = ["Coupons", "AsyncCoupons"]
3435

src/orb/resources/coupons/subscriptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import httpx
88

99
from ... import _legacy_response
10-
from ...types import Subscription
1110
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1211
from ..._utils import maybe_transform
1312
from ..._compat import cached_property
@@ -19,6 +18,7 @@
1918
make_request_options,
2019
)
2120
from ...types.coupons import subscription_list_params
21+
from ...types.subscription import Subscription
2222

2323
__all__ = ["Subscriptions", "AsyncSubscriptions"]
2424

src/orb/resources/credit_notes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import httpx
88

99
from .. import _legacy_response
10-
from ..types import CreditNote, credit_note_list_params
10+
from ..types import credit_note_list_params
1111
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1212
from .._utils import maybe_transform
1313
from .._compat import cached_property
@@ -18,6 +18,7 @@
1818
AsyncPaginator,
1919
make_request_options,
2020
)
21+
from ..types.credit_note import CreditNote
2122

2223
__all__ = ["CreditNotes", "AsyncCreditNotes"]
2324

src/orb/resources/customers/balance_transactions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
AsyncPaginator,
2323
make_request_options,
2424
)
25-
from ...types.customers import (
26-
BalanceTransactionListResponse,
27-
BalanceTransactionCreateResponse,
28-
balance_transaction_list_params,
29-
balance_transaction_create_params,
30-
)
25+
from ...types.customers import balance_transaction_list_params, balance_transaction_create_params
26+
from ...types.customers.balance_transaction_list_response import BalanceTransactionListResponse
27+
from ...types.customers.balance_transaction_create_response import BalanceTransactionCreateResponse
3128

3229
__all__ = ["BalanceTransactions", "AsyncBalanceTransactions"]
3330

src/orb/resources/customers/costs.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
from ..._base_client import (
2121
make_request_options,
2222
)
23-
from ...types.customers import (
24-
CostListResponse,
25-
CostListByExternalIDResponse,
26-
cost_list_params,
27-
cost_list_by_external_id_params,
28-
)
23+
from ...types.customers import cost_list_params, cost_list_by_external_id_params
24+
from ...types.customers.cost_list_response import CostListResponse
25+
from ...types.customers.cost_list_by_external_id_response import CostListByExternalIDResponse
2926

3027
__all__ = ["Costs", "AsyncCosts"]
3128

src/orb/resources/customers/credits/credits.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@
3333
AsyncPaginator,
3434
make_request_options,
3535
)
36-
from ....types.customers import (
37-
CreditListResponse,
38-
CreditListByExternalIDResponse,
39-
credit_list_params,
40-
credit_list_by_external_id_params,
41-
)
36+
from ....types.customers import credit_list_params, credit_list_by_external_id_params
37+
from ....types.customers.credit_list_response import CreditListResponse
38+
from ....types.customers.credit_list_by_external_id_response import CreditListByExternalIDResponse
4239

4340
__all__ = ["Credits", "AsyncCredits"]
4441

src/orb/resources/customers/credits/ledger.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@
2424
make_request_options,
2525
)
2626
from ....types.customers.credits import (
27-
LedgerListResponse,
28-
LedgerCreateEntryResponse,
29-
LedgerListByExternalIDResponse,
30-
LedgerCreateEntryByExternalIDResponse,
3127
ledger_list_params,
3228
ledger_create_entry_params,
3329
ledger_list_by_external_id_params,
3430
ledger_create_entry_by_external_id_params,
3531
)
32+
from ....types.customers.credits.ledger_list_response import LedgerListResponse
33+
from ....types.customers.credits.ledger_create_entry_response import LedgerCreateEntryResponse
34+
from ....types.customers.credits.ledger_list_by_external_id_response import LedgerListByExternalIDResponse
35+
from ....types.customers.credits.ledger_create_entry_by_external_id_response import (
36+
LedgerCreateEntryByExternalIDResponse,
37+
)
3638

3739
__all__ = ["Ledger", "AsyncLedger"]
3840

src/orb/resources/customers/credits/top_ups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
make_request_options,
2323
)
2424
from ....types.customers.credits import (
25-
TopUpListResponse,
26-
TopUpCreateResponse,
27-
TopUpListByExternalIDResponse,
28-
TopUpCreateByExternalIDResponse,
2925
top_up_list_params,
3026
top_up_create_params,
3127
top_up_list_by_external_id_params,
3228
top_up_create_by_external_id_params,
3329
)
30+
from ....types.customers.credits.top_up_list_response import TopUpListResponse
31+
from ....types.customers.credits.top_up_create_response import TopUpCreateResponse
32+
from ....types.customers.credits.top_up_list_by_external_id_response import TopUpListByExternalIDResponse
33+
from ....types.customers.credits.top_up_create_by_external_id_response import TopUpCreateByExternalIDResponse
3434

3535
__all__ = ["TopUps", "AsyncTopUps"]
3636

src/orb/resources/customers/customers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
AsyncUsageWithStreamingResponse,
2727
)
2828
from ...types import (
29-
Customer,
3029
customer_list_params,
3130
customer_create_params,
3231
customer_update_params,
@@ -54,6 +53,7 @@
5453
make_request_options,
5554
)
5655
from .credits.credits import Credits, AsyncCredits
56+
from ...types.customer import Customer
5757
from .balance_transactions import (
5858
BalanceTransactions,
5959
AsyncBalanceTransactions,

0 commit comments

Comments
 (0)