From ff8dddb2ed7fbeb95e60ecd1f6970e34c15c2177 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:56:15 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/check_transfers.py | 18 ++++++++++++------ src/increase/types/check_transfer.py | 12 ++++++++---- .../types/check_transfer_create_params.py | 6 +++--- .../check_transfer_stop_payment_params.py | 4 +++- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7a7a9db64..7ba77f512 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-20e1561a0d8d3d75c643376822d6e039bcc63f27fd1feff20b8b1e6aced1decd.yml -openapi_spec_hash: 225581a20e328afe5ebba8ee801e002b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8c1e7b6c76b828e1835e628850b33c7468a0db61db1df8e5b781868445ecf25c.yml +openapi_spec_hash: eff2b69771bdda576c42980ca05fdc79 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/src/increase/resources/check_transfers.py b/src/increase/resources/check_transfers.py index 3ae24ea95..d7773c3c6 100644 --- a/src/increase/resources/check_transfers.py +++ b/src/increase/resources/check_transfers.py @@ -110,8 +110,9 @@ def create( other `fulfillment_method` is provided. valid_until_date: If provided, the check will be valid on or before this date. After this date, - the check transfer will be stopped and deposits will not be accepted. For checks - printed by Increase, this date is included on the check as its expiry. + the check transfer will be automatically stopped and deposits will not be + accepted. For checks printed by Increase, this date is included on the check as + its expiry. extra_headers: Send extra headers @@ -338,7 +339,7 @@ def stop_payment( self, check_transfer_id: str, *, - reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | Omit = omit, + reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"] | Omit = omit, # 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, @@ -357,6 +358,8 @@ def stop_payment( - `mail_delivery_failed` - The check could not be delivered. - `not_authorized` - The check was not authorized. + - `valid_until_date_passed` - The check was stopped for `valid_until_date` being + in the past. - `unknown` - The check was stopped for another reason. extra_headers: Send extra headers @@ -469,8 +472,9 @@ async def create( other `fulfillment_method` is provided. valid_until_date: If provided, the check will be valid on or before this date. After this date, - the check transfer will be stopped and deposits will not be accepted. For checks - printed by Increase, this date is included on the check as its expiry. + the check transfer will be automatically stopped and deposits will not be + accepted. For checks printed by Increase, this date is included on the check as + its expiry. extra_headers: Send extra headers @@ -697,7 +701,7 @@ async def stop_payment( self, check_transfer_id: str, *, - reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | Omit = omit, + reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"] | Omit = omit, # 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, @@ -716,6 +720,8 @@ async def stop_payment( - `mail_delivery_failed` - The check could not be delivered. - `not_authorized` - The check was not authorized. + - `valid_until_date_passed` - The check was stopped for `valid_until_date` being + in the past. - `unknown` - The check was stopped for another reason. extra_headers: Send extra headers diff --git a/src/increase/types/check_transfer.py b/src/increase/types/check_transfer.py index d79e40600..3b37bbc90 100644 --- a/src/increase/types/check_transfer.py +++ b/src/increase/types/check_transfer.py @@ -231,13 +231,17 @@ def __getattr__(self, attr: str) -> object: ... class StopPaymentRequest(BaseModel): - reason: Literal["mail_delivery_failed", "rejected_by_increase", "not_authorized", "unknown"] + reason: Literal[ + "mail_delivery_failed", "rejected_by_increase", "not_authorized", "valid_until_date_passed", "unknown" + ] """The reason why this transfer was stopped. - `mail_delivery_failed` - The check could not be delivered. - `rejected_by_increase` - The check was canceled by an Increase operator who will provide details out-of-band. - `not_authorized` - The check was not authorized. + - `valid_until_date_passed` - The check was stopped for `valid_until_date` being + in the past. - `unknown` - The check was stopped for another reason. """ @@ -503,9 +507,9 @@ class CheckTransfer(BaseModel): valid_until_date: Optional[date] = None """If set, the check will be valid on or before this date. - After this date, the check transfer will be stopped and deposits will not be - accepted. For checks printed by Increase, this date is included on the check as - its expiry. + After this date, the check transfer will be automatically stopped and deposits + will not be accepted. For checks printed by Increase, this date is included on + the check as its expiry. """ if TYPE_CHECKING: diff --git a/src/increase/types/check_transfer_create_params.py b/src/increase/types/check_transfer_create_params.py index 2693fb44f..8a720d2b9 100644 --- a/src/increase/types/check_transfer_create_params.py +++ b/src/increase/types/check_transfer_create_params.py @@ -81,9 +81,9 @@ class CheckTransferCreateParams(TypedDict, total=False): valid_until_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")] """If provided, the check will be valid on or before this date. - After this date, the check transfer will be stopped and deposits will not be - accepted. For checks printed by Increase, this date is included on the check as - its expiry. + After this date, the check transfer will be automatically stopped and deposits + will not be accepted. For checks printed by Increase, this date is included on + the check as its expiry. """ diff --git a/src/increase/types/check_transfer_stop_payment_params.py b/src/increase/types/check_transfer_stop_payment_params.py index ca1c86ece..50ac231ec 100644 --- a/src/increase/types/check_transfer_stop_payment_params.py +++ b/src/increase/types/check_transfer_stop_payment_params.py @@ -8,10 +8,12 @@ class CheckTransferStopPaymentParams(TypedDict, total=False): - reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] + reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"] """The reason why this transfer should be stopped. - `mail_delivery_failed` - The check could not be delivered. - `not_authorized` - The check was not authorized. + - `valid_until_date_passed` - The check was stopped for `valid_until_date` being + in the past. - `unknown` - The check was stopped for another reason. """ From 6671ae739af2548022f74ca66b1b23199a36fd76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:56:35 +0000 Subject: [PATCH 2/2] release: 0.390.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 f7582d696..4a8316f57 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.389.0" + ".": "0.390.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c8ca4211..831695314 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.390.0 (2025-11-07) + +Full Changelog: [v0.389.0...v0.390.0](https://github.com/Increase/increase-python/compare/v0.389.0...v0.390.0) + +### Features + +* **api:** api update ([ff8dddb](https://github.com/Increase/increase-python/commit/ff8dddb2ed7fbeb95e60ecd1f6970e34c15c2177)) + ## 0.389.0 (2025-11-07) Full Changelog: [v0.388.0...v0.389.0](https://github.com/Increase/increase-python/compare/v0.388.0...v0.389.0) diff --git a/pyproject.toml b/pyproject.toml index fcc5adbfd..01dd310c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.389.0" +version = "0.390.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 ed5ac8c19..a0e0a7163 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.389.0" # x-release-please-version +__version__ = "0.390.0" # x-release-please-version