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.380.0"
".": "0.381.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-776b1bee3036836b954fa0db1e6d0349a04f76799402089994a9147a05967c0e.yml
openapi_spec_hash: 185a637305e75b302860dce8d352f54f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-04156469b84df056ff40f1cd402b851af019c7433591a072e02f90f3bd5e5d62.yml
openapi_spec_hash: c3ff2c35ac0bdadd4290ad7f063deb5e
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.381.0 (2025-11-05)

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

### Features

* **api:** api update ([5ad45b9](https://github.com/Increase/increase-python/commit/5ad45b9eb5e5f38ca4644b423e4e26012021e20c))

## 0.380.0 (2025-11-04)

Full Changelog: [v0.379.0...v0.380.0](https://github.com/Increase/increase-python/compare/v0.379.0...v0.380.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.380.0"
version = "0.381.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.380.0" # x-release-please-version
__version__ = "0.381.0" # x-release-please-version
32 changes: 14 additions & 18 deletions src/increase/resources/lockboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def update(
self,
lockbox_id: str,
*,
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
description: str | Omit = omit,
recipient_name: str | Omit = omit,
status: Literal["active", "inactive"] | 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 @@ -154,16 +154,14 @@ def update(
Args:
lockbox_id: The identifier of the Lockbox.

description: The description you choose for the Lockbox.
check_deposit_behavior: This indicates if checks mailed to this lockbox will be deposited.

recipient_name: The recipient name you choose for the Lockbox.
- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.

status: This indicates if checks can be sent to the Lockbox.
description: The description you choose for the Lockbox.

- `active` - This Lockbox is active. Checks mailed to it will be deposited
automatically.
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
deposited.
recipient_name: The recipient name you choose for the Lockbox.

extra_headers: Send extra headers

Expand All @@ -181,9 +179,9 @@ def update(
f"/lockboxes/{lockbox_id}",
body=maybe_transform(
{
"check_deposit_behavior": check_deposit_behavior,
"description": description,
"recipient_name": recipient_name,
"status": status,
},
lockbox_update_params.LockboxUpdateParams,
),
Expand Down Expand Up @@ -372,9 +370,9 @@ async def update(
self,
lockbox_id: str,
*,
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
description: str | Omit = omit,
recipient_name: str | Omit = omit,
status: Literal["active", "inactive"] | 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 @@ -389,16 +387,14 @@ async def update(
Args:
lockbox_id: The identifier of the Lockbox.

description: The description you choose for the Lockbox.
check_deposit_behavior: This indicates if checks mailed to this lockbox will be deposited.

recipient_name: The recipient name you choose for the Lockbox.
- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.

status: This indicates if checks can be sent to the Lockbox.
description: The description you choose for the Lockbox.

- `active` - This Lockbox is active. Checks mailed to it will be deposited
automatically.
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
deposited.
recipient_name: The recipient name you choose for the Lockbox.

extra_headers: Send extra headers

Expand All @@ -416,9 +412,9 @@ async def update(
f"/lockboxes/{lockbox_id}",
body=await async_maybe_transform(
{
"check_deposit_behavior": check_deposit_behavior,
"description": description,
"recipient_name": recipient_name,
"status": status,
},
lockbox_update_params.LockboxUpdateParams,
),
Expand Down
16 changes: 7 additions & 9 deletions src/increase/types/lockbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class Lockbox(BaseModel):
address: Address
"""The mailing address for the Lockbox."""

check_deposit_behavior: Literal["enabled", "disabled"]
"""Indicates if checks mailed to this lockbox will be deposited.

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
"""

created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
Expand All @@ -70,15 +77,6 @@ class Lockbox(BaseModel):
recipient_name: Optional[str] = None
"""The recipient name you choose for the Lockbox."""

status: Literal["active", "inactive"]
"""This indicates if mail can be sent to this address.

- `active` - This Lockbox is active. Checks mailed to it will be deposited
automatically.
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
deposited.
"""

type: Literal["lockbox"]
"""A constant representing the object's type.

Expand Down
16 changes: 7 additions & 9 deletions src/increase/types/lockbox_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@


class LockboxUpdateParams(TypedDict, total=False):
check_deposit_behavior: Literal["enabled", "disabled"]
"""This indicates if checks mailed to this lockbox will be deposited.

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
"""

description: str
"""The description you choose for the Lockbox."""

recipient_name: str
"""The recipient name you choose for the Lockbox."""

status: Literal["active", "inactive"]
"""This indicates if checks can be sent to the Lockbox.

- `active` - This Lockbox is active. Checks mailed to it will be deposited
automatically.
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
deposited.
"""
4 changes: 2 additions & 2 deletions tests/api_resources/test_lockboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def test_method_update(self, client: Increase) -> None:
def test_method_update_with_all_params(self, client: Increase) -> None:
lockbox = client.lockboxes.update(
lockbox_id="lockbox_3xt21ok13q19advds4t5",
check_deposit_behavior="disabled",
description="x",
recipient_name="x",
status="inactive",
)
assert_matches_type(Lockbox, lockbox, path=["response"])

Expand Down Expand Up @@ -281,9 +281,9 @@ async def test_method_update(self, async_client: AsyncIncrease) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncIncrease) -> None:
lockbox = await async_client.lockboxes.update(
lockbox_id="lockbox_3xt21ok13q19advds4t5",
check_deposit_behavior="disabled",
description="x",
recipient_name="x",
status="inactive",
)
assert_matches_type(Lockbox, lockbox, path=["response"])

Expand Down