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.382.0"
".": "0.383.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-f55c7bc0881d1c7bcc906156155a0e43c6b8866050f778db3befebe14d42208f.yml
openapi_spec_hash: 78c5274b08b5e7ae5e16da80d733bc10
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml
openapi_spec_hash: f992030218a4415fcec934bf482cb7ae
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.383.0 (2025-11-06)

Full Changelog: [v0.382.0...v0.383.0](https://github.com/Increase/increase-python/compare/v0.382.0...v0.383.0)

### Features

* **api:** api update ([da34894](https://github.com/Increase/increase-python/commit/da34894b6d334cad194bf8d48e5210e0535c0b48))

## 0.382.0 (2025-11-05)

Full Changelog: [v0.381.0...v0.382.0](https://github.com/Increase/increase-python/compare/v0.381.0...v0.382.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.382.0"
version = "0.383.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.382.0" # x-release-please-version
__version__ = "0.383.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/increase/resources/check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from typing import Union
from datetime import date
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -56,6 +58,7 @@ def create(
physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit,
require_approval: bool | Omit = omit,
third_party: check_transfer_create_params.ThirdParty | Omit = omit,
valid_until_date: Union[str, date] | 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 Down Expand Up @@ -106,6 +109,10 @@ def create(
`fulfillment_method` is equal to `third_party`. It must not be included if any
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.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -129,6 +136,7 @@ def create(
"physical_check": physical_check,
"require_approval": require_approval,
"third_party": third_party,
"valid_until_date": valid_until_date,
},
check_transfer_create_params.CheckTransferCreateParams,
),
Expand Down Expand Up @@ -407,6 +415,7 @@ async def create(
physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit,
require_approval: bool | Omit = omit,
third_party: check_transfer_create_params.ThirdParty | Omit = omit,
valid_until_date: Union[str, date] | 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 Down Expand Up @@ -457,6 +466,10 @@ async def create(
`fulfillment_method` is equal to `third_party`. It must not be included if any
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.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -480,6 +493,7 @@ async def create(
"physical_check": physical_check,
"require_approval": require_approval,
"third_party": third_party,
"valid_until_date": valid_until_date,
},
check_transfer_create_params.CheckTransferCreateParams,
),
Expand Down
10 changes: 9 additions & 1 deletion src/increase/types/check_transfer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import TYPE_CHECKING, Dict, List, Optional
from datetime import datetime
from datetime import date, datetime
from typing_extensions import Literal

from pydantic import Field as FieldInfo
Expand Down Expand Up @@ -498,6 +498,14 @@ class CheckTransfer(BaseModel):
For this resource it will always be `check_transfer`.
"""

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.
"""

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
Expand Down
13 changes: 12 additions & 1 deletion src/increase/types/check_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from __future__ import annotations

from typing import Dict, Union, Iterable
from typing_extensions import Literal, Required, TypeAlias, TypedDict
from datetime import date
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict

from .._utils import PropertyInfo

__all__ = [
"CheckTransferCreateParams",
Expand Down Expand Up @@ -75,6 +78,14 @@ class CheckTransferCreateParams(TypedDict, total=False):
be included if any other `fulfillment_method` is provided.
"""

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.
"""


class PhysicalCheckMailingAddress(TypedDict, total=False):
city: Required[str]
Expand Down
4 changes: 3 additions & 1 deletion tests/api_resources/test_check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase.types import (
CheckTransfer,
)
from increase._utils import parse_datetime
from increase._utils import parse_date, parse_datetime
from increase.pagination import SyncPage, AsyncPage

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
Expand Down Expand Up @@ -66,6 +66,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
require_approval=True,
third_party={"recipient_name": "x"},
valid_until_date=parse_date("2019-12-27"),
)
assert_matches_type(CheckTransfer, check_transfer, path=["response"])

Expand Down Expand Up @@ -352,6 +353,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
},
require_approval=True,
third_party={"recipient_name": "x"},
valid_until_date=parse_date("2019-12-27"),
)
assert_matches_type(CheckTransfer, check_transfer, path=["response"])

Expand Down