Skip to content

Commit 45181a9

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): reformat imports (#245)
1 parent 2c95701 commit 45181a9

22 files changed

+67
-46
lines changed

tests/api_resources/coupons/test_subscriptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Subscription
1112
from tests.utils import assert_matches_type
1213
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.subscription import Subscription
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616

tests/api_resources/customers/credits/test_ledger.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
from orb._utils import parse_date, parse_datetime
1212
from tests.utils import assert_matches_type
1313
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.customers.credits.ledger_list_response import LedgerListResponse
15-
from orb.types.customers.credits.ledger_create_entry_response import LedgerCreateEntryResponse
16-
from orb.types.customers.credits.ledger_list_by_external_id_response import LedgerListByExternalIDResponse
17-
from orb.types.customers.credits.ledger_create_entry_by_external_id_response import (
14+
from orb.types.customers.credits import (
15+
LedgerListResponse,
16+
LedgerCreateEntryResponse,
17+
LedgerListByExternalIDResponse,
1818
LedgerCreateEntryByExternalIDResponse,
1919
)
2020

tests/api_resources/customers/credits/test_top_ups.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
from orb import Orb, AsyncOrb
1111
from tests.utils import assert_matches_type
1212
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.customers.credits.top_up_list_response import TopUpListResponse
14-
from orb.types.customers.credits.top_up_create_response import TopUpCreateResponse
15-
from orb.types.customers.credits.top_up_list_by_external_id_response import TopUpListByExternalIDResponse
16-
from orb.types.customers.credits.top_up_create_by_external_id_response import TopUpCreateByExternalIDResponse
13+
from orb.types.customers.credits import (
14+
TopUpListResponse,
15+
TopUpCreateResponse,
16+
TopUpListByExternalIDResponse,
17+
TopUpCreateByExternalIDResponse,
18+
)
1719

1820
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1921

tests/api_resources/customers/test_balance_transactions.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
from orb._utils import parse_datetime
1212
from tests.utils import assert_matches_type
1313
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.customers.balance_transaction_list_response import BalanceTransactionListResponse
15-
from orb.types.customers.balance_transaction_create_response import BalanceTransactionCreateResponse
14+
from orb.types.customers import (
15+
BalanceTransactionListResponse,
16+
BalanceTransactionCreateResponse,
17+
)
1618

1719
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1820

tests/api_resources/customers/test_costs.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
from orb import Orb, AsyncOrb
1111
from orb._utils import parse_datetime
1212
from tests.utils import assert_matches_type
13-
from orb.types.customers.cost_list_response import CostListResponse
14-
from orb.types.customers.cost_list_by_external_id_response import CostListByExternalIDResponse
13+
from orb.types.customers import (
14+
CostListResponse,
15+
CostListByExternalIDResponse,
16+
)
1517

1618
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1719

tests/api_resources/customers/test_credits.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
from orb import Orb, AsyncOrb
1111
from tests.utils import assert_matches_type
1212
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.customers.credit_list_response import CreditListResponse
14-
from orb.types.customers.credit_list_by_external_id_response import CreditListByExternalIDResponse
13+
from orb.types.customers import (
14+
CreditListResponse,
15+
CreditListByExternalIDResponse,
16+
)
1517

1618
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1719

tests/api_resources/customers/test_usage.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
from orb import Orb, AsyncOrb
1111
from orb._utils import parse_datetime
1212
from tests.utils import assert_matches_type
13-
from orb.types.customers.usage_update_response import UsageUpdateResponse
14-
from orb.types.customers.usage_update_by_external_id_response import UsageUpdateByExternalIDResponse
13+
from orb.types.customers import (
14+
UsageUpdateResponse,
15+
UsageUpdateByExternalIDResponse,
16+
)
1517

1618
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1719

tests/api_resources/events/test_backfills.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
from orb._utils import parse_datetime
1212
from tests.utils import assert_matches_type
1313
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.events.backfill_list_response import BackfillListResponse
15-
from orb.types.events.backfill_close_response import BackfillCloseResponse
16-
from orb.types.events.backfill_fetch_response import BackfillFetchResponse
17-
from orb.types.events.backfill_create_response import BackfillCreateResponse
18-
from orb.types.events.backfill_revert_response import BackfillRevertResponse
14+
from orb.types.events import (
15+
BackfillListResponse,
16+
BackfillCloseResponse,
17+
BackfillFetchResponse,
18+
BackfillCreateResponse,
19+
BackfillRevertResponse,
20+
)
1921

2022
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2123

tests/api_resources/plans/test_external_plan_id.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Plan
1112
from tests.utils import assert_matches_type
12-
from orb.types.plan import Plan
1313

1414
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1515

tests/api_resources/prices/test_external_price_id.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Price
1112
from tests.utils import assert_matches_type
12-
from orb.types.price import Price
1313

1414
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1515

tests/api_resources/test_coupons.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Coupon
1112
from tests.utils import assert_matches_type
1213
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.coupon import Coupon
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616

tests/api_resources/test_credit_notes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import CreditNote
1112
from tests.utils import assert_matches_type
1213
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.credit_note import CreditNote
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616

tests/api_resources/test_customers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import (
12+
Customer,
13+
)
1114
from orb._utils import parse_datetime
1215
from tests.utils import assert_matches_type
1316
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.customer import Customer
1517

1618
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1719

tests/api_resources/test_events.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import (
12+
EventIngestResponse,
13+
EventSearchResponse,
14+
EventUpdateResponse,
15+
EventDeprecateResponse,
16+
)
1117
from orb._utils import parse_datetime
1218
from tests.utils import assert_matches_type
13-
from orb.types.event_ingest_response import EventIngestResponse
14-
from orb.types.event_search_response import EventSearchResponse
15-
from orb.types.event_update_response import EventUpdateResponse
16-
from orb.types.event_deprecate_response import EventDeprecateResponse
1719

1820
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1921

tests/api_resources/test_invoice_line_items.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import InvoiceLineItemCreateResponse
1112
from orb._utils import parse_date
1213
from tests.utils import assert_matches_type
13-
from orb.types.invoice_line_item_create_response import InvoiceLineItemCreateResponse
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616

tests/api_resources/test_invoices.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import (
12+
Invoice,
13+
InvoiceFetchUpcomingResponse,
14+
)
1115
from orb._utils import parse_date, parse_datetime
1216
from tests.utils import assert_matches_type
1317
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.invoice import Invoice
15-
from orb.types.invoice_fetch_upcoming_response import InvoiceFetchUpcomingResponse
1618

1719
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1820

tests/api_resources/test_items.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Item
1112
from tests.utils import assert_matches_type
1213
from orb.pagination import SyncPage, AsyncPage
13-
from orb.types.item import Item
1414

1515
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1616

tests/api_resources/test_metrics.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import (
12+
MetricListResponse,
13+
MetricFetchResponse,
14+
MetricCreateResponse,
15+
)
1116
from orb._utils import parse_datetime
1217
from tests.utils import assert_matches_type
1318
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.metric_list_response import MetricListResponse
15-
from orb.types.metric_fetch_response import MetricFetchResponse
16-
from orb.types.metric_create_response import MetricCreateResponse
1719

1820
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1921

tests/api_resources/test_plans.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Plan
1112
from orb._utils import parse_datetime
1213
from tests.utils import assert_matches_type
1314
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.plan import Plan
1515

1616
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1717

tests/api_resources/test_prices.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import Price, PriceEvaluateResponse
1112
from orb._utils import parse_datetime
1213
from tests.utils import assert_matches_type
1314
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.price import Price
15-
from orb.types.price_evaluate_response import PriceEvaluateResponse
1615

1716
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1817

tests/api_resources/test_subscriptions.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import (
12+
Subscription,
13+
SubscriptionUsage,
14+
SubscriptionFetchCostsResponse,
15+
SubscriptionFetchScheduleResponse,
16+
)
1117
from orb._utils import parse_date, parse_datetime
1218
from tests.utils import assert_matches_type
1319
from orb.pagination import SyncPage, AsyncPage
14-
from orb.types.subscription import Subscription
15-
from orb.types.subscription_usage import SubscriptionUsage
16-
from orb.types.subscription_fetch_costs_response import SubscriptionFetchCostsResponse
17-
from orb.types.subscription_fetch_schedule_response import SubscriptionFetchScheduleResponse
1820

1921
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2022

tests/api_resources/test_top_level.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import pytest
99

1010
from orb import Orb, AsyncOrb
11+
from orb.types import TopLevelPingResponse
1112
from tests.utils import assert_matches_type
12-
from orb.types.top_level_ping_response import TopLevelPingResponse
1313

1414
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1515

0 commit comments

Comments
 (0)