-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaccountholder.go
More file actions
3411 lines (3101 loc) · 198 KB
/
accountholder.go
File metadata and controls
3411 lines (3101 loc) · 198 KB
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.
package lithic
import (
"context"
"errors"
"fmt"
"net/http"
"net/url"
"reflect"
"slices"
"time"
"github.com/lithic-com/lithic-go/internal/apijson"
"github.com/lithic-com/lithic-go/internal/apiquery"
"github.com/lithic-com/lithic-go/internal/param"
"github.com/lithic-com/lithic-go/internal/requestconfig"
"github.com/lithic-com/lithic-go/option"
"github.com/lithic-com/lithic-go/packages/pagination"
"github.com/lithic-com/lithic-go/shared"
"github.com/tidwall/gjson"
)
// AccountHolderService contains methods and other services that help with
// interacting with the lithic API.
//
// Note, unlike clients, this service does not read variables from the environment
// automatically. You should not instantiate this service directly, and instead use
// the [NewAccountHolderService] method instead.
type AccountHolderService struct {
Options []option.RequestOption
Entities *AccountHolderEntityService
}
// NewAccountHolderService generates a new service that applies the given options
// to each request. These options are applied after the parent client's options (if
// there is one), and before any request-specific options.
func NewAccountHolderService(opts ...option.RequestOption) (r *AccountHolderService) {
r = &AccountHolderService{}
r.Options = opts
r.Entities = NewAccountHolderEntityService(opts...)
return
}
// 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 a synchronous response. The response time will depend on
// the workflow. In some cases, the response may indicate the workflow is under
// review or further action will be needed to complete the account creation
// process. This endpoint can only be used on accounts that are part of the program
// that the calling API key manages.
//
// Note: If you choose to set a timeout for this request, we recommend 5 minutes.
func (r *AccountHolderService) New(ctx context.Context, body AccountHolderNewParams, opts ...option.RequestOption) (res *AccountHolderNewResponse, err error) {
opts = slices.Concat(r.Options, opts)
path := "v1/account_holders"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// Get an Individual or Business Account Holder and/or their KYC or KYB evaluation
// status.
func (r *AccountHolderService) Get(ctx context.Context, accountHolderToken string, opts ...option.RequestOption) (res *AccountHolder, err error) {
opts = slices.Concat(r.Options, opts)
if accountHolderToken == "" {
err = errors.New("missing required account_holder_token parameter")
return
}
path := fmt.Sprintf("v1/account_holders/%s", accountHolderToken)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}
// 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 a synchronous response. The response time will depend on
// the workflow. In some cases, the response may indicate the workflow is under
// review or further action will be needed to complete the account creation
// process. This endpoint can only be used on existing accounts that are part of
// the program that the calling API key manages.
func (r *AccountHolderService) Update(ctx context.Context, accountHolderToken string, body AccountHolderUpdateParams, opts ...option.RequestOption) (res *AccountHolderUpdateResponse, err error) {
opts = slices.Concat(r.Options, opts)
if accountHolderToken == "" {
err = errors.New("missing required account_holder_token parameter")
return
}
path := fmt.Sprintf("v1/account_holders/%s", accountHolderToken)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPatch, path, body, &res, opts...)
return
}
// Get a list of individual or business account holders and their KYC or KYB
// evaluation status.
func (r *AccountHolderService) List(ctx context.Context, query AccountHolderListParams, opts ...option.RequestOption) (res *pagination.SinglePage[AccountHolder], err error) {
var raw *http.Response
opts = slices.Concat(r.Options, opts)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
path := "v1/account_holders"
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...)
if err != nil {
return nil, err
}
err = cfg.Execute()
if err != nil {
return nil, err
}
res.SetPageConfig(cfg, raw)
return res, nil
}
// Get a list of individual or business account holders and their KYC or KYB
// evaluation status.
func (r *AccountHolderService) ListAutoPaging(ctx context.Context, query AccountHolderListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[AccountHolder] {
return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...))
}
// 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`.
func (r *AccountHolderService) ListDocuments(ctx context.Context, accountHolderToken string, opts ...option.RequestOption) (res *AccountHolderListDocumentsResponse, err error) {
opts = slices.Concat(r.Options, opts)
if accountHolderToken == "" {
err = errors.New("missing required account_holder_token parameter")
return
}
path := fmt.Sprintf("v1/account_holders/%s/documents", accountHolderToken)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}
// 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`.
func (r *AccountHolderService) GetDocument(ctx context.Context, accountHolderToken string, documentToken string, opts ...option.RequestOption) (res *shared.Document, err error) {
opts = slices.Concat(r.Options, opts)
if accountHolderToken == "" {
err = errors.New("missing required account_holder_token parameter")
return
}
if documentToken == "" {
err = errors.New("missing required document_token parameter")
return
}
path := fmt.Sprintf("v1/account_holders/%s/documents/%s", accountHolderToken, documentToken)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}
// Simulates a review for an account holder document upload.
func (r *AccountHolderService) SimulateEnrollmentDocumentReview(ctx context.Context, body AccountHolderSimulateEnrollmentDocumentReviewParams, opts ...option.RequestOption) (res *shared.Document, err error) {
opts = slices.Concat(r.Options, opts)
path := "v1/simulate/account_holders/enrollment_document_review"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// Simulates an enrollment review for an account holder. This endpoint is only
// applicable for workflows that may required intervention such as `KYB_BASIC`.
func (r *AccountHolderService) SimulateEnrollmentReview(ctx context.Context, body AccountHolderSimulateEnrollmentReviewParams, opts ...option.RequestOption) (res *AccountHolderSimulateEnrollmentReviewResponse, err error) {
opts = slices.Concat(r.Options, opts)
path := "v1/simulate/account_holders/enrollment_review"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// 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.
func (r *AccountHolderService) UploadDocument(ctx context.Context, accountHolderToken string, body AccountHolderUploadDocumentParams, opts ...option.RequestOption) (res *shared.Document, err error) {
opts = slices.Concat(r.Options, opts)
if accountHolderToken == "" {
err = errors.New("missing required account_holder_token parameter")
return
}
path := fmt.Sprintf("v1/account_holders/%s/documents", accountHolderToken)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
type AccountHolder struct {
// Globally unique identifier for the account holder.
Token string `json:"token" api:"required" format:"uuid"`
// Timestamp of when the account holder was created.
Created time.Time `json:"created" api:"required" format:"date-time"`
// Globally unique identifier for the account.
AccountToken string `json:"account_token" format:"uuid"`
// Only present when user_type == "BUSINESS". You must submit a list of all direct
// and indirect individuals with 25% or more ownership in the company. A maximum of
// 4 beneficial owners can be submitted. If no individual owns 25% of the company
// you do not need to send beneficial owner information. 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.
BeneficialOwnerIndividuals []AccountHolderBeneficialOwnerIndividual `json:"beneficial_owner_individuals"`
// 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.
BusinessAccountToken string `json:"business_account_token" format:"uuid"`
// Only present when user_type == "BUSINESS". Information about the business for
// which the account is being opened and KYB is being run.
BusinessEntity AccountHolderBusinessEntity `json:"business_entity"`
// 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.
ControlPerson AccountHolderControlPerson `json:"control_person"`
// (Deprecated. Use control_person.email when user_type == "BUSINESS". Use
// individual.phone_number when user_type == "INDIVIDUAL".) Primary email of
// Account Holder.
Email string `json:"email"`
// The type of KYC exemption for a KYC-Exempt Account Holder.
ExemptionType AccountHolderExemptionType `json:"exemption_type"`
// Customer-provided token that indicates a relationship with an object outside of
// the Lithic ecosystem.
ExternalID string `json:"external_id"`
// Only present when user_type == "INDIVIDUAL". Information about the individual
// for which the account is being opened and KYC is being run.
Individual AccountHolderIndividual `json:"individual"`
// Only present when user_type == "BUSINESS". 6-digit North American Industry
// Classification System (NAICS) code for the business.
NaicsCode string `json:"naics_code"`
// Only present when user_type == "BUSINESS". User-submitted description of the
// business.
NatureOfBusiness string `json:"nature_of_business"`
// (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.
PhoneNumber string `json:"phone_number"`
// Only present for "KYB_BASIC" workflow. A list of documents required for the
// account holder to be approved.
RequiredDocuments []RequiredDocument `json:"required_documents"`
// (Deprecated. Use verification_application.status instead)
//
// KYC and KYB evaluation states.
//
// Note:
//
// - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
Status AccountHolderStatus `json:"status"`
// (Deprecated. Use verification_application.status_reasons)
//
// Reason for the evaluation status.
StatusReasons []AccountHolderStatusReason `json:"status_reasons"`
// 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", "naics_code",
// "nature_of_business", and "website_url" attributes will be present.
UserType AccountHolderUserType `json:"user_type"`
// Information about the most recent identity verification attempt
VerificationApplication AccountHolderVerificationApplication `json:"verification_application"`
// Only present when user_type == "BUSINESS". Business's primary website.
WebsiteURL string `json:"website_url"`
JSON accountHolderJSON `json:"-"`
}
// accountHolderJSON contains the JSON metadata for the struct [AccountHolder]
type accountHolderJSON struct {
Token apijson.Field
Created apijson.Field
AccountToken apijson.Field
BeneficialOwnerIndividuals apijson.Field
BusinessAccountToken apijson.Field
BusinessEntity apijson.Field
ControlPerson apijson.Field
Email apijson.Field
ExemptionType apijson.Field
ExternalID apijson.Field
Individual apijson.Field
NaicsCode apijson.Field
NatureOfBusiness apijson.Field
PhoneNumber apijson.Field
RequiredDocuments apijson.Field
Status apijson.Field
StatusReasons apijson.Field
UserType apijson.Field
VerificationApplication apijson.Field
WebsiteURL apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolder) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderJSON) RawJSON() string {
return r.raw
}
// 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.
type AccountHolderBeneficialOwnerIndividual struct {
// Individual's current address
Address shared.Address `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob string `json:"dob" api:"required"`
// Individual's email address.
Email string `json:"email" api:"required"`
// Globally unique identifier for the entity.
EntityToken string `json:"entity_token" api:"required" format:"uuid"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName string `json:"first_name" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName string `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber string `json:"phone_number" api:"required"`
JSON accountHolderBeneficialOwnerIndividualJSON `json:"-"`
}
// accountHolderBeneficialOwnerIndividualJSON contains the JSON metadata for the
// struct [AccountHolderBeneficialOwnerIndividual]
type accountHolderBeneficialOwnerIndividualJSON struct {
Address apijson.Field
Dob apijson.Field
Email apijson.Field
EntityToken apijson.Field
FirstName apijson.Field
LastName apijson.Field
PhoneNumber apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolderBeneficialOwnerIndividual) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderBeneficialOwnerIndividualJSON) RawJSON() string {
return r.raw
}
// Only present when user_type == "BUSINESS". Information about the business for
// which the account is being opened and KYB is being run.
type AccountHolderBusinessEntity struct {
// Business's physical address - PO boxes, UPS drops, and FedEx drops are not
// acceptable; APO/FPO are acceptable.
Address shared.Address `json:"address" api:"required"`
// Any name that the business operates under that is not its legal business name
// (if applicable).
DbaBusinessName string `json:"dba_business_name" api:"required"`
// Globally unique identifier for the entity.
EntityToken string `json:"entity_token" api:"required" format:"uuid"`
// Government-issued identification number. US Federal Employer Identification
// Numbers (EIN) are currently supported, entered as full nine-digits, with or
// without hyphens.
GovernmentID string `json:"government_id" api:"required"`
// Legal (formal) business name.
LegalBusinessName string `json:"legal_business_name" api:"required"`
// One or more of the business's phone number(s), entered as a list in E.164
// format.
PhoneNumbers []string `json:"phone_numbers" api:"required"`
// Parent company name (if applicable).
ParentCompany string `json:"parent_company"`
JSON accountHolderBusinessEntityJSON `json:"-"`
}
// accountHolderBusinessEntityJSON contains the JSON metadata for the struct
// [AccountHolderBusinessEntity]
type accountHolderBusinessEntityJSON struct {
Address apijson.Field
DbaBusinessName apijson.Field
EntityToken apijson.Field
GovernmentID apijson.Field
LegalBusinessName apijson.Field
PhoneNumbers apijson.Field
ParentCompany apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolderBusinessEntity) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderBusinessEntityJSON) RawJSON() string {
return r.raw
}
// 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.
type AccountHolderControlPerson struct {
// Individual's current address
Address shared.Address `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob string `json:"dob" api:"required"`
// Individual's email address.
Email string `json:"email" api:"required"`
// Globally unique identifier for the entity.
EntityToken string `json:"entity_token" api:"required" format:"uuid"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName string `json:"first_name" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName string `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber string `json:"phone_number" api:"required"`
JSON accountHolderControlPersonJSON `json:"-"`
}
// accountHolderControlPersonJSON contains the JSON metadata for the struct
// [AccountHolderControlPerson]
type accountHolderControlPersonJSON struct {
Address apijson.Field
Dob apijson.Field
Email apijson.Field
EntityToken apijson.Field
FirstName apijson.Field
LastName apijson.Field
PhoneNumber apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolderControlPerson) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderControlPersonJSON) RawJSON() string {
return r.raw
}
// The type of KYC exemption for a KYC-Exempt Account Holder.
type AccountHolderExemptionType string
const (
AccountHolderExemptionTypeAuthorizedUser AccountHolderExemptionType = "AUTHORIZED_USER"
AccountHolderExemptionTypePrepaidCardUser AccountHolderExemptionType = "PREPAID_CARD_USER"
)
func (r AccountHolderExemptionType) IsKnown() bool {
switch r {
case AccountHolderExemptionTypeAuthorizedUser, AccountHolderExemptionTypePrepaidCardUser:
return true
}
return false
}
// Only present when user_type == "INDIVIDUAL". Information about the individual
// for which the account is being opened and KYC is being run.
type AccountHolderIndividual struct {
// Individual's current address
Address shared.Address `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob string `json:"dob" api:"required"`
// Individual's email address.
Email string `json:"email" api:"required"`
// Globally unique identifier for the entity.
EntityToken string `json:"entity_token" api:"required" format:"uuid"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName string `json:"first_name" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName string `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber string `json:"phone_number" api:"required"`
JSON accountHolderIndividualJSON `json:"-"`
}
// accountHolderIndividualJSON contains the JSON metadata for the struct
// [AccountHolderIndividual]
type accountHolderIndividualJSON struct {
Address apijson.Field
Dob apijson.Field
Email apijson.Field
EntityToken apijson.Field
FirstName apijson.Field
LastName apijson.Field
PhoneNumber apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolderIndividual) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderIndividualJSON) RawJSON() string {
return r.raw
}
// (Deprecated. Use verification_application.status instead)
//
// KYC and KYB evaluation states.
//
// Note:
//
// - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
type AccountHolderStatus string
const (
AccountHolderStatusAccepted AccountHolderStatus = "ACCEPTED"
AccountHolderStatusPendingReview AccountHolderStatus = "PENDING_REVIEW"
AccountHolderStatusPendingDocument AccountHolderStatus = "PENDING_DOCUMENT"
AccountHolderStatusPendingResubmit AccountHolderStatus = "PENDING_RESUBMIT"
AccountHolderStatusRejected AccountHolderStatus = "REJECTED"
)
func (r AccountHolderStatus) IsKnown() bool {
switch r {
case AccountHolderStatusAccepted, AccountHolderStatusPendingReview, AccountHolderStatusPendingDocument, AccountHolderStatusPendingResubmit, AccountHolderStatusRejected:
return true
}
return false
}
type AccountHolderStatusReason string
const (
AccountHolderStatusReasonAddressVerificationFailure AccountHolderStatusReason = "ADDRESS_VERIFICATION_FAILURE"
AccountHolderStatusReasonAgeThresholdFailure AccountHolderStatusReason = "AGE_THRESHOLD_FAILURE"
AccountHolderStatusReasonCompleteVerificationFailure AccountHolderStatusReason = "COMPLETE_VERIFICATION_FAILURE"
AccountHolderStatusReasonDobVerificationFailure AccountHolderStatusReason = "DOB_VERIFICATION_FAILURE"
AccountHolderStatusReasonIDVerificationFailure AccountHolderStatusReason = "ID_VERIFICATION_FAILURE"
AccountHolderStatusReasonMaxDocumentAttempts AccountHolderStatusReason = "MAX_DOCUMENT_ATTEMPTS"
AccountHolderStatusReasonMaxResubmissionAttempts AccountHolderStatusReason = "MAX_RESUBMISSION_ATTEMPTS"
AccountHolderStatusReasonNameVerificationFailure AccountHolderStatusReason = "NAME_VERIFICATION_FAILURE"
AccountHolderStatusReasonOtherVerificationFailure AccountHolderStatusReason = "OTHER_VERIFICATION_FAILURE"
AccountHolderStatusReasonRiskThresholdFailure AccountHolderStatusReason = "RISK_THRESHOLD_FAILURE"
AccountHolderStatusReasonWatchlistAlertFailure AccountHolderStatusReason = "WATCHLIST_ALERT_FAILURE"
)
func (r AccountHolderStatusReason) IsKnown() bool {
switch r {
case AccountHolderStatusReasonAddressVerificationFailure, AccountHolderStatusReasonAgeThresholdFailure, AccountHolderStatusReasonCompleteVerificationFailure, AccountHolderStatusReasonDobVerificationFailure, AccountHolderStatusReasonIDVerificationFailure, AccountHolderStatusReasonMaxDocumentAttempts, AccountHolderStatusReasonMaxResubmissionAttempts, AccountHolderStatusReasonNameVerificationFailure, AccountHolderStatusReasonOtherVerificationFailure, AccountHolderStatusReasonRiskThresholdFailure, AccountHolderStatusReasonWatchlistAlertFailure:
return true
}
return false
}
// 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", "naics_code",
// "nature_of_business", and "website_url" attributes will be present.
type AccountHolderUserType string
const (
AccountHolderUserTypeBusiness AccountHolderUserType = "BUSINESS"
AccountHolderUserTypeIndividual AccountHolderUserType = "INDIVIDUAL"
)
func (r AccountHolderUserType) IsKnown() bool {
switch r {
case AccountHolderUserTypeBusiness, AccountHolderUserTypeIndividual:
return true
}
return false
}
// Information about the most recent identity verification attempt
type AccountHolderVerificationApplication struct {
// Timestamp of when the application was created.
Created time.Time `json:"created" format:"date-time"`
// KYC and KYB evaluation states.
//
// Note:
//
// - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
Status AccountHolderVerificationApplicationStatus `json:"status"`
// Reason for the evaluation status.
StatusReasons []AccountHolderVerificationApplicationStatusReason `json:"status_reasons"`
// Timestamp of when the application was last updated.
Updated time.Time `json:"updated" format:"date-time"`
JSON accountHolderVerificationApplicationJSON `json:"-"`
}
// accountHolderVerificationApplicationJSON contains the JSON metadata for the
// struct [AccountHolderVerificationApplication]
type accountHolderVerificationApplicationJSON struct {
Created apijson.Field
Status apijson.Field
StatusReasons apijson.Field
Updated apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *AccountHolderVerificationApplication) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r accountHolderVerificationApplicationJSON) RawJSON() string {
return r.raw
}
// KYC and KYB evaluation states.
//
// Note:
//
// - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
type AccountHolderVerificationApplicationStatus string
const (
AccountHolderVerificationApplicationStatusAccepted AccountHolderVerificationApplicationStatus = "ACCEPTED"
AccountHolderVerificationApplicationStatusPendingReview AccountHolderVerificationApplicationStatus = "PENDING_REVIEW"
AccountHolderVerificationApplicationStatusPendingDocument AccountHolderVerificationApplicationStatus = "PENDING_DOCUMENT"
AccountHolderVerificationApplicationStatusPendingResubmit AccountHolderVerificationApplicationStatus = "PENDING_RESUBMIT"
AccountHolderVerificationApplicationStatusRejected AccountHolderVerificationApplicationStatus = "REJECTED"
)
func (r AccountHolderVerificationApplicationStatus) IsKnown() bool {
switch r {
case AccountHolderVerificationApplicationStatusAccepted, AccountHolderVerificationApplicationStatusPendingReview, AccountHolderVerificationApplicationStatusPendingDocument, AccountHolderVerificationApplicationStatusPendingResubmit, AccountHolderVerificationApplicationStatusRejected:
return true
}
return false
}
type AccountHolderVerificationApplicationStatusReason string
const (
AccountHolderVerificationApplicationStatusReasonAddressVerificationFailure AccountHolderVerificationApplicationStatusReason = "ADDRESS_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonAgeThresholdFailure AccountHolderVerificationApplicationStatusReason = "AGE_THRESHOLD_FAILURE"
AccountHolderVerificationApplicationStatusReasonCompleteVerificationFailure AccountHolderVerificationApplicationStatusReason = "COMPLETE_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonDobVerificationFailure AccountHolderVerificationApplicationStatusReason = "DOB_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonIDVerificationFailure AccountHolderVerificationApplicationStatusReason = "ID_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonMaxDocumentAttempts AccountHolderVerificationApplicationStatusReason = "MAX_DOCUMENT_ATTEMPTS"
AccountHolderVerificationApplicationStatusReasonMaxResubmissionAttempts AccountHolderVerificationApplicationStatusReason = "MAX_RESUBMISSION_ATTEMPTS"
AccountHolderVerificationApplicationStatusReasonNameVerificationFailure AccountHolderVerificationApplicationStatusReason = "NAME_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonOtherVerificationFailure AccountHolderVerificationApplicationStatusReason = "OTHER_VERIFICATION_FAILURE"
AccountHolderVerificationApplicationStatusReasonRiskThresholdFailure AccountHolderVerificationApplicationStatusReason = "RISK_THRESHOLD_FAILURE"
AccountHolderVerificationApplicationStatusReasonWatchlistAlertFailure AccountHolderVerificationApplicationStatusReason = "WATCHLIST_ALERT_FAILURE"
)
func (r AccountHolderVerificationApplicationStatusReason) IsKnown() bool {
switch r {
case AccountHolderVerificationApplicationStatusReasonAddressVerificationFailure, AccountHolderVerificationApplicationStatusReasonAgeThresholdFailure, AccountHolderVerificationApplicationStatusReasonCompleteVerificationFailure, AccountHolderVerificationApplicationStatusReasonDobVerificationFailure, AccountHolderVerificationApplicationStatusReasonIDVerificationFailure, AccountHolderVerificationApplicationStatusReasonMaxDocumentAttempts, AccountHolderVerificationApplicationStatusReasonMaxResubmissionAttempts, AccountHolderVerificationApplicationStatusReasonNameVerificationFailure, AccountHolderVerificationApplicationStatusReasonOtherVerificationFailure, AccountHolderVerificationApplicationStatusReasonRiskThresholdFailure, AccountHolderVerificationApplicationStatusReasonWatchlistAlertFailure:
return true
}
return false
}
type AddressUpdateParam struct {
// Valid deliverable address (no PO boxes).
Address1 param.Field[string] `json:"address1"`
// Unit or apartment number (if applicable).
Address2 param.Field[string] `json:"address2"`
// Name of city.
City param.Field[string] `json:"city"`
// Valid country code. Only USA is currently supported, entered in uppercase ISO
// 3166-1 alpha-3 three-character format.
Country param.Field[string] `json:"country"`
// Valid postal code. Only USA ZIP codes are currently supported, entered as a
// five-digit ZIP or nine-digit ZIP+4.
PostalCode param.Field[string] `json:"postal_code"`
// Valid state code. Only USA state codes are currently supported, entered in
// uppercase ISO 3166-2 two-character format.
State param.Field[string] `json:"state"`
}
func (r AddressUpdateParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type KYBParam struct {
// You must submit a list of all direct and indirect individuals with 25% or more
// ownership in the company. A maximum of 4 beneficial owners can be submitted. If
// no individual owns 25% of the company you do not need to send beneficial owner
// information. 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.
BeneficialOwnerIndividuals param.Field[[]KYBBeneficialOwnerIndividualParam] `json:"beneficial_owner_individuals" api:"required"`
// Information for business for which the account is being opened and KYB is being
// run.
BusinessEntity param.Field[KYBBusinessEntityParam] `json:"business_entity" api:"required"`
// 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.
ControlPerson param.Field[KYBControlPersonParam] `json:"control_person" api:"required"`
// Short description of the company's line of business (i.e., what does the company
// do?).
NatureOfBusiness param.Field[string] `json:"nature_of_business" api:"required"`
// 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.
TosTimestamp param.Field[string] `json:"tos_timestamp" api:"required"`
// Specifies the type of KYB workflow to run.
Workflow param.Field[KYBWorkflow] `json:"workflow" api:"required"`
// A user provided id that can be used to link an account holder with an external
// system
ExternalID param.Field[string] `json:"external_id"`
// An RFC 3339 timestamp indicating when precomputed KYB was completed on the
// business with a pass result.
//
// This field is required only if workflow type is `KYB_BYO`.
KYBPassedTimestamp param.Field[string] `json:"kyb_passed_timestamp"`
// 6-digit North American Industry Classification System (NAICS) code for the
// business.
NaicsCode param.Field[string] `json:"naics_code"`
// Company website URL.
WebsiteURL param.Field[string] `json:"website_url"`
}
func (r KYBParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
func (r KYBParam) implementsAccountHolderNewParamsBodyUnion() {}
// Individuals associated with a KYB application. Phone number is optional.
type KYBBeneficialOwnerIndividualParam struct {
// 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 param.Field[shared.AddressParam] `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob param.Field[string] `json:"dob" api:"required"`
// Individual's email address. If utilizing Lithic for chargeback processing, this
// customer email address may be used to communicate dispute status and resolution.
Email param.Field[string] `json:"email" api:"required"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName param.Field[string] `json:"first_name" api:"required"`
// 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
GovernmentID param.Field[string] `json:"government_id" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName param.Field[string] `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber param.Field[string] `json:"phone_number"`
}
func (r KYBBeneficialOwnerIndividualParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// Information for business for which the account is being opened and KYB is being
// run.
type KYBBusinessEntityParam struct {
// Business's physical address - PO boxes, UPS drops, and FedEx drops are not
// acceptable; APO/FPO are acceptable.
Address param.Field[shared.AddressParam] `json:"address" api:"required"`
// Government-issued identification number. US Federal Employer Identification
// Numbers (EIN) are currently supported, entered as full nine-digits, with or
// without hyphens.
GovernmentID param.Field[string] `json:"government_id" api:"required"`
// Legal (formal) business name.
LegalBusinessName param.Field[string] `json:"legal_business_name" api:"required"`
// One or more of the business's phone number(s), entered as a list in E.164
// format.
PhoneNumbers param.Field[[]string] `json:"phone_numbers" api:"required"`
// Any name that the business operates under that is not its legal business name
// (if applicable).
DbaBusinessName param.Field[string] `json:"dba_business_name"`
// Parent company name (if applicable).
ParentCompany param.Field[string] `json:"parent_company"`
}
func (r KYBBusinessEntityParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// 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.
type KYBControlPersonParam struct {
// 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 param.Field[shared.AddressParam] `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob param.Field[string] `json:"dob" api:"required"`
// Individual's email address. If utilizing Lithic for chargeback processing, this
// customer email address may be used to communicate dispute status and resolution.
Email param.Field[string] `json:"email" api:"required"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName param.Field[string] `json:"first_name" api:"required"`
// 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
GovernmentID param.Field[string] `json:"government_id" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName param.Field[string] `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber param.Field[string] `json:"phone_number"`
}
func (r KYBControlPersonParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// Specifies the type of KYB workflow to run.
type KYBWorkflow string
const (
KYBWorkflowKYBBasic KYBWorkflow = "KYB_BASIC"
KYBWorkflowKYBByo KYBWorkflow = "KYB_BYO"
)
func (r KYBWorkflow) IsKnown() bool {
switch r {
case KYBWorkflowKYBBasic, KYBWorkflowKYBByo:
return true
}
return false
}
type KYBBusinessEntity struct {
// Business”s physical address - PO boxes, UPS drops, and FedEx drops are not
// acceptable; APO/FPO are acceptable.
Address KYBBusinessEntityAddress `json:"address" api:"required"`
// Government-issued identification number. US Federal Employer Identification
// Numbers (EIN) are currently supported, entered as full nine-digits, with or
// without hyphens.
GovernmentID string `json:"government_id" api:"required"`
// Legal (formal) business name.
LegalBusinessName string `json:"legal_business_name" api:"required"`
// One or more of the business's phone number(s), entered as a list in E.164
// format.
PhoneNumbers []string `json:"phone_numbers" api:"required"`
// Any name that the business operates under that is not its legal business name
// (if applicable).
DbaBusinessName string `json:"dba_business_name"`
// Parent company name (if applicable).
ParentCompany string `json:"parent_company"`
JSON kybBusinessEntityJSON `json:"-"`
}
// kybBusinessEntityJSON contains the JSON metadata for the struct
// [KYBBusinessEntity]
type kybBusinessEntityJSON struct {
Address apijson.Field
GovernmentID apijson.Field
LegalBusinessName apijson.Field
PhoneNumbers apijson.Field
DbaBusinessName apijson.Field
ParentCompany apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *KYBBusinessEntity) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r kybBusinessEntityJSON) RawJSON() string {
return r.raw
}
// Business”s physical address - PO boxes, UPS drops, and FedEx drops are not
// acceptable; APO/FPO are acceptable.
type KYBBusinessEntityAddress struct {
// Valid deliverable address (no PO boxes).
Address1 string `json:"address1" api:"required"`
// Name of city.
City string `json:"city" api:"required"`
// Valid country code. Only USA is currently supported, entered in uppercase ISO
// 3166-1 alpha-3 three-character format.
Country string `json:"country" api:"required"`
// Valid postal code. Only USA ZIP codes are currently supported, entered as a
// five-digit ZIP or nine-digit ZIP+4.
PostalCode string `json:"postal_code" api:"required"`
// Valid state code. Only USA state codes are currently supported, entered in
// uppercase ISO 3166-2 two-character format.
State string `json:"state" api:"required"`
// Unit or apartment number (if applicable).
Address2 string `json:"address2"`
JSON kybBusinessEntityAddressJSON `json:"-"`
}
// kybBusinessEntityAddressJSON contains the JSON metadata for the struct
// [KYBBusinessEntityAddress]
type kybBusinessEntityAddressJSON struct {
Address1 apijson.Field
City apijson.Field
Country apijson.Field
PostalCode apijson.Field
State apijson.Field
Address2 apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *KYBBusinessEntityAddress) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r kybBusinessEntityAddressJSON) RawJSON() string {
return r.raw
}
type KYCParam struct {
// Information on individual for whom the account is being opened and KYC is being
// run.
Individual param.Field[KYCIndividualParam] `json:"individual" api:"required"`
// 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.
TosTimestamp param.Field[string] `json:"tos_timestamp" api:"required"`
// Specifies the type of KYC workflow to run.
Workflow param.Field[KYCWorkflow] `json:"workflow" api:"required"`
// A user provided id that can be used to link an account holder with an external
// system
ExternalID param.Field[string] `json:"external_id"`
// 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`.
KYCPassedTimestamp param.Field[string] `json:"kyc_passed_timestamp"`
}
func (r KYCParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
func (r KYCParam) implementsAccountHolderNewParamsBodyUnion() {}
// Information on individual for whom the account is being opened and KYC is being
// run.
type KYCIndividualParam struct {
// 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 param.Field[shared.AddressParam] `json:"address" api:"required"`
// Individual's date of birth, as an RFC 3339 date.
Dob param.Field[string] `json:"dob" api:"required"`
// Individual's email address. If utilizing Lithic for chargeback processing, this
// customer email address may be used to communicate dispute status and resolution.
Email param.Field[string] `json:"email" api:"required"`
// Individual's first name, as it appears on government-issued identity documents.
FirstName param.Field[string] `json:"first_name" api:"required"`
// 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
GovernmentID param.Field[string] `json:"government_id" api:"required"`
// Individual's last name, as it appears on government-issued identity documents.
LastName param.Field[string] `json:"last_name" api:"required"`
// Individual's phone number, entered in E.164 format.
PhoneNumber param.Field[string] `json:"phone_number" api:"required"`
}
func (r KYCIndividualParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// Specifies the type of KYC workflow to run.
type KYCWorkflow string
const (
KYCWorkflowKYCBasic KYCWorkflow = "KYC_BASIC"
KYCWorkflowKYCByo KYCWorkflow = "KYC_BYO"
)
func (r KYCWorkflow) IsKnown() bool {