diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6c352130..a7fe876e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.459.0" + ".": "0.460.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5d64e13d..8ba24b69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 236 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e2a6ff4685a5e09babcce1fb8bac1f373d707d5b5aa82aae375d923de890e56e.yml -openapi_spec_hash: 244249a4dfb6c746c161a704764d7630 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml +openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3 config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e diff --git a/CHANGELOG.md b/CHANGELOG.md index 6072e356..759f0910 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.460.0 (2026-03-25) + +Full Changelog: [v0.459.0...v0.460.0](https://github.com/Increase/increase-python/compare/v0.459.0...v0.460.0) + +### Features + +* **api:** api update ([8babe89](https://github.com/Increase/increase-python/commit/8babe89cc8bdaed71e65e85b4c999d0794e969f7)) + ## 0.459.0 (2026-03-25) Full Changelog: [v0.458.0...v0.459.0](https://github.com/Increase/increase-python/compare/v0.458.0...v0.459.0) diff --git a/pyproject.toml b/pyproject.toml index 83dbd02f..3521b928 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.459.0" +version = "0.460.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 6fa6ea1a..f93ef344 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.459.0" # x-release-please-version +__version__ = "0.460.0" # x-release-please-version diff --git a/src/increase/types/entity.py b/src/increase/types/entity.py index 56e4feb6..2d731254 100644 --- a/src/increase/types/entity.py +++ b/src/increase/types/entity.py @@ -52,8 +52,11 @@ class CorporationAddress(BaseModel): """The corporation's address.""" - 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.""" @@ -61,14 +64,14 @@ class CorporationAddress(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 CorporationBeneficialOwnerIndividualAddress(BaseModel): @@ -244,8 +247,11 @@ def __getattr__(self, attr: str) -> object: ... class GovernmentAuthorityAddress(BaseModel): """The government authority's address.""" - 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.""" @@ -253,14 +259,14 @@ class GovernmentAuthorityAddress(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 GovernmentAuthorityAuthorizedPerson(BaseModel): @@ -305,8 +311,11 @@ class GovernmentAuthority(BaseModel): class JointIndividualAddress(BaseModel): """The person's address.""" - 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.""" @@ -314,14 +323,14 @@ class JointIndividualAddress(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 JointIndividualIdentification(BaseModel): @@ -389,8 +398,11 @@ class Joint(BaseModel): class NaturalPersonAddress(BaseModel): """The person's address.""" - 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.""" @@ -398,14 +410,14 @@ class NaturalPersonAddress(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 NaturalPersonIdentification(BaseModel): @@ -518,8 +530,11 @@ class ThirdPartyVerification(BaseModel): class TrustAddress(BaseModel): """The trust's address.""" - 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.""" @@ -527,21 +542,24 @@ class TrustAddress(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 TrustGrantorAddress(BaseModel): """The person's address.""" - 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.""" @@ -549,14 +567,14 @@ class TrustGrantorAddress(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 TrustGrantorIdentification(BaseModel): @@ -613,8 +631,11 @@ class TrustGrantor(BaseModel): class TrustTrusteeIndividualAddress(BaseModel): """The person's address.""" - 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.""" @@ -622,14 +643,14 @@ class TrustTrusteeIndividualAddress(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 TrustTrusteeIndividualIdentification(BaseModel): diff --git a/src/increase/types/entity_create_params.py b/src/increase/types/entity_create_params.py index 5bf41a20..055e0bb2 100644 --- a/src/increase/types/entity_create_params.py +++ b/src/increase/types/entity_create_params.py @@ -134,22 +134,25 @@ class CorporationAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class CorporationBeneficialOwnerIndividualAddress(TypedDict, total=False): @@ -496,22 +499,25 @@ class JointIndividualAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class JointIndividualIdentificationDriversLicense(TypedDict, total=False): @@ -669,22 +675,25 @@ class NaturalPersonAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class NaturalPersonIdentificationDriversLicense(TypedDict, total=False): @@ -920,22 +929,25 @@ class TrustTrusteeIndividualAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class TrustTrusteeIndividualIdentificationDriversLicense(TypedDict, total=False): @@ -1103,22 +1115,25 @@ class TrustGrantorAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class TrustGrantorIdentificationDriversLicense(TypedDict, total=False): diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index 38ebb27f..73338c28 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -80,22 +80,25 @@ class CorporationAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class Corporation(TypedDict, total=False): @@ -185,22 +188,25 @@ class NaturalPersonAddress(TypedDict, total=False): """ city: Required[str] - """The city of the address.""" + """The city, district, town, or village 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] + 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 state of - the address. + The two-letter United States Postal Service (USPS) abbreviation for the US + state, province, or region of the address. Required in certain countries. """ - 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.""" + zip: str + """The ZIP or postal code of the address. Required in certain countries.""" class NaturalPerson(TypedDict, total=False): diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index a1f00ca1..4ba58df8 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -33,10 +33,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None: corporation={ "address": { "city": "New York", + "country": "x", "line1": "33 Liberty Street", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "beneficial_owners": [ { @@ -110,10 +111,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None: { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -146,10 +148,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None: natural_person={ "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -209,10 +212,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None: "individual": { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -247,10 +251,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None: "grantor": { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -359,10 +364,11 @@ def test_method_update_with_all_params(self, client: Increase) -> None: corporation={ "address": { "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "line2": "Unit 2", "state": "NY", "zip": "10045", - "line2": "Unit 2", }, "email": "dev@stainless.com", "incorporation_state": "x", @@ -384,10 +390,11 @@ def test_method_update_with_all_params(self, client: Increase) -> None: natural_person={ "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "name": "x", }, @@ -542,10 +549,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) corporation={ "address": { "city": "New York", + "country": "x", "line1": "33 Liberty Street", + "line2": "x", "state": "NY", "zip": "10045", - "line2": "x", }, "beneficial_owners": [ { @@ -619,10 +627,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -655,10 +664,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) natural_person={ "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -718,10 +728,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) "individual": { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -756,10 +767,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) "grantor": { "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "date_of_birth": parse_date("2019-12-27"), "identification": { @@ -868,10 +880,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease) corporation={ "address": { "city": "New York", + "country": "US", "line1": "33 Liberty Street", + "line2": "Unit 2", "state": "NY", "zip": "10045", - "line2": "Unit 2", }, "email": "dev@stainless.com", "incorporation_state": "x", @@ -893,10 +906,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease) natural_person={ "address": { "city": "x", + "country": "x", "line1": "x", + "line2": "x", "state": "x", "zip": "x", - "line2": "x", }, "name": "x", },