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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 141
configured_endpoints: 144
3 changes: 3 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,15 @@ Methods:
- <code title="get /entities/{entity_id}">client.entities.<a href="./src/increase/resources/entities/entities.py">retrieve</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entities">client.entities.<a href="./src/increase/resources/entities/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/entities.py">archive</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="post /entities/{entity_id}/address">client.entities.<a href="./src/increase/resources/entities/entities.py">update_address</a>(entity_id, \*\*<a href="src/increase/types/entity_update_address_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>

## BeneficialOwners

Methods:

- <code title="post /entity_beneficial_owners">client.entities.beneficial_owners.<a href="./src/increase/resources/entities/beneficial_owners.py">create</a>(\*\*<a href="src/increase/types/entities/beneficial_owner_create_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="post /entity_beneficial_owners/archive">client.entities.beneficial_owners.<a href="./src/increase/resources/entities/beneficial_owners.py">archive</a>(\*\*<a href="src/increase/types/entities/beneficial_owner_archive_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="post /entity_beneficial_owners/address">client.entities.beneficial_owners.<a href="./src/increase/resources/entities/beneficial_owners.py">update_address</a>(\*\*<a href="src/increase/types/entities/beneficial_owner_update_address_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>

## SupplementalDocuments

Expand Down Expand Up @@ -414,6 +416,7 @@ Methods:
- <code title="get /inbound_ach_transfers/{inbound_ach_transfer_id}">client.inbound_ach_transfers.<a href="./src/increase/resources/inbound_ach_transfers.py">retrieve</a>(inbound_ach_transfer_id) -> <a href="./src/increase/types/inbound_ach_transfer.py">InboundACHTransfer</a></code>
- <code title="get /inbound_ach_transfers">client.inbound_ach_transfers.<a href="./src/increase/resources/inbound_ach_transfers.py">list</a>(\*\*<a href="src/increase/types/inbound_ach_transfer_list_params.py">params</a>) -> <a href="./src/increase/types/inbound_ach_transfer.py">SyncPage[InboundACHTransfer]</a></code>
- <code title="post /inbound_ach_transfers/{inbound_ach_transfer_id}/decline">client.inbound_ach_transfers.<a href="./src/increase/resources/inbound_ach_transfers.py">decline</a>(inbound_ach_transfer_id) -> <a href="./src/increase/types/inbound_ach_transfer.py">InboundACHTransfer</a></code>
- <code title="post /inbound_ach_transfers/{inbound_ach_transfer_id}/notification_of_change">client.inbound_ach_transfers.<a href="./src/increase/resources/inbound_ach_transfers.py">notification_of_change</a>(inbound_ach_transfer_id, \*\*<a href="src/increase/types/inbound_ach_transfer_notification_of_change_params.py">params</a>) -> <a href="./src/increase/types/inbound_ach_transfer.py">InboundACHTransfer</a></code>
- <code title="post /inbound_ach_transfers/{inbound_ach_transfer_id}/transfer_return">client.inbound_ach_transfers.<a href="./src/increase/resources/inbound_ach_transfers.py">transfer_return</a>(inbound_ach_transfer_id, \*\*<a href="src/increase/types/inbound_ach_transfer_transfer_return_params.py">params</a>) -> <a href="./src/increase/types/inbound_ach_transfer.py">InboundACHTransfer</a></code>

# InboundWireDrawdownRequests
Expand Down
111 changes: 111 additions & 0 deletions src/increase/resources/entities/beneficial_owners.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ...types.entities import (
beneficial_owner_create_params,
beneficial_owner_archive_params,
beneficial_owner_update_address_params,
)

__all__ = ["BeneficialOwners", "AsyncBeneficialOwners"]
Expand Down Expand Up @@ -118,6 +119,61 @@ def archive(
cast_to=Entity,
)

def update_address(
self,
*,
address: beneficial_owner_update_address_params.Address,
beneficial_owner_id: str,
entity_id: str,
# 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 | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update the address for a beneficial owner belonging to a corporate Entity

Args:
address: The individual's physical address. Post Office Boxes are disallowed.

beneficial_owner_id: The identifying details of anyone controlling or owning 25% or more of the
corporation.

entity_id: The identifier of the Entity to retrieve.

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
"""
return self._post(
"/entity_beneficial_owners/address",
body=maybe_transform(
{
"address": address,
"beneficial_owner_id": beneficial_owner_id,
"entity_id": entity_id,
},
beneficial_owner_update_address_params.BeneficialOwnerUpdateAddressParams,
),
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,
)


class AsyncBeneficialOwners(AsyncAPIResource):
async def create(
Expand Down Expand Up @@ -221,3 +277,58 @@ async def archive(
),
cast_to=Entity,
)

async def update_address(
self,
*,
address: beneficial_owner_update_address_params.Address,
beneficial_owner_id: str,
entity_id: str,
# 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 | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update the address for a beneficial owner belonging to a corporate Entity

Args:
address: The individual's physical address. Post Office Boxes are disallowed.

beneficial_owner_id: The identifying details of anyone controlling or owning 25% or more of the
corporation.

entity_id: The identifier of the Entity to retrieve.

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
"""
return await self._post(
"/entity_beneficial_owners/address",
body=maybe_transform(
{
"address": address,
"beneficial_owner_id": beneficial_owner_id,
"entity_id": entity_id,
},
beneficial_owner_update_address_params.BeneficialOwnerUpdateAddressParams,
),
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,
)
95 changes: 94 additions & 1 deletion src/increase/resources/entities/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
from typing import TYPE_CHECKING, List
from typing_extensions import Literal

from ...types import Entity, entity_list_params, entity_create_params
from ...types import (
Entity,
entity_list_params,
entity_create_params,
entity_update_address_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import maybe_transform
from ..._resource import SyncAPIResource, AsyncAPIResource
Expand Down Expand Up @@ -242,6 +247,50 @@ def archive(
cast_to=Entity,
)

def update_address(
self,
entity_id: str,
*,
address: entity_update_address_params.Address,
# 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 | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update a Natural Person or Corporation's address

Args:
entity_id: The identifier of the Entity to archive.

address: The entity's physical address. Post Office Boxes are disallowed.

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
"""
return self._post(
f"/entities/{entity_id}/address",
body=maybe_transform({"address": address}, entity_update_address_params.EntityUpdateAddressParams),
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,
)


class AsyncEntities(AsyncAPIResource):
beneficial_owners: AsyncBeneficialOwners
Expand Down Expand Up @@ -464,3 +513,47 @@ async def archive(
),
cast_to=Entity,
)

async def update_address(
self,
entity_id: str,
*,
address: entity_update_address_params.Address,
# 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 | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Entity:
"""
Update a Natural Person or Corporation's address

Args:
entity_id: The identifier of the Entity to archive.

address: The entity's physical address. Post Office Boxes are disallowed.

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
"""
return await self._post(
f"/entities/{entity_id}/address",
body=maybe_transform({"address": address}, entity_update_address_params.EntityUpdateAddressParams),
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,
)
8 changes: 8 additions & 0 deletions src/increase/resources/external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def list(
*,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
routing_number: str | NotGiven = NOT_GIVEN,
status: external_account_list_params.Status | 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.
Expand All @@ -195,6 +196,8 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

routing_number: Filter External Accounts to those with the specified Routing Number.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -215,6 +218,7 @@ def list(
{
"cursor": cursor,
"limit": limit,
"routing_number": routing_number,
"status": status,
},
external_account_list_params.ExternalAccountListParams,
Expand Down Expand Up @@ -383,6 +387,7 @@ def list(
*,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
routing_number: str | NotGiven = NOT_GIVEN,
status: external_account_list_params.Status | 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.
Expand All @@ -400,6 +405,8 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

routing_number: Filter External Accounts to those with the specified Routing Number.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -420,6 +427,7 @@ def list(
{
"cursor": cursor,
"limit": limit,
"routing_number": routing_number,
"status": status,
},
external_account_list_params.ExternalAccountListParams,
Expand Down
Loading