diff --git a/.release-please-manifest.json b/.release-please-manifest.json index da7827268..f93c4039e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.314.0" + ".": "0.315.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7002ed35c..602fdb7cc 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bbfe0d59..41d153384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 19e2ffa34..9a86e5236 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index e3e87f63c..ea05acb79 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.314.0" # x-release-please-version +__version__ = "0.315.0" # x-release-please-version diff --git a/src/increase/resources/entities.py b/src/increase/resources/entities.py index 042ce7d92..ebb7f995d 100644 --- a/src/increase/resources/entities.py +++ b/src/increase/resources/entities.py @@ -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, @@ -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 @@ -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, ), @@ -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, @@ -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 @@ -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, ), diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index d1a36e8c3..e3d6416b5 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -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, @@ -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")]] @@ -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.""" diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index 99dd4cabd..936a045a8 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -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", @@ -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"]) @@ -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", @@ -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"])