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/.stats.yml b/.stats.yml index d0cc572f2..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-980332df3fb6b765fea4323999ffdf03b0617292e11fb251d4c1cb7bfd669527.yml -openapi_spec_hash: a5853d13470a12038e0a6c5cb069d611 +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/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 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", )