diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 18952c86a..9318fbe87 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.380.0" + ".": "0.381.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d73422845..6ba32829f 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index a2e0e883a..b5e225764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index bde28dba4..d8dde1a58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index 8d1196430..cd13059c3 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.380.0" # x-release-please-version +__version__ = "0.381.0" # x-release-please-version diff --git a/src/increase/resources/lockboxes.py b/src/increase/resources/lockboxes.py index 4d6b565af..c9e161a30 100644 --- a/src/increase/resources/lockboxes.py +++ b/src/increase/resources/lockboxes.py @@ -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, @@ -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 @@ -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, ), @@ -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, @@ -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 @@ -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, ), diff --git a/src/increase/types/lockbox.py b/src/increase/types/lockbox.py index 2ff781270..1051f852e 100644 --- a/src/increase/types/lockbox.py +++ b/src/increase/types/lockbox.py @@ -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 @@ -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. diff --git a/src/increase/types/lockbox_update_params.py b/src/increase/types/lockbox_update_params.py index 175f9c0e6..fe3fc5a58 100644 --- a/src/increase/types/lockbox_update_params.py +++ b/src/increase/types/lockbox_update_params.py @@ -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. - """ diff --git a/tests/api_resources/test_lockboxes.py b/tests/api_resources/test_lockboxes.py index ff9fe0a85..b8e2b12b9 100644 --- a/tests/api_resources/test_lockboxes.py +++ b/tests/api_resources/test_lockboxes.py @@ -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"]) @@ -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"])