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.314.0"
".": "0.315.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-166f5a60acb9f1b94415e641215f0988dc14a8bce6a0e1a95e521fdbb0b91243.yml
openapi_spec_hash: adbd71ae90ad4559759517a17c4fec08
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d1cfc3f93b6829318d0905c04d24008ab3576d5c00d8eb17c7d55fc34beef9e.yml
openapi_spec_hash: 12f331a1ebc9c7c8465a850736a8d8c6
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.315.0 (2025-09-05)

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

### Features

* **api:** api update ([3d0840d](https://github.com/Increase/increase-python/commit/3d0840d0103f9a5d66bdd5b40c28f90ec569d2f4))

## 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)
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.314.0"
version = "0.315.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.314.0" # x-release-please-version
__version__ = "0.315.0" # x-release-please-version
32 changes: 32 additions & 0 deletions src/increase/resources/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,12 @@ def update(
self,
entity_id: str,
*,
corporation: entity_update_params.Corporation | NotGiven = NOT_GIVEN,
government_authority: entity_update_params.GovernmentAuthority | NotGiven = NOT_GIVEN,
natural_person: entity_update_params.NaturalPerson | NotGiven = NOT_GIVEN,
risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN,
third_party_verification: entity_update_params.ThirdPartyVerification | NotGiven = NOT_GIVEN,
trust: entity_update_params.Trust | 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 @@ -208,12 +212,20 @@ def update(
Args:
entity_id: The entity identifier.

corporation: Details of the corporation entity to update.

government_authority: Details of the government authority entity to update.

natural_person: Details of the natural person entity to 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.

trust: Details of the trust entity to update.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -230,8 +242,12 @@ def update(
f"/entities/{entity_id}",
body=maybe_transform(
{
"corporation": corporation,
"government_authority": government_authority,
"natural_person": natural_person,
"risk_rating": risk_rating,
"third_party_verification": third_party_verification,
"trust": trust,
},
entity_update_params.EntityUpdateParams,
),
Expand Down Expand Up @@ -812,8 +828,12 @@ async def update(
self,
entity_id: str,
*,
corporation: entity_update_params.Corporation | NotGiven = NOT_GIVEN,
government_authority: entity_update_params.GovernmentAuthority | NotGiven = NOT_GIVEN,
natural_person: entity_update_params.NaturalPerson | NotGiven = NOT_GIVEN,
risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN,
third_party_verification: entity_update_params.ThirdPartyVerification | NotGiven = NOT_GIVEN,
trust: entity_update_params.Trust | 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 @@ -828,12 +848,20 @@ async def update(
Args:
entity_id: The entity identifier.

corporation: Details of the corporation entity to update.

government_authority: Details of the government authority entity to update.

natural_person: Details of the natural person entity to 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.

trust: Details of the trust entity to update.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -850,8 +878,12 @@ async def update(
f"/entities/{entity_id}",
body=await async_maybe_transform(
{
"corporation": corporation,
"government_authority": government_authority,
"natural_person": natural_person,
"risk_rating": risk_rating,
"third_party_verification": third_party_verification,
"trust": trust,
},
entity_update_params.EntityUpdateParams,
),
Expand Down
42 changes: 41 additions & 1 deletion src/increase/types/entity_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,27 @@

from .._utils import PropertyInfo

__all__ = ["EntityUpdateParams", "RiskRating", "ThirdPartyVerification"]
__all__ = [
"EntityUpdateParams",
"Corporation",
"GovernmentAuthority",
"NaturalPerson",
"RiskRating",
"ThirdPartyVerification",
"Trust",
]


class EntityUpdateParams(TypedDict, total=False):
corporation: Corporation
"""Details of the corporation entity to update."""

government_authority: GovernmentAuthority
"""Details of the government authority entity to update."""

natural_person: NaturalPerson
"""Details of the natural person entity to update."""

risk_rating: RiskRating
"""
An assessment of the entity’s potential risk of involvement in financial crimes,
Expand All @@ -24,6 +41,24 @@ class EntityUpdateParams(TypedDict, total=False):
Your integration may or may not use this field.
"""

trust: Trust
"""Details of the trust entity to update."""


class Corporation(TypedDict, total=False):
name: str
"""The legal name of the corporation."""


class GovernmentAuthority(TypedDict, total=False):
name: str
"""The legal name of the government authority."""


class NaturalPerson(TypedDict, total=False):
name: str
"""The legal name of the natural person."""


class RiskRating(TypedDict, total=False):
rated_at: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
Expand Down Expand Up @@ -52,3 +87,8 @@ class ThirdPartyVerification(TypedDict, total=False):
- `middesk` - Middesk. See https://middesk.com for more information.
- `oscilar` - Oscilar. See https://oscilar.com for more information.
"""


class Trust(TypedDict, total=False):
name: str
"""The legal name of the trust."""
8 changes: 8 additions & 0 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ def test_method_update(self, client: Increase) -> None:
def test_method_update_with_all_params(self, client: Increase) -> None:
entity = client.entities.update(
entity_id="entity_n8y8tnk2p9339ti393yi",
corporation={"name": "x"},
government_authority={"name": "x"},
natural_person={"name": "x"},
risk_rating={
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
Expand All @@ -355,6 +358,7 @@ def test_method_update_with_all_params(self, client: Increase) -> None:
"reference": "x",
"vendor": "alloy",
},
trust={"name": "x"},
)
assert_matches_type(Entity, entity, path=["response"])

Expand Down Expand Up @@ -1232,6 +1236,9 @@ async def test_method_update(self, async_client: AsyncIncrease) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncIncrease) -> None:
entity = await async_client.entities.update(
entity_id="entity_n8y8tnk2p9339ti393yi",
corporation={"name": "x"},
government_authority={"name": "x"},
natural_person={"name": "x"},
risk_rating={
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
Expand All @@ -1240,6 +1247,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease)
"reference": "x",
"vendor": "alloy",
},
trust={"name": "x"},
)
assert_matches_type(Entity, entity, path=["response"])

Expand Down