From e9ea245f0ec9b1a39d532129c9980411eb02107f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 21:59:50 +0000 Subject: [PATCH 1/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d0cc572f2..f6dba556b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-980332df3fb6b765fea4323999ffdf03b0617292e11fb251d4c1cb7bfd669527.yml -openapi_spec_hash: a5853d13470a12038e0a6c5cb069d611 +openapi_spec_hash: 5557d7055e45f48cd8c15cdd36ca723f config_hash: 20a463ecd33bd32b7b9bc6f4990907ac From b11ea455802c37e858d61b0d334761563f83a10d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 00:25:36 +0000 Subject: [PATCH 2/6] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f6dba556b..62d58d63a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-980332df3fb6b765fea4323999ffdf03b0617292e11fb251d4c1cb7bfd669527.yml -openapi_spec_hash: 5557d7055e45f48cd8c15cdd36ca723f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5f7812edf7cc2702ee2c51eb2bc3bfa559603ab56425fa168273525992de3d2b.yml +openapi_spec_hash: 27bfac0b00197a65304846eda0acbf20 config_hash: 20a463ecd33bd32b7b9bc6f4990907ac From 6b8b6a3b0036f7b6a6e299724a77b82ca4297eb0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 00:26:32 +0000 Subject: [PATCH 3/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 62d58d63a..fce62660b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5f7812edf7cc2702ee2c51eb2bc3bfa559603ab56425fa168273525992de3d2b.yml openapi_spec_hash: 27bfac0b00197a65304846eda0acbf20 -config_hash: 20a463ecd33bd32b7b9bc6f4990907ac +config_hash: f0e682a0f84ccfd3863baa243059a0a1 From 75b9f2549895f2b2cd8731a202819e8cd0d5a570 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 00:33:28 +0000 Subject: [PATCH 4/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index fce62660b..62d58d63a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5f7812edf7cc2702ee2c51eb2bc3bfa559603ab56425fa168273525992de3d2b.yml openapi_spec_hash: 27bfac0b00197a65304846eda0acbf20 -config_hash: f0e682a0f84ccfd3863baa243059a0a1 +config_hash: 20a463ecd33bd32b7b9bc6f4990907ac From 9f0c913712be03be4d2a14a8636a8060b84411f4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 14:47:19 +0000 Subject: [PATCH 5/6] feat(api): api update (#1064) --- .stats.yml | 4 +- src/increase/types/entity.py | 17 ++-- .../entity_create_beneficial_owner_params.py | 24 +++-- src/increase/types/entity_create_params.py | 24 +++-- ..._update_beneficial_owner_address_params.py | 24 +++-- tests/api_resources/test_entities.py | 94 +++++++------------ 6 files changed, 91 insertions(+), 96 deletions(-) diff --git a/.stats.yml b/.stats.yml index 62d58d63a..208e661be 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5f7812edf7cc2702ee2c51eb2bc3bfa559603ab56425fa168273525992de3d2b.yml -openapi_spec_hash: 27bfac0b00197a65304846eda0acbf20 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-dbfb4cc4f72a4a3d1f957a3f02cda743d386896e85293e0cb3f2ce0c70af2ae5.yml +openapi_spec_hash: e8943405e5f69ae7d23a305a5c449fad config_hash: 20a463ecd33bd32b7b9bc6f4990907ac diff --git a/src/increase/types/entity.py b/src/increase/types/entity.py index c9289fa41..fe6cd5b0b 100644 --- a/src/increase/types/entity.py +++ b/src/increase/types/entity.py @@ -59,8 +59,11 @@ class CorporationAddress(BaseModel): class CorporationBeneficialOwnerIndividualAddress(BaseModel): - city: str - """The city of the address.""" + city: Optional[str] = None + """The city, district, town, or village of the address.""" + + country: str + """The two-letter ISO 3166-1 alpha-2 code for the country of the address.""" line1: str """The first line of the address.""" @@ -68,14 +71,14 @@ class CorporationBeneficialOwnerIndividualAddress(BaseModel): line2: Optional[str] = None """The second line of the address.""" - state: str + state: Optional[str] = None """ - The two-letter United States Postal Service (USPS) abbreviation for the state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. """ - zip: str - """The ZIP code of the address.""" + zip: Optional[str] = None + """The ZIP or postal code of the address.""" class CorporationBeneficialOwnerIndividualIdentification(BaseModel): diff --git a/src/increase/types/entity_create_beneficial_owner_params.py b/src/increase/types/entity_create_beneficial_owner_params.py index 7c95dc04b..4735ba3d8 100644 --- a/src/increase/types/entity_create_beneficial_owner_params.py +++ b/src/increase/types/entity_create_beneficial_owner_params.py @@ -29,24 +29,30 @@ class EntityCreateBeneficialOwnerParams(TypedDict, total=False): class BeneficialOwnerIndividualAddress(TypedDict, total=False): - city: Required[str] - """The city of the address.""" + country: Required[str] + """The two-letter ISO 3166-1 alpha-2 code for the country 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. - """ + city: str + """The city, district, town, or village of the address. - zip: Required[str] - """The ZIP code of the address.""" + Required in certain countries. + """ line2: str """The second line of the address. This might be the floor or room number.""" + state: str + """ + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. + """ + + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" + class BeneficialOwnerIndividualIdentificationDriversLicense(TypedDict, total=False): expiration_date: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] diff --git a/src/increase/types/entity_create_params.py b/src/increase/types/entity_create_params.py index e6d7a5823..7d3d6d52b 100644 --- a/src/increase/types/entity_create_params.py +++ b/src/increase/types/entity_create_params.py @@ -132,24 +132,30 @@ class CorporationAddress(TypedDict, total=False): class CorporationBeneficialOwnerIndividualAddress(TypedDict, total=False): - city: Required[str] - """The city of the address.""" + country: Required[str] + """The two-letter ISO 3166-1 alpha-2 code for the country 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. - """ + city: str + """The city, district, town, or village of the address. - zip: Required[str] - """The ZIP code of the address.""" + Required in certain countries. + """ line2: str """The second line of the address. This might be the floor or room number.""" + state: str + """ + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. + """ + + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" + class CorporationBeneficialOwnerIndividualIdentificationDriversLicense(TypedDict, total=False): expiration_date: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] diff --git a/src/increase/types/entity_update_beneficial_owner_address_params.py b/src/increase/types/entity_update_beneficial_owner_address_params.py index 862389978..8024488fa 100644 --- a/src/increase/types/entity_update_beneficial_owner_address_params.py +++ b/src/increase/types/entity_update_beneficial_owner_address_params.py @@ -22,20 +22,26 @@ class EntityUpdateBeneficialOwnerAddressParams(TypedDict, total=False): class Address(TypedDict, total=False): - city: Required[str] - """The city of the address.""" + country: Required[str] + """The two-letter ISO 3166-1 alpha-2 code for the country 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. - """ + city: str + """The city, district, town, or village of the address. - zip: Required[str] - """The ZIP code of the address.""" + Required in certain countries. + """ line2: str """The second line of the address. This might be the floor or room number.""" + + state: str + """ + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. + """ + + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index 2ddeb653b..4836e1994 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -44,11 +44,12 @@ def test_method_create_with_all_params(self, client: Increase) -> None: { "individual": { "address": { - "city": "New York", + "country": "x", "line1": "33 Liberty Street", + "city": "New York", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -505,10 +506,8 @@ def test_method_create_beneficial_owner(self, client: Increase) -> None: beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -529,11 +528,12 @@ def test_method_create_beneficial_owner_with_all_params(self, client: Increase) beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "city": "New York", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -574,10 +574,8 @@ def test_raw_response_create_beneficial_owner(self, client: Increase) -> None: beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -602,10 +600,8 @@ def test_streaming_response_create_beneficial_owner(self, client: Increase) -> N beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -633,10 +629,8 @@ def test_path_params_create_beneficial_owner(self, client: Increase) -> None: beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -730,10 +724,8 @@ def test_method_update_beneficial_owner_address(self, client: Increase) -> None: entity = client.entities.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -744,11 +736,12 @@ def test_method_update_beneficial_owner_address_with_all_params(self, client: In entity = client.entities.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "city": "New York", + "line2": "Unit 2", "state": "NY", "zip": "10045", - "line2": "Unit 2", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -759,10 +752,8 @@ def test_raw_response_update_beneficial_owner_address(self, client: Increase) -> response = client.entities.with_raw_response.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -777,10 +768,8 @@ def test_streaming_response_update_beneficial_owner_address(self, client: Increa with client.entities.with_streaming_response.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) as response: @@ -798,10 +787,8 @@ def test_path_params_update_beneficial_owner_address(self, client: Increase) -> client.entities.with_raw_response.update_beneficial_owner_address( entity_id="", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -875,11 +862,12 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) { "individual": { "address": { - "city": "New York", + "country": "x", "line1": "33 Liberty Street", + "city": "New York", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1336,10 +1324,8 @@ async def test_method_create_beneficial_owner(self, async_client: AsyncIncrease) beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1360,11 +1346,12 @@ async def test_method_create_beneficial_owner_with_all_params(self, async_client beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "city": "New York", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1405,10 +1392,8 @@ async def test_raw_response_create_beneficial_owner(self, async_client: AsyncInc beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1433,10 +1418,8 @@ async def test_streaming_response_create_beneficial_owner(self, async_client: As beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1464,10 +1447,8 @@ async def test_path_params_create_beneficial_owner(self, async_client: AsyncIncr beneficial_owner={ "individual": { "address": { - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, "date_of_birth": parse_date("1970-01-31"), "identification": { @@ -1561,10 +1542,8 @@ async def test_method_update_beneficial_owner_address(self, async_client: AsyncI entity = await async_client.entities.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -1575,11 +1554,12 @@ async def test_method_update_beneficial_owner_address_with_all_params(self, asyn entity = await async_client.entities.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "city": "New York", + "line2": "Unit 2", "state": "NY", "zip": "10045", - "line2": "Unit 2", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -1590,10 +1570,8 @@ async def test_raw_response_update_beneficial_owner_address(self, async_client: response = await async_client.entities.with_raw_response.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) @@ -1608,10 +1586,8 @@ async def test_streaming_response_update_beneficial_owner_address(self, async_cl async with async_client.entities.with_streaming_response.update_beneficial_owner_address( entity_id="entity_n8y8tnk2p9339ti393yi", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) as response: @@ -1629,10 +1605,8 @@ async def test_path_params_update_beneficial_owner_address(self, async_client: A await async_client.entities.with_raw_response.update_beneficial_owner_address( entity_id="", address={ - "city": "New York", + "country": "US", "line1": "33 Liberty Street", - "state": "NY", - "zip": "10045", }, beneficial_owner_id="entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7", ) From 7a9d8301639ea157b267998e25afadcbf6783116 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 14:47:47 +0000 Subject: [PATCH 6/6] release: 0.216.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 948485aec..345dc1229 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.215.0" + ".": "0.216.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c7f0fc977..abe3a7b25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.216.0 (2025-04-01) + +Full Changelog: [v0.215.0...v0.216.0](https://github.com/Increase/increase-python/compare/v0.215.0...v0.216.0) + +### Features + +* **api:** api update ([#1064](https://github.com/Increase/increase-python/issues/1064)) ([9f0c913](https://github.com/Increase/increase-python/commit/9f0c913712be03be4d2a14a8636a8060b84411f4)) + ## 0.215.0 (2025-03-31) Full Changelog: [v0.214.0...v0.215.0](https://github.com/Increase/increase-python/compare/v0.214.0...v0.215.0) diff --git a/pyproject.toml b/pyproject.toml index a9550f29a..011ef4b61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.215.0" +version = "0.216.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 61e76c2ea..ed3f7a7b4 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.215.0" # x-release-please-version +__version__ = "0.216.0" # x-release-please-version