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.318.0"
".": "0.319.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: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-98bb100223960756975a05c102fb497e2dba7857b02bec559ebc60d6c38d78e4.yml
openapi_spec_hash: b19fcec9237b7b3394002cfb662b391f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-17c08bdd306c9bcf444a3d09db8878f633ec996cd2f091e1173742f6f3ffc5a5.yml
openapi_spec_hash: 70c131085fc22b07df6bac0f70fcf468
config_hash: e1885b38eded054b77308a024c5d80cc
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.319.0 (2025-09-08)

Full Changelog: [v0.318.0...v0.319.0](https://github.com/Increase/increase-python/compare/v0.318.0...v0.319.0)

### Features

* **api:** api update ([0922676](https://github.com/Increase/increase-python/commit/092267679cd0c8204231cf3f9c54d31bffae2bdd))

## 0.318.0 (2025-09-07)

Full Changelog: [v0.317.0...v0.318.0](https://github.com/Increase/increase-python/compare/v0.317.0...v0.318.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.318.0"
version = "0.319.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.318.0" # x-release-please-version
__version__ = "0.319.0" # x-release-please-version
108 changes: 108 additions & 0 deletions src/increase/types/entity_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
__all__ = [
"EntityUpdateParams",
"Corporation",
"CorporationAddress",
"GovernmentAuthority",
"GovernmentAuthorityAddress",
"NaturalPerson",
"NaturalPersonAddress",
"RiskRating",
"ThirdPartyVerification",
"Trust",
"TrustAddress",
]


Expand Down Expand Up @@ -61,17 +65,95 @@ class EntityUpdateParams(TypedDict, total=False):
"""


class CorporationAddress(TypedDict, total=False):
city: Required[str]
"""The city 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.
"""

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


class Corporation(TypedDict, total=False):
address: CorporationAddress
"""The entity's physical address.

Mail receiving locations like PO Boxes and PMB's are disallowed.
"""

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


class GovernmentAuthorityAddress(TypedDict, total=False):
city: Required[str]
"""The city 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.
"""

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


class GovernmentAuthority(TypedDict, total=False):
address: GovernmentAuthorityAddress
"""The entity's physical address.

Mail receiving locations like PO Boxes and PMB's are disallowed.
"""

name: str
"""The legal name of the government authority."""


class NaturalPersonAddress(TypedDict, total=False):
city: Required[str]
"""The city 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.
"""

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


class NaturalPerson(TypedDict, total=False):
address: NaturalPersonAddress
"""The entity's physical address.

Mail receiving locations like PO Boxes and PMB's are disallowed.
"""

name: str
"""The legal name of the natural person."""

Expand Down Expand Up @@ -105,6 +187,32 @@ class ThirdPartyVerification(TypedDict, total=False):
"""


class TrustAddress(TypedDict, total=False):
city: Required[str]
"""The city 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.
"""

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


class Trust(TypedDict, total=False):
address: TrustAddress
"""The entity's physical address.

Mail receiving locations like PO Boxes and PMB's are disallowed.
"""

name: str
"""The legal name of the trust."""
88 changes: 80 additions & 8 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,36 @@ def test_method_update(self, client: Increase) -> None:
def test_method_update_with_all_params(self, client: Increase) -> None:
entity = client.entities.update(
entity_id="entity_n8y8tnk2p9339ti393yi",
corporation={"name": "x"},
government_authority={"name": "x"},
natural_person={"name": "x"},
corporation={
"address": {
"city": "New York",
"line1": "33 Liberty Street",
"state": "NY",
"zip": "10045",
"line2": "Unit 2",
},
"name": "x",
},
government_authority={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
natural_person={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
risk_rating={
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
Expand All @@ -358,7 +385,16 @@ def test_method_update_with_all_params(self, client: Increase) -> None:
"reference": "x",
"vendor": "alloy",
},
trust={"name": "x"},
trust={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
)
assert_matches_type(Entity, entity, path=["response"])

Expand Down Expand Up @@ -1236,9 +1272,36 @@ async def test_method_update(self, async_client: AsyncIncrease) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncIncrease) -> None:
entity = await async_client.entities.update(
entity_id="entity_n8y8tnk2p9339ti393yi",
corporation={"name": "x"},
government_authority={"name": "x"},
natural_person={"name": "x"},
corporation={
"address": {
"city": "New York",
"line1": "33 Liberty Street",
"state": "NY",
"zip": "10045",
"line2": "Unit 2",
},
"name": "x",
},
government_authority={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
natural_person={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
risk_rating={
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
Expand All @@ -1247,7 +1310,16 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease)
"reference": "x",
"vendor": "alloy",
},
trust={"name": "x"},
trust={
"address": {
"city": "x",
"line1": "x",
"state": "x",
"zip": "x",
"line2": "x",
},
"name": "x",
},
)
assert_matches_type(Entity, entity, path=["response"])

Expand Down