Skip to content

Commit 4160169

Browse files
feat(api): Remove deprecated beneficial owner entities field
1 parent 8301127 commit 4160169

12 files changed

Lines changed: 11 additions & 270 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 184
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b29a4bd5ca21348ef426162cbd1fa21070f695572626e4e6faabfa14af38f0b0.yml
3-
openapi_spec_hash: e7c285d6b7006d040ecb50a9d0d2fc17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-df289940d26615072a7c5c9dd4d32b9bc7a86d977642b377c58abbe7a4cb93d0.yml
3+
openapi_spec_hash: 836bb078df7ac5f8d2dd5081c2e833be
44
config_hash: fb5070d41fcabdedbc084b83964b592a

src/lithic/resources/account_holders/account_holders.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def create(
7979
nature_of_business: str,
8080
tos_timestamp: str,
8181
workflow: Literal["KYB_BASIC", "KYB_BYO"],
82-
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
8382
external_id: str | Omit = omit,
8483
kyb_passed_timestamp: str | Omit = omit,
8584
naics_code: str | Omit = omit,
@@ -130,8 +129,6 @@ def create(
130129
131130
workflow: Specifies the type of KYB workflow to run.
132131
133-
beneficial_owner_entities: Deprecated.
134-
135132
external_id: A user provided id that can be used to link an account holder with an external
136133
system
137134
@@ -381,7 +378,6 @@ def create(
381378
| Literal["KYC_BASIC", "KYC_BYO"]
382379
| Literal["KYC_EXEMPT"]
383380
| Omit = omit,
384-
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
385381
external_id: str | Omit = omit,
386382
kyb_passed_timestamp: str | Omit = omit,
387383
naics_code: str | Omit = omit,
@@ -414,7 +410,6 @@ def create(
414410
"nature_of_business": nature_of_business,
415411
"tos_timestamp": tos_timestamp,
416412
"workflow": workflow,
417-
"beneficial_owner_entities": beneficial_owner_entities,
418413
"external_id": external_id,
419414
"kyb_passed_timestamp": kyb_passed_timestamp,
420415
"naics_code": naics_code,
@@ -478,8 +473,6 @@ def update(
478473
self,
479474
account_holder_token: str,
480475
*,
481-
beneficial_owner_entities: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerEntity]
482-
| Omit = omit,
483476
beneficial_owner_individuals: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerIndividual]
484477
| Omit = omit,
485478
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
@@ -508,8 +501,6 @@ def update(
508501
the program that the calling API key manages.
509502
510503
Args:
511-
beneficial_owner_entities: Deprecated.
512-
513504
beneficial_owner_individuals: You must submit a list of all direct and indirect individuals with 25% or more
514505
ownership in the company. A maximum of 4 beneficial owners can be submitted. If
515506
no individual owns 25% of the company you do not need to send beneficial owner
@@ -658,8 +649,6 @@ def update(
658649
self,
659650
account_holder_token: str,
660651
*,
661-
beneficial_owner_entities: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerEntity]
662-
| Omit = omit,
663652
beneficial_owner_individuals: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerIndividual]
664653
| Omit = omit,
665654
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
@@ -693,7 +682,6 @@ def update(
693682
f"/v1/account_holders/{account_holder_token}",
694683
body=maybe_transform(
695684
{
696-
"beneficial_owner_entities": beneficial_owner_entities,
697685
"beneficial_owner_individuals": beneficial_owner_individuals,
698686
"business_entity": business_entity,
699687
"control_person": control_person,
@@ -1169,7 +1157,6 @@ async def create(
11691157
nature_of_business: str,
11701158
tos_timestamp: str,
11711159
workflow: Literal["KYB_BASIC", "KYB_BYO"],
1172-
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
11731160
external_id: str | Omit = omit,
11741161
kyb_passed_timestamp: str | Omit = omit,
11751162
naics_code: str | Omit = omit,
@@ -1220,8 +1207,6 @@ async def create(
12201207
12211208
workflow: Specifies the type of KYB workflow to run.
12221209
1223-
beneficial_owner_entities: Deprecated.
1224-
12251210
external_id: A user provided id that can be used to link an account holder with an external
12261211
system
12271212
@@ -1471,7 +1456,6 @@ async def create(
14711456
| Literal["KYC_BASIC", "KYC_BYO"]
14721457
| Literal["KYC_EXEMPT"]
14731458
| Omit = omit,
1474-
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
14751459
external_id: str | Omit = omit,
14761460
kyb_passed_timestamp: str | Omit = omit,
14771461
naics_code: str | Omit = omit,
@@ -1504,7 +1488,6 @@ async def create(
15041488
"nature_of_business": nature_of_business,
15051489
"tos_timestamp": tos_timestamp,
15061490
"workflow": workflow,
1507-
"beneficial_owner_entities": beneficial_owner_entities,
15081491
"external_id": external_id,
15091492
"kyb_passed_timestamp": kyb_passed_timestamp,
15101493
"naics_code": naics_code,
@@ -1568,8 +1551,6 @@ async def update(
15681551
self,
15691552
account_holder_token: str,
15701553
*,
1571-
beneficial_owner_entities: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerEntity]
1572-
| Omit = omit,
15731554
beneficial_owner_individuals: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerIndividual]
15741555
| Omit = omit,
15751556
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
@@ -1598,8 +1579,6 @@ async def update(
15981579
the program that the calling API key manages.
15991580
16001581
Args:
1601-
beneficial_owner_entities: Deprecated.
1602-
16031582
beneficial_owner_individuals: You must submit a list of all direct and indirect individuals with 25% or more
16041583
ownership in the company. A maximum of 4 beneficial owners can be submitted. If
16051584
no individual owns 25% of the company you do not need to send beneficial owner
@@ -1748,8 +1727,6 @@ async def update(
17481727
self,
17491728
account_holder_token: str,
17501729
*,
1751-
beneficial_owner_entities: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerEntity]
1752-
| Omit = omit,
17531730
beneficial_owner_individuals: Iterable[account_holder_update_params.KYBPatchRequestBeneficialOwnerIndividual]
17541731
| Omit = omit,
17551732
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
@@ -1783,7 +1760,6 @@ async def update(
17831760
f"/v1/account_holders/{account_holder_token}",
17841761
body=await async_maybe_transform(
17851762
{
1786-
"beneficial_owner_entities": beneficial_owner_entities,
17871763
"beneficial_owner_individuals": beneficial_owner_individuals,
17881764
"business_entity": business_entity,
17891765
"control_person": control_person,

src/lithic/resources/account_holders/entities.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def create(
6060
timeout: float | httpx.Timeout | None | NotGiven = not_given,
6161
) -> EntityCreateResponse:
6262
"""
63-
Create a new beneficial owner or replace the control person entity on an
64-
existing KYB account holder. This endpoint is only applicable for account
63+
Create a new beneficial owner individual or replace the control person entity on
64+
an existing KYB account holder. This endpoint is only applicable for account
6565
holders enrolled through a KYB workflow with the Persona KYB provider. A new
6666
control person can only replace the existing one. A maximum of 4 beneficial
6767
owners can be associated with an account holder.
@@ -133,10 +133,10 @@ def delete(
133133
extra_body: Body | None = None,
134134
timeout: float | httpx.Timeout | None | NotGiven = not_given,
135135
) -> AccountHolderEntity:
136-
"""Deactivate a beneficial owner entity on an existing KYB account holder.
136+
"""Deactivate a beneficial owner individual on an existing KYB account holder.
137137
138138
Only
139-
beneficial owner entities can be deactivated.
139+
beneficial owner individuals can be deactivated.
140140
141141
Args:
142142
extra_headers: Send extra headers
@@ -202,8 +202,8 @@ async def create(
202202
timeout: float | httpx.Timeout | None | NotGiven = not_given,
203203
) -> EntityCreateResponse:
204204
"""
205-
Create a new beneficial owner or replace the control person entity on an
206-
existing KYB account holder. This endpoint is only applicable for account
205+
Create a new beneficial owner individual or replace the control person entity on
206+
an existing KYB account holder. This endpoint is only applicable for account
207207
holders enrolled through a KYB workflow with the Persona KYB provider. A new
208208
control person can only replace the existing one. A maximum of 4 beneficial
209209
owners can be associated with an account holder.
@@ -275,10 +275,10 @@ async def delete(
275275
extra_body: Body | None = None,
276276
timeout: float | httpx.Timeout | None | NotGiven = not_given,
277277
) -> AccountHolderEntity:
278-
"""Deactivate a beneficial owner entity on an existing KYB account holder.
278+
"""Deactivate a beneficial owner individual on an existing KYB account holder.
279279
280280
Only
281-
beneficial owner entities can be deactivated.
281+
beneficial owner individuals can be deactivated.
282282
283283
Args:
284284
extra_headers: Send extra headers

src/lithic/types/account_holder.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
__all__ = [
1212
"AccountHolder",
13-
"BeneficialOwnerEntity",
1413
"BeneficialOwnerIndividual",
1514
"BusinessEntity",
1615
"ControlPerson",
@@ -19,42 +18,6 @@
1918
]
2019

2120

22-
class BeneficialOwnerEntity(BaseModel):
23-
address: Address
24-
"""
25-
Business's physical address - PO boxes, UPS drops, and FedEx drops are not
26-
acceptable; APO/FPO are acceptable.
27-
"""
28-
29-
dba_business_name: str
30-
"""
31-
Any name that the business operates under that is not its legal business name
32-
(if applicable).
33-
"""
34-
35-
entity_token: str
36-
"""Globally unique identifier for the entity."""
37-
38-
government_id: str
39-
"""Government-issued identification number.
40-
41-
US Federal Employer Identification Numbers (EIN) are currently supported,
42-
entered as full nine-digits, with or without hyphens.
43-
"""
44-
45-
legal_business_name: str
46-
"""Legal (formal) business name."""
47-
48-
phone_numbers: List[str]
49-
"""
50-
One or more of the business's phone number(s), entered as a list in E.164
51-
format.
52-
"""
53-
54-
parent_company: Optional[str] = None
55-
"""Parent company name (if applicable)."""
56-
57-
5821
class BeneficialOwnerIndividual(BaseModel):
5922
"""Information about an individual associated with an account holder.
6023
@@ -229,9 +192,6 @@ class AccountHolder(BaseModel):
229192
account_token: Optional[str] = None
230193
"""Globally unique identifier for the account."""
231194

232-
beneficial_owner_entities: Optional[List[BeneficialOwnerEntity]] = None
233-
"""Deprecated."""
234-
235195
beneficial_owner_individuals: Optional[List[BeneficialOwnerIndividual]] = None
236196
"""
237197
Only present when user_type == "BUSINESS". You must submit a list of all direct

src/lithic/types/account_holder_create_params.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"KYBBeneficialOwnerIndividual",
1515
"KYBBusinessEntity",
1616
"KYBControlPerson",
17-
"KYBBeneficialOwnerEntity",
1817
"KYBDelegated",
1918
"KYBDelegatedBusinessEntity",
2019
"KYBDelegatedBeneficialOwnerIndividual",
@@ -70,9 +69,6 @@ class KYB(TypedDict, total=False):
7069
workflow: Required[Literal["KYB_BASIC", "KYB_BYO"]]
7170
"""Specifies the type of KYB workflow to run."""
7271

73-
beneficial_owner_entities: Iterable[KYBBeneficialOwnerEntity]
74-
"""Deprecated."""
75-
7672
external_id: str
7773
"""
7874
A user provided id that can be used to link an account holder with an external
@@ -211,39 +207,6 @@ class KYBControlPerson(TypedDict, total=False):
211207
"""Individual's phone number, entered in E.164 format."""
212208

213209

214-
class KYBBeneficialOwnerEntity(TypedDict, total=False):
215-
address: Required[Address]
216-
"""
217-
Business's physical address - PO boxes, UPS drops, and FedEx drops are not
218-
acceptable; APO/FPO are acceptable.
219-
"""
220-
221-
government_id: Required[str]
222-
"""Government-issued identification number.
223-
224-
US Federal Employer Identification Numbers (EIN) are currently supported,
225-
entered as full nine-digits, with or without hyphens.
226-
"""
227-
228-
legal_business_name: Required[str]
229-
"""Legal (formal) business name."""
230-
231-
phone_numbers: Required[SequenceNotStr[str]]
232-
"""
233-
One or more of the business's phone number(s), entered as a list in E.164
234-
format.
235-
"""
236-
237-
dba_business_name: str
238-
"""
239-
Any name that the business operates under that is not its legal business name
240-
(if applicable).
241-
"""
242-
243-
parent_company: str
244-
"""Parent company name (if applicable)."""
245-
246-
247210
class KYBDelegated(TypedDict, total=False):
248211
business_entity: Required[KYBDelegatedBusinessEntity]
249212
"""Information for business for which the account is being opened."""

src/lithic/types/account_holder_simulate_enrollment_review_response.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
283283
account_token: Optional[str] = None
284284
"""Globally unique identifier for the account."""
285285

286-
beneficial_owner_entities: Optional[List[KYBBusinessEntity]] = None
287-
"""Deprecated."""
288-
289286
beneficial_owner_individuals: Optional[List[BeneficialOwnerIndividual]] = None
290287
"""Only present when user_type == "BUSINESS".
291288

src/lithic/types/account_holder_update_params.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
__all__ = [
1212
"AccountHolderUpdateParams",
1313
"KYBPatchRequest",
14-
"KYBPatchRequestBeneficialOwnerEntity",
1514
"KYBPatchRequestBeneficialOwnerIndividual",
1615
"KYBPatchRequestBusinessEntity",
1716
"KYBPatchRequestControlPerson",
@@ -22,9 +21,6 @@
2221

2322

2423
class KYBPatchRequest(TypedDict, total=False):
25-
beneficial_owner_entities: Iterable[KYBPatchRequestBeneficialOwnerEntity]
26-
"""Deprecated."""
27-
2824
beneficial_owner_individuals: Iterable[KYBPatchRequestBeneficialOwnerIndividual]
2925
"""
3026
You must submit a list of all direct and indirect individuals with 25% or more
@@ -75,42 +71,6 @@ class KYBPatchRequest(TypedDict, total=False):
7571
"""Company website URL."""
7672

7773

78-
class KYBPatchRequestBeneficialOwnerEntity(TypedDict, total=False):
79-
entity_token: Required[str]
80-
"""Globally unique identifier for an entity."""
81-
82-
address: AddressUpdateParam
83-
"""
84-
Business''s physical address - PO boxes, UPS drops, and FedEx drops are not
85-
acceptable; APO/FPO are acceptable.
86-
"""
87-
88-
dba_business_name: str
89-
"""
90-
Any name that the business operates under that is not its legal business name
91-
(if applicable).
92-
"""
93-
94-
government_id: str
95-
"""Government-issued identification number.
96-
97-
US Federal Employer Identification Numbers (EIN) are currently supported,
98-
entered as full nine-digits, with or without hyphens.
99-
"""
100-
101-
legal_business_name: str
102-
"""Legal (formal) business name."""
103-
104-
parent_company: str
105-
"""Parent company name (if applicable)."""
106-
107-
phone_numbers: SequenceNotStr[str]
108-
"""
109-
One or more of the business's phone number(s), entered as a list in E.164
110-
format.
111-
"""
112-
113-
11474
class KYBPatchRequestBeneficialOwnerIndividual(TypedDict, total=False):
11575
"""Individuals associated with a KYB application. Phone number is optional."""
11676

src/lithic/types/account_holder_update_response.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@ class KYBKYCPatchResponse(BaseModel):
286286
account_token: Optional[str] = None
287287
"""Globally unique identifier for the account."""
288288

289-
beneficial_owner_entities: Optional[List[KYBBusinessEntity]] = None
290-
"""Deprecated."""
291-
292289
beneficial_owner_individuals: Optional[List[KybkycPatchResponseBeneficialOwnerIndividual]] = None
293290
"""Only present when user_type == "BUSINESS".
294291

0 commit comments

Comments
 (0)