diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c69dcd041..6f72712c3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.182.0" + ".": "0.183.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a67f299cb..880ecadac 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-acd347798fc268a8063bde83e83ff69541a1feb789e40bc54b3798937a7492ca.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-503b3369995201c52ca638ced198ae20c73a0b26e5db67b8963e107bff5d1c2d.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e36781fb..ea88cb13e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.183.0 (2025-01-30) + +Full Changelog: [v0.182.0...v0.183.0](https://github.com/Increase/increase-python/compare/v0.182.0...v0.183.0) + +### Features + +* **api:** api update ([#935](https://github.com/Increase/increase-python/issues/935)) ([274426b](https://github.com/Increase/increase-python/commit/274426b1f2aa958f2fbd3b282275411512ede76a)) + ## 0.182.0 (2025-01-30) Full Changelog: [v0.181.0...v0.182.0](https://github.com/Increase/increase-python/compare/v0.181.0...v0.182.0) diff --git a/pyproject.toml b/pyproject.toml index e47cef405..0c27c719c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.182.0" +version = "0.183.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 36210efa7..5664860eb 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.182.0" # x-release-please-version +__version__ = "0.183.0" # x-release-please-version diff --git a/src/increase/resources/check_transfers.py b/src/increase/resources/check_transfers.py index 09e22e1b1..0d2a96d94 100644 --- a/src/increase/resources/check_transfers.py +++ b/src/increase/resources/check_transfers.py @@ -56,8 +56,8 @@ def create( *, account_id: str, amount: int, + fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, - fulfillment_method: Literal["physical_check", "third_party"] | NotGiven = NOT_GIVEN, physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN, require_approval: bool | NotGiven = NOT_GIVEN, third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN, @@ -77,9 +77,6 @@ def create( amount: The transfer amount in USD cents. - source_account_number_id: The identifier of the Account Number from which to send the transfer and print - on the check. - fulfillment_method: Whether Increase will print and mail the check or if you will do it yourself. - `physical_check` - Increase will print and mail a physical check. @@ -87,6 +84,9 @@ def create( printing and mailing a check with the provided account number, routing number, check number, and amount. + source_account_number_id: The identifier of the Account Number from which to send the transfer and print + on the check. + physical_check: Details relating to the physical check that Increase will print and mail. This is required if `fulfillment_method` is equal to `physical_check`. It must not be included if any other `fulfillment_method` is provided. @@ -113,8 +113,8 @@ def create( { "account_id": account_id, "amount": amount, - "source_account_number_id": source_account_number_id, "fulfillment_method": fulfillment_method, + "source_account_number_id": source_account_number_id, "physical_check": physical_check, "require_approval": require_approval, "third_party": third_party, @@ -387,8 +387,8 @@ async def create( *, account_id: str, amount: int, + fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, - fulfillment_method: Literal["physical_check", "third_party"] | NotGiven = NOT_GIVEN, physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN, require_approval: bool | NotGiven = NOT_GIVEN, third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN, @@ -408,9 +408,6 @@ async def create( amount: The transfer amount in USD cents. - source_account_number_id: The identifier of the Account Number from which to send the transfer and print - on the check. - fulfillment_method: Whether Increase will print and mail the check or if you will do it yourself. - `physical_check` - Increase will print and mail a physical check. @@ -418,6 +415,9 @@ async def create( printing and mailing a check with the provided account number, routing number, check number, and amount. + source_account_number_id: The identifier of the Account Number from which to send the transfer and print + on the check. + physical_check: Details relating to the physical check that Increase will print and mail. This is required if `fulfillment_method` is equal to `physical_check`. It must not be included if any other `fulfillment_method` is provided. @@ -444,8 +444,8 @@ async def create( { "account_id": account_id, "amount": amount, - "source_account_number_id": source_account_number_id, "fulfillment_method": fulfillment_method, + "source_account_number_id": source_account_number_id, "physical_check": physical_check, "require_approval": require_approval, "third_party": third_party, diff --git a/src/increase/types/check_transfer_create_params.py b/src/increase/types/check_transfer_create_params.py index d2e04b85a..590973ad3 100644 --- a/src/increase/types/check_transfer_create_params.py +++ b/src/increase/types/check_transfer_create_params.py @@ -20,13 +20,7 @@ class CheckTransferCreateParams(TypedDict, total=False): amount: Required[int] """The transfer amount in USD cents.""" - source_account_number_id: Required[str] - """ - The identifier of the Account Number from which to send the transfer and print - on the check. - """ - - fulfillment_method: Literal["physical_check", "third_party"] + fulfillment_method: Required[Literal["physical_check", "third_party"]] """Whether Increase will print and mail the check or if you will do it yourself. - `physical_check` - Increase will print and mail a physical check. @@ -35,6 +29,12 @@ class CheckTransferCreateParams(TypedDict, total=False): check number, and amount. """ + source_account_number_id: Required[str] + """ + The identifier of the Account Number from which to send the transfer and print + on the check. + """ + physical_check: PhysicalCheck """Details relating to the physical check that Increase will print and mail. diff --git a/tests/api_resources/test_check_transfers.py b/tests/api_resources/test_check_transfers.py index cf04e77c0..a46c2089e 100644 --- a/tests/api_resources/test_check_transfers.py +++ b/tests/api_resources/test_check_transfers.py @@ -26,6 +26,7 @@ def test_method_create(self, client: Increase) -> None: check_transfer = client.check_transfers.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) assert_matches_type(CheckTransfer, check_transfer, path=["response"]) @@ -35,8 +36,8 @@ def test_method_create_with_all_params(self, client: Increase) -> None: check_transfer = client.check_transfers.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, - source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", fulfillment_method="physical_check", + source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", physical_check={ "mailing_address": { "city": "New York", @@ -69,6 +70,7 @@ def test_raw_response_create(self, client: Increase) -> None: response = client.check_transfers.with_raw_response.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) @@ -82,6 +84,7 @@ def test_streaming_response_create(self, client: Increase) -> None: with client.check_transfers.with_streaming_response.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) as response: assert not response.is_closed @@ -302,6 +305,7 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: check_transfer = await async_client.check_transfers.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) assert_matches_type(CheckTransfer, check_transfer, path=["response"]) @@ -311,8 +315,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) check_transfer = await async_client.check_transfers.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, - source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", fulfillment_method="physical_check", + source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", physical_check={ "mailing_address": { "city": "New York", @@ -345,6 +349,7 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: response = await async_client.check_transfers.with_raw_response.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) @@ -358,6 +363,7 @@ async def test_streaming_response_create(self, async_client: AsyncIncrease) -> N async with async_client.check_transfers.with_streaming_response.create( account_id="account_in71c4amph0vgo2qllky", amount=1000, + fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", ) as response: assert not response.is_closed