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.313.0"
".": "0.314.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.313.0"
version = "0.314.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.313.0" # x-release-please-version
__version__ = "0.314.0" # x-release-please-version
24 changes: 22 additions & 2 deletions src/increase/resources/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand Down
21 changes: 20 additions & 1 deletion src/increase/types/entity_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .._utils import PropertyInfo

__all__ = ["EntityUpdateParams", "RiskRating"]
__all__ = ["EntityUpdateParams", "RiskRating", "ThirdPartyVerification"]


class EntityUpdateParams(TypedDict, total=False):
Expand All @@ -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")]]
Expand All @@ -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.
"""
8 changes: 8 additions & 0 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down Expand Up @@ -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"])

Expand Down