diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 091bee15..d05d9de1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.461.0" + ".": "0.462.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 8ba24b69..46d00e01 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-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml -openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml +openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95 config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e diff --git a/CHANGELOG.md b/CHANGELOG.md index 56382af2..85c6f314 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.462.0 (2026-03-27) + +Full Changelog: [v0.461.0...v0.462.0](https://github.com/Increase/increase-python/compare/v0.461.0...v0.462.0) + +### Features + +* **api:** api update ([31fc17e](https://github.com/Increase/increase-python/commit/31fc17e18b73df8f4a095c27d9c4c082c92f0934)) + ## 0.461.0 (2026-03-26) Full Changelog: [v0.460.0...v0.461.0](https://github.com/Increase/increase-python/compare/v0.460.0...v0.461.0) diff --git a/pyproject.toml b/pyproject.toml index 0a3f940f..883c7551 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.461.0" +version = "0.462.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 e4e01985..538075a5 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.461.0" # x-release-please-version +__version__ = "0.462.0" # x-release-please-version diff --git a/src/increase/types/entity.py b/src/increase/types/entity.py index 2d731254..7d35c75f 100644 --- a/src/increase/types/entity.py +++ b/src/increase/types/entity.py @@ -812,7 +812,7 @@ class ValidationIssue(BaseModel): - `entity_tax_identifier` - The entity's tax identifier could not be validated. Update the tax ID with the - [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier). + [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier). - `entity_address` - The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.address). diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index 73338c28..0c261166 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -12,6 +12,7 @@ "EntityUpdateParams", "Corporation", "CorporationAddress", + "CorporationLegalIdentifier", "GovernmentAuthority", "GovernmentAuthorityAddress", "NaturalPerson", @@ -101,7 +102,26 @@ class CorporationAddress(TypedDict, total=False): """The ZIP or postal code of the address. Required in certain countries.""" -class Corporation(TypedDict, total=False): +class CorporationLegalIdentifier(TypedDict, total=False): + """The legal identifier of the corporation. + + This is usually the Employer Identification Number (EIN). + """ + + value: Required[str] + """The identifier of the legal identifier.""" + + category: Literal["us_employer_identification_number", "other"] + """The category of the legal identifier. + + - `us_employer_identification_number` - The Employer Identification Number (EIN) + for the company. The EIN is a 9-digit number assigned by the IRS. + - `other` - A legal identifier issued by a foreign government, like a tax + identification number or registration number. + """ + + +class Corporation(TypedDict, total=False, extra_items=object): # type: ignore[call-arg] """Details of the corporation entity to update. If you specify this parameter and the entity is not a corporation, the request will fail. @@ -133,12 +153,15 @@ class Corporation(TypedDict, total=False): [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes). """ + legal_identifier: CorporationLegalIdentifier + """The legal identifier of the corporation. + + This is usually the Employer Identification Number (EIN). + """ + name: str """The legal name of the corporation.""" - tax_identifier: str - """The Employer Identification Number (EIN) for the corporation.""" - class GovernmentAuthorityAddress(TypedDict, total=False): """The entity's physical address. diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index 4ba58df8..8618c9fa 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -373,8 +373,11 @@ def test_method_update_with_all_params(self, client: Increase) -> None: "email": "dev@stainless.com", "incorporation_state": "x", "industry_code": "x", + "legal_identifier": { + "value": "x", + "category": "us_employer_identification_number", + }, "name": "x", - "tax_identifier": "x", }, details_confirmed_at=parse_datetime("2019-12-27T18:11:19.117Z"), government_authority={ @@ -889,8 +892,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease) "email": "dev@stainless.com", "incorporation_state": "x", "industry_code": "x", + "legal_identifier": { + "value": "x", + "category": "us_employer_identification_number", + }, "name": "x", - "tax_identifier": "x", }, details_confirmed_at=parse_datetime("2019-12-27T18:11:19.117Z"), government_authority={