@stripe/stripe-js 3.0.9 → 3.0.10

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.
Files changed (129) hide show
  1. package/dist/index.d.mts +12792 -4
  2. package/dist/index.d.ts +12792 -4
  3. package/dist/{index.js → stripe.js} +1 -1
  4. package/dist/{index.mjs → stripe.mjs} +1 -1
  5. package/package.json +10 -11
  6. package/pure/index.d.mts +12771 -1
  7. package/pure/index.d.ts +12771 -1
  8. package/pure/index.js +204 -1
  9. package/pure/index.mjs +200 -1
  10. package/dist/api/bank-accounts.d.mts +0 -61
  11. package/dist/api/bank-accounts.d.ts +0 -61
  12. package/dist/api/cards.d.mts +0 -130
  13. package/dist/api/cards.d.ts +0 -130
  14. package/dist/api/financial-connections.d.mts +0 -232
  15. package/dist/api/financial-connections.d.ts +0 -232
  16. package/dist/api/index.d.mts +0 -11
  17. package/dist/api/index.d.ts +0 -11
  18. package/dist/api/orders.d.mts +0 -122
  19. package/dist/api/orders.d.ts +0 -122
  20. package/dist/api/payment-intents.d.mts +0 -330
  21. package/dist/api/payment-intents.d.ts +0 -330
  22. package/dist/api/payment-methods.d.mts +0 -452
  23. package/dist/api/payment-methods.d.ts +0 -452
  24. package/dist/api/setup-intents.d.mts +0 -184
  25. package/dist/api/setup-intents.d.ts +0 -184
  26. package/dist/api/shared.d.mts +0 -125
  27. package/dist/api/shared.d.ts +0 -125
  28. package/dist/api/sources.d.mts +0 -1045
  29. package/dist/api/sources.d.ts +0 -1045
  30. package/dist/api/tokens.d.mts +0 -639
  31. package/dist/api/tokens.d.ts +0 -639
  32. package/dist/api/verification-sessions.d.mts +0 -9
  33. package/dist/api/verification-sessions.d.ts +0 -9
  34. package/dist/pure.d.mts +0 -5
  35. package/dist/pure.d.ts +0 -5
  36. package/dist/pure.js +0 -204
  37. package/dist/pure.mjs +0 -200
  38. package/dist/shared.d.mts +0 -6
  39. package/dist/shared.d.ts +0 -6
  40. package/dist/stripe-js/checkout.d.mts +0 -153
  41. package/dist/stripe-js/checkout.d.ts +0 -153
  42. package/dist/stripe-js/custom-checkout.d.mts +0 -402
  43. package/dist/stripe-js/custom-checkout.d.ts +0 -402
  44. package/dist/stripe-js/elements/address.d.mts +0 -261
  45. package/dist/stripe-js/elements/address.d.ts +0 -261
  46. package/dist/stripe-js/elements/affirm-message.d.mts +0 -65
  47. package/dist/stripe-js/elements/affirm-message.d.ts +0 -65
  48. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +0 -119
  49. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
  50. package/dist/stripe-js/elements/apple-pay.d.mts +0 -156
  51. package/dist/stripe-js/elements/apple-pay.d.ts +0 -156
  52. package/dist/stripe-js/elements/au-bank-account.d.mts +0 -138
  53. package/dist/stripe-js/elements/au-bank-account.d.ts +0 -138
  54. package/dist/stripe-js/elements/base.d.mts +0 -264
  55. package/dist/stripe-js/elements/base.d.ts +0 -264
  56. package/dist/stripe-js/elements/card-cvc.d.mts +0 -119
  57. package/dist/stripe-js/elements/card-cvc.d.ts +0 -119
  58. package/dist/stripe-js/elements/card-expiry.d.mts +0 -119
  59. package/dist/stripe-js/elements/card-expiry.d.ts +0 -119
  60. package/dist/stripe-js/elements/card-number.d.mts +0 -200
  61. package/dist/stripe-js/elements/card-number.d.ts +0 -200
  62. package/dist/stripe-js/elements/card.d.mts +0 -226
  63. package/dist/stripe-js/elements/card.d.ts +0 -226
  64. package/dist/stripe-js/elements/cart.d.mts +0 -224
  65. package/dist/stripe-js/elements/cart.d.ts +0 -224
  66. package/dist/stripe-js/elements/eps-bank.d.mts +0 -140
  67. package/dist/stripe-js/elements/eps-bank.d.ts +0 -140
  68. package/dist/stripe-js/elements/express-checkout.d.mts +0 -446
  69. package/dist/stripe-js/elements/express-checkout.d.ts +0 -446
  70. package/dist/stripe-js/elements/fpx-bank.d.mts +0 -134
  71. package/dist/stripe-js/elements/fpx-bank.d.ts +0 -134
  72. package/dist/stripe-js/elements/iban.d.mts +0 -135
  73. package/dist/stripe-js/elements/iban.d.ts +0 -135
  74. package/dist/stripe-js/elements/ideal-bank.d.mts +0 -140
  75. package/dist/stripe-js/elements/ideal-bank.d.ts +0 -140
  76. package/dist/stripe-js/elements/index.d.mts +0 -22
  77. package/dist/stripe-js/elements/index.d.ts +0 -22
  78. package/dist/stripe-js/elements/issuing/index.d.mts +0 -5
  79. package/dist/stripe-js/elements/issuing/index.d.ts +0 -5
  80. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +0 -37
  81. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
  82. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +0 -32
  83. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
  84. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +0 -32
  85. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
  86. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +0 -40
  87. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
  88. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +0 -32
  89. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
  90. package/dist/stripe-js/elements/link-authentication.d.mts +0 -158
  91. package/dist/stripe-js/elements/link-authentication.d.ts +0 -158
  92. package/dist/stripe-js/elements/p24-bank.d.mts +0 -140
  93. package/dist/stripe-js/elements/p24-bank.d.ts +0 -140
  94. package/dist/stripe-js/elements/payment-method-messaging.d.mts +0 -98
  95. package/dist/stripe-js/elements/payment-method-messaging.d.ts +0 -98
  96. package/dist/stripe-js/elements/payment-request-button.d.mts +0 -151
  97. package/dist/stripe-js/elements/payment-request-button.d.ts +0 -151
  98. package/dist/stripe-js/elements/payment.d.mts +0 -275
  99. package/dist/stripe-js/elements/payment.d.ts +0 -275
  100. package/dist/stripe-js/elements/shipping-address.d.mts +0 -215
  101. package/dist/stripe-js/elements/shipping-address.d.ts +0 -215
  102. package/dist/stripe-js/elements-group.d.mts +0 -1129
  103. package/dist/stripe-js/elements-group.d.ts +0 -1129
  104. package/dist/stripe-js/embedded-checkout.d.mts +0 -35
  105. package/dist/stripe-js/embedded-checkout.d.ts +0 -35
  106. package/dist/stripe-js/ephemeral-keys.d.mts +0 -3
  107. package/dist/stripe-js/ephemeral-keys.d.ts +0 -3
  108. package/dist/stripe-js/financial-connections.d.mts +0 -19
  109. package/dist/stripe-js/financial-connections.d.ts +0 -19
  110. package/dist/stripe-js/index.d.mts +0 -13
  111. package/dist/stripe-js/index.d.ts +0 -13
  112. package/dist/stripe-js/orders.d.mts +0 -9
  113. package/dist/stripe-js/orders.d.ts +0 -9
  114. package/dist/stripe-js/payment-intents.d.mts +0 -1470
  115. package/dist/stripe-js/payment-intents.d.ts +0 -1470
  116. package/dist/stripe-js/payment-request.d.mts +0 -529
  117. package/dist/stripe-js/payment-request.d.ts +0 -529
  118. package/dist/stripe-js/setup-intents.d.mts +0 -250
  119. package/dist/stripe-js/setup-intents.d.ts +0 -250
  120. package/dist/stripe-js/stripe.d.mts +0 -1472
  121. package/dist/stripe-js/stripe.d.ts +0 -1472
  122. package/dist/stripe-js/token-and-sources.d.mts +0 -110
  123. package/dist/stripe-js/token-and-sources.d.ts +0 -110
  124. package/dist/utils.d.mts +0 -2
  125. package/dist/utils.d.ts +0 -2
  126. package/lib/index.d.mts +0 -1
  127. package/lib/index.d.ts +0 -1
  128. package/lib/index.js +0 -2
  129. package/lib/index.mjs +0 -1
@@ -1,639 +0,0 @@
1
- import {Omit} from '../utils';
2
- import {Card} from './cards';
3
- import {BankAccount} from './bank-accounts';
4
- import {JapanAddressParam, MetadataParam} from './shared';
5
-
6
- /**
7
- * The Token object.
8
- */
9
- export interface Token {
10
- /**
11
- * Unique identifier for the object.
12
- */
13
- id: string;
14
-
15
- /**
16
- * String representing the object's type. Objects of the same type share the same value.
17
- */
18
- object: 'token';
19
-
20
- bank_account?: BankAccount;
21
-
22
- card?: Card;
23
-
24
- /**
25
- * IP address of the client that generated the token.
26
- */
27
- client_ip: string | null;
28
-
29
- /**
30
- * Time at which the object was created. Measured in seconds since the Unix epoch.
31
- */
32
- created: number;
33
-
34
- /**
35
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
36
- */
37
- livemode: boolean;
38
-
39
- /**
40
- * Type of the token: `account`, `bank_account`, `card`, or `pii`.
41
- */
42
- type: string;
43
-
44
- /**
45
- * Whether this token has already been used (tokens can be used only once).
46
- */
47
- used: boolean;
48
- }
49
-
50
- export type BankAccountToken = Omit<Token, 'card'> & {
51
- bank_account: BankAccount;
52
- };
53
-
54
- export namespace TokenCreateParams {
55
- export interface Account {
56
- /**
57
- * The business type.
58
- */
59
- business_type?: Account.BusinessType;
60
-
61
- /**
62
- * Information about the company or business.
63
- */
64
- company?: Account.Company;
65
-
66
- /**
67
- * Information about the person represented by the account.
68
- */
69
- individual?: Account.Individual;
70
-
71
- /**
72
- * Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://stripe.com/docs/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
73
- */
74
- tos_shown_and_accepted?: boolean;
75
- }
76
-
77
- export namespace Account {
78
- export type BusinessType =
79
- | 'company'
80
- | 'government_entity'
81
- | 'individual'
82
- | 'non_profit';
83
-
84
- export interface Company {
85
- /**
86
- * The company's primary address.
87
- */
88
- address?: Company.Address;
89
-
90
- /**
91
- * The Kana variation of the company's primary address (Japan only).
92
- */
93
- address_kana?: JapanAddressParam;
94
-
95
- /**
96
- * The Kanji variation of the company's primary address (Japan only).
97
- */
98
- address_kanji?: JapanAddressParam;
99
-
100
- /**
101
- * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
102
- */
103
- directors_provided?: boolean;
104
-
105
- /**
106
- * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive` requirement.
107
- */
108
- executives_provided?: boolean;
109
-
110
- /**
111
- * The company's legal name.
112
- */
113
- name?: string;
114
-
115
- /**
116
- * The Kana variation of the company's legal name (Japan only).
117
- */
118
- name_kana?: string;
119
-
120
- /**
121
- * The Kanji variation of the company's legal name (Japan only).
122
- */
123
- name_kanji?: string;
124
-
125
- /**
126
- * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.owner` requirement.
127
- */
128
- owners_provided?: boolean;
129
-
130
- /**
131
- * The company's phone number (used for verification).
132
- */
133
- phone?: string;
134
-
135
- /**
136
- * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
137
- */
138
- structure?: Company.Structure | null;
139
-
140
- /**
141
- * The business ID number of the company, as appropriate for the company's country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
142
- */
143
- tax_id?: string;
144
-
145
- /**
146
- * The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
147
- */
148
- tax_id_registrar?: string;
149
-
150
- /**
151
- * The VAT number of the company.
152
- */
153
- vat_id?: string;
154
-
155
- /**
156
- * Information on the verification state of the company.
157
- */
158
- verification?: Company.Verification;
159
- }
160
-
161
- export namespace Company {
162
- export interface Address {
163
- /**
164
- * City, district, suburb, town, or village.
165
- */
166
- city?: string;
167
-
168
- /**
169
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
170
- */
171
- country?: string;
172
-
173
- /**
174
- * Address line 1 (e.g., street, PO Box, or company name).
175
- */
176
- line1?: string;
177
-
178
- /**
179
- * Address line 2 (e.g., apartment, suite, unit, or building).
180
- */
181
- line2?: string;
182
-
183
- /**
184
- * ZIP or postal code.
185
- */
186
- postal_code?: string;
187
-
188
- /**
189
- * State, county, province, or region.
190
- */
191
- state?: string;
192
- }
193
-
194
- export type Structure =
195
- | 'government_instrumentality'
196
- | 'governmental_unit'
197
- | 'incorporated_non_profit'
198
- | 'limited_liability_partnership'
199
- | 'multi_member_llc'
200
- | 'private_company'
201
- | 'private_corporation'
202
- | 'private_partnership'
203
- | 'public_company'
204
- | 'public_corporation'
205
- | 'public_partnership'
206
- | 'sole_proprietorship'
207
- | 'tax_exempt_government_instrumentality'
208
- | 'unincorporated_association'
209
- | 'unincorporated_non_profit';
210
-
211
- export interface Verification {
212
- /**
213
- * A document verifying the business.
214
- */
215
- document?: Verification.Document;
216
- }
217
-
218
- export namespace Verification {
219
- export interface Document {
220
- /**
221
- * The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
222
- */
223
- back?: string;
224
-
225
- /**
226
- * The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
227
- */
228
- front?: string;
229
- }
230
- }
231
- }
232
-
233
- export interface Individual {
234
- /**
235
- * The individual's primary address.
236
- */
237
- address?: Individual.Address;
238
-
239
- /**
240
- * The Kana variation of the the individual's primary address (Japan only).
241
- */
242
- address_kana?: JapanAddressParam;
243
-
244
- /**
245
- * The Kanji variation of the the individual's primary address (Japan only).
246
- */
247
- address_kanji?: JapanAddressParam;
248
-
249
- /**
250
- * The individual's date of birth.
251
- */
252
- dob?: Individual.Dob | null;
253
-
254
- /**
255
- * The individual's email address.
256
- */
257
- email?: string;
258
-
259
- /**
260
- * The individual's first name.
261
- */
262
- first_name?: string;
263
-
264
- /**
265
- * The Kana variation of the the individual's first name (Japan only).
266
- */
267
- first_name_kana?: string;
268
-
269
- /**
270
- * The Kanji variation of the individual's first name (Japan only).
271
- */
272
- first_name_kanji?: string;
273
-
274
- /**
275
- * The individual's gender (International regulations require either "male" or "female").
276
- */
277
- gender?: string;
278
-
279
- /**
280
- * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/stripe.js#collecting-pii-data).
281
- */
282
- id_number?: string;
283
-
284
- /**
285
- * The individual's last name.
286
- */
287
- last_name?: string;
288
-
289
- /**
290
- * The Kana varation of the individual's last name (Japan only).
291
- */
292
- last_name_kana?: string;
293
-
294
- /**
295
- * The Kanji varation of the individual's last name (Japan only).
296
- */
297
- last_name_kanji?: string;
298
-
299
- /**
300
- * The individual's maiden name.
301
- */
302
- maiden_name?: string;
303
-
304
- /**
305
- * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
306
- */
307
- metadata?: MetadataParam | null;
308
-
309
- /**
310
- * The individual's phone number.
311
- */
312
- phone?: string;
313
-
314
- /**
315
- * Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
316
- */
317
- political_exposure?: Individual.PoliticalExposure;
318
-
319
- /**
320
- * The last four digits of the individual's Social Security Number (U.S. only).
321
- */
322
- ssn_last_4?: string;
323
-
324
- /**
325
- * The individual's verification document information.
326
- */
327
- verification?: Individual.Verification;
328
- }
329
-
330
- export namespace Individual {
331
- export interface Address {
332
- /**
333
- * City, district, suburb, town, or village.
334
- */
335
- city?: string;
336
-
337
- /**
338
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
339
- */
340
- country?: string;
341
-
342
- /**
343
- * Address line 1 (e.g., street, PO Box, or company name).
344
- */
345
- line1?: string;
346
-
347
- /**
348
- * Address line 2 (e.g., apartment, suite, unit, or building).
349
- */
350
- line2?: string;
351
-
352
- /**
353
- * ZIP or postal code.
354
- */
355
- postal_code?: string;
356
-
357
- /**
358
- * State, county, province, or region.
359
- */
360
- state?: string;
361
- }
362
-
363
- export interface Dob {
364
- /**
365
- * The day of birth, between 1 and 31.
366
- */
367
- day: number;
368
-
369
- /**
370
- * The month of birth, between 1 and 12.
371
- */
372
- month: number;
373
-
374
- /**
375
- * The four-digit year of birth.
376
- */
377
- year: number;
378
- }
379
-
380
- export type PoliticalExposure = 'none' | 'existing';
381
-
382
- export interface Verification {
383
- /**
384
- * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
385
- */
386
- additional_document?: Verification.AdditionalDocument;
387
-
388
- /**
389
- * An identifying document, either a passport or local ID card.
390
- */
391
- document?: Verification.Document;
392
- }
393
-
394
- export namespace Verification {
395
- export interface AdditionalDocument {
396
- /**
397
- * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
398
- */
399
- back?: string;
400
-
401
- /**
402
- * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
403
- */
404
- front?: string;
405
- }
406
-
407
- export interface Document {
408
- /**
409
- * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
410
- */
411
- back?: string;
412
-
413
- /**
414
- * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
415
- */
416
- front?: string;
417
- }
418
- }
419
- }
420
- }
421
-
422
- export interface Person {
423
- /**
424
- * The person's address.
425
- */
426
- address?: Person.Address;
427
-
428
- /**
429
- * The Kana variation of the person's address (Japan only).
430
- */
431
- address_kana?: JapanAddressParam;
432
-
433
- /**
434
- * The Kanji variation of the person's address (Japan only).
435
- */
436
- address_kanji?: JapanAddressParam;
437
-
438
- /**
439
- * The person's date of birth.
440
- */
441
- dob?: Person.Dob | null;
442
-
443
- /**
444
- * The person's email address.
445
- */
446
- email?: string;
447
-
448
- /**
449
- * The person's first name.
450
- */
451
- first_name?: string;
452
-
453
- /**
454
- * The Kana variation of the person's first name (Japan only).
455
- */
456
- first_name_kana?: string;
457
-
458
- /**
459
- * The Kanji variation of the person's first name (Japan only).
460
- */
461
- first_name_kanji?: string;
462
-
463
- /**
464
- * The person's gender (International regulations require either "male" or "female").
465
- */
466
- gender?: string;
467
-
468
- /**
469
- * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/stripe.js#collecting-pii-data).
470
- */
471
- id_number?: string;
472
-
473
- /**
474
- * The person's last name.
475
- */
476
- last_name?: string;
477
-
478
- /**
479
- * The Kana variation of the person's last name (Japan only).
480
- */
481
- last_name_kana?: string;
482
-
483
- /**
484
- * The Kanji variation of the person's last name (Japan only).
485
- */
486
- last_name_kanji?: string;
487
-
488
- /**
489
- * The person's maiden name.
490
- */
491
- maiden_name?: string;
492
-
493
- /**
494
- * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
495
- */
496
- metadata?: MetadataParam | null;
497
-
498
- /**
499
- * The person's phone number.
500
- */
501
- phone?: string;
502
-
503
- /**
504
- * The relationship that this person has with the account's legal entity.
505
- */
506
- relationship?: Person.Relationship;
507
-
508
- /**
509
- * The last 4 digits of the person's social security number.
510
- */
511
- ssn_last_4?: string;
512
-
513
- /**
514
- * The person's verification status.
515
- */
516
- verification?: Person.Verification;
517
- }
518
-
519
- export namespace Person {
520
- export interface Address {
521
- /**
522
- * City, district, suburb, town, or village.
523
- */
524
- city?: string;
525
-
526
- /**
527
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
528
- */
529
- country?: string;
530
-
531
- /**
532
- * Address line 1 (e.g., street, PO Box, or company name).
533
- */
534
- line1?: string;
535
-
536
- /**
537
- * Address line 2 (e.g., apartment, suite, unit, or building).
538
- */
539
- line2?: string;
540
-
541
- /**
542
- * ZIP or postal code.
543
- */
544
- postal_code?: string;
545
-
546
- /**
547
- * State, county, province, or region.
548
- */
549
- state?: string;
550
- }
551
-
552
- export interface Dob {
553
- /**
554
- * The day of birth, between 1 and 31.
555
- */
556
- day: number;
557
-
558
- /**
559
- * The month of birth, between 1 and 12.
560
- */
561
- month: number;
562
-
563
- /**
564
- * The four-digit year of birth.
565
- */
566
- year: number;
567
- }
568
-
569
- export interface Relationship {
570
- /**
571
- * 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.
572
- */
573
- director?: boolean;
574
-
575
- /**
576
- * Whether the person has significant responsibility to control, manage, or direct the organization.
577
- */
578
- executive?: boolean;
579
-
580
- /**
581
- * Whether the person is an owner of the account's legal entity.
582
- */
583
- owner?: boolean;
584
-
585
- /**
586
- * The percent owned by the person of the account's legal entity.
587
- */
588
- percent_ownership?: number | null;
589
-
590
- /**
591
- * Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
592
- */
593
- representative?: boolean;
594
-
595
- /**
596
- * The person's title (e.g., CEO, Support Engineer).
597
- */
598
- title?: string;
599
- }
600
-
601
- export interface Verification {
602
- /**
603
- * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
604
- */
605
- additional_document?: Verification.AdditionalDocument;
606
-
607
- /**
608
- * An identifying document, either a passport or local ID card.
609
- */
610
- document?: Verification.Document;
611
- }
612
-
613
- export namespace Verification {
614
- export interface AdditionalDocument {
615
- /**
616
- * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
617
- */
618
- back?: string;
619
-
620
- /**
621
- * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
622
- */
623
- front?: string;
624
- }
625
-
626
- export interface Document {
627
- /**
628
- * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
629
- */
630
- back?: string;
631
-
632
- /**
633
- * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
634
- */
635
- front?: string;
636
- }
637
- }
638
- }
639
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The VerificationSession object.
3
- */
4
- export interface VerificationSession {
5
- /**
6
- * Unique identifier for the object.
7
- */
8
- id: string;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The VerificationSession object.
3
- */
4
- export interface VerificationSession {
5
- /**
6
- * Unique identifier for the object.
7
- */
8
- id: string;
9
- }
package/dist/pure.d.mts DELETED
@@ -1,5 +0,0 @@
1
- import {loadStripe as _loadStripe} from './shared';
2
-
3
- export const loadStripe: typeof _loadStripe & {
4
- setLoadParameters: (params: {advancedFraudSignals: boolean}) => void;
5
- };
package/dist/pure.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import {loadStripe as _loadStripe} from './shared';
2
-
3
- export const loadStripe: typeof _loadStripe & {
4
- setLoadParameters: (params: {advancedFraudSignals: boolean}) => void;
5
- };