From 25d00e14427403a7964ddaf4819e735364878126 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:21:59 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2adac204c..35b80bba7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-70837ed2f8d4ade9021fc0f50bf3cd77cdf05f308c4ed75b2b4dcc42f1ec2378.yml -openapi_spec_hash: 09cf1c77dce2927cb41426a287a15437 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e861c5dc0fe5d8ac8a5099eff9f99482ce5510988a1c3dd056f954c7709ae194.yml +openapi_spec_hash: da9c977849121632540be2bb9fa7571b config_hash: b0b366d8c705ea0efe62093bae953e5a From 5c5cc35bfa7aac3709c10b36b9313439fc701de7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 17:47:01 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- .../resources/wire_drawdown_requests.py | 42 ++++++++++++------- .../wire_drawdown_request_create_params.py | 19 ++++++--- .../test_wire_drawdown_requests.py | 22 +++------- 4 files changed, 47 insertions(+), 40 deletions(-) diff --git a/.stats.yml b/.stats.yml index 35b80bba7..31cc203c9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e861c5dc0fe5d8ac8a5099eff9f99482ce5510988a1c3dd056f954c7709ae194.yml -openapi_spec_hash: da9c977849121632540be2bb9fa7571b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b232355836603d9dbb0ca86d4a946b458726531675db3fa1c4feeee10ff41011.yml +openapi_spec_hash: e986bdc1f77192e14e9075a7b1eac0f9 config_hash: b0b366d8c705ea0efe62093bae953e5a diff --git a/src/increase/resources/wire_drawdown_requests.py b/src/increase/resources/wire_drawdown_requests.py index 970889d0e..8b5e86906 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -49,11 +49,12 @@ def create( amount: int, creditor_address: wire_drawdown_request_create_params.CreditorAddress, creditor_name: str, - debtor_account_number: str, debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, - debtor_routing_number: str, unstructured_remittance_information: str, + debtor_account_number: str | NotGiven = NOT_GIVEN, + debtor_external_account_id: str | NotGiven = NOT_GIVEN, + debtor_routing_number: str | 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, @@ -74,16 +75,19 @@ def create( creditor_name: The creditor's name. - debtor_account_number: The debtor's account number. - debtor_address: The debtor's address. debtor_name: The debtor's name. - debtor_routing_number: The debtor's routing number. - unstructured_remittance_information: Remittance information the debtor will see as part of the request. + debtor_account_number: The debtor's account number. + + debtor_external_account_id: The ID of an External Account to initiate a transfer to. If this parameter is + provided, `debtor_account_number` and `debtor_routing_number` must be absent. + + debtor_routing_number: The debtor's routing number. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -102,11 +106,12 @@ def create( "amount": amount, "creditor_address": creditor_address, "creditor_name": creditor_name, - "debtor_account_number": debtor_account_number, "debtor_address": debtor_address, "debtor_name": debtor_name, - "debtor_routing_number": debtor_routing_number, "unstructured_remittance_information": unstructured_remittance_information, + "debtor_account_number": debtor_account_number, + "debtor_external_account_id": debtor_external_account_id, + "debtor_routing_number": debtor_routing_number, }, wire_drawdown_request_create_params.WireDrawdownRequestCreateParams, ), @@ -242,11 +247,12 @@ async def create( amount: int, creditor_address: wire_drawdown_request_create_params.CreditorAddress, creditor_name: str, - debtor_account_number: str, debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, - debtor_routing_number: str, unstructured_remittance_information: str, + debtor_account_number: str | NotGiven = NOT_GIVEN, + debtor_external_account_id: str | NotGiven = NOT_GIVEN, + debtor_routing_number: str | 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, @@ -267,16 +273,19 @@ async def create( creditor_name: The creditor's name. - debtor_account_number: The debtor's account number. - debtor_address: The debtor's address. debtor_name: The debtor's name. - debtor_routing_number: The debtor's routing number. - unstructured_remittance_information: Remittance information the debtor will see as part of the request. + debtor_account_number: The debtor's account number. + + debtor_external_account_id: The ID of an External Account to initiate a transfer to. If this parameter is + provided, `debtor_account_number` and `debtor_routing_number` must be absent. + + debtor_routing_number: The debtor's routing number. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -295,11 +304,12 @@ async def create( "amount": amount, "creditor_address": creditor_address, "creditor_name": creditor_name, - "debtor_account_number": debtor_account_number, "debtor_address": debtor_address, "debtor_name": debtor_name, - "debtor_routing_number": debtor_routing_number, "unstructured_remittance_information": unstructured_remittance_information, + "debtor_account_number": debtor_account_number, + "debtor_external_account_id": debtor_external_account_id, + "debtor_routing_number": debtor_routing_number, }, wire_drawdown_request_create_params.WireDrawdownRequestCreateParams, ), diff --git a/src/increase/types/wire_drawdown_request_create_params.py b/src/increase/types/wire_drawdown_request_create_params.py index 1902998ff..d7d44da47 100644 --- a/src/increase/types/wire_drawdown_request_create_params.py +++ b/src/increase/types/wire_drawdown_request_create_params.py @@ -20,21 +20,28 @@ class WireDrawdownRequestCreateParams(TypedDict, total=False): creditor_name: Required[str] """The creditor's name.""" - debtor_account_number: Required[str] - """The debtor's account number.""" - debtor_address: Required[DebtorAddress] """The debtor's address.""" debtor_name: Required[str] """The debtor's name.""" - debtor_routing_number: Required[str] - """The debtor's routing number.""" - unstructured_remittance_information: Required[str] """Remittance information the debtor will see as part of the request.""" + debtor_account_number: str + """The debtor's account number.""" + + debtor_external_account_id: str + """The ID of an External Account to initiate a transfer to. + + If this parameter is provided, `debtor_account_number` and + `debtor_routing_number` must be absent. + """ + + debtor_routing_number: str + """The debtor's routing number.""" + class CreditorAddress(TypedDict, total=False): city: Required[str] diff --git a/tests/api_resources/test_wire_drawdown_requests.py b/tests/api_resources/test_wire_drawdown_requests.py index 01d77f275..8773766f8 100644 --- a/tests/api_resources/test_wire_drawdown_requests.py +++ b/tests/api_resources/test_wire_drawdown_requests.py @@ -29,14 +29,12 @@ def test_method_create(self, client: Increase) -> None: "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -55,7 +53,6 @@ def test_method_create_with_all_params(self, client: Increase) -> None: "state": "NY", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", @@ -65,8 +62,10 @@ def test_method_create_with_all_params(self, client: Increase) -> None: "state": "NY", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", + debtor_account_number="987654321", + debtor_external_account_id="debtor_external_account_id", + debtor_routing_number="101050001", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -81,14 +80,12 @@ def test_raw_response_create(self, client: Increase) -> None: "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) @@ -108,14 +105,12 @@ def test_streaming_response_create(self, client: Increase) -> None: "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) as response: assert not response.is_closed @@ -218,14 +213,12 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -244,7 +237,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) "state": "NY", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", @@ -254,8 +246,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) "state": "NY", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", + debtor_account_number="987654321", + debtor_external_account_id="debtor_external_account_id", + debtor_routing_number="101050001", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -270,14 +264,12 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) @@ -297,14 +289,12 @@ async def test_streaming_response_create(self, async_client: AsyncIncrease) -> N "line1": "33 Liberty Street", }, creditor_name="National Phonograph Company", - debtor_account_number="987654321", debtor_address={ "city": "New York", "country": "US", "line1": "33 Liberty Street", }, debtor_name="Ian Crease", - debtor_routing_number="101050001", unstructured_remittance_information="Invoice 29582", ) as response: assert not response.is_closed From 0e342d42678639d268eb8e8a0a9b75c8c1fac3ac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 17:47:24 +0000 Subject: [PATCH 3/3] release: 0.288.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 bc9e45054..401c03881 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.287.0" + ".": "0.288.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 86f7e11a9..421899836 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.288.0 (2025-08-18) + +Full Changelog: [v0.287.0...v0.288.0](https://github.com/Increase/increase-python/compare/v0.287.0...v0.288.0) + +### Features + +* **api:** api update ([5c5cc35](https://github.com/Increase/increase-python/commit/5c5cc35bfa7aac3709c10b36b9313439fc701de7)) + ## 0.287.0 (2025-08-15) Full Changelog: [v0.286.0...v0.287.0](https://github.com/Increase/increase-python/compare/v0.286.0...v0.287.0) diff --git a/pyproject.toml b/pyproject.toml index 08c7e46f3..edeb4a486 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.287.0" +version = "0.288.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 6698e5d0b..105a66fb8 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.287.0" # x-release-please-version +__version__ = "0.288.0" # x-release-please-version