Skip to content

Commit

Permalink
chore(internal): restructure imports (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 23, 2024
1 parent 07e0662 commit d5922d0
Show file tree
Hide file tree
Showing 131 changed files with 197 additions and 225 deletions.
2 changes: 1 addition & 1 deletion src/modern_treasury/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from . import resources, _exceptions, _legacy_response
from ._qs import Querystring
from .types import PingResponse
from ._types import (
NOT_GIVEN,
Body,
Expand Down Expand Up @@ -42,6 +41,7 @@
AsyncHttpxClientWrapper,
make_request_options,
)
from .types.ping_response import PingResponse

__all__ = [
"Timeout",
Expand Down
2 changes: 1 addition & 1 deletion src/modern_treasury/resources/account_collection_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from .. import _legacy_response
from ..types import (
AccountCollectionFlow,
account_collection_flow_list_params,
account_collection_flow_create_params,
account_collection_flow_update_params,
Expand All @@ -27,6 +26,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.account_collection_flow import AccountCollectionFlow

__all__ = ["AccountCollectionFlows", "AsyncAccountCollectionFlows"]

Expand Down
5 changes: 3 additions & 2 deletions src/modern_treasury/resources/account_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import AccountDetail, account_detail_list_params, account_detail_create_params
from ..types import account_detail_list_params, account_detail_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -22,7 +22,8 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import AccountsType
from ..types.account_detail import AccountDetail
from ..types.shared.accounts_type import AccountsType

__all__ = ["AccountDetails", "AsyncAccountDetails"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/bulk_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import BulkRequest, bulk_request_list_params, bulk_request_create_params
from ..types import bulk_request_list_params, bulk_request_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -22,6 +22,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.bulk_request import BulkRequest

__all__ = ["BulkRequests", "AsyncBulkRequests"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/bulk_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import BulkResult, bulk_result_list_params
from ..types import bulk_result_list_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._compat import cached_property
Expand All @@ -19,6 +19,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.bulk_result import BulkResult

__all__ = ["BulkResults", "AsyncBulkResults"]

Expand Down
2 changes: 1 addition & 1 deletion src/modern_treasury/resources/connection_legal_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from .. import _legacy_response
from ..types import (
ConnectionLegalEntity,
connection_legal_entity_list_params,
connection_legal_entity_create_params,
connection_legal_entity_update_params,
Expand All @@ -27,6 +26,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.connection_legal_entity import ConnectionLegalEntity

__all__ = ["ConnectionLegalEntities", "AsyncConnectionLegalEntities"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import httpx

from .. import _legacy_response
from ..types import Connection, connection_list_params
from ..types import connection_list_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._compat import cached_property
Expand All @@ -18,6 +18,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.connection import Connection

__all__ = ["Connections", "AsyncConnections"]

Expand Down
6 changes: 3 additions & 3 deletions src/modern_treasury/resources/counterparties.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

from .. import _legacy_response
from ..types import (
Counterparty,
CounterpartyCollectAccountResponse,
counterparty_list_params,
counterparty_create_params,
counterparty_update_params,
Expand All @@ -30,7 +28,9 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import TransactionDirection
from ..types.counterparty import Counterparty
from ..types.shared.transaction_direction import TransactionDirection
from ..types.counterparty_collect_account_response import CounterpartyCollectAccountResponse

__all__ = ["Counterparties", "AsyncCounterparties"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import Document, document_list_params, document_create_params
from ..types import document_list_params, document_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from .._utils import (
extract_files,
Expand All @@ -24,6 +24,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.document import Document

__all__ = ["Documents", "AsyncDocuments"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
import httpx

from .. import _legacy_response
from ..types import Event, event_list_params
from ..types import event_list_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncPage, AsyncPage
from ..types.event import Event
from .._base_client import (
AsyncPaginator,
make_request_options,
Expand Down
6 changes: 4 additions & 2 deletions src/modern_treasury/resources/expected_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from .. import _legacy_response
from ..types import (
ExpectedPayment,
ExpectedPaymentType,
expected_payment_list_params,
expected_payment_create_params,
Expand All @@ -29,7 +28,10 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import Currency, TransactionDirection
from ..types.shared.currency import Currency
from ..types.expected_payment import ExpectedPayment
from ..types.expected_payment_type import ExpectedPaymentType
from ..types.shared.transaction_direction import TransactionDirection

__all__ = ["ExpectedPayments", "AsyncExpectedPayments"]

Expand Down
5 changes: 3 additions & 2 deletions src/modern_treasury/resources/external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from .. import _legacy_response
from ..types import (
ExternalAccount,
ExternalAccountType,
external_account_list_params,
external_account_create_params,
Expand All @@ -30,7 +29,9 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import Currency
from ..types.shared.currency import Currency
from ..types.external_account import ExternalAccount
from ..types.external_account_type import ExternalAccountType

__all__ = ["ExternalAccounts", "AsyncExternalAccounts"]

Expand Down
9 changes: 3 additions & 6 deletions src/modern_treasury/resources/foreign_exchange_quotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import (
ForeignExchangeQuote,
foreign_exchange_quote_list_params,
foreign_exchange_quote_create_params,
)
from ..types import foreign_exchange_quote_list_params, foreign_exchange_quote_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -26,7 +22,8 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import Currency
from ..types.shared.currency import Currency
from ..types.foreign_exchange_quote import ForeignExchangeQuote

__all__ = ["ForeignExchangeQuotes", "AsyncForeignExchangeQuotes"]

Expand Down
6 changes: 4 additions & 2 deletions src/modern_treasury/resources/incoming_payment_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from .. import _legacy_response
from ..types import (
IncomingPaymentDetail,
incoming_payment_detail_list_params,
incoming_payment_detail_update_params,
incoming_payment_detail_create_async_params,
Expand All @@ -28,7 +27,10 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import Currency, AsyncResponse, TransactionDirection
from ..types.shared.currency import Currency
from ..types.shared.async_response import AsyncResponse
from ..types.incoming_payment_detail import IncomingPaymentDetail
from ..types.shared.transaction_direction import TransactionDirection

__all__ = ["IncomingPaymentDetails", "AsyncIncomingPaymentDetails"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
AsyncPaginator,
make_request_options,
)
from ...types.internal_accounts import BalanceReport, balance_report_list_params, balance_report_create_params
from ...types.internal_accounts import balance_report_list_params, balance_report_create_params
from ...types.internal_accounts.balance_report import BalanceReport

__all__ = ["BalanceReports", "AsyncBalanceReports"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from ... import _legacy_response
from ...types import (
InternalAccount,
internal_account_list_params,
internal_account_create_params,
internal_account_update_params,
Expand All @@ -27,7 +26,6 @@
AsyncPaginator,
make_request_options,
)
from ...types.shared import Currency, TransactionDirection
from .balance_reports import (
BalanceReports,
AsyncBalanceReports,
Expand All @@ -36,6 +34,9 @@
BalanceReportsWithStreamingResponse,
AsyncBalanceReportsWithStreamingResponse,
)
from ...types.shared.currency import Currency
from ...types.internal_account import InternalAccount
from ...types.shared.transaction_direction import TransactionDirection

__all__ = ["InternalAccounts", "AsyncInternalAccounts"]

Expand Down
5 changes: 3 additions & 2 deletions src/modern_treasury/resources/invoices/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import httpx

from ... import _legacy_response
from ...types import Invoice, invoice_list_params, invoice_create_params, invoice_update_params
from ...types import invoice_list_params, invoice_create_params, invoice_update_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -31,7 +31,8 @@
AsyncPaginator,
make_request_options,
)
from ...types.shared import Currency
from ...types.invoice import Invoice
from ...types.shared.currency import Currency

__all__ = ["Invoices", "AsyncInvoices"]

Expand Down
3 changes: 2 additions & 1 deletion src/modern_treasury/resources/invoices/line_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
AsyncPaginator,
make_request_options,
)
from ...types.invoices import InvoiceLineItem, line_item_list_params, line_item_create_params, line_item_update_params
from ...types.invoices import line_item_list_params, line_item_create_params, line_item_update_params
from ...types.invoices.invoice_line_item import InvoiceLineItem

__all__ = ["LineItems", "AsyncLineItems"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from .. import _legacy_response
from ..types import (
LedgerAccountBalanceMonitor,
ledger_account_balance_monitor_list_params,
ledger_account_balance_monitor_create_params,
ledger_account_balance_monitor_update_params,
Expand All @@ -26,6 +25,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.ledger_account_balance_monitor import LedgerAccountBalanceMonitor

__all__ = ["LedgerAccountBalanceMonitors", "AsyncLedgerAccountBalanceMonitors"]

Expand Down
4 changes: 2 additions & 2 deletions src/modern_treasury/resources/ledger_account_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from .. import _legacy_response
from ..types import (
LedgerAccountCategory,
ledger_account_category_list_params,
ledger_account_category_create_params,
ledger_account_category_update_params,
Expand All @@ -27,7 +26,8 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import TransactionDirection
from ..types.ledger_account_category import LedgerAccountCategory
from ..types.shared.transaction_direction import TransactionDirection

__all__ = ["LedgerAccountCategories", "AsyncLedgerAccountCategories"]

Expand Down
2 changes: 1 addition & 1 deletion src/modern_treasury/resources/ledger_account_payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from .. import _legacy_response
from ..types import (
LedgerAccountPayout,
ledger_account_payout_list_params,
ledger_account_payout_create_params,
ledger_account_payout_update_params,
Expand All @@ -29,6 +28,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.ledger_account_payout import LedgerAccountPayout

__all__ = ["LedgerAccountPayouts", "AsyncLedgerAccountPayouts"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from .. import _legacy_response
from ..types import (
LedgerAccountSettlement,
ledger_account_settlement_list_params,
ledger_account_settlement_create_params,
ledger_account_settlement_update_params,
Expand All @@ -28,6 +27,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.ledger_account_settlement import LedgerAccountSettlement

__all__ = ["LedgerAccountSettlements", "AsyncLedgerAccountSettlements"]

Expand Down
Loading

0 comments on commit d5922d0

Please sign in to comment.