Skip to content

Commit a7135fb

Browse files
feat(api): Add naics_code to account holder requests/responses
1 parent 5658dcc commit a7135fb

11 files changed

Lines changed: 103 additions & 8 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ce2adff9b644ed4562b5342a4a43d0b40c98d43b4e063b4626f4ca5d342f1b92.yml
3-
openapi_spec_hash: fbc84b866ce96457261ac58b4e75c71d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-05d665e9c7e81d85c0d6629bf3898e2eb221268d677b772ef3da3891b25d8346.yml
3+
openapi_spec_hash: fd8900412ab9a393719dba3669d44d3a
44
config_hash: faacaff68ffb3a4d051f0a7b8442e099

src/lithic/resources/account_holders.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def create(
7070
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
7171
external_id: str | Omit = omit,
7272
kyb_passed_timestamp: str | Omit = omit,
73+
naics_code: str | Omit = omit,
7374
website_url: str | Omit = omit,
7475
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7576
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -127,6 +128,9 @@ def create(
127128
128129
This field is required only if workflow type is `KYB_BYO`.
129130
131+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
132+
business.
133+
130134
website_url: Company website URL.
131135
132136
extra_headers: Send extra headers
@@ -148,6 +152,7 @@ def create(
148152
| Omit = omit,
149153
control_person: account_holder_create_params.KYBDelegatedControlPerson | Omit = omit,
150154
external_id: str | Omit = omit,
155+
naics_code: str | Omit = omit,
151156
nature_of_business: str | Omit = omit,
152157
tos_timestamp: str | Omit = omit,
153158
website_url: str | Omit = omit,
@@ -191,6 +196,9 @@ def create(
191196
external_id: A user provided id that can be used to link an account holder with an external
192197
system
193198
199+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
200+
business.
201+
194202
nature_of_business: Short description of the company's line of business (i.e., what does the company
195203
do?).
196204
@@ -364,6 +372,7 @@ def create(
364372
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
365373
external_id: str | Omit = omit,
366374
kyb_passed_timestamp: str | Omit = omit,
375+
naics_code: str | Omit = omit,
367376
website_url: str | Omit = omit,
368377
individual: account_holder_create_params.KYCIndividual | Omit = omit,
369378
kyc_passed_timestamp: str | Omit = omit,
@@ -396,6 +405,7 @@ def create(
396405
"beneficial_owner_entities": beneficial_owner_entities,
397406
"external_id": external_id,
398407
"kyb_passed_timestamp": kyb_passed_timestamp,
408+
"naics_code": naics_code,
399409
"website_url": website_url,
400410
"individual": individual,
401411
"kyc_passed_timestamp": kyc_passed_timestamp,
@@ -463,6 +473,7 @@ def update(
463473
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
464474
control_person: account_holder_update_params.KYBPatchRequestControlPerson | Omit = omit,
465475
external_id: str | Omit = omit,
476+
naics_code: str | Omit = omit,
466477
nature_of_business: str | Omit = omit,
467478
website_url: str | Omit = omit,
468479
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -509,6 +520,9 @@ def update(
509520
external_id: A user provided id that can be used to link an account holder with an external
510521
system
511522
523+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
524+
business.
525+
512526
nature_of_business: Short description of the company's line of business (i.e., what does the company
513527
do?).
514528
@@ -639,6 +653,7 @@ def update(
639653
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
640654
control_person: account_holder_update_params.KYBPatchRequestControlPerson | Omit = omit,
641655
external_id: str | Omit = omit,
656+
naics_code: str | Omit = omit,
642657
nature_of_business: str | Omit = omit,
643658
website_url: str | Omit = omit,
644659
individual: account_holder_update_params.KYCPatchRequestIndividual | Omit = omit,
@@ -671,6 +686,7 @@ def update(
671686
"business_entity": business_entity,
672687
"control_person": control_person,
673688
"external_id": external_id,
689+
"naics_code": naics_code,
674690
"nature_of_business": nature_of_business,
675691
"website_url": website_url,
676692
"individual": individual,
@@ -1140,6 +1156,7 @@ async def create(
11401156
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
11411157
external_id: str | Omit = omit,
11421158
kyb_passed_timestamp: str | Omit = omit,
1159+
naics_code: str | Omit = omit,
11431160
website_url: str | Omit = omit,
11441161
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11451162
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1197,6 +1214,9 @@ async def create(
11971214
11981215
This field is required only if workflow type is `KYB_BYO`.
11991216
1217+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
1218+
business.
1219+
12001220
website_url: Company website URL.
12011221
12021222
extra_headers: Send extra headers
@@ -1218,6 +1238,7 @@ async def create(
12181238
| Omit = omit,
12191239
control_person: account_holder_create_params.KYBDelegatedControlPerson | Omit = omit,
12201240
external_id: str | Omit = omit,
1241+
naics_code: str | Omit = omit,
12211242
nature_of_business: str | Omit = omit,
12221243
tos_timestamp: str | Omit = omit,
12231244
website_url: str | Omit = omit,
@@ -1261,6 +1282,9 @@ async def create(
12611282
external_id: A user provided id that can be used to link an account holder with an external
12621283
system
12631284
1285+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
1286+
business.
1287+
12641288
nature_of_business: Short description of the company's line of business (i.e., what does the company
12651289
do?).
12661290
@@ -1434,6 +1458,7 @@ async def create(
14341458
beneficial_owner_entities: Iterable[account_holder_create_params.KYBBeneficialOwnerEntity] | Omit = omit,
14351459
external_id: str | Omit = omit,
14361460
kyb_passed_timestamp: str | Omit = omit,
1461+
naics_code: str | Omit = omit,
14371462
website_url: str | Omit = omit,
14381463
individual: account_holder_create_params.KYCIndividual | Omit = omit,
14391464
kyc_passed_timestamp: str | Omit = omit,
@@ -1466,6 +1491,7 @@ async def create(
14661491
"beneficial_owner_entities": beneficial_owner_entities,
14671492
"external_id": external_id,
14681493
"kyb_passed_timestamp": kyb_passed_timestamp,
1494+
"naics_code": naics_code,
14691495
"website_url": website_url,
14701496
"individual": individual,
14711497
"kyc_passed_timestamp": kyc_passed_timestamp,
@@ -1533,6 +1559,7 @@ async def update(
15331559
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
15341560
control_person: account_holder_update_params.KYBPatchRequestControlPerson | Omit = omit,
15351561
external_id: str | Omit = omit,
1562+
naics_code: str | Omit = omit,
15361563
nature_of_business: str | Omit = omit,
15371564
website_url: str | Omit = omit,
15381565
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1579,6 +1606,9 @@ async def update(
15791606
external_id: A user provided id that can be used to link an account holder with an external
15801607
system
15811608
1609+
naics_code: 6-digit North American Industry Classification System (NAICS) code for the
1610+
business.
1611+
15821612
nature_of_business: Short description of the company's line of business (i.e., what does the company
15831613
do?).
15841614
@@ -1709,6 +1739,7 @@ async def update(
17091739
business_entity: account_holder_update_params.KYBPatchRequestBusinessEntity | Omit = omit,
17101740
control_person: account_holder_update_params.KYBPatchRequestControlPerson | Omit = omit,
17111741
external_id: str | Omit = omit,
1742+
naics_code: str | Omit = omit,
17121743
nature_of_business: str | Omit = omit,
17131744
website_url: str | Omit = omit,
17141745
individual: account_holder_update_params.KYCPatchRequestIndividual | Omit = omit,
@@ -1741,6 +1772,7 @@ async def update(
17411772
"business_entity": business_entity,
17421773
"control_person": control_person,
17431774
"external_id": external_id,
1775+
"naics_code": naics_code,
17441776
"nature_of_business": nature_of_business,
17451777
"website_url": website_url,
17461778
"individual": individual,

src/lithic/types/account_holder.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ class AccountHolder(BaseModel):
290290
is being run.
291291
"""
292292

293+
naics_code: Optional[str] = None
294+
"""Only present when user_type == "BUSINESS".
295+
296+
6-digit North American Industry Classification System (NAICS) code for the
297+
business.
298+
"""
299+
293300
nature_of_business: Optional[str] = None
294301
"""Only present when user_type == "BUSINESS".
295302
@@ -347,8 +354,8 @@ class AccountHolder(BaseModel):
347354
348355
If the type is "INDIVIDUAL", the "individual" attribute will be present. If the
349356
type is "BUSINESS" then the "business_entity", "control_person",
350-
"beneficial_owner_individuals", "nature_of_business", and "website_url"
351-
attributes will be present.
357+
"beneficial_owner_individuals", "naics_code", "nature_of_business", and
358+
"website_url" attributes will be present.
352359
"""
353360

354361
verification_application: Optional[VerificationApplication] = None

src/lithic/types/account_holder_create_params.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ class KYB(TypedDict, total=False):
8787
This field is required only if workflow type is `KYB_BYO`.
8888
"""
8989

90+
naics_code: str
91+
"""
92+
6-digit North American Industry Classification System (NAICS) code for the
93+
business.
94+
"""
95+
9096
website_url: str
9197
"""Company website URL."""
9298

@@ -270,6 +276,12 @@ class KYBDelegated(TypedDict, total=False):
270276
system
271277
"""
272278

279+
naics_code: str
280+
"""
281+
6-digit North American Industry Classification System (NAICS) code for the
282+
business.
283+
"""
284+
273285
nature_of_business: str
274286
"""
275287
Short description of the company's line of business (i.e., what does the company

src/lithic/types/account_holder_simulate_enrollment_review_response.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
355355
is being run.
356356
"""
357357

358+
naics_code: Optional[str] = None
359+
"""Only present when user_type == "BUSINESS".
360+
361+
6-digit North American Industry Classification System (NAICS) code for the
362+
business.
363+
"""
364+
358365
nature_of_business: Optional[str] = None
359366
"""Only present when user_type == "BUSINESS".
360367
@@ -425,8 +432,8 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
425432
If the type is "INDIVIDUAL", the "individual" attribute will be present.
426433
427434
If the type is "BUSINESS" then the "business_entity", "control_person",
428-
"beneficial_owner_individuals", "nature_of_business", and "website_url"
429-
attributes will be present.
435+
"beneficial_owner_individuals", "naics_code", "nature_of_business", and
436+
"website_url" attributes will be present.
430437
"""
431438

432439
verification_application: Optional[VerificationApplication] = None

src/lithic/types/account_holder_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ class KYBPatchRequest(TypedDict, total=False):
5959
system
6060
"""
6161

62+
naics_code: str
63+
"""
64+
6-digit North American Industry Classification System (NAICS) code for the
65+
business.
66+
"""
67+
6268
nature_of_business: str
6369
"""
6470
Short description of the company's line of business (i.e., what does the company

src/lithic/types/account_holder_update_response.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,13 @@ class KYBKYCPatchResponse(BaseModel):
358358
is being run.
359359
"""
360360

361+
naics_code: Optional[str] = None
362+
"""Only present when user_type == "BUSINESS".
363+
364+
6-digit North American Industry Classification System (NAICS) code for the
365+
business.
366+
"""
367+
361368
nature_of_business: Optional[str] = None
362369
"""Only present when user_type == "BUSINESS".
363370
@@ -428,8 +435,8 @@ class KYBKYCPatchResponse(BaseModel):
428435
If the type is "INDIVIDUAL", the "individual" attribute will be present.
429436
430437
If the type is "BUSINESS" then the "business_entity", "control_person",
431-
"beneficial_owner_individuals", "nature_of_business", and "website_url"
432-
attributes will be present.
438+
"beneficial_owner_individuals", "naics_code", "nature_of_business", and
439+
"website_url" attributes will be present.
433440
"""
434441

435442
verification_application: Optional[KYBKYCPatchResponseVerificationApplication] = None

src/lithic/types/account_holder_updated_webhook_event.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ class KYBPayload(BaseModel):
206206
system
207207
"""
208208

209+
naics_code: Optional[str] = None
210+
"""
211+
6-digit North American Industry Classification System (NAICS) code for the
212+
business. Only present if naics_code was included in the update request.
213+
"""
214+
209215
nature_of_business: Optional[str] = None
210216
"""
211217
Short description of the company's line of business (i.e., what does the company

src/lithic/types/kyb_param.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,11 @@ class KYBParam(TypedDict, total=False):
220220
This field is required only if workflow type is `KYB_BYO`.
221221
"""
222222

223+
naics_code: str
224+
"""
225+
6-digit North American Industry Classification System (NAICS) code for the
226+
business.
227+
"""
228+
223229
website_url: str
224230
"""Company website URL."""

src/lithic/types/parsed_webhook_event.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ class KYBPayload(BaseModel):
271271
system
272272
"""
273273

274+
naics_code: Optional[str] = None
275+
"""
276+
6-digit North American Industry Classification System (NAICS) code for the
277+
business. Only present if naics_code was included in the update request.
278+
"""
279+
274280
nature_of_business: Optional[str] = None
275281
"""
276282
Short description of the company's line of business (i.e., what does the company

0 commit comments

Comments
 (0)