From cecd1c17ec0f8ae46eed2b3230577bf6749ad766 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:11:15 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +-- .../simulations/inbound_check_deposits.py | 26 +++++++++++++++++++ .../inbound_check_deposit_create_params.py | 15 ++++++++++- .../test_inbound_check_deposits.py | 20 ++++++++++++++ 4 files changed, 62 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 160b294b4..7d655a6dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a6d99e6e3e405acf3e592e273aa1c5d519ed4f1157d0f87f1dcf21e7710f59b5.yml -openapi_spec_hash: f1f21c7331c905f2e5549978454059dc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7d240ad280fc9ed22a8bbe219835ed737b075963291d84b75efbbb38195eff8b.yml +openapi_spec_hash: f2a2cad4f01bf5ab66e1f3dcb719315a config_hash: 632b628b59d8f0b717153b3d8133f6cb diff --git a/src/increase/resources/simulations/inbound_check_deposits.py b/src/increase/resources/simulations/inbound_check_deposits.py index 8b8a642d5..f68b011e3 100644 --- a/src/increase/resources/simulations/inbound_check_deposits.py +++ b/src/increase/resources/simulations/inbound_check_deposits.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven @@ -47,6 +49,7 @@ def create( account_number_id: str, amount: int, check_number: str, + payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | NotGiven = NOT_GIVEN, # 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, @@ -71,6 +74,16 @@ def create( check_number: The check number on the check to be deposited. + payee_name_analysis: Simulate the outcome of + [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches). + Defaults to `not_evaluated`. + + - `name_matches` - The details on the check match the recipient name of the + check transfer. + - `does_not_match` - The details on the check do not match the recipient name of + the check transfer. + - `not_evaluated` - The payee name analysis was not evaluated. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -88,6 +101,7 @@ def create( "account_number_id": account_number_id, "amount": amount, "check_number": check_number, + "payee_name_analysis": payee_name_analysis, }, inbound_check_deposit_create_params.InboundCheckDepositCreateParams, ), @@ -128,6 +142,7 @@ async def create( account_number_id: str, amount: int, check_number: str, + payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | NotGiven = NOT_GIVEN, # 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, @@ -152,6 +167,16 @@ async def create( check_number: The check number on the check to be deposited. + payee_name_analysis: Simulate the outcome of + [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches). + Defaults to `not_evaluated`. + + - `name_matches` - The details on the check match the recipient name of the + check transfer. + - `does_not_match` - The details on the check do not match the recipient name of + the check transfer. + - `not_evaluated` - The payee name analysis was not evaluated. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -169,6 +194,7 @@ async def create( "account_number_id": account_number_id, "amount": amount, "check_number": check_number, + "payee_name_analysis": payee_name_analysis, }, inbound_check_deposit_create_params.InboundCheckDepositCreateParams, ), diff --git a/src/increase/types/simulations/inbound_check_deposit_create_params.py b/src/increase/types/simulations/inbound_check_deposit_create_params.py index 8d7e7b0aa..16c4a4e8d 100644 --- a/src/increase/types/simulations/inbound_check_deposit_create_params.py +++ b/src/increase/types/simulations/inbound_check_deposit_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Literal, Required, TypedDict __all__ = ["InboundCheckDepositCreateParams"] @@ -16,3 +16,16 @@ class InboundCheckDepositCreateParams(TypedDict, total=False): check_number: Required[str] """The check number on the check to be deposited.""" + + payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] + """ + Simulate the outcome of + [payee name checking](https://increase.com/documentation/positive-pay#payee-name-mismatches). + Defaults to `not_evaluated`. + + - `name_matches` - The details on the check match the recipient name of the + check transfer. + - `does_not_match` - The details on the check do not match the recipient name of + the check transfer. + - `not_evaluated` - The payee name analysis was not evaluated. + """ diff --git a/tests/api_resources/simulations/test_inbound_check_deposits.py b/tests/api_resources/simulations/test_inbound_check_deposits.py index f51919de7..eef5ded60 100644 --- a/tests/api_resources/simulations/test_inbound_check_deposits.py +++ b/tests/api_resources/simulations/test_inbound_check_deposits.py @@ -26,6 +26,16 @@ def test_method_create(self, client: Increase) -> None: ) assert_matches_type(InboundCheckDeposit, inbound_check_deposit, path=["response"]) + @parametrize + def test_method_create_with_all_params(self, client: Increase) -> None: + inbound_check_deposit = client.simulations.inbound_check_deposits.create( + account_number_id="account_number_v18nkfqm6afpsrvy82b2", + amount=1000, + check_number="1234567890", + payee_name_analysis="name_matches", + ) + assert_matches_type(InboundCheckDeposit, inbound_check_deposit, path=["response"]) + @parametrize def test_raw_response_create(self, client: Increase) -> None: response = client.simulations.inbound_check_deposits.with_raw_response.create( @@ -69,6 +79,16 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: ) assert_matches_type(InboundCheckDeposit, inbound_check_deposit, path=["response"]) + @parametrize + async def test_method_create_with_all_params(self, async_client: AsyncIncrease) -> None: + inbound_check_deposit = await async_client.simulations.inbound_check_deposits.create( + account_number_id="account_number_v18nkfqm6afpsrvy82b2", + amount=1000, + check_number="1234567890", + payee_name_analysis="name_matches", + ) + assert_matches_type(InboundCheckDeposit, inbound_check_deposit, path=["response"]) + @parametrize async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: response = await async_client.simulations.inbound_check_deposits.with_raw_response.create( From 5a5c058af901126af2a99b954be56219277b8b93 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:11:37 +0000 Subject: [PATCH 2/2] release: 0.309.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 68764d436..2ba52d0aa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.308.0" + ".": "0.309.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a31b3098..8a448d934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.309.0 (2025-08-29) + +Full Changelog: [v0.308.0...v0.309.0](https://github.com/Increase/increase-python/compare/v0.308.0...v0.309.0) + +### Features + +* **api:** api update ([cecd1c1](https://github.com/Increase/increase-python/commit/cecd1c17ec0f8ae46eed2b3230577bf6749ad766)) + ## 0.308.0 (2025-08-28) Full Changelog: [v0.307.0...v0.308.0](https://github.com/Increase/increase-python/compare/v0.307.0...v0.308.0) diff --git a/pyproject.toml b/pyproject.toml index afa225597..022bc15f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.308.0" +version = "0.309.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 889b58752..e5e6d8737 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.308.0" # x-release-please-version +__version__ = "0.309.0" # x-release-please-version