Skip to content

Commit 910abf5

Browse files
feat(api): api update
1 parent 39c3fac commit 910abf5

File tree

6 files changed

+6
-640
lines changed

6 files changed

+6
-640
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 237
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2c11248a841117464c3d87ee8069761f8fdf1a235557bbc885bcfa13de4107c4.yml
3-
openapi_spec_hash: 6bcd6b02eaff96080fc9f57fd5942502
4-
config_hash: 81fdd83e44056d1f623e280bc106245d
1+
configured_endpoints: 236
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5c95dd79214af830e2e7fb34ab05f98bde9213311d5e2d59f9a816a8e0369b85.yml
3+
openapi_spec_hash: ec66c2961a8b90e06ea57f934d8d75db
4+
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ Methods:
501501
- <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>
502502
- <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>
503503
- <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>
504-
- <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>
505504

506505
# BeneficialOwners
507506

src/increase/resources/entities.py

Lines changed: 1 addition & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88

99
import httpx
1010

11-
from ..types import (
12-
entity_list_params,
13-
entity_create_params,
14-
entity_update_params,
15-
entity_create_beneficial_owner_params,
16-
)
11+
from ..types import entity_list_params, entity_create_params, entity_update_params
1712
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
1813
from .._utils import maybe_transform, async_maybe_transform
1914
from .._compat import cached_property
@@ -376,56 +371,6 @@ def archive(
376371
cast_to=Entity,
377372
)
378373

379-
def create_beneficial_owner(
380-
self,
381-
entity_id: str,
382-
*,
383-
beneficial_owner: entity_create_beneficial_owner_params.BeneficialOwner,
384-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385-
# The extra values given here take precedence over values defined on the client or passed to this method.
386-
extra_headers: Headers | None = None,
387-
extra_query: Query | None = None,
388-
extra_body: Body | None = None,
389-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
390-
idempotency_key: str | None = None,
391-
) -> Entity:
392-
"""
393-
Create a beneficial owner for a corporate Entity
394-
395-
Args:
396-
entity_id: The identifier of the Entity to associate with the new Beneficial Owner.
397-
398-
beneficial_owner: The identifying details of anyone controlling or owning 25% or more of the
399-
corporation.
400-
401-
extra_headers: Send extra headers
402-
403-
extra_query: Add additional query parameters to the request
404-
405-
extra_body: Add additional JSON properties to the request
406-
407-
timeout: Override the client-level default timeout for this request, in seconds
408-
409-
idempotency_key: Specify a custom idempotency key for this request
410-
"""
411-
if not entity_id:
412-
raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}")
413-
return self._post(
414-
f"/entities/{entity_id}/create_beneficial_owner",
415-
body=maybe_transform(
416-
{"beneficial_owner": beneficial_owner},
417-
entity_create_beneficial_owner_params.EntityCreateBeneficialOwnerParams,
418-
),
419-
options=make_request_options(
420-
extra_headers=extra_headers,
421-
extra_query=extra_query,
422-
extra_body=extra_body,
423-
timeout=timeout,
424-
idempotency_key=idempotency_key,
425-
),
426-
cast_to=Entity,
427-
)
428-
429374

430375
class AsyncEntitiesResource(AsyncAPIResource):
431376
@cached_property
@@ -772,56 +717,6 @@ async def archive(
772717
cast_to=Entity,
773718
)
774719

775-
async def create_beneficial_owner(
776-
self,
777-
entity_id: str,
778-
*,
779-
beneficial_owner: entity_create_beneficial_owner_params.BeneficialOwner,
780-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
781-
# The extra values given here take precedence over values defined on the client or passed to this method.
782-
extra_headers: Headers | None = None,
783-
extra_query: Query | None = None,
784-
extra_body: Body | None = None,
785-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
786-
idempotency_key: str | None = None,
787-
) -> Entity:
788-
"""
789-
Create a beneficial owner for a corporate Entity
790-
791-
Args:
792-
entity_id: The identifier of the Entity to associate with the new Beneficial Owner.
793-
794-
beneficial_owner: The identifying details of anyone controlling or owning 25% or more of the
795-
corporation.
796-
797-
extra_headers: Send extra headers
798-
799-
extra_query: Add additional query parameters to the request
800-
801-
extra_body: Add additional JSON properties to the request
802-
803-
timeout: Override the client-level default timeout for this request, in seconds
804-
805-
idempotency_key: Specify a custom idempotency key for this request
806-
"""
807-
if not entity_id:
808-
raise ValueError(f"Expected a non-empty value for `entity_id` but received {entity_id!r}")
809-
return await self._post(
810-
f"/entities/{entity_id}/create_beneficial_owner",
811-
body=await async_maybe_transform(
812-
{"beneficial_owner": beneficial_owner},
813-
entity_create_beneficial_owner_params.EntityCreateBeneficialOwnerParams,
814-
),
815-
options=make_request_options(
816-
extra_headers=extra_headers,
817-
extra_query=extra_query,
818-
extra_body=extra_body,
819-
timeout=timeout,
820-
idempotency_key=idempotency_key,
821-
),
822-
cast_to=Entity,
823-
)
824-
825720

826721
class EntitiesResourceWithRawResponse:
827722
def __init__(self, entities: EntitiesResource) -> None:
@@ -842,9 +737,6 @@ def __init__(self, entities: EntitiesResource) -> None:
842737
self.archive = to_raw_response_wrapper(
843738
entities.archive,
844739
)
845-
self.create_beneficial_owner = to_raw_response_wrapper(
846-
entities.create_beneficial_owner,
847-
)
848740

849741

850742
class AsyncEntitiesResourceWithRawResponse:
@@ -866,9 +758,6 @@ def __init__(self, entities: AsyncEntitiesResource) -> None:
866758
self.archive = async_to_raw_response_wrapper(
867759
entities.archive,
868760
)
869-
self.create_beneficial_owner = async_to_raw_response_wrapper(
870-
entities.create_beneficial_owner,
871-
)
872761

873762

874763
class EntitiesResourceWithStreamingResponse:
@@ -890,9 +779,6 @@ def __init__(self, entities: EntitiesResource) -> None:
890779
self.archive = to_streamed_response_wrapper(
891780
entities.archive,
892781
)
893-
self.create_beneficial_owner = to_streamed_response_wrapper(
894-
entities.create_beneficial_owner,
895-
)
896782

897783

898784
class AsyncEntitiesResourceWithStreamingResponse:
@@ -914,6 +800,3 @@ def __init__(self, entities: AsyncEntitiesResource) -> None:
914800
self.archive = async_to_streamed_response_wrapper(
915801
entities.archive,
916802
)
917-
self.create_beneficial_owner = async_to_streamed_response_wrapper(
918-
entities.create_beneficial_owner,
919-
)

src/increase/types/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@
168168
from .wire_drawdown_request_create_params import WireDrawdownRequestCreateParams as WireDrawdownRequestCreateParams
169169
from .card_purchase_supplement_list_params import CardPurchaseSupplementListParams as CardPurchaseSupplementListParams
170170
from .inbound_wire_transfer_reverse_params import InboundWireTransferReverseParams as InboundWireTransferReverseParams
171-
from .entity_create_beneficial_owner_params import (
172-
EntityCreateBeneficialOwnerParams as EntityCreateBeneficialOwnerParams,
173-
)
174171
from .intrafi_account_enrollment_list_params import (
175172
IntrafiAccountEnrollmentListParams as IntrafiAccountEnrollmentListParams,
176173
)

0 commit comments

Comments
 (0)