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.435.0"
".": "0.436.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4d9e8a8a1909ef7c96fe28293ab07720938ce09be84687c57e3cf95890a78205.yml
openapi_spec_hash: 4b3867a81a8429bf6ab119f910e72865
config_hash: e73b1147c039cb3d6a2c56ae5926bca8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5c95dd79214af830e2e7fb34ab05f98bde9213311d5e2d59f9a816a8e0369b85.yml
openapi_spec_hash: ec66c2961a8b90e06ea57f934d8d75db
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.436.0 (2026-03-12)

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

### Features

* **api:** api update ([910abf5](https://github.com/Increase/increase-python/commit/910abf5ad3122dceeed4114fb355bb4864275522))
* **api:** api update ([39c3fac](https://github.com/Increase/increase-python/commit/39c3faca288ac586ef500a6e2fb1615c156dfdb4))

## 0.435.0 (2026-03-12)

Full Changelog: [v0.434.0...v0.435.0](https://github.com/Increase/increase-python/compare/v0.434.0...v0.435.0)
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ Methods:
- <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}/create_beneficial_owner">client.entities.<a href="./src/increase/resources/entities.py">create_beneficial_owner</a>(entity_id, \*\*<a href="src/increase/types/entity_create_beneficial_owner_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>

# BeneficialOwners

Expand All @@ -513,6 +512,7 @@ from increase.types import EntityBeneficialOwner

Methods:

- <code title="post /entity_beneficial_owners">client.beneficial_owners.<a href="./src/increase/resources/beneficial_owners.py">create</a>(\*\*<a href="src/increase/types/beneficial_owner_create_params.py">params</a>) -> <a href="./src/increase/types/entity_beneficial_owner.py">EntityBeneficialOwner</a></code>
- <code title="get /entity_beneficial_owners/{entity_beneficial_owner_id}">client.beneficial_owners.<a href="./src/increase/resources/beneficial_owners.py">retrieve</a>(entity_beneficial_owner_id) -> <a href="./src/increase/types/entity_beneficial_owner.py">EntityBeneficialOwner</a></code>
- <code title="patch /entity_beneficial_owners/{entity_beneficial_owner_id}">client.beneficial_owners.<a href="./src/increase/resources/beneficial_owners.py">update</a>(entity_beneficial_owner_id, \*\*<a href="src/increase/types/beneficial_owner_update_params.py">params</a>) -> <a href="./src/increase/types/entity_beneficial_owner.py">EntityBeneficialOwner</a></code>
- <code title="get /entity_beneficial_owners">client.beneficial_owners.<a href="./src/increase/resources/beneficial_owners.py">list</a>(\*\*<a href="src/increase/types/beneficial_owner_list_params.py">params</a>) -> <a href="./src/increase/types/entity_beneficial_owner.py">SyncPage[EntityBeneficialOwner]</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.435.0"
version = "0.436.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.435.0" # x-release-please-version
__version__ = "0.436.0" # x-release-please-version
137 changes: 136 additions & 1 deletion src/increase/resources/beneficial_owners.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

from __future__ import annotations

from typing import List
from typing_extensions import Literal

import httpx

from ..types import beneficial_owner_list_params, beneficial_owner_update_params
from ..types import beneficial_owner_list_params, beneficial_owner_create_params, beneficial_owner_update_params
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
Expand Down Expand Up @@ -42,6 +45,66 @@ def with_streaming_response(self) -> BeneficialOwnersResourceWithStreamingRespon
"""
return BeneficialOwnersResourceWithStreamingResponse(self)

def create(
self,
*,
entity_id: str,
individual: beneficial_owner_create_params.Individual,
prongs: List[Literal["ownership", "control"]],
company_title: str | Omit = omit,
# 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,
) -> EntityBeneficialOwner:
"""
Create a beneficial owner

Args:
entity_id: The identifier of the Entity to associate with the new Beneficial Owner.

individual: Personal details for the beneficial owner.

prongs: Why this person is considered a beneficial owner of the entity. At least one
option is required, if a person is both a control person and owner, submit an
array containing both.

company_title: This person's role or title within the entity.

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",
body=maybe_transform(
{
"entity_id": entity_id,
"individual": individual,
"prongs": prongs,
"company_title": company_title,
},
beneficial_owner_create_params.BeneficialOwnerCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=EntityBeneficialOwner,
)

def retrieve(
self,
entity_beneficial_owner_id: str,
Expand Down Expand Up @@ -273,6 +336,66 @@ def with_streaming_response(self) -> AsyncBeneficialOwnersResourceWithStreamingR
"""
return AsyncBeneficialOwnersResourceWithStreamingResponse(self)

async def create(
self,
*,
entity_id: str,
individual: beneficial_owner_create_params.Individual,
prongs: List[Literal["ownership", "control"]],
company_title: str | Omit = omit,
# 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,
) -> EntityBeneficialOwner:
"""
Create a beneficial owner

Args:
entity_id: The identifier of the Entity to associate with the new Beneficial Owner.

individual: Personal details for the beneficial owner.

prongs: Why this person is considered a beneficial owner of the entity. At least one
option is required, if a person is both a control person and owner, submit an
array containing both.

company_title: This person's role or title within the entity.

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",
body=await async_maybe_transform(
{
"entity_id": entity_id,
"individual": individual,
"prongs": prongs,
"company_title": company_title,
},
beneficial_owner_create_params.BeneficialOwnerCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=EntityBeneficialOwner,
)

async def retrieve(
self,
entity_beneficial_owner_id: str,
Expand Down Expand Up @@ -488,6 +611,9 @@ class BeneficialOwnersResourceWithRawResponse:
def __init__(self, beneficial_owners: BeneficialOwnersResource) -> None:
self._beneficial_owners = beneficial_owners

self.create = to_raw_response_wrapper(
beneficial_owners.create,
)
self.retrieve = to_raw_response_wrapper(
beneficial_owners.retrieve,
)
Expand All @@ -506,6 +632,9 @@ class AsyncBeneficialOwnersResourceWithRawResponse:
def __init__(self, beneficial_owners: AsyncBeneficialOwnersResource) -> None:
self._beneficial_owners = beneficial_owners

self.create = async_to_raw_response_wrapper(
beneficial_owners.create,
)
self.retrieve = async_to_raw_response_wrapper(
beneficial_owners.retrieve,
)
Expand All @@ -524,6 +653,9 @@ class BeneficialOwnersResourceWithStreamingResponse:
def __init__(self, beneficial_owners: BeneficialOwnersResource) -> None:
self._beneficial_owners = beneficial_owners

self.create = to_streamed_response_wrapper(
beneficial_owners.create,
)
self.retrieve = to_streamed_response_wrapper(
beneficial_owners.retrieve,
)
Expand All @@ -542,6 +674,9 @@ class AsyncBeneficialOwnersResourceWithStreamingResponse:
def __init__(self, beneficial_owners: AsyncBeneficialOwnersResource) -> None:
self._beneficial_owners = beneficial_owners

self.create = async_to_streamed_response_wrapper(
beneficial_owners.create,
)
self.retrieve = async_to_streamed_response_wrapper(
beneficial_owners.retrieve,
)
Expand Down
Loading