diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 561ef01a..b6f0298a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.493.0" + ".": "0.494.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a9ea792a..2715c40d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 134132af..9d19379c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 2a39b167..0bad680e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index ed1d5305..435160b5 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.493.0" # x-release-please-version +__version__ = "0.494.0" # x-release-please-version diff --git a/src/increase/resources/entities.py b/src/increase/resources/entities.py index e567b03e..c9c2a794 100644 --- a/src/increase/resources/entities.py +++ b/src/increase/resources/entities.py @@ -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. @@ -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. @@ -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, }, @@ -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. @@ -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. @@ -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, }, diff --git a/src/increase/types/entity_update_params.py b/src/increase/types/entity_update_params.py index 733b6798..635185f2 100644 --- a/src/increase/types/entity_update_params.py +++ b/src/increase/types/entity_update_params.py @@ -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 @@ -22,6 +22,7 @@ "NaturalPersonIdentificationOther", "NaturalPersonIdentificationPassport", "RiskRating", + "TermsAgreement", "ThirdPartyVerification", "Trust", "TrustAddress", @@ -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 @@ -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. diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index f71cc7da..d0990e90 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -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", @@ -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",