File tree 22 files changed +67
-46
lines changed
22 files changed +67
-46
lines changed Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Subscription
11
12
from tests .utils import assert_matches_type
12
13
from orb .pagination import SyncPage , AsyncPage
13
- from orb .types .subscription import Subscription
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
Original file line number Diff line number Diff line change 11
11
from orb ._utils import parse_date , parse_datetime
12
12
from tests .utils import assert_matches_type
13
13
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 ,
18
18
LedgerCreateEntryByExternalIDResponse ,
19
19
)
20
20
Original file line number Diff line number Diff line change 10
10
from orb import Orb , AsyncOrb
11
11
from tests .utils import assert_matches_type
12
12
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
+ )
17
19
18
20
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
19
21
Original file line number Diff line number Diff line change 11
11
from orb ._utils import parse_datetime
12
12
from tests .utils import assert_matches_type
13
13
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
+ )
16
18
17
19
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
18
20
Original file line number Diff line number Diff line change 10
10
from orb import Orb , AsyncOrb
11
11
from orb ._utils import parse_datetime
12
12
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
+ )
15
17
16
18
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
17
19
Original file line number Diff line number Diff line change 10
10
from orb import Orb , AsyncOrb
11
11
from tests .utils import assert_matches_type
12
12
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
+ )
15
17
16
18
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
17
19
Original file line number Diff line number Diff line change 10
10
from orb import Orb , AsyncOrb
11
11
from orb ._utils import parse_datetime
12
12
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
+ )
15
17
16
18
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
17
19
Original file line number Diff line number Diff line change 11
11
from orb ._utils import parse_datetime
12
12
from tests .utils import assert_matches_type
13
13
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
+ )
19
21
20
22
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
21
23
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Plan
11
12
from tests .utils import assert_matches_type
12
- from orb .types .plan import Plan
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Price
11
12
from tests .utils import assert_matches_type
12
- from orb .types .price import Price
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Coupon
11
12
from tests .utils import assert_matches_type
12
13
from orb .pagination import SyncPage , AsyncPage
13
- from orb .types .coupon import Coupon
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import CreditNote
11
12
from tests .utils import assert_matches_type
12
13
from orb .pagination import SyncPage , AsyncPage
13
- from orb .types .credit_note import CreditNote
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import (
12
+ Customer ,
13
+ )
11
14
from orb ._utils import parse_datetime
12
15
from tests .utils import assert_matches_type
13
16
from orb .pagination import SyncPage , AsyncPage
14
- from orb .types .customer import Customer
15
17
16
18
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
17
19
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import (
12
+ EventIngestResponse ,
13
+ EventSearchResponse ,
14
+ EventUpdateResponse ,
15
+ EventDeprecateResponse ,
16
+ )
11
17
from orb ._utils import parse_datetime
12
18
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
17
19
18
20
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
19
21
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import InvoiceLineItemCreateResponse
11
12
from orb ._utils import parse_date
12
13
from tests .utils import assert_matches_type
13
- from orb .types .invoice_line_item_create_response import InvoiceLineItemCreateResponse
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import (
12
+ Invoice ,
13
+ InvoiceFetchUpcomingResponse ,
14
+ )
11
15
from orb ._utils import parse_date , parse_datetime
12
16
from tests .utils import assert_matches_type
13
17
from orb .pagination import SyncPage , AsyncPage
14
- from orb .types .invoice import Invoice
15
- from orb .types .invoice_fetch_upcoming_response import InvoiceFetchUpcomingResponse
16
18
17
19
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
18
20
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Item
11
12
from tests .utils import assert_matches_type
12
13
from orb .pagination import SyncPage , AsyncPage
13
- from orb .types .item import Item
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import (
12
+ MetricListResponse ,
13
+ MetricFetchResponse ,
14
+ MetricCreateResponse ,
15
+ )
11
16
from orb ._utils import parse_datetime
12
17
from tests .utils import assert_matches_type
13
18
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
17
19
18
20
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
19
21
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Plan
11
12
from orb ._utils import parse_datetime
12
13
from tests .utils import assert_matches_type
13
14
from orb .pagination import SyncPage , AsyncPage
14
- from orb .types .plan import Plan
15
15
16
16
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
17
17
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import Price , PriceEvaluateResponse
11
12
from orb ._utils import parse_datetime
12
13
from tests .utils import assert_matches_type
13
14
from orb .pagination import SyncPage , AsyncPage
14
- from orb .types .price import Price
15
- from orb .types .price_evaluate_response import PriceEvaluateResponse
16
15
17
16
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
18
17
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import (
12
+ Subscription ,
13
+ SubscriptionUsage ,
14
+ SubscriptionFetchCostsResponse ,
15
+ SubscriptionFetchScheduleResponse ,
16
+ )
11
17
from orb ._utils import parse_date , parse_datetime
12
18
from tests .utils import assert_matches_type
13
19
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
18
20
19
21
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
20
22
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
10
10
from orb import Orb , AsyncOrb
11
+ from orb .types import TopLevelPingResponse
11
12
from tests .utils import assert_matches_type
12
- from orb .types .top_level_ping_response import TopLevelPingResponse
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
You can’t perform that action at this time.
0 commit comments