88
99import 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
1712from .._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
1813from .._utils import maybe_transform , async_maybe_transform
1914from .._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
430375class 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
826721class 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
850742class 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
874763class 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
898784class 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- )
0 commit comments