From 2e7cf6edd5aa35335078a4eba1c8021ddc512684 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 20:09:07 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/check_transfers.py | 22 +++++++++++++++++++ .../types/check_transfer_create_params.py | 13 +++++++++++ tests/api_resources/test_check_transfers.py | 2 ++ 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7f33565d1..1c0a751d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fd1e9a0d66098ce0c20cb6c15bbb8c26a8662d52730907deb4a179aebd6b89d6.yml -openapi_spec_hash: 2139b75a9f653c413775fb96f70ba794 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-29da995f8b04baed0eb2b6b038bc14f3165a3e1eae15b7a1136cce323d132bfd.yml +openapi_spec_hash: ff369b84b7477f46c3f3e3edeecaf176 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/src/increase/resources/check_transfers.py b/src/increase/resources/check_transfers.py index 3026b2df1..9817c471b 100644 --- a/src/increase/resources/check_transfers.py +++ b/src/increase/resources/check_transfers.py @@ -51,6 +51,7 @@ def create( amount: int, fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, + balance_check: Literal["full", "none"] | Omit = omit, check_number: str | Omit = omit, physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit, require_approval: bool | Omit = omit, @@ -81,6 +82,15 @@ def create( source_account_number_id: The identifier of the Account Number from which to send the transfer and print on the check. + balance_check: How the account's available balance should be checked. Please contact + [support@increase.com](mailto:support@increase.com) to enable this parameter. + + - `full` - The available balance of the account must be at least the amount of + the check, and a Pending Transaction will be created for the full amount. + - `none` - No balance check will performed when the check transfer is initiated. + A zero-dollar Pending Transaction will be created. The balance will still be + checked when the Inbound Check Deposit is created. + check_number: The check number Increase should use for the check. This should not contain leading zeroes and must be unique across the `source_account_number`. If this is omitted, Increase will generate a check number for you. @@ -113,6 +123,7 @@ def create( "amount": amount, "fulfillment_method": fulfillment_method, "source_account_number_id": source_account_number_id, + "balance_check": balance_check, "check_number": check_number, "physical_check": physical_check, "require_approval": require_approval, @@ -390,6 +401,7 @@ async def create( amount: int, fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, + balance_check: Literal["full", "none"] | Omit = omit, check_number: str | Omit = omit, physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit, require_approval: bool | Omit = omit, @@ -420,6 +432,15 @@ async def create( source_account_number_id: The identifier of the Account Number from which to send the transfer and print on the check. + balance_check: How the account's available balance should be checked. Please contact + [support@increase.com](mailto:support@increase.com) to enable this parameter. + + - `full` - The available balance of the account must be at least the amount of + the check, and a Pending Transaction will be created for the full amount. + - `none` - No balance check will performed when the check transfer is initiated. + A zero-dollar Pending Transaction will be created. The balance will still be + checked when the Inbound Check Deposit is created. + check_number: The check number Increase should use for the check. This should not contain leading zeroes and must be unique across the `source_account_number`. If this is omitted, Increase will generate a check number for you. @@ -452,6 +473,7 @@ async def create( "amount": amount, "fulfillment_method": fulfillment_method, "source_account_number_id": source_account_number_id, + "balance_check": balance_check, "check_number": check_number, "physical_check": physical_check, "require_approval": require_approval, diff --git a/src/increase/types/check_transfer_create_params.py b/src/increase/types/check_transfer_create_params.py index 4c66f65b6..185167d52 100644 --- a/src/increase/types/check_transfer_create_params.py +++ b/src/increase/types/check_transfer_create_params.py @@ -37,6 +37,19 @@ class CheckTransferCreateParams(TypedDict, total=False): on the check. """ + balance_check: Literal["full", "none"] + """How the account's available balance should be checked. + + Please contact [support@increase.com](mailto:support@increase.com) to enable + this parameter. + + - `full` - The available balance of the account must be at least the amount of + the check, and a Pending Transaction will be created for the full amount. + - `none` - No balance check will performed when the check transfer is initiated. + A zero-dollar Pending Transaction will be created. The balance will still be + checked when the Inbound Check Deposit is created. + """ + check_number: str """The check number Increase should use for the check. diff --git a/tests/api_resources/test_check_transfers.py b/tests/api_resources/test_check_transfers.py index b12a06509..2717e1355 100644 --- a/tests/api_resources/test_check_transfers.py +++ b/tests/api_resources/test_check_transfers.py @@ -38,6 +38,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: amount=1000, fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", + balance_check="full", check_number="x", physical_check={ "mailing_address": { @@ -323,6 +324,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) amount=1000, fulfillment_method="physical_check", source_account_number_id="account_number_v18nkfqm6afpsrvy82b2", + balance_check="full", check_number="x", physical_check={ "mailing_address": { From 820802eb1b6fcf925caae05b36d8415a2230f7ac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 20:09:30 +0000 Subject: [PATCH 2/2] release: 0.375.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 f83bd1f73..93ed6faef 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.374.0" + ".": "0.375.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 00822b412..ba5501ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.375.0 (2025-10-30) + +Full Changelog: [v0.374.0...v0.375.0](https://github.com/Increase/increase-python/compare/v0.374.0...v0.375.0) + +### Features + +* **api:** api update ([2e7cf6e](https://github.com/Increase/increase-python/commit/2e7cf6edd5aa35335078a4eba1c8021ddc512684)) + ## 0.374.0 (2025-10-30) Full Changelog: [v0.373.0...v0.374.0](https://github.com/Increase/increase-python/compare/v0.373.0...v0.374.0) diff --git a/pyproject.toml b/pyproject.toml index e97ac3959..af15c12b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.374.0" +version = "0.375.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 d0f423244..0f09e5589 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.374.0" # x-release-please-version +__version__ = "0.375.0" # x-release-please-version