diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 74799872e..e9e924010 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.198.0" + ".": "0.199.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 85960561b..e53c0fad3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8882da77555a843811f51c01d96a8a0f5dd36dc70de46bdf01a1e624807ba3a6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5dd5f2439cdbbb3bffe2ef733d3d173a10ca3233d15763bad8ccf8f87c10e246.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index b54b4b28b..93aac5c22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.199.0 (2025-03-01) + +Full Changelog: [v0.198.0...v0.199.0](https://github.com/Increase/increase-python/compare/v0.198.0...v0.199.0) + +### Features + +* **api:** api update ([#995](https://github.com/Increase/increase-python/issues/995)) ([55f3816](https://github.com/Increase/increase-python/commit/55f38166ff2d50e726ed17dff2b3e1f83cb61bc9)) + ## 0.198.0 (2025-03-01) Full Changelog: [v0.197.0...v0.198.0](https://github.com/Increase/increase-python/compare/v0.197.0...v0.198.0) diff --git a/pyproject.toml b/pyproject.toml index c964503d6..14a65f459 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.198.0" +version = "0.199.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index 4c25b3810..347f6c8fd 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.198.0" # x-release-please-version +__version__ = "0.199.0" # x-release-please-version diff --git a/src/increase/resources/account_numbers.py b/src/increase/resources/account_numbers.py index 15793c0e9..7aefb3a19 100644 --- a/src/increase/resources/account_numbers.py +++ b/src/increase/resources/account_numbers.py @@ -217,12 +217,12 @@ def list( self, *, account_id: str | NotGiven = NOT_GIVEN, - ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN, + ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN, created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: account_number_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -236,6 +236,11 @@ def list( Args: account_id: Filter Account Numbers to those belonging to the specified Account. + ach_debit_status: The ACH Debit status to retrieve Account Numbers for. + + - `allowed` - ACH Debits are allowed. + - `blocked` - ACH Debits are blocked. + cursor: Return the page of entries after this one. idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for @@ -246,6 +251,12 @@ def list( limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: The status to retrieve Account Numbers for. + + - `active` - The account number is active. + - `disabled` - The account number is temporarily disabled. + - `canceled` - The account number is permanently disabled. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -465,12 +476,12 @@ def list( self, *, account_id: str | NotGiven = NOT_GIVEN, - ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN, + ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN, created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: account_number_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -484,6 +495,11 @@ def list( Args: account_id: Filter Account Numbers to those belonging to the specified Account. + ach_debit_status: The ACH Debit status to retrieve Account Numbers for. + + - `allowed` - ACH Debits are allowed. + - `blocked` - ACH Debits are blocked. + cursor: Return the page of entries after this one. idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for @@ -494,6 +510,12 @@ def list( limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: The status to retrieve Account Numbers for. + + - `active` - The account number is active. + - `disabled` - The account number is temporarily disabled. + - `canceled` - The account number is permanently disabled. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/increase/resources/inbound_ach_transfers.py b/src/increase/resources/inbound_ach_transfers.py index 93aad3d51..f31e91c52 100644 --- a/src/increase/resources/inbound_ach_transfers.py +++ b/src/increase/resources/inbound_ach_transfers.py @@ -97,7 +97,7 @@ def list( created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -109,15 +109,23 @@ def list( List Inbound ACH Transfers Args: - account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account. + account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account. - account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number. cursor: Return the page of entries after this one. limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Inbound ACH Transfers to those with the specified status. + + - `pending` - The Inbound ACH Transfer is awaiting action, will transition + automatically if no action is taken. + - `declined` - The Inbound ACH Transfer has been declined. + - `accepted` - The Inbound ACH Transfer is accepted. + - `returned` - The Inbound ACH Transfer has been returned. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -446,7 +454,7 @@ def list( created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -458,15 +466,23 @@ def list( List Inbound ACH Transfers Args: - account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account. + account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account. - account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number. cursor: Return the page of entries after this one. limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Inbound ACH Transfers to those with the specified status. + + - `pending` - The Inbound ACH Transfer is awaiting action, will transition + automatically if no action is taken. + - `declined` - The Inbound ACH Transfer has been declined. + - `accepted` - The Inbound ACH Transfer is accepted. + - `returned` - The Inbound ACH Transfer has been returned. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/increase/resources/inbound_wire_transfers.py b/src/increase/resources/inbound_wire_transfers.py index 6053cd963..f0b7f519d 100644 --- a/src/increase/resources/inbound_wire_transfers.py +++ b/src/increase/resources/inbound_wire_transfers.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx from ..types import inbound_wire_transfer_list_params @@ -87,7 +89,7 @@ def list( created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -99,15 +101,23 @@ def list( List Inbound Wire Transfers Args: - account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account. + account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account. - account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number. cursor: Return the page of entries after this one. limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Inbound Wire Transfers to those with the specified status. + + - `pending` - The Inbound Wire Transfer is awaiting action, will transition + automatically if no action is taken. + - `accepted` - The Inbound Wire Transfer is accepted. + - `declined` - The Inbound Wire Transfer was declined. + - `reversed` - The Inbound Wire Transfer was reversed. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -205,7 +215,7 @@ def list( created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, cursor: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -217,15 +227,23 @@ def list( List Inbound Wire Transfers Args: - account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account. + account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account. - account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number. cursor: Return the page of entries after this one. limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Inbound Wire Transfers to those with the specified status. + + - `pending` - The Inbound Wire Transfer is awaiting action, will transition + automatically if no action is taken. + - `accepted` - The Inbound Wire Transfer is accepted. + - `declined` - The Inbound Wire Transfer was declined. + - `reversed` - The Inbound Wire Transfer was reversed. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/increase/resources/wire_drawdown_requests.py b/src/increase/resources/wire_drawdown_requests.py index 4c07e6e14..9a958b3f8 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx from ..types import wire_drawdown_request_list_params, wire_drawdown_request_create_params @@ -190,7 +192,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -212,6 +214,15 @@ def list( limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Wire Drawdown Requests for those with the specified status. + + - `pending_submission` - The drawdown request is queued to be submitted to + Fedwire. + - `pending_response` - The drawdown request has been sent and the recipient + should respond in some way. + - `fulfilled` - The drawdown request has been fulfilled by the recipient. + - `refused` - The drawdown request has been refused by the recipient. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -407,7 +418,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN, + status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -429,6 +440,15 @@ def list( limit: Limit the size of the list that is returned. The default (and maximum) is 100 objects. + status: Filter Wire Drawdown Requests for those with the specified status. + + - `pending_submission` - The drawdown request is queued to be submitted to + Fedwire. + - `pending_response` - The drawdown request has been sent and the recipient + should respond in some way. + - `fulfilled` - The drawdown request has been fulfilled by the recipient. + - `refused` - The drawdown request has been refused by the recipient. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/increase/types/account_number_list_params.py b/src/increase/types/account_number_list_params.py index 57ef69909..ed027f9b4 100644 --- a/src/increase/types/account_number_list_params.py +++ b/src/increase/types/account_number_list_params.py @@ -2,20 +2,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["AccountNumberListParams", "ACHDebitStatus", "CreatedAt", "Status"] +__all__ = ["AccountNumberListParams", "CreatedAt"] class AccountNumberListParams(TypedDict, total=False): account_id: str """Filter Account Numbers to those belonging to the specified Account.""" - ach_debit_status: ACHDebitStatus + ach_debit_status: Literal["allowed", "blocked"] + """The ACH Debit status to retrieve Account Numbers for. + + - `allowed` - ACH Debits are allowed. + - `blocked` - ACH Debits are blocked. + """ created_at: CreatedAt @@ -36,20 +41,13 @@ class AccountNumberListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Status - - -_ACHDebitStatusReservedKeywords = TypedDict( - "_ACHDebitStatusReservedKeywords", - { - "in": List[Literal["allowed", "blocked"]], - }, - total=False, -) - + status: Literal["active", "disabled", "canceled"] + """The status to retrieve Account Numbers for. -class ACHDebitStatus(_ACHDebitStatusReservedKeywords, total=False): - pass + - `active` - The account number is active. + - `disabled` - The account number is temporarily disabled. + - `canceled` - The account number is permanently disabled. + """ class CreatedAt(TypedDict, total=False): @@ -76,16 +74,3 @@ class CreatedAt(TypedDict, total=False): Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. """ - - -_StatusReservedKeywords = TypedDict( - "_StatusReservedKeywords", - { - "in": List[Literal["active", "disabled", "canceled"]], - }, - total=False, -) - - -class Status(_StatusReservedKeywords, total=False): - pass diff --git a/src/increase/types/inbound_ach_transfer_list_params.py b/src/increase/types/inbound_ach_transfer_list_params.py index c5a6b4151..cb62d5db8 100644 --- a/src/increase/types/inbound_ach_transfer_list_params.py +++ b/src/increase/types/inbound_ach_transfer_list_params.py @@ -2,21 +2,21 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["InboundACHTransferListParams", "CreatedAt", "Status"] +__all__ = ["InboundACHTransferListParams", "CreatedAt"] class InboundACHTransferListParams(TypedDict, total=False): account_id: str - """Filter Inbound ACH Transfers to ones belonging to the specified Account.""" + """Filter Inbound ACH Tranfers to ones belonging to the specified Account.""" account_number_id: str - """Filter Inbound ACH Transfers to ones belonging to the specified Account Number.""" + """Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.""" created_at: CreatedAt @@ -29,7 +29,15 @@ class InboundACHTransferListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Status + status: Literal["pending", "declined", "accepted", "returned"] + """Filter Inbound ACH Transfers to those with the specified status. + + - `pending` - The Inbound ACH Transfer is awaiting action, will transition + automatically if no action is taken. + - `declined` - The Inbound ACH Transfer has been declined. + - `accepted` - The Inbound ACH Transfer is accepted. + - `returned` - The Inbound ACH Transfer has been returned. + """ class CreatedAt(TypedDict, total=False): @@ -56,16 +64,3 @@ class CreatedAt(TypedDict, total=False): Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. """ - - -_StatusReservedKeywords = TypedDict( - "_StatusReservedKeywords", - { - "in": List[Literal["pending", "declined", "accepted", "returned"]], - }, - total=False, -) - - -class Status(_StatusReservedKeywords, total=False): - pass diff --git a/src/increase/types/inbound_wire_transfer_list_params.py b/src/increase/types/inbound_wire_transfer_list_params.py index 3e92f2818..8c49ebb1f 100644 --- a/src/increase/types/inbound_wire_transfer_list_params.py +++ b/src/increase/types/inbound_wire_transfer_list_params.py @@ -2,23 +2,21 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["InboundWireTransferListParams", "CreatedAt", "Status"] +__all__ = ["InboundWireTransferListParams", "CreatedAt"] class InboundWireTransferListParams(TypedDict, total=False): account_id: str - """Filter Inbound Wire Transfers to ones belonging to the specified Account.""" + """Filter Inbound Wire Tranfers to ones belonging to the specified Account.""" account_number_id: str - """ - Filter Inbound Wire Transfers to ones belonging to the specified Account Number. - """ + """Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.""" created_at: CreatedAt @@ -31,7 +29,15 @@ class InboundWireTransferListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Status + status: Literal["pending", "accepted", "declined", "reversed"] + """Filter Inbound Wire Transfers to those with the specified status. + + - `pending` - The Inbound Wire Transfer is awaiting action, will transition + automatically if no action is taken. + - `accepted` - The Inbound Wire Transfer is accepted. + - `declined` - The Inbound Wire Transfer was declined. + - `reversed` - The Inbound Wire Transfer was reversed. + """ class CreatedAt(TypedDict, total=False): @@ -58,16 +64,3 @@ class CreatedAt(TypedDict, total=False): Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. """ - - -_StatusReservedKeywords = TypedDict( - "_StatusReservedKeywords", - { - "in": List[Literal["pending", "accepted", "declined", "reversed"]], - }, - total=False, -) - - -class Status(_StatusReservedKeywords, total=False): - pass diff --git a/src/increase/types/wire_drawdown_request_list_params.py b/src/increase/types/wire_drawdown_request_list_params.py index f462884c4..e36ed2aea 100644 --- a/src/increase/types/wire_drawdown_request_list_params.py +++ b/src/increase/types/wire_drawdown_request_list_params.py @@ -2,10 +2,9 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -__all__ = ["WireDrawdownRequestListParams", "Status"] +__all__ = ["WireDrawdownRequestListParams"] class WireDrawdownRequestListParams(TypedDict, total=False): @@ -26,17 +25,13 @@ class WireDrawdownRequestListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Status + status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] + """Filter Wire Drawdown Requests for those with the specified status. - -_StatusReservedKeywords = TypedDict( - "_StatusReservedKeywords", - { - "in": List[Literal["pending_submission", "pending_response", "fulfilled", "refused"]], - }, - total=False, -) - - -class Status(_StatusReservedKeywords, total=False): - pass + - `pending_submission` - The drawdown request is queued to be submitted to + Fedwire. + - `pending_response` - The drawdown request has been sent and the recipient + should respond in some way. + - `fulfilled` - The drawdown request has been fulfilled by the recipient. + - `refused` - The drawdown request has been refused by the recipient. + """ diff --git a/tests/api_resources/test_account_numbers.py b/tests/api_resources/test_account_numbers.py index d9f8e4d4a..8978259d0 100644 --- a/tests/api_resources/test_account_numbers.py +++ b/tests/api_resources/test_account_numbers.py @@ -161,7 +161,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: account_number = client.account_numbers.list( account_id="account_id", - ach_debit_status={"in": ["allowed"]}, + ach_debit_status="allowed", created_at={ "after": parse_datetime("2019-12-27T18:11:19.117Z"), "before": parse_datetime("2019-12-27T18:11:19.117Z"), @@ -171,7 +171,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: cursor="cursor", idempotency_key="x", limit=1, - status={"in": ["active"]}, + status="active", ) assert_matches_type(SyncPage[AccountNumber], account_number, path=["response"]) @@ -339,7 +339,7 @@ async def test_method_list(self, async_client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> None: account_number = await async_client.account_numbers.list( account_id="account_id", - ach_debit_status={"in": ["allowed"]}, + ach_debit_status="allowed", created_at={ "after": parse_datetime("2019-12-27T18:11:19.117Z"), "before": parse_datetime("2019-12-27T18:11:19.117Z"), @@ -349,7 +349,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> cursor="cursor", idempotency_key="x", limit=1, - status={"in": ["active"]}, + status="active", ) assert_matches_type(AsyncPage[AccountNumber], account_number, path=["response"]) diff --git a/tests/api_resources/test_inbound_ach_transfers.py b/tests/api_resources/test_inbound_ach_transfers.py index f6e589921..65088d8e9 100644 --- a/tests/api_resources/test_inbound_ach_transfers.py +++ b/tests/api_resources/test_inbound_ach_transfers.py @@ -79,7 +79,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="cursor", limit=1, - status={"in": ["pending"]}, + status="pending", ) assert_matches_type(SyncPage[InboundACHTransfer], inbound_ach_transfer, path=["response"]) @@ -306,7 +306,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> }, cursor="cursor", limit=1, - status={"in": ["pending"]}, + status="pending", ) assert_matches_type(AsyncPage[InboundACHTransfer], inbound_ach_transfer, path=["response"]) diff --git a/tests/api_resources/test_inbound_wire_transfers.py b/tests/api_resources/test_inbound_wire_transfers.py index ed4c8234a..2ed890683 100644 --- a/tests/api_resources/test_inbound_wire_transfers.py +++ b/tests/api_resources/test_inbound_wire_transfers.py @@ -77,7 +77,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="cursor", limit=1, - status={"in": ["pending"]}, + status="pending", ) assert_matches_type(SyncPage[InboundWireTransfer], inbound_wire_transfer, path=["response"]) @@ -163,7 +163,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> }, cursor="cursor", limit=1, - status={"in": ["pending"]}, + status="pending", ) assert_matches_type(AsyncPage[InboundWireTransfer], inbound_wire_transfer, path=["response"]) diff --git a/tests/api_resources/test_wire_drawdown_requests.py b/tests/api_resources/test_wire_drawdown_requests.py index 4a4234ad0..0acdbcd09 100644 --- a/tests/api_resources/test_wire_drawdown_requests.py +++ b/tests/api_resources/test_wire_drawdown_requests.py @@ -134,7 +134,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: cursor="cursor", idempotency_key="x", limit=1, - status={"in": ["pending_submission"]}, + status="pending_submission", ) assert_matches_type(SyncPage[WireDrawdownRequest], wire_drawdown_request, path=["response"]) @@ -278,7 +278,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> cursor="cursor", idempotency_key="x", limit=1, - status={"in": ["pending_submission"]}, + status="pending_submission", ) assert_matches_type(AsyncPage[WireDrawdownRequest], wire_drawdown_request, path=["response"])