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.312.0"
".": "0.313.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fbdfb5721d0c46a176ee6d81936d2710556c39cc486c5de246cc17b0503ee408.yml
openapi_spec_hash: 66c900a94b458e5b796ac1d2a5fceb13
config_hash: 632b628b59d8f0b717153b3d8133f6cb
configured_endpoints: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1eb1b9beeffa6783ab1a53c794e87a6d6d69ef975941d6213ce9e66fcf487a82.yml
openapi_spec_hash: 246b178a64c9ac4a3e9332e406f6a90f
config_hash: 2a4a1945e6eefa24fa5b0590cf580fb4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.313.0 (2025-09-04)

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

### Features

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

## 0.312.0 (2025-09-04)

Full Changelog: [v0.311.0...v0.312.0](https://github.com/Increase/increase-python/compare/v0.311.0...v0.312.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ Methods:

- <code title="post /entities">client.entities.<a href="./src/increase/resources/entities.py">create</a>(\*\*<a href="src/increase/types/entity_create_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entities/{entity_id}">client.entities.<a href="./src/increase/resources/entities.py">retrieve</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="patch /entities/{entity_id}">client.entities.<a href="./src/increase/resources/entities.py">update</a>(entity_id, \*\*<a href="src/increase/types/entity_update_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entities">client.entities.<a href="./src/increase/resources/entities.py">list</a>(\*\*<a href="src/increase/types/entity_list_params.py">params</a>) -> <a href="./src/increase/types/entity.py">SyncPage[Entity]</a></code>
- <code title="post /entities/{entity_id}/archive">client.entities.<a href="./src/increase/resources/entities.py">archive</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="post /entities/{entity_id}/archive_beneficial_owner">client.entities.<a href="./src/increase/resources/entities.py">archive_beneficial_owner</a>(entity_id, \*\*<a href="src/increase/types/entity_archive_beneficial_owner_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
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.312.0"
version = "0.313.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.312.0" # x-release-please-version
__version__ = "0.313.0" # x-release-please-version
117 changes: 117 additions & 0 deletions src/increase/resources/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from ..types import (
entity_list_params,
entity_create_params,
entity_update_params,
entity_confirm_params,
entity_update_address_params,
entity_update_industry_code_params,
Expand Down Expand Up @@ -64,6 +65,7 @@ def create(
government_authority: entity_create_params.GovernmentAuthority | NotGiven = NOT_GIVEN,
joint: entity_create_params.Joint | NotGiven = NOT_GIVEN,
natural_person: entity_create_params.NaturalPerson | NotGiven = NOT_GIVEN,
risk_rating: entity_create_params.RiskRating | NotGiven = NOT_GIVEN,
supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | NotGiven = NOT_GIVEN,
third_party_verification: entity_create_params.ThirdPartyVerification | NotGiven = NOT_GIVEN,
trust: entity_create_params.Trust | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -103,6 +105,9 @@ def create(
`social_security_number` or `individual_taxpayer_identification_number`
identification methods.

risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

supplemental_documents: Additional documentation associated with the entity.

third_party_verification: A reference to data stored in a third-party verification service. Your
Expand Down Expand Up @@ -131,6 +136,7 @@ def create(
"government_authority": government_authority,
"joint": joint,
"natural_person": natural_person,
"risk_rating": risk_rating,
"supplemental_documents": supplemental_documents,
"third_party_verification": third_party_verification,
"trust": trust,
Expand Down Expand Up @@ -182,6 +188,53 @@ def retrieve(
cast_to=Entity,
)

def update(
self,
entity_id: str,
*,
risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update an Entity

Args:
entity_id: The entity identifier.

risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not entity_id:
raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}")
return self._patch(
f"/entities/{entity_id}",
body=maybe_transform({"risk_rating": risk_rating}, entity_update_params.EntityUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Entity,
)

def list(
self,
*,
Expand Down Expand Up @@ -622,6 +675,7 @@ async def create(
government_authority: entity_create_params.GovernmentAuthority | NotGiven = NOT_GIVEN,
joint: entity_create_params.Joint | NotGiven = NOT_GIVEN,
natural_person: entity_create_params.NaturalPerson | NotGiven = NOT_GIVEN,
risk_rating: entity_create_params.RiskRating | NotGiven = NOT_GIVEN,
supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | NotGiven = NOT_GIVEN,
third_party_verification: entity_create_params.ThirdPartyVerification | NotGiven = NOT_GIVEN,
trust: entity_create_params.Trust | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -661,6 +715,9 @@ async def create(
`social_security_number` or `individual_taxpayer_identification_number`
identification methods.

risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

supplemental_documents: Additional documentation associated with the entity.

third_party_verification: A reference to data stored in a third-party verification service. Your
Expand Down Expand Up @@ -689,6 +746,7 @@ async def create(
"government_authority": government_authority,
"joint": joint,
"natural_person": natural_person,
"risk_rating": risk_rating,
"supplemental_documents": supplemental_documents,
"third_party_verification": third_party_verification,
"trust": trust,
Expand Down Expand Up @@ -740,6 +798,53 @@ async def retrieve(
cast_to=Entity,
)

async def update(
self,
entity_id: str,
*,
risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update an Entity

Args:
entity_id: The entity identifier.

risk_rating: An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not entity_id:
raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}")
return await self._patch(
f"/entities/{entity_id}",
body=await async_maybe_transform({"risk_rating": risk_rating}, entity_update_params.EntityUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Entity,
)

def list(
self,
*,
Expand Down Expand Up @@ -1163,6 +1268,9 @@ def __init__(self, entities: EntitiesResource) -> None:
self.retrieve = to_raw_response_wrapper(
entities.retrieve,
)
self.update = to_raw_response_wrapper(
entities.update,
)
self.list = to_raw_response_wrapper(
entities.list,
)
Expand Down Expand Up @@ -1199,6 +1307,9 @@ def __init__(self, entities: AsyncEntitiesResource) -> None:
self.retrieve = async_to_raw_response_wrapper(
entities.retrieve,
)
self.update = async_to_raw_response_wrapper(
entities.update,
)
self.list = async_to_raw_response_wrapper(
entities.list,
)
Expand Down Expand Up @@ -1235,6 +1346,9 @@ def __init__(self, entities: EntitiesResource) -> None:
self.retrieve = to_streamed_response_wrapper(
entities.retrieve,
)
self.update = to_streamed_response_wrapper(
entities.update,
)
self.list = to_streamed_response_wrapper(
entities.list,
)
Expand Down Expand Up @@ -1271,6 +1385,9 @@ def __init__(self, entities: AsyncEntitiesResource) -> None:
self.retrieve = async_to_streamed_response_wrapper(
entities.retrieve,
)
self.update = async_to_streamed_response_wrapper(
entities.update,
)
self.list = async_to_streamed_response_wrapper(
entities.list,
)
Expand Down
1 change: 1 addition & 0 deletions src/increase/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
from .digital_wallet_token import DigitalWalletToken as DigitalWalletToken
from .document_list_params import DocumentListParams as DocumentListParams
from .entity_create_params import EntityCreateParams as EntityCreateParams
from .entity_update_params import EntityUpdateParams as EntityUpdateParams
from .export_create_params import ExportCreateParams as ExportCreateParams
from .inbound_ach_transfer import InboundACHTransfer as InboundACHTransfer
from .account_create_params import AccountCreateParams as AccountCreateParams
Expand Down
23 changes: 23 additions & 0 deletions src/increase/types/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"NaturalPerson",
"NaturalPersonAddress",
"NaturalPersonIdentification",
"RiskRating",
"ThirdPartyVerification",
"Trust",
"TrustAddress",
Expand Down Expand Up @@ -340,6 +341,22 @@ class NaturalPerson(BaseModel):
"""The person's legal name."""


class RiskRating(BaseModel):
rated_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
rating was performed.
"""

rating: Literal["low", "medium", "high"]
"""The rating given to this entity.

- `low` - Low
- `medium` - Medium
- `high` - High
"""


class ThirdPartyVerification(BaseModel):
reference: str
"""The reference identifier for the third party verification."""
Expand Down Expand Up @@ -581,6 +598,12 @@ class Entity(BaseModel):
Will be present if `structure` is equal to `natural_person`.
"""

risk_rating: Optional[RiskRating] = None
"""
An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.
"""

status: Literal["active", "archived", "disabled"]
"""The status of the entity.

Expand Down
25 changes: 24 additions & 1 deletion src/increase/types/entity_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

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

from .._utils import PropertyInfo
Expand Down Expand Up @@ -35,6 +35,7 @@
"NaturalPersonIdentificationDriversLicense",
"NaturalPersonIdentificationOther",
"NaturalPersonIdentificationPassport",
"RiskRating",
"SupplementalDocument",
"ThirdPartyVerification",
"Trust",
Expand Down Expand Up @@ -95,6 +96,12 @@ class EntityCreateParams(TypedDict, total=False):
`individual_taxpayer_identification_number` identification methods.
"""

risk_rating: RiskRating
"""
An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.
"""

supplemental_documents: Iterable[SupplementalDocument]
"""Additional documentation associated with the entity."""

Expand Down Expand Up @@ -683,6 +690,22 @@ class NaturalPerson(TypedDict, total=False):
"""


class RiskRating(TypedDict, total=False):
rated_at: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
rating was performed.
"""

rating: Required[Literal["low", "medium", "high"]]
"""The rating given to this entity.

- `low` - Low
- `medium` - Medium
- `high` - High
"""


class SupplementalDocument(TypedDict, total=False):
file_id: Required[str]
"""The identifier of the File containing the document."""
Expand Down
35 changes: 35 additions & 0 deletions src/increase/types/entity_update_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

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

from .._utils import PropertyInfo

__all__ = ["EntityUpdateParams", "RiskRating"]


class EntityUpdateParams(TypedDict, total=False):
risk_rating: RiskRating
"""
An assessment of the entity’s potential risk of involvement in financial crimes,
such as money laundering.
"""


class RiskRating(TypedDict, total=False):
rated_at: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
rating was performed.
"""

rating: Required[Literal["low", "medium", "high"]]
"""The rating given to this entity.

- `low` - Low
- `medium` - Medium
- `high` - High
"""
Loading