From 078074e7457cd643e562615e1e9d8c14a1ff03df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Mar 2025 01:33:36 +0000 Subject: [PATCH 1/2] feat(api): api update (#998) --- .stats.yml | 2 +- src/increase/resources/account_numbers.py | 30 ++----------- .../resources/inbound_ach_transfers.py | 28 +++--------- .../resources/inbound_wire_transfers.py | 30 +++---------- .../resources/wire_drawdown_requests.py | 24 +---------- .../types/account_number_list_params.py | 43 +++++++++++++------ .../types/inbound_ach_transfer_list_params.py | 31 +++++++------ .../inbound_wire_transfer_list_params.py | 33 ++++++++------ .../wire_drawdown_request_list_params.py | 25 ++++++----- tests/api_resources/test_account_numbers.py | 8 ++-- .../test_inbound_ach_transfers.py | 4 +- .../test_inbound_wire_transfers.py | 4 +- .../test_wire_drawdown_requests.py | 4 +- 13 files changed, 111 insertions(+), 155 deletions(-) diff --git a/.stats.yml b/.stats.yml index e53c0fad3..85960561b 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-5dd5f2439cdbbb3bffe2ef733d3d173a10ca3233d15763bad8ccf8f87c10e246.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8882da77555a843811f51c01d96a8a0f5dd36dc70de46bdf01a1e624807ba3a6.yml diff --git a/src/increase/resources/account_numbers.py b/src/increase/resources/account_numbers.py index 7aefb3a19..15793c0e9 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: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN, + ach_debit_status: account_number_list_params.ACHDebitStatus | 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: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + status: account_number_list_params.Status | 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,11 +236,6 @@ 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 @@ -251,12 +246,6 @@ 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 @@ -476,12 +465,12 @@ def list( self, *, account_id: str | NotGiven = NOT_GIVEN, - ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN, + ach_debit_status: account_number_list_params.ACHDebitStatus | 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: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + status: account_number_list_params.Status | 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, @@ -495,11 +484,6 @@ 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 @@ -510,12 +494,6 @@ 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 f31e91c52..93aad3d51 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: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN, + status: inbound_ach_transfer_list_params.Status | 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,23 +109,15 @@ def list( List Inbound ACH Transfers Args: - account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account. + account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account. - account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound ACH Transfers 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 @@ -454,7 +446,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: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN, + status: inbound_ach_transfer_list_params.Status | 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, @@ -466,23 +458,15 @@ def list( List Inbound ACH Transfers Args: - account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account. + account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account. - account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound ACH Transfers 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 f0b7f519d..6053cd963 100644 --- a/src/increase/resources/inbound_wire_transfers.py +++ b/src/increase/resources/inbound_wire_transfers.py @@ -2,8 +2,6 @@ from __future__ import annotations -from typing_extensions import Literal - import httpx from ..types import inbound_wire_transfer_list_params @@ -89,7 +87,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: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN, + status: inbound_wire_transfer_list_params.Status | 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, @@ -101,23 +99,15 @@ def list( List Inbound Wire Transfers Args: - account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account. + account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account. - account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound Wire Transfers 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 @@ -215,7 +205,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: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN, + status: inbound_wire_transfer_list_params.Status | 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, @@ -227,23 +217,15 @@ def list( List Inbound Wire Transfers Args: - account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account. + account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account. - account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number. + account_number_id: Filter Inbound Wire Transfers 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 9a958b3f8..4c07e6e14 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -2,8 +2,6 @@ from __future__ import annotations -from typing_extensions import Literal - import httpx from ..types import wire_drawdown_request_list_params, wire_drawdown_request_create_params @@ -192,7 +190,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN, + status: wire_drawdown_request_list_params.Status | 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, @@ -214,15 +212,6 @@ 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 @@ -418,7 +407,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, - status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN, + status: wire_drawdown_request_list_params.Status | 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, @@ -440,15 +429,6 @@ 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 ed027f9b4..57ef69909 100644 --- a/src/increase/types/account_number_list_params.py +++ b/src/increase/types/account_number_list_params.py @@ -2,25 +2,20 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["AccountNumberListParams", "CreatedAt"] +__all__ = ["AccountNumberListParams", "ACHDebitStatus", "CreatedAt", "Status"] class AccountNumberListParams(TypedDict, total=False): account_id: str """Filter Account Numbers to those belonging to the specified Account.""" - 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. - """ + ach_debit_status: ACHDebitStatus created_at: CreatedAt @@ -41,13 +36,20 @@ class AccountNumberListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Literal["active", "disabled", "canceled"] - """The status to retrieve Account Numbers for. + status: Status + + +_ACHDebitStatusReservedKeywords = TypedDict( + "_ACHDebitStatusReservedKeywords", + { + "in": List[Literal["allowed", "blocked"]], + }, + total=False, +) - - `active` - The account number is active. - - `disabled` - The account number is temporarily disabled. - - `canceled` - The account number is permanently disabled. - """ + +class ACHDebitStatus(_ACHDebitStatusReservedKeywords, total=False): + pass class CreatedAt(TypedDict, total=False): @@ -74,3 +76,16 @@ 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 cb62d5db8..c5a6b4151 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 Union +from typing import List, Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["InboundACHTransferListParams", "CreatedAt"] +__all__ = ["InboundACHTransferListParams", "CreatedAt", "Status"] class InboundACHTransferListParams(TypedDict, total=False): account_id: str - """Filter Inbound ACH Tranfers to ones belonging to the specified Account.""" + """Filter Inbound ACH Transfers to ones belonging to the specified Account.""" account_number_id: str - """Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.""" + """Filter Inbound ACH Transfers to ones belonging to the specified Account Number.""" created_at: CreatedAt @@ -29,15 +29,7 @@ class InboundACHTransferListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - 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. - """ + status: Status class CreatedAt(TypedDict, total=False): @@ -64,3 +56,16 @@ 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 8c49ebb1f..3e92f2818 100644 --- a/src/increase/types/inbound_wire_transfer_list_params.py +++ b/src/increase/types/inbound_wire_transfer_list_params.py @@ -2,21 +2,23 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from datetime import datetime from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["InboundWireTransferListParams", "CreatedAt"] +__all__ = ["InboundWireTransferListParams", "CreatedAt", "Status"] class InboundWireTransferListParams(TypedDict, total=False): account_id: str - """Filter Inbound Wire Tranfers to ones belonging to the specified Account.""" + """Filter Inbound Wire Transfers to ones belonging to the specified Account.""" account_number_id: str - """Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.""" + """ + Filter Inbound Wire Transfers to ones belonging to the specified Account Number. + """ created_at: CreatedAt @@ -29,15 +31,7 @@ class InboundWireTransferListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - 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. - """ + status: Status class CreatedAt(TypedDict, total=False): @@ -64,3 +58,16 @@ 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 e36ed2aea..f462884c4 100644 --- a/src/increase/types/wire_drawdown_request_list_params.py +++ b/src/increase/types/wire_drawdown_request_list_params.py @@ -2,9 +2,10 @@ from __future__ import annotations +from typing import List from typing_extensions import Literal, TypedDict -__all__ = ["WireDrawdownRequestListParams"] +__all__ = ["WireDrawdownRequestListParams", "Status"] class WireDrawdownRequestListParams(TypedDict, total=False): @@ -25,13 +26,17 @@ class WireDrawdownRequestListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ - status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] - """Filter Wire Drawdown Requests for those with the specified status. + status: 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. - """ + +_StatusReservedKeywords = TypedDict( + "_StatusReservedKeywords", + { + "in": List[Literal["pending_submission", "pending_response", "fulfilled", "refused"]], + }, + total=False, +) + + +class Status(_StatusReservedKeywords, total=False): + pass diff --git a/tests/api_resources/test_account_numbers.py b/tests/api_resources/test_account_numbers.py index 8978259d0..d9f8e4d4a 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="allowed", + ach_debit_status={"in": ["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="active", + status={"in": ["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="allowed", + ach_debit_status={"in": ["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="active", + status={"in": ["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 65088d8e9..f6e589921 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="pending", + status={"in": ["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="pending", + status={"in": ["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 2ed890683..ed4c8234a 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="pending", + status={"in": ["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="pending", + status={"in": ["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 0acdbcd09..4a4234ad0 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="pending_submission", + status={"in": ["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="pending_submission", + status={"in": ["pending_submission"]}, ) assert_matches_type(AsyncPage[WireDrawdownRequest], wire_drawdown_request, path=["response"]) From 4f9e6d4c42858ac3e88a9bc35e4c6795395b5dea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Mar 2025 01:34:01 +0000 Subject: [PATCH 2/2] release: 0.200.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e9e924010..0e5f1cfb3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.199.0" + ".": "0.200.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 93aac5c22..9ae7e7c24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.200.0 (2025-03-01) + +Full Changelog: [v0.199.0...v0.200.0](https://github.com/Increase/increase-python/compare/v0.199.0...v0.200.0) + +### Features + +* **api:** api update ([#998](https://github.com/Increase/increase-python/issues/998)) ([078074e](https://github.com/Increase/increase-python/commit/078074e7457cd643e562615e1e9d8c14a1ff03df)) + ## 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) diff --git a/pyproject.toml b/pyproject.toml index 14a65f459..e9ca73d48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.199.0" +version = "0.200.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 347f6c8fd..ea436ce40 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.199.0" # x-release-please-version +__version__ = "0.200.0" # x-release-please-version