From a55f0ff436ffdb0d967494e02ae6830f8243d35c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 22:00:56 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/entities.py | 24 ++++++++++++++++++++-- src/increase/types/entity_update_params.py | 21 ++++++++++++++++++- tests/api_resources/test_entities.py | 8 ++++++++ 4 files changed, 52 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index b81bcdb11..7002ed35c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1eb1b9beeffa6783ab1a53c794e87a6d6d69ef975941d6213ce9e66fcf487a82.yml -openapi_spec_hash: 246b178a64c9ac4a3e9332e406f6a90f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-166f5a60acb9f1b94415e641215f0988dc14a8bce6a0e1a95e521fdbb0b91243.yml +openapi_spec_hash: adbd71ae90ad4559759517a17c4fec08 config_hash: 2a4a1945e6eefa24fa5b0590cf580fb4 diff --git a/src/increase/resources/entities.py b/src/increase/resources/entities.py index 8c955cafc..042ce7d92 100644 --- a/src/increase/resources/entities.py +++ b/src/increase/resources/entities.py @@ -193,6 +193,7 @@ def update( entity_id: str, *, risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN, + third_party_verification: entity_update_params.ThirdPartyVerification | 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, @@ -210,6 +211,9 @@ def update( risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes, such as money laundering. + third_party_verification: A reference to data stored in a third-party verification service. Your + integration may or may not use this field. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -224,7 +228,13 @@ def update( raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}") return self._patch( f"/entities/{entity_id}", - body=maybe_transform({"risk_rating": risk_rating}, entity_update_params.EntityUpdateParams), + body=maybe_transform( + { + "risk_rating": risk_rating, + "third_party_verification": third_party_verification, + }, + entity_update_params.EntityUpdateParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, @@ -803,6 +813,7 @@ async def update( entity_id: str, *, risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN, + third_party_verification: entity_update_params.ThirdPartyVerification | 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, @@ -820,6 +831,9 @@ async def update( risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes, such as money laundering. + third_party_verification: A reference to data stored in a third-party verification service. Your + integration may or may not use this field. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -834,7 +848,13 @@ async def update( raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}") return await self._patch( f"/entities/{entity_id}", - body=await async_maybe_transform({"risk_rating": risk_rating}, entity_update_params.EntityUpdateParams), + body=await async_maybe_transform( + { + "risk_rating": risk_rating, + "third_party_verification": third_party_verification, + }, + entity_update_params.EntityUpdateParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index f0d2fc705..d1a36e8c3 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -8,7 +8,7 @@ from .._utils import PropertyInfo -__all__ = ["EntityUpdateParams", "RiskRating"] +__all__ = ["EntityUpdateParams", "RiskRating", "ThirdPartyVerification"] class EntityUpdateParams(TypedDict, total=False): @@ -18,6 +18,12 @@ class EntityUpdateParams(TypedDict, total=False): such as money laundering. """ + third_party_verification: ThirdPartyVerification + """A reference to data stored in a third-party verification service. + + Your integration may or may not use this field. + """ + class RiskRating(TypedDict, total=False): rated_at: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]] @@ -33,3 +39,16 @@ class RiskRating(TypedDict, total=False): - `medium` - Medium - `high` - High """ + + +class ThirdPartyVerification(TypedDict, total=False): + reference: Required[str] + """The reference identifier for the third party verification.""" + + vendor: Required[Literal["alloy", "middesk", "oscilar"]] + """The vendor that was used to perform the verification. + + - `alloy` - Alloy. See https://alloy.com for more information. + - `middesk` - Middesk. See https://middesk.com for more information. + - `oscilar` - Oscilar. See https://oscilar.com for more information. + """ diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index a52a87728..99dd4cabd 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -351,6 +351,10 @@ def test_method_update_with_all_params(self, client: Increase) -> None: "rated_at": parse_datetime("2020-01-31T23:59:59Z"), "rating": "low", }, + third_party_verification={ + "reference": "x", + "vendor": "alloy", + }, ) assert_matches_type(Entity, entity, path=["response"]) @@ -1232,6 +1236,10 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease) "rated_at": parse_datetime("2020-01-31T23:59:59Z"), "rating": "low", }, + third_party_verification={ + "reference": "x", + "vendor": "alloy", + }, ) assert_matches_type(Entity, entity, path=["response"]) From c2785e9a3e1bad1f37a5c3194c689e608020daab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 22:01:16 +0000 Subject: [PATCH 2/2] release: 0.314.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 d1b100d62..da7827268 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.313.0" + ".": "0.314.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 713ad5052..4bbfe0d59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.314.0 (2025-09-04) + +Full Changelog: [v0.313.0...v0.314.0](https://github.com/Increase/increase-python/compare/v0.313.0...v0.314.0) + +### Features + +* **api:** api update ([a55f0ff](https://github.com/Increase/increase-python/commit/a55f0ff436ffdb0d967494e02ae6830f8243d35c)) + ## 0.313.0 (2025-09-04) Full Changelog: [v0.312.0...v0.313.0](https://github.com/Increase/increase-python/compare/v0.312.0...v0.313.0) diff --git a/pyproject.toml b/pyproject.toml index 11206893a..19e2ffa34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.313.0" +version = "0.314.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 6eaef94b3..e3e87f63c 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.313.0" # x-release-please-version +__version__ = "0.314.0" # x-release-please-version