-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathaccount-holders.ts
3142 lines (2716 loc) · 93.9 KB
/
account-holders.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as AccountHoldersAPI from './account-holders';
import * as Shared from './shared';
import { SinglePage } from '../pagination';
export class AccountHolders extends APIResource {
/**
* Create an account holder and initiate the appropriate onboarding workflow.
* Account holders and accounts have a 1:1 relationship. When an account holder is
* successfully created an associated account is also created. All calls to this
* endpoint will return an immediate response - though in some cases, the response
* may indicate the enrollment is under review or further action will be needed to
* complete the account enrollment process. This endpoint can only be used on
* accounts that are part of the program that the calling API key manages.
*/
create(
body: AccountHolderCreateParams,
options?: Core.RequestOptions,
): Core.APIPromise<AccountHolderCreateResponse> {
return this._client.post('/v1/account_holders', {
body,
timeout: (this._client as any)._options.timeout ?? 300000,
...options,
});
}
/**
* Get an Individual or Business Account Holder and/or their KYC or KYB evaluation
* status.
*/
retrieve(accountHolderToken: string, options?: Core.RequestOptions): Core.APIPromise<AccountHolder> {
return this._client.get(`/v1/account_holders/${accountHolderToken}`, options);
}
/**
* Update the information associated with a particular account holder (including
* business owners and control persons associated to a business account). If Lithic
* is performing KYB or KYC and additional verification is required we will run the
* individual's or business's updated information again and return whether the
* status is accepted or pending (i.e., further action required). All calls to this
* endpoint will return an immediate response - though in some cases, the response
* may indicate the workflow is under review or further action will be needed to
* complete the evaluation process. This endpoint can only be used on existing
* accounts that are part of the program that the calling API key manages.
*/
update(
accountHolderToken: string,
body: AccountHolderUpdateParams,
options?: Core.RequestOptions,
): Core.APIPromise<AccountHolderUpdateResponse> {
return this._client.patch(`/v1/account_holders/${accountHolderToken}`, { body, ...options });
}
/**
* Get a list of individual or business account holders and their KYC or KYB
* evaluation status.
*/
list(
query?: AccountHolderListParams,
options?: Core.RequestOptions,
): Core.PagePromise<AccountHoldersSinglePage, AccountHolder>;
list(options?: Core.RequestOptions): Core.PagePromise<AccountHoldersSinglePage, AccountHolder>;
list(
query: AccountHolderListParams | Core.RequestOptions = {},
options?: Core.RequestOptions,
): Core.PagePromise<AccountHoldersSinglePage, AccountHolder> {
if (isRequestOptions(query)) {
return this.list({}, query);
}
return this._client.getAPIList('/v1/account_holders', AccountHoldersSinglePage, { query, ...options });
}
/**
* Retrieve the status of account holder document uploads, or retrieve the upload
* URLs to process your image uploads.
*
* Note that this is not equivalent to checking the status of the KYC evaluation
* overall (a document may be successfully uploaded but not be sufficient for KYC
* to pass).
*
* In the event your upload URLs have expired, calling this endpoint will refresh
* them. Similarly, in the event a previous account holder document upload has
* failed, you can use this endpoint to get a new upload URL for the failed image
* upload.
*
* When a new document upload is generated for a failed attempt, the response will
* show an additional entry in the `required_document_uploads` list in a `PENDING`
* state for the corresponding `image_type`.
*/
listDocuments(
accountHolderToken: string,
options?: Core.RequestOptions,
): Core.APIPromise<AccountHolderListDocumentsResponse> {
return this._client.get(`/v1/account_holders/${accountHolderToken}/documents`, options);
}
/**
* Check the status of an account holder document upload, or retrieve the upload
* URLs to process your image uploads.
*
* Note that this is not equivalent to checking the status of the KYC evaluation
* overall (a document may be successfully uploaded but not be sufficient for KYC
* to pass).
*
* In the event your upload URLs have expired, calling this endpoint will refresh
* them. Similarly, in the event a document upload has failed, you can use this
* endpoint to get a new upload URL for the failed image upload.
*
* When a new account holder document upload is generated for a failed attempt, the
* response will show an additional entry in the `required_document_uploads` array
* in a `PENDING` state for the corresponding `image_type`.
*/
retrieveDocument(
accountHolderToken: string,
documentToken: string,
options?: Core.RequestOptions,
): Core.APIPromise<Shared.Document> {
return this._client.get(`/v1/account_holders/${accountHolderToken}/documents/${documentToken}`, options);
}
/**
* Simulates a review for an account holder document upload.
*/
simulateEnrollmentDocumentReview(
body: AccountHolderSimulateEnrollmentDocumentReviewParams,
options?: Core.RequestOptions,
): Core.APIPromise<Shared.Document> {
return this._client.post('/v1/simulate/account_holders/enrollment_document_review', { body, ...options });
}
/**
* Simulates an enrollment review for an account holder. This endpoint is only
* applicable for workflows that may required intervention such as `KYB_BASIC`.
*/
simulateEnrollmentReview(
body: AccountHolderSimulateEnrollmentReviewParams,
options?: Core.RequestOptions,
): Core.APIPromise<AccountHolderSimulateEnrollmentReviewResponse> {
return this._client.post('/v1/simulate/account_holders/enrollment_review', { body, ...options });
}
/**
* Use this endpoint to identify which type of supported government-issued
* documentation you will upload for further verification. It will return two URLs
* to upload your document images to - one for the front image and one for the back
* image.
*
* This endpoint is only valid for evaluations in a `PENDING_DOCUMENT` state.
*
* Uploaded images must either be a `jpg` or `png` file, and each must be less than
* 15 MiB. Once both required uploads have been successfully completed, your
* document will be run through KYC verification.
*
* If you have registered a webhook, you will receive evaluation updates for any
* document submission evaluations, as well as for any failed document uploads.
*
* Two document submission attempts are permitted via this endpoint before a
* `REJECTED` status is returned and the account creation process is ended.
* Currently only one type of account holder document is supported per KYC
* verification.
*/
uploadDocument(
accountHolderToken: string,
body: AccountHolderUploadDocumentParams,
options?: Core.RequestOptions,
): Core.APIPromise<Shared.Document> {
return this._client.post(`/v1/account_holders/${accountHolderToken}/documents`, { body, ...options });
}
}
export class AccountHoldersSinglePage extends SinglePage<AccountHolder> {}
export interface AccountHolder {
/**
* Globally unique identifier for the account holder.
*/
token: string;
/**
* Timestamp of when the account holder was created.
*/
created: string;
/**
* Globally unique identifier for the account.
*/
account_token?: string;
/**
* Only present when user_type == "BUSINESS". List of all entities with >25%
* ownership in the company.
*/
beneficial_owner_entities?: Array<AccountHolder.BeneficialOwnerEntity>;
/**
* Only present when user_type == "BUSINESS". List of all individuals with >25%
* ownership in the company.
*/
beneficial_owner_individuals?: Array<AccountHolder.BeneficialOwnerIndividual>;
/**
* Only applicable for customers using the KYC-Exempt workflow to enroll authorized
* users of businesses. Pass the account_token of the enrolled business associated
* with the AUTHORIZED_USER in this field.
*/
business_account_token?: string;
/**
* Only present when user_type == "BUSINESS". Information about the business for
* which the account is being opened and KYB is being run.
*/
business_entity?: AccountHolder.BusinessEntity;
/**
* Only present when user_type == "BUSINESS". An individual with significant
* responsibility for managing the legal entity (e.g., a Chief Executive Officer,
* Chief Financial Officer, Chief Operating Officer, Managing Member, General
* Partner, President, Vice President, or Treasurer). This can be an executive, or
* someone who will have program-wide access to the cards that Lithic will provide.
* In some cases, this individual could also be a beneficial owner listed above.
*/
control_person?: AccountHolder.ControlPerson;
/**
* < Deprecated. Use control_person.email when user_type == "BUSINESS". Use
* individual.phone_number when user_type == "INDIVIDUAL".
*
* > Primary email of Account Holder.
*/
email?: string;
/**
* The type of KYC exemption for a KYC-Exempt Account Holder.
*/
exemption_type?: 'AUTHORIZED_USER' | 'PREPAID_CARD_USER';
/**
* Customer-provided token that indicates a relationship with an object outside of
* the Lithic ecosystem.
*/
external_id?: string;
/**
* Only present when user_type == "INDIVIDUAL". Information about the individual
* for which the account is being opened and KYC is being run.
*/
individual?: AccountHolder.Individual;
/**
* Only present when user_type == "BUSINESS". User-submitted description of the
* business.
*/
nature_of_business?: string;
/**
* < Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use
* individual.phone_number when user_type == "INDIVIDUAL".
*
* > Primary phone of Account Holder, entered in E.164 format.
*/
phone_number?: string;
/**
* Only present for "KYB_BASIC" workflow. A list of documents required for the
* account holder to be approved.
*/
required_documents?: Array<RequiredDocument>;
/**
* <Deprecated. Use verification_application.status instead>
*
* KYC and KYB evaluation states.
*
* Note:
*
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
*/
status?: 'ACCEPTED' | 'PENDING_REVIEW' | 'PENDING_DOCUMENT' | 'PENDING_RESUBMIT' | 'REJECTED';
/**
* <Deprecated. Use verification_application.status_reasons> Reason for the
* evaluation status.
*/
status_reasons?: Array<
| 'ADDRESS_VERIFICATION_FAILURE'
| 'AGE_THRESHOLD_FAILURE'
| 'COMPLETE_VERIFICATION_FAILURE'
| 'DOB_VERIFICATION_FAILURE'
| 'ID_VERIFICATION_FAILURE'
| 'MAX_DOCUMENT_ATTEMPTS'
| 'MAX_RESUBMISSION_ATTEMPTS'
| 'NAME_VERIFICATION_FAILURE'
| 'OTHER_VERIFICATION_FAILURE'
| 'RISK_THRESHOLD_FAILURE'
| 'WATCHLIST_ALERT_FAILURE'
>;
/**
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
* attribute will be present. If the type is "BUSINESS" then the "business_entity",
* "control_person", "beneficial_owner_individuals", "beneficial_owner_entities",
* "nature_of_business", and "website_url" attributes will be present.
*/
user_type?: 'BUSINESS' | 'INDIVIDUAL';
/**
* Information about the most recent identity verification attempt
*/
verification_application?: AccountHolder.VerificationApplication;
/**
* Only present when user_type == "BUSINESS". Business's primary website.
*/
website_url?: string;
}
export namespace AccountHolder {
export interface BeneficialOwnerEntity {
/**
* Business's physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
address: Shared.Address;
/**
* Any name that the business operates under that is not its legal business name
* (if applicable).
*/
dba_business_name: string;
/**
* Globally unique identifier for the entity.
*/
entity_token: string;
/**
* Government-issued identification number. US Federal Employer Identification
* Numbers (EIN) are currently supported, entered as full nine-digits, with or
* without hyphens.
*/
government_id: string;
/**
* Legal (formal) business name.
*/
legal_business_name: string;
/**
* One or more of the business's phone number(s), entered as a list in E.164
* format.
*/
phone_numbers: Array<string>;
/**
* Parent company name (if applicable).
*/
parent_company?: string;
}
/**
* Information about an individual associated with an account holder. A subset of
* the information provided via KYC. For example, we do not return the government
* id.
*/
export interface BeneficialOwnerIndividual {
/**
* Individual's current address
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**
* Individual's email address.
*/
email: string;
/**
* Globally unique identifier for the entity.
*/
entity_token: string;
/**
* Individual's first name, as it appears on government-issued identity documents.
*/
first_name: string;
/**
* Individual's last name, as it appears on government-issued identity documents.
*/
last_name: string;
/**
* Individual's phone number, entered in E.164 format.
*/
phone_number: string;
}
/**
* Only present when user_type == "BUSINESS". Information about the business for
* which the account is being opened and KYB is being run.
*/
export interface BusinessEntity {
/**
* Business's physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
address: Shared.Address;
/**
* Any name that the business operates under that is not its legal business name
* (if applicable).
*/
dba_business_name: string;
/**
* Globally unique identifier for the entity.
*/
entity_token: string;
/**
* Government-issued identification number. US Federal Employer Identification
* Numbers (EIN) are currently supported, entered as full nine-digits, with or
* without hyphens.
*/
government_id: string;
/**
* Legal (formal) business name.
*/
legal_business_name: string;
/**
* One or more of the business's phone number(s), entered as a list in E.164
* format.
*/
phone_numbers: Array<string>;
/**
* Parent company name (if applicable).
*/
parent_company?: string;
}
/**
* Only present when user_type == "BUSINESS". An individual with significant
* responsibility for managing the legal entity (e.g., a Chief Executive Officer,
* Chief Financial Officer, Chief Operating Officer, Managing Member, General
* Partner, President, Vice President, or Treasurer). This can be an executive, or
* someone who will have program-wide access to the cards that Lithic will provide.
* In some cases, this individual could also be a beneficial owner listed above.
*/
export interface ControlPerson {
/**
* Individual's current address
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**
* Individual's email address.
*/
email: string;
/**
* Globally unique identifier for the entity.
*/
entity_token: string;
/**
* Individual's first name, as it appears on government-issued identity documents.
*/
first_name: string;
/**
* Individual's last name, as it appears on government-issued identity documents.
*/
last_name: string;
/**
* Individual's phone number, entered in E.164 format.
*/
phone_number: string;
}
/**
* Only present when user_type == "INDIVIDUAL". Information about the individual
* for which the account is being opened and KYC is being run.
*/
export interface Individual {
/**
* Individual's current address
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**
* Individual's email address.
*/
email: string;
/**
* Globally unique identifier for the entity.
*/
entity_token: string;
/**
* Individual's first name, as it appears on government-issued identity documents.
*/
first_name: string;
/**
* Individual's last name, as it appears on government-issued identity documents.
*/
last_name: string;
/**
* Individual's phone number, entered in E.164 format.
*/
phone_number: string;
}
/**
* Information about the most recent identity verification attempt
*/
export interface VerificationApplication {
/**
* Timestamp of when the application was created.
*/
created?: string;
/**
* KYC and KYB evaluation states.
*
* Note:
*
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
*/
status?: 'ACCEPTED' | 'PENDING_REVIEW' | 'PENDING_DOCUMENT' | 'PENDING_RESUBMIT' | 'REJECTED';
/**
* Reason for the evaluation status.
*/
status_reasons?: Array<
| 'ADDRESS_VERIFICATION_FAILURE'
| 'AGE_THRESHOLD_FAILURE'
| 'COMPLETE_VERIFICATION_FAILURE'
| 'DOB_VERIFICATION_FAILURE'
| 'ID_VERIFICATION_FAILURE'
| 'MAX_DOCUMENT_ATTEMPTS'
| 'MAX_RESUBMISSION_ATTEMPTS'
| 'NAME_VERIFICATION_FAILURE'
| 'OTHER_VERIFICATION_FAILURE'
| 'RISK_THRESHOLD_FAILURE'
| 'WATCHLIST_ALERT_FAILURE'
>;
/**
* Timestamp of when the application was last updated.
*/
updated?: string;
}
}
export interface AddressUpdate {
/**
* Valid deliverable address (no PO boxes).
*/
address1?: string;
/**
* Unit or apartment number (if applicable).
*/
address2?: string;
/**
* Name of city.
*/
city?: string;
/**
* Valid country code. Only USA is currently supported, entered in uppercase ISO
* 3166-1 alpha-3 three-character format.
*/
country?: string;
/**
* Valid postal code. Only USA ZIP codes are currently supported, entered as a
* five-digit ZIP or nine-digit ZIP+4.
*/
postal_code?: string;
/**
* Valid state code. Only USA state codes are currently supported, entered in
* uppercase ISO 3166-2 two-character format.
*/
state?: string;
}
export interface KYB {
/**
* List of all entities with >25% ownership in the company. If no entity or
* individual owns >25% of the company, and the largest shareholder is an entity,
* please identify them in this field. See
* [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
* (Section I) for more background. If no business owner is an entity, pass in an
* empty list. However, either this parameter or `beneficial_owner_individuals`
* must be populated. on entities that should be included.
*/
beneficial_owner_entities: Array<KYB.BeneficialOwnerEntity>;
/**
* List of all direct and indirect individuals with >25% ownership in the company.
* If no entity or individual owns >25% of the company, and the largest shareholder
* is an individual, please identify them in this field. See
* [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
* (Section I) for more background on individuals that should be included. If no
* individual is an entity, pass in an empty list. However, either this parameter
* or `beneficial_owner_entities` must be populated.
*/
beneficial_owner_individuals: Array<KYB.BeneficialOwnerIndividual>;
/**
* Information for business for which the account is being opened and KYB is being
* run.
*/
business_entity: KYB.BusinessEntity;
/**
* An individual with significant responsibility for managing the legal entity
* (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
* Officer, Managing Member, General Partner, President, Vice President, or
* Treasurer). This can be an executive, or someone who will have program-wide
* access to the cards that Lithic will provide. In some cases, this individual
* could also be a beneficial owner listed above. See
* [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
* (Section II) for more background.
*/
control_person: KYB.ControlPerson;
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
*/
nature_of_business: string;
/**
* An RFC 3339 timestamp indicating when the account holder accepted the applicable
* legal agreements (e.g., cardholder terms) as agreed upon during API customer's
* implementation with Lithic.
*/
tos_timestamp: string;
/**
* Specifies the type of KYB workflow to run.
*/
workflow: 'KYB_BASIC' | 'KYB_BYO';
/**
* A user provided id that can be used to link an account holder with an external
* system
*/
external_id?: string;
/**
* An RFC 3339 timestamp indicating when precomputed KYC was completed on the
* business with a pass result.
*
* This field is required only if workflow type is `KYB_BYO`.
*/
kyb_passed_timestamp?: string;
/**
* Company website URL.
*/
website_url?: string;
}
export namespace KYB {
export interface BeneficialOwnerEntity {
/**
* Business's physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
address: Shared.Address;
/**
* Government-issued identification number. US Federal Employer Identification
* Numbers (EIN) are currently supported, entered as full nine-digits, with or
* without hyphens.
*/
government_id: string;
/**
* Legal (formal) business name.
*/
legal_business_name: string;
/**
* One or more of the business's phone number(s), entered as a list in E.164
* format.
*/
phone_numbers: Array<string>;
/**
* Any name that the business operates under that is not its legal business name
* (if applicable).
*/
dba_business_name?: string;
/**
* Parent company name (if applicable).
*/
parent_company?: string;
}
/**
* Individuals associated with a KYB application. Phone number is optional.
*/
export interface BeneficialOwnerIndividual {
/**
* Individual's current address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**
* Individual's email address. If utilizing Lithic for chargeback processing, this
* customer email address may be used to communicate dispute status and resolution.
*/
email: string;
/**
* Individual's first name, as it appears on government-issued identity documents.
*/
first_name: string;
/**
* Government-issued identification number (required for identity verification and
* compliance with banking regulations). Social Security Numbers (SSN) and
* Individual Taxpayer Identification Numbers (ITIN) are currently supported,
* entered as full nine-digits, with or without hyphens
*/
government_id: string;
/**
* Individual's last name, as it appears on government-issued identity documents.
*/
last_name: string;
/**
* Individual's phone number, entered in E.164 format.
*/
phone_number?: string;
}
/**
* Information for business for which the account is being opened and KYB is being
* run.
*/
export interface BusinessEntity {
/**
* Business's physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
address: Shared.Address;
/**
* Government-issued identification number. US Federal Employer Identification
* Numbers (EIN) are currently supported, entered as full nine-digits, with or
* without hyphens.
*/
government_id: string;
/**
* Legal (formal) business name.
*/
legal_business_name: string;
/**
* One or more of the business's phone number(s), entered as a list in E.164
* format.
*/
phone_numbers: Array<string>;
/**
* Any name that the business operates under that is not its legal business name
* (if applicable).
*/
dba_business_name?: string;
/**
* Parent company name (if applicable).
*/
parent_company?: string;
}
/**
* An individual with significant responsibility for managing the legal entity
* (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
* Officer, Managing Member, General Partner, President, Vice President, or
* Treasurer). This can be an executive, or someone who will have program-wide
* access to the cards that Lithic will provide. In some cases, this individual
* could also be a beneficial owner listed above. See
* [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
* (Section II) for more background.
*/
export interface ControlPerson {
/**
* Individual's current address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**
* Individual's email address. If utilizing Lithic for chargeback processing, this
* customer email address may be used to communicate dispute status and resolution.
*/
email: string;
/**
* Individual's first name, as it appears on government-issued identity documents.
*/
first_name: string;
/**
* Government-issued identification number (required for identity verification and
* compliance with banking regulations). Social Security Numbers (SSN) and
* Individual Taxpayer Identification Numbers (ITIN) are currently supported,
* entered as full nine-digits, with or without hyphens
*/
government_id: string;
/**
* Individual's last name, as it appears on government-issued identity documents.
*/
last_name: string;
/**
* Individual's phone number, entered in E.164 format.
*/
phone_number?: string;
}
}
export interface KYBBusinessEntity {
/**
* Business''s physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
address: KYBBusinessEntity.Address;
/**
* Government-issued identification number. US Federal Employer Identification
* Numbers (EIN) are currently supported, entered as full nine-digits, with or
* without hyphens.
*/
government_id: string;
/**
* Legal (formal) business name.
*/
legal_business_name: string;
/**
* One or more of the business's phone number(s), entered as a list in E.164
* format.
*/
phone_numbers: Array<string>;
/**
* Any name that the business operates under that is not its legal business name
* (if applicable).
*/
dba_business_name?: string;
/**
* Parent company name (if applicable).
*/
parent_company?: string;
}
export namespace KYBBusinessEntity {
/**
* Business''s physical address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable.
*/
export interface Address {
/**
* Valid deliverable address (no PO boxes).
*/
address1: string;
/**
* Name of city.
*/
city: string;
/**
* Valid country code. Only USA is currently supported, entered in uppercase ISO
* 3166-1 alpha-3 three-character format.
*/
country: string;
/**
* Valid postal code. Only USA ZIP codes are currently supported, entered as a
* five-digit ZIP or nine-digit ZIP+4.
*/
postal_code: string;
/**
* Valid state code. Only USA state codes are currently supported, entered in
* uppercase ISO 3166-2 two-character format.
*/
state: string;
/**
* Unit or apartment number (if applicable).
*/
address2?: string;
}
}
export interface KYC {
/**
* Information on individual for whom the account is being opened and KYC is being
* run.
*/
individual: KYC.Individual;
/**
* An RFC 3339 timestamp indicating when the account holder accepted the applicable
* legal agreements (e.g., cardholder terms) as agreed upon during API customer's
* implementation with Lithic.
*/
tos_timestamp: string;
/**
* Specifies the type of KYC workflow to run.
*/
workflow: 'KYC_BASIC' | 'KYC_BYO';
/**
* A user provided id that can be used to link an account holder with an external
* system
*/
external_id?: string;
/**
* An RFC 3339 timestamp indicating when precomputed KYC was completed on the
* individual with a pass result.
*
* This field is required only if workflow type is `KYC_BYO`.
*/
kyc_passed_timestamp?: string;
}
export namespace KYC {
/**
* Information on individual for whom the account is being opened and KYC is being
* run.
*/
export interface Individual {
/**
* Individual's current address - PO boxes, UPS drops, and FedEx drops are not
* acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
*/
address: Shared.Address;
/**
* Individual's date of birth, as an RFC 3339 date.
*/
dob: string;
/**