stripe 8.149.0 → 8.150.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.150.0 - 2021-05-26
4
+ * [#1163](https://github.com/stripe/stripe-node/pull/1163) API Updates
5
+ * Added support for `documents` on `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person`
6
+
3
7
  ## 8.149.0 - 2021-05-19
4
8
  * [#1159](https://github.com/stripe/stripe-node/pull/1159) API Updates
5
9
  * Add support for Identity VerificationSupport and VerificationReport APIs
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.149.0
1
+ 8.150.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.149.0",
3
+ "version": "8.150.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -36,10 +36,10 @@
36
36
  "eslint-config-prettier": "^4.1.0",
37
37
  "eslint-plugin-chai-friendly": "^0.4.0",
38
38
  "eslint-plugin-prettier": "^3.0.1",
39
- "mocha": "~6.1.4",
39
+ "mocha": "^8.3.2",
40
40
  "mocha-junit-reporter": "^1.23.1",
41
41
  "nock": "^10.0.6",
42
- "nyc": "^14.1.0",
42
+ "nyc": "^15.1.0",
43
43
  "prettier": "^1.16.4",
44
44
  "typescript": "^3.7.2"
45
45
  },
@@ -282,22 +282,22 @@ declare module 'stripe' {
282
282
  namespace Options {
283
283
  interface Document {
284
284
  /**
285
- * Restrict the list of allowed document type to these types.
285
+ * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
286
286
  */
287
287
  allowed_types?: Array<Document.AllowedType>;
288
288
 
289
289
  /**
290
- * Require that the user provide an id number which will be verified.
290
+ * Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
291
291
  */
292
292
  require_id_number?: boolean;
293
293
 
294
294
  /**
295
- * Require that the user capture documents live with their webcam or phone camera.
295
+ * Disable image uploads, identity document images have to be captured using the device's camera.
296
296
  */
297
297
  require_live_capture?: boolean;
298
298
 
299
299
  /**
300
- * Require that the user provide a selfie to compare against the document photo.
300
+ * Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
301
301
  */
302
302
  require_matching_selfie?: boolean;
303
303
  }
@@ -18,7 +18,7 @@ declare module 'stripe' {
18
18
  object: 'identity.verification_session';
19
19
 
20
20
  /**
21
- * This string value can be passed to stripe.js to embed a verification flow directly into your app.
21
+ * The short-lived client secret used by Stripe.js to [show a verification modal](https://stripe.com/docs/js/identity/modal) inside your app. This client secret expires after 24 hours and can only be used once. Don't store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on [passing the client secret to the frontend](https://stripe.com/docs/identity/verification-sessions#client-secret) to learn more.
22
22
  */
23
23
  client_secret: string | null;
24
24
 
@@ -28,12 +28,12 @@ declare module 'stripe' {
28
28
  created: number;
29
29
 
30
30
  /**
31
- * Hash of details on the last error encountered in the verification process.
31
+ * If present, this property tells you the last error encountered when processing the verification.
32
32
  */
33
33
  last_error: VerificationSession.LastError | null;
34
34
 
35
35
  /**
36
- * Link to the most recent completed VerificationReport for this Session.
36
+ * ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-checks)
37
37
  */
38
38
  last_verification_report:
39
39
  | string
@@ -58,22 +58,22 @@ declare module 'stripe' {
58
58
  redaction: VerificationSession.Redaction | null;
59
59
 
60
60
  /**
61
- * Status of this VerificationSession. Read more about each [VerificationSession status](https://stripe.com/docs/identity/how-sessions-work).
61
+ * Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
62
62
  */
63
63
  status: VerificationSession.Status;
64
64
 
65
65
  /**
66
- * Type of report requested.
66
+ * The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
67
67
  */
68
68
  type: VerificationSession.Type;
69
69
 
70
70
  /**
71
- * Link to the Stripe-hosted identity verification portal that you can send a user to for verification.
71
+ * The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 24 hours and can only be used once. Don't store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on [verifying identity documents](https://stripe.com/docs/identity/verify-identity-documents?platform=web&type=redirect) to learn how to redirect users to Stripe.
72
72
  */
73
73
  url: string | null;
74
74
 
75
75
  /**
76
- * Hash of verified data about this person that results from a successful verification report.
76
+ * The user's verified data.
77
77
  */
78
78
  verified_outputs: VerificationSession.VerifiedOutputs | null;
79
79
  }
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  code: LastError.Code | null;
87
87
 
88
88
  /**
89
- * A human-readable message giving the reason for the failure. These messages can be shown to your users.
89
+ * A message that explains the reason for verification or user-session failure.
90
90
  */
91
91
  reason: string | null;
92
92
  }
@@ -119,22 +119,22 @@ declare module 'stripe' {
119
119
  namespace Options {
120
120
  interface Document {
121
121
  /**
122
- * Restrict the list of allowed document type to these types.
122
+ * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
123
123
  */
124
124
  allowed_types?: Array<Document.AllowedType>;
125
125
 
126
126
  /**
127
- * Require that the user provide an id number which will be verified.
127
+ * Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
128
128
  */
129
129
  require_id_number?: boolean;
130
130
 
131
131
  /**
132
- * Require that the user capture documents live with their webcam or phone camera.
132
+ * Disable image uploads, identity document images have to be captured using the device's camera.
133
133
  */
134
134
  require_live_capture?: boolean;
135
135
 
136
136
  /**
137
- * Require that the user provide a selfie to compare against the document photo.
137
+ * Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
138
138
  */
139
139
  require_matching_selfie?: boolean;
140
140
  }
@@ -163,32 +163,32 @@ declare module 'stripe' {
163
163
 
164
164
  interface VerifiedOutputs {
165
165
  /**
166
- * Verified address of the user.
166
+ * The user's verified address.
167
167
  */
168
168
  address: Stripe.Address | null;
169
169
 
170
170
  /**
171
- * Verified date of birth of the user.
171
+ * The user's verified date of birth.
172
172
  */
173
173
  dob: VerifiedOutputs.Dob | null;
174
174
 
175
175
  /**
176
- * Verified first name of the user.
176
+ * The user's verified first name.
177
177
  */
178
178
  first_name: string | null;
179
179
 
180
180
  /**
181
- * Verified national id number of the user.
181
+ * The user's verified id number.
182
182
  */
183
183
  id_number: string | null;
184
184
 
185
185
  /**
186
- * Country / type of verified national id number.
186
+ * The user's veriifed id number type.
187
187
  */
188
188
  id_number_type: VerifiedOutputs.IdNumberType | null;
189
189
 
190
190
  /**
191
- * Verified last name of the user.
191
+ * The user's verified last name.
192
192
  */
193
193
  last_name: string | null;
194
194
  }
@@ -217,7 +217,7 @@ declare module 'stripe' {
217
217
 
218
218
  interface VerificationSessionCreateParams {
219
219
  /**
220
- * The primary type of verification being performed with this Session.
220
+ * The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
221
221
  */
222
222
  type: VerificationSessionCreateParams.Type;
223
223
 
@@ -232,12 +232,12 @@ declare module 'stripe' {
232
232
  metadata?: Stripe.MetadataParam;
233
233
 
234
234
  /**
235
- * An optional hash of configuration options for each verification rule that is requested
235
+ * A set of options for the session's verification checks.
236
236
  */
237
237
  options?: VerificationSessionCreateParams.Options;
238
238
 
239
239
  /**
240
- * The URL the user will be redirected to after Stripe collects the required identity information.
240
+ * The URL that the user will be redirected to upon completing the verification flow.
241
241
  */
242
242
  return_url?: string;
243
243
  }
@@ -245,7 +245,7 @@ declare module 'stripe' {
245
245
  namespace VerificationSessionCreateParams {
246
246
  interface Options {
247
247
  /**
248
- * Verification configuration options for the `document` record_type.
248
+ * Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
249
249
  */
250
250
  document?: Stripe.Emptyable<Options.Document>;
251
251
  }
@@ -253,22 +253,22 @@ declare module 'stripe' {
253
253
  namespace Options {
254
254
  interface Document {
255
255
  /**
256
- * Restrict the list of allowed document type to these types.
256
+ * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
257
257
  */
258
258
  allowed_types?: Array<Document.AllowedType>;
259
259
 
260
260
  /**
261
- * Require that the user provide an id number which will be verified.
261
+ * Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
262
262
  */
263
263
  require_id_number?: boolean;
264
264
 
265
265
  /**
266
- * Require that the user capture documents live with their webcam or phone camera.
266
+ * Disable image uploads, identity document images have to be captured using the device's camera.
267
267
  */
268
268
  require_live_capture?: boolean;
269
269
 
270
270
  /**
271
- * Require that the user provide a selfie to compare against the document photo.
271
+ * Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
272
272
  */
273
273
  require_matching_selfie?: boolean;
274
274
  }
@@ -300,12 +300,12 @@ declare module 'stripe' {
300
300
  metadata?: Stripe.MetadataParam;
301
301
 
302
302
  /**
303
- * New configuration options.
303
+ * A set of options for the session's verification checks.
304
304
  */
305
305
  options?: VerificationSessionUpdateParams.Options;
306
306
 
307
307
  /**
308
- * New verification type.
308
+ * The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
309
309
  */
310
310
  type?: VerificationSessionUpdateParams.Type;
311
311
  }
@@ -313,7 +313,7 @@ declare module 'stripe' {
313
313
  namespace VerificationSessionUpdateParams {
314
314
  interface Options {
315
315
  /**
316
- * Verification configuration options for the `document` record_type.
316
+ * Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
317
317
  */
318
318
  document?: Stripe.Emptyable<Options.Document>;
319
319
  }
@@ -321,22 +321,22 @@ declare module 'stripe' {
321
321
  namespace Options {
322
322
  interface Document {
323
323
  /**
324
- * Restrict the list of allowed document type to these types.
324
+ * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
325
325
  */
326
326
  allowed_types?: Array<Document.AllowedType>;
327
327
 
328
328
  /**
329
- * Require that the user provide an id number which will be verified.
329
+ * Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
330
330
  */
331
331
  require_id_number?: boolean;
332
332
 
333
333
  /**
334
- * Require that the user capture documents live with their webcam or phone camera.
334
+ * Disable image uploads, identity document images have to be captured using the device's camera.
335
335
  */
336
336
  require_live_capture?: boolean;
337
337
 
338
338
  /**
339
- * Require that the user provide a selfie to compare against the document photo.
339
+ * Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
340
340
  */
341
341
  require_matching_selfie?: boolean;
342
342
  }
@@ -358,7 +358,7 @@ declare module 'stripe' {
358
358
  expand?: Array<string>;
359
359
 
360
360
  /**
361
- * Only return VerificationSessions with this status.
361
+ * Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
362
362
  */
363
363
  status?: VerificationSessionListParams.Status;
364
364
  }
@@ -383,7 +383,13 @@ declare module 'stripe' {
383
383
 
384
384
  class VerificationSessionsResource {
385
385
  /**
386
- * Create a new VerificationSession to begin the verification process.
386
+ * Creates a VerificationSession object.
387
+ *
388
+ * After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url.
389
+ *
390
+ * If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
391
+ *
392
+ * Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents).
387
393
  */
388
394
  create(
389
395
  params: VerificationSessionCreateParams,
@@ -391,10 +397,10 @@ declare module 'stripe' {
391
397
  ): Promise<Stripe.Response<Stripe.Identity.VerificationSession>>;
392
398
 
393
399
  /**
394
- * Retrieves an existing VerificationSession. When the session status is requires_input, this method guarantees
395
- * that the redirect url is fresh: if your user has previously visited this session, a new url will be returned.
396
- * Before redirecting your user to Stripe, ensure that you have just Created or Retrieved the VerificationSession;
397
- * never cache or store the url.
400
+ * Retrieves the details of a VerificationSession that was previously created.
401
+ *
402
+ * When the session status is requires_input, you can use this method to retrieve a valid
403
+ * client_secret or url to allow re-submission.
398
404
  */
399
405
  retrieve(
400
406
  id: string,
@@ -407,7 +413,10 @@ declare module 'stripe' {
407
413
  ): Promise<Stripe.Response<Stripe.Identity.VerificationSession>>;
408
414
 
409
415
  /**
410
- * Update properties on a VerificationSession
416
+ * Updates a VerificationSession object.
417
+ *
418
+ * When the session status is requires_input, you can use this method to update the
419
+ * verification check and options.
411
420
  */
412
421
  update(
413
422
  id: string,
@@ -416,7 +425,7 @@ declare module 'stripe' {
416
425
  ): Promise<Stripe.Response<Stripe.Identity.VerificationSession>>;
417
426
 
418
427
  /**
419
- * List all verification sessions. Can optionally provide a status to return only VerificationSessions with that status. Can optionally specify a query filter on created timestamp.
428
+ * Returns a list of VerificationSessions
420
429
  */
421
430
  list(
422
431
  params?: VerificationSessionListParams,
@@ -427,10 +436,9 @@ declare module 'stripe' {
427
436
  ): ApiListPromise<Stripe.Identity.VerificationSession>;
428
437
 
429
438
  /**
430
- * Mark a VerificationSession as canceled.
439
+ * A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
431
440
  *
432
- * If the VerificationSession is in the processing state, you must wait until it
433
- * finishes before cancelling it.
441
+ * Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
434
442
  */
435
443
  cancel(
436
444
  id: string,
@@ -443,24 +451,25 @@ declare module 'stripe' {
443
451
  ): Promise<Stripe.Response<Stripe.Identity.VerificationSession>>;
444
452
 
445
453
  /**
446
- * Redact a VerificationSession to delete all collected information from Stripe.
447
- * This will redact the VerificationSession and all objects related to it, including
448
- * VerificationReports, Events, Files, request logs, etc. This redaction process may
449
- * take up to four days. When the redaction process is in progress, the
450
- * VerificationSession's redaction.status field will be set to processing; when
451
- * the process is finished, it will change to redacted.
454
+ * Redact a VerificationSession to remove all collected information from Stripe. This will redact
455
+ * the VerificationSession and all objects related to it, including VerificationReports, Events,
456
+ * request logs, etc.
457
+ *
458
+ * A VerificationSession object can be redacted when it is in requires_input or verified
459
+ * [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
460
+ * state will automatically cancel it.
452
461
  *
453
- * Redaction is irreversible. Redacted objects are still accessible in the Stripe API,
454
- * but all the fields that contain personal data will be replaced by the string
455
- * [redacted] or a similar placeholder. The metadata field will also be erased.
456
- * Redacted objects cannot be updated or used for any purpose.
462
+ * The redaction process may take up to four days. When the redaction process is in progress, the
463
+ * VerificationSession's redaction.status field will be set to processing; when the process is
464
+ * finished, it will change to redacted and an identity.verification_session.redacted event
465
+ * will be emitted.
457
466
  *
458
- * If the VerificationSession is in the processing state, you must wait until it
459
- * finishes before redacting it. Redacting a VerificationSession in requires_action
460
- * state will automatically [cancel](https://stripe.com/docs/api/verification_sessions/cancel) it.
467
+ * Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the
468
+ * fields that contain personal data will be replaced by the string [redacted] or a similar
469
+ * placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
470
+ * used for any purpose.
461
471
  *
462
- * An [identity.verification_session.redacted](https://stripe.com/docs/api/events/types#event_types-identity.verification_session.redacted)
463
- * webhook will be sent when a VerificationSession is redacted.
472
+ * [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
464
473
  */
465
474
  redact(
466
475
  id: string,
@@ -460,6 +460,11 @@ declare module 'stripe' {
460
460
  */
461
461
  dob?: Stripe.Emptyable<PersonCreateParams.Dob>;
462
462
 
463
+ /**
464
+ * Documents that may be submitted to satisfy various informational requests.
465
+ */
466
+ documents?: PersonCreateParams.Documents;
467
+
463
468
  /**
464
469
  * The person's email address.
465
470
  */
@@ -606,6 +611,46 @@ declare module 'stripe' {
606
611
  year: number;
607
612
  }
608
613
 
614
+ interface Documents {
615
+ /**
616
+ * One or more documents that demonstrate proof that this person is authorized to represent the company.
617
+ */
618
+ company_authorization?: Documents.CompanyAuthorization;
619
+
620
+ /**
621
+ * One or more documents showing the person's passport page with photo and personal data.
622
+ */
623
+ passport?: Documents.Passport;
624
+
625
+ /**
626
+ * One or more documents showing the person's visa required for living in the country where they are residing.
627
+ */
628
+ visa?: Documents.Visa;
629
+ }
630
+
631
+ namespace Documents {
632
+ interface CompanyAuthorization {
633
+ /**
634
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
635
+ */
636
+ files?: Array<string>;
637
+ }
638
+
639
+ interface Passport {
640
+ /**
641
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
642
+ */
643
+ files?: Array<string>;
644
+ }
645
+
646
+ interface Visa {
647
+ /**
648
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
649
+ */
650
+ files?: Array<string>;
651
+ }
652
+ }
653
+
609
654
  interface Relationship {
610
655
  /**
611
656
  * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
@@ -705,6 +750,11 @@ declare module 'stripe' {
705
750
  */
706
751
  dob?: Stripe.Emptyable<PersonUpdateParams.Dob>;
707
752
 
753
+ /**
754
+ * Documents that may be submitted to satisfy various informational requests.
755
+ */
756
+ documents?: PersonUpdateParams.Documents;
757
+
708
758
  /**
709
759
  * The person's email address.
710
760
  */
@@ -851,6 +901,46 @@ declare module 'stripe' {
851
901
  year: number;
852
902
  }
853
903
 
904
+ interface Documents {
905
+ /**
906
+ * One or more documents that demonstrate proof that this person is authorized to represent the company.
907
+ */
908
+ company_authorization?: Documents.CompanyAuthorization;
909
+
910
+ /**
911
+ * One or more documents showing the person's passport page with photo and personal data.
912
+ */
913
+ passport?: Documents.Passport;
914
+
915
+ /**
916
+ * One or more documents showing the person's visa required for living in the country where they are residing.
917
+ */
918
+ visa?: Documents.Visa;
919
+ }
920
+
921
+ namespace Documents {
922
+ interface CompanyAuthorization {
923
+ /**
924
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
925
+ */
926
+ files?: Array<string>;
927
+ }
928
+
929
+ interface Passport {
930
+ /**
931
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
932
+ */
933
+ files?: Array<string>;
934
+ }
935
+
936
+ interface Visa {
937
+ /**
938
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
939
+ */
940
+ files?: Array<string>;
941
+ }
942
+ }
943
+
854
944
  interface Relationship {
855
945
  /**
856
946
  * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
@@ -565,6 +565,11 @@ declare module 'stripe' {
565
565
  */
566
566
  dob?: Stripe.Emptyable<Person.Dob>;
567
567
 
568
+ /**
569
+ * Documents that may be submitted to satisfy various informational requests.
570
+ */
571
+ documents?: Person.Documents;
572
+
568
573
  /**
569
574
  * The person's email address.
570
575
  */
@@ -701,6 +706,46 @@ declare module 'stripe' {
701
706
  year: number;
702
707
  }
703
708
 
709
+ interface Documents {
710
+ /**
711
+ * One or more documents that demonstrate proof that this person is authorized to represent the company.
712
+ */
713
+ company_authorization?: Documents.CompanyAuthorization;
714
+
715
+ /**
716
+ * One or more documents showing the person's passport page with photo and personal data.
717
+ */
718
+ passport?: Documents.Passport;
719
+
720
+ /**
721
+ * One or more documents showing the person's visa required for living in the country where they are residing.
722
+ */
723
+ visa?: Documents.Visa;
724
+ }
725
+
726
+ namespace Documents {
727
+ interface CompanyAuthorization {
728
+ /**
729
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
730
+ */
731
+ files?: Array<string>;
732
+ }
733
+
734
+ interface Passport {
735
+ /**
736
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
737
+ */
738
+ files?: Array<string>;
739
+ }
740
+
741
+ interface Visa {
742
+ /**
743
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
744
+ */
745
+ files?: Array<string>;
746
+ }
747
+ }
748
+
704
749
  interface Relationship {
705
750
  /**
706
751
  * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.