Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.458.0"
".": "0.459.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d31504be6985a7ded14abd0da36f4272e585f43332b4b844a6950c98ddcd525.yml
openapi_spec_hash: f1a49121780ec8b6678b864ac9b1deca
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e2a6ff4685a5e09babcce1fb8bac1f373d707d5b5aa82aae375d923de890e56e.yml
openapi_spec_hash: 244249a4dfb6c746c161a704764d7630
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 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)

### Features

* **api:** api update ([f10571d](https://github.com/Increase/increase-python/commit/f10571da366b91b68dc1ee41eb8da52ef236ce79))

## 0.458.0 (2026-03-24)

Full Changelog: [v0.457.0...v0.458.0](https://github.com/Increase/increase-python/compare/v0.457.0...v0.458.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.458.0"
version = "0.459.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "increase"
__version__ = "0.458.0" # x-release-please-version
__version__ = "0.459.0" # x-release-please-version
35 changes: 32 additions & 3 deletions src/increase/types/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"CorporationBeneficialOwnerIndividual",
"CorporationBeneficialOwnerIndividualAddress",
"CorporationBeneficialOwnerIndividualIdentification",
"CorporationLegalIdentifier",
"GovernmentAuthority",
"GovernmentAuthorityAddress",
"GovernmentAuthorityAuthorizedPerson",
Expand Down Expand Up @@ -172,6 +173,22 @@ def __getattr__(self, attr: str) -> object: ...
__pydantic_extra__: Dict[str, object]


class CorporationLegalIdentifier(BaseModel):
"""The legal identifier of the corporation."""

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.
"""

value: str
"""The identifier of the legal identifier."""


class Corporation(BaseModel):
"""Details of the corporation entity.

Expand Down Expand Up @@ -202,15 +219,27 @@ class Corporation(BaseModel):
for the corporation.
"""

legal_identifier: Optional[CorporationLegalIdentifier] = None
"""The legal identifier of the corporation."""

name: str
"""The legal name of the corporation."""

tax_identifier: Optional[str] = None
"""The Employer Identification Number (EIN) for the corporation."""

website: Optional[str] = None
"""The website of the corporation."""

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class GovernmentAuthorityAddress(BaseModel):
"""The government authority's address."""
Expand Down
33 changes: 29 additions & 4 deletions src/increase/types/entity_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"CorporationBeneficialOwnerIndividualIdentificationDriversLicense",
"CorporationBeneficialOwnerIndividualIdentificationOther",
"CorporationBeneficialOwnerIndividualIdentificationPassport",
"CorporationLegalIdentifier",
"GovernmentAuthority",
"GovernmentAuthorityAddress",
"GovernmentAuthorityAuthorizedPerson",
Expand Down Expand Up @@ -334,7 +335,28 @@ class CorporationBeneficialOwner(TypedDict, total=False, extra_items=object): #
"""This person's role or title within the entity."""


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 legal identifier."""

category: Literal["us_employer_identification_number", "other"]
"""The category of the legal identifier.

If not provided, the default is `us_employer_identification_number`.

- `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 create.

Required if `structure` is equal to `corporation`.
Expand All @@ -353,12 +375,15 @@ class Corporation(TypedDict, total=False):
between 1 and 5 people to this list.
"""

legal_identifier: Required[CorporationLegalIdentifier]
"""The legal identifier of the corporation.

This is usually the Employer Identification Number (EIN).
"""

name: Required[str]
"""The legal name of the corporation."""

tax_identifier: Required[str]
"""The Employer Identification Number (EIN) for the corporation."""

beneficial_ownership_exemption_reason: Literal[
"regulated_financial_institution", "publicly_traded_company", "public_entity", "other"
]
Expand Down
10 changes: 8 additions & 2 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
"company_title": "CEO",
}
],
"legal_identifier": {
"value": "602214076",
"category": "us_employer_identification_number",
},
"name": "National Phonograph Company",
"tax_identifier": "602214076",
"beneficial_ownership_exemption_reason": "regulated_financial_institution",
"email": "dev@stainless.com",
"incorporation_state": "NY",
Expand Down Expand Up @@ -585,8 +588,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
"company_title": "CEO",
}
],
"legal_identifier": {
"value": "602214076",
"category": "us_employer_identification_number",
},
"name": "National Phonograph Company",
"tax_identifier": "602214076",
"beneficial_ownership_exemption_reason": "regulated_financial_institution",
"email": "dev@stainless.com",
"incorporation_state": "NY",
Expand Down