From 092267679cd0c8204231cf3f9c54d31bffae2bdd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 17:35:44 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- src/increase/types/entity_update_params.py | 108 +++++++++++++++++++++ tests/api_resources/test_entities.py | 88 +++++++++++++++-- 3 files changed, 190 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 09d98d352..94d9b0a5f 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-98bb100223960756975a05c102fb497e2dba7857b02bec559ebc60d6c38d78e4.yml -openapi_spec_hash: b19fcec9237b7b3394002cfb662b391f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-17c08bdd306c9bcf444a3d09db8878f633ec996cd2f091e1173742f6f3ffc5a5.yml +openapi_spec_hash: 70c131085fc22b07df6bac0f70fcf468 config_hash: e1885b38eded054b77308a024c5d80cc diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index ef04ae33a..78cb203fc 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -11,11 +11,15 @@ __all__ = [ "EntityUpdateParams", "Corporation", + "CorporationAddress", "GovernmentAuthority", + "GovernmentAuthorityAddress", "NaturalPerson", + "NaturalPersonAddress", "RiskRating", "ThirdPartyVerification", "Trust", + "TrustAddress", ] @@ -61,17 +65,95 @@ class EntityUpdateParams(TypedDict, total=False): """ +class CorporationAddress(TypedDict, total=False): + city: Required[str] + """The city of the address.""" + + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" + + state: Required[str] + """ + The two-letter United States Postal Service (USPS) abbreviation for the state of + the address. + """ + + zip: Required[str] + """The ZIP code of the address.""" + + line2: str + """The second line of the address. This might be the floor or room number.""" + + class Corporation(TypedDict, total=False): + address: CorporationAddress + """The entity's physical address. + + Mail receiving locations like PO Boxes and PMB's are disallowed. + """ + name: str """The legal name of the corporation.""" +class GovernmentAuthorityAddress(TypedDict, total=False): + city: Required[str] + """The city of the address.""" + + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" + + state: Required[str] + """ + The two-letter United States Postal Service (USPS) abbreviation for the state of + the address. + """ + + zip: Required[str] + """The ZIP code of the address.""" + + line2: str + """The second line of the address. This might be the floor or room number.""" + + class GovernmentAuthority(TypedDict, total=False): + address: GovernmentAuthorityAddress + """The entity's physical address. + + Mail receiving locations like PO Boxes and PMB's are disallowed. + """ + name: str """The legal name of the government authority.""" +class NaturalPersonAddress(TypedDict, total=False): + city: Required[str] + """The city of the address.""" + + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" + + state: Required[str] + """ + The two-letter United States Postal Service (USPS) abbreviation for the state of + the address. + """ + + zip: Required[str] + """The ZIP code of the address.""" + + line2: str + """The second line of the address. This might be the floor or room number.""" + + class NaturalPerson(TypedDict, total=False): + address: NaturalPersonAddress + """The entity's physical address. + + Mail receiving locations like PO Boxes and PMB's are disallowed. + """ + name: str """The legal name of the natural person.""" @@ -105,6 +187,32 @@ class ThirdPartyVerification(TypedDict, total=False): """ +class TrustAddress(TypedDict, total=False): + city: Required[str] + """The city of the address.""" + + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" + + state: Required[str] + """ + The two-letter United States Postal Service (USPS) abbreviation for the state of + the address. + """ + + zip: Required[str] + """The ZIP code of the address.""" + + line2: str + """The second line of the address. This might be the floor or room number.""" + + class Trust(TypedDict, total=False): + address: TrustAddress + """The entity's physical address. + + Mail receiving locations like PO Boxes and PMB's are disallowed. + """ + 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 936a045a8..c304a3670 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -347,9 +347,36 @@ 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"}, + corporation={ + "address": { + "city": "New York", + "line1": "33 Liberty Street", + "state": "NY", + "zip": "10045", + "line2": "Unit 2", + }, + "name": "x", + }, + government_authority={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, + natural_person={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, risk_rating={ "rated_at": parse_datetime("2020-01-31T23:59:59Z"), "rating": "low", @@ -358,7 +385,16 @@ def test_method_update_with_all_params(self, client: Increase) -> None: "reference": "x", "vendor": "alloy", }, - trust={"name": "x"}, + trust={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, ) assert_matches_type(Entity, entity, path=["response"]) @@ -1236,9 +1272,36 @@ 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"}, + corporation={ + "address": { + "city": "New York", + "line1": "33 Liberty Street", + "state": "NY", + "zip": "10045", + "line2": "Unit 2", + }, + "name": "x", + }, + government_authority={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, + natural_person={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, risk_rating={ "rated_at": parse_datetime("2020-01-31T23:59:59Z"), "rating": "low", @@ -1247,7 +1310,16 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease) "reference": "x", "vendor": "alloy", }, - trust={"name": "x"}, + trust={ + "address": { + "city": "x", + "line1": "x", + "state": "x", + "zip": "x", + "line2": "x", + }, + "name": "x", + }, ) assert_matches_type(Entity, entity, path=["response"]) From 60845eb0db5143bf921707c72ec7087645c26f58 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 17:36:12 +0000 Subject: [PATCH 2/2] release: 0.319.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 bd0a4378e..ce7418761 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.318.0" + ".": "0.319.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e2a18aa40..2847772d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.319.0 (2025-09-08) + +Full Changelog: [v0.318.0...v0.319.0](https://github.com/Increase/increase-python/compare/v0.318.0...v0.319.0) + +### Features + +* **api:** api update ([0922676](https://github.com/Increase/increase-python/commit/092267679cd0c8204231cf3f9c54d31bffae2bdd)) + ## 0.318.0 (2025-09-07) Full Changelog: [v0.317.0...v0.318.0](https://github.com/Increase/increase-python/compare/v0.317.0...v0.318.0) diff --git a/pyproject.toml b/pyproject.toml index ffcc4e157..52e59d213 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.318.0" +version = "0.319.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 a495c89e4..33d8f0bd6 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.318.0" # x-release-please-version +__version__ = "0.319.0" # x-release-please-version