Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.389.0"
".": "0.390.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -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
18 changes: 12 additions & 6 deletions src/increase/resources/check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down
12 changes: 8 additions & 4 deletions src/increase/types/check_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions src/increase/types/check_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""


Expand Down
4 changes: 3 additions & 1 deletion src/increase/types/check_transfer_stop_payment_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""