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.493.0"
".": "0.494.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: 241
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f32b1daeaf102b8684a511b8ccc85e6f0f570177373dfada2bbd4ebca7a9412e.yml
openapi_spec_hash: 34d241b13555cfaf70fc746e7437aed7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1f2c653a8b55e63d756d60f9110ceadb18f87a6039762b5ee31b5373bbc4499a.yml
openapi_spec_hash: a7b01c23c92b07f280117e6ba6262a7e
config_hash: cb5b8736705c06b670f6a25484622d62
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.494.0 (2026-04-20)

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

### Features

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

## 0.493.0 (2026-04-20)

Full Changelog: [v0.492.0...v0.493.0](https://github.com/Increase/increase-python/compare/v0.492.0...v0.493.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.493.0"
version = "0.494.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.493.0" # x-release-please-version
__version__ = "0.494.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/increase/resources/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def update(
government_authority: entity_update_params.GovernmentAuthority | Omit = omit,
natural_person: entity_update_params.NaturalPerson | Omit = omit,
risk_rating: entity_update_params.RiskRating | Omit = omit,
terms_agreements: Iterable[entity_update_params.TermsAgreement] | Omit = omit,
third_party_verification: entity_update_params.ThirdPartyVerification | Omit = omit,
trust: entity_update_params.Trust | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -225,6 +226,9 @@ def update(
risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

terms_agreements: New terms that the Entity agreed to. Not all programs are required to submit
this data. This will not archive previously submitted terms.

third_party_verification: If you are using a third-party service for identity verification, you can use
this field to associate this Entity with the identifier that represents them in
that service.
Expand Down Expand Up @@ -253,6 +257,7 @@ def update(
"government_authority": government_authority,
"natural_person": natural_person,
"risk_rating": risk_rating,
"terms_agreements": terms_agreements,
"third_party_verification": third_party_verification,
"trust": trust,
},
Expand Down Expand Up @@ -539,6 +544,7 @@ async def update(
government_authority: entity_update_params.GovernmentAuthority | Omit = omit,
natural_person: entity_update_params.NaturalPerson | Omit = omit,
risk_rating: entity_update_params.RiskRating | Omit = omit,
terms_agreements: Iterable[entity_update_params.TermsAgreement] | Omit = omit,
third_party_verification: entity_update_params.ThirdPartyVerification | Omit = omit,
trust: entity_update_params.Trust | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -571,6 +577,9 @@ async def update(
risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

terms_agreements: New terms that the Entity agreed to. Not all programs are required to submit
this data. This will not archive previously submitted terms.

third_party_verification: If you are using a third-party service for identity verification, you can use
this field to associate this Entity with the identifier that represents them in
that service.
Expand Down Expand Up @@ -599,6 +608,7 @@ async def update(
"government_authority": government_authority,
"natural_person": natural_person,
"risk_rating": risk_rating,
"terms_agreements": terms_agreements,
"third_party_verification": third_party_verification,
"trust": trust,
},
Expand Down
24 changes: 23 additions & 1 deletion src/increase/types/entity_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Union
from typing import Union, Iterable
from datetime import date, datetime
from typing_extensions import Literal, Required, Annotated, TypedDict

Expand All @@ -22,6 +22,7 @@
"NaturalPersonIdentificationOther",
"NaturalPersonIdentificationPassport",
"RiskRating",
"TermsAgreement",
"ThirdPartyVerification",
"Trust",
"TrustAddress",
Expand Down Expand Up @@ -63,6 +64,13 @@ class EntityUpdateParams(TypedDict, total=False):
such as money laundering.
"""

terms_agreements: Iterable[TermsAgreement]
"""New terms that the Entity agreed to.

Not all programs are required to submit this data. This will not archive
previously submitted terms.
"""

third_party_verification: ThirdPartyVerification
"""
If you are using a third-party service for identity verification, you can use
Expand Down Expand Up @@ -396,6 +404,20 @@ class RiskRating(TypedDict, total=False):
"""


class TermsAgreement(TypedDict, total=False):
agreed_at: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
"""The timestamp of when the Entity agreed to the terms."""

ip_address: Required[str]
"""The IP address the Entity accessed reviewed the terms from."""

terms_url: Required[str]
"""The URL of the terms agreement.

This link will be provided by your bank partner.
"""


class ThirdPartyVerification(TypedDict, total=False):
"""
If you are using a third-party service for identity verification, you can use this field to associate this Entity with the identifier that represents them in that service.
Expand Down
14 changes: 14 additions & 0 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,13 @@ def test_method_update_with_all_params(self, client: Increase) -> None:
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
},
terms_agreements=[
{
"agreed_at": parse_datetime("2019-12-27T18:11:19.117Z"),
"ip_address": "x",
"terms_url": "x",
}
],
third_party_verification={
"reference": "x",
"vendor": "alloy",
Expand Down Expand Up @@ -970,6 +977,13 @@ async def test_method_update_with_all_params(self, async_client: AsyncIncrease)
"rated_at": parse_datetime("2020-01-31T23:59:59Z"),
"rating": "low",
},
terms_agreements=[
{
"agreed_at": parse_datetime("2019-12-27T18:11:19.117Z"),
"ip_address": "x",
"terms_url": "x",
}
],
third_party_verification={
"reference": "x",
"vendor": "alloy",
Expand Down