@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,452 +0,0 @@
1
- import {StripeElement, StripeElements} from '../stripe-js';
2
- import {Metadata, MetadataParam, Address} from './shared';
3
-
4
- /**
5
- * The PaymentMethod object.
6
- */
7
- export interface PaymentMethod {
8
- /**
9
- * Unique identifier for the object.
10
- */
11
- id: string;
12
-
13
- /**
14
- * String representing the object's type. Objects of the same type share the same value.
15
- */
16
- object: 'payment_method';
17
-
18
- billing_details: PaymentMethod.BillingDetails;
19
-
20
- card?: PaymentMethod.Card;
21
-
22
- card_present?: PaymentMethod.CardPresent;
23
-
24
- /**
25
- * Time at which the object was created. Measured in seconds since the Unix epoch.
26
- */
27
- created: number;
28
-
29
- /**
30
- * The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
31
- */
32
- customer: string | null;
33
-
34
- eps?: PaymentMethod.Eps;
35
-
36
- fpx?: PaymentMethod.Fpx;
37
-
38
- grabpay?: PaymentMethod.GrabPay;
39
-
40
- ideal?: PaymentMethod.Ideal;
41
-
42
- p24?: PaymentMethod.P24;
43
-
44
- /**
45
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
46
- */
47
- livemode: boolean;
48
-
49
- /**
50
- * 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.
51
- */
52
- metadata: Metadata;
53
-
54
- sepa_debit?: PaymentMethod.SepaDebit;
55
-
56
- /**
57
- * The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
58
- */
59
- type: string;
60
-
61
- affirm?: PaymentMethod.Affirm;
62
-
63
- afterpay_clearpay?: PaymentMethod.AfterpayClearpay;
64
-
65
- acss_debit?: PaymentMethod.AcssDebit;
66
-
67
- au_becs_debit?: PaymentMethod.AuBecsDebit;
68
-
69
- us_bank_account?: PaymentMethod.UsBankAccount;
70
- }
71
-
72
- export namespace PaymentMethod {
73
- export interface AuBecsDebit {
74
- /**
75
- * Bank State Branch
76
- */
77
- bsb_number: string | null;
78
-
79
- /**
80
- * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
81
- */
82
- fingerprint: string | null;
83
-
84
- /**
85
- * Last four characters of the account number.
86
- */
87
- last4: string | null;
88
- }
89
-
90
- export interface BillingDetails {
91
- /**
92
- * Billing address.
93
- */
94
- address: Address | null;
95
-
96
- /**
97
- * Email address.
98
- */
99
- email: string | null;
100
-
101
- /**
102
- * Full name.
103
- */
104
- name: string | null;
105
-
106
- /**
107
- * Billing phone number (including extension).
108
- */
109
- phone: string | null;
110
- }
111
-
112
- export interface Card {
113
- /**
114
- * Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
115
- */
116
- brand: string;
117
-
118
- /**
119
- * Checks on Card address and CVC if provided.
120
- */
121
- checks: Card.Checks | null;
122
-
123
- /**
124
- * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
125
- */
126
- country: string | null;
127
-
128
- /**
129
- * Two-digit number representing the card's expiration month.
130
- */
131
- exp_month: number;
132
-
133
- /**
134
- * Four-digit number representing the card's expiration year.
135
- */
136
- exp_year: number;
137
-
138
- /**
139
- * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number.
140
- */
141
- fingerprint?: string | null;
142
-
143
- /**
144
- * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
145
- */
146
- funding: string;
147
-
148
- /**
149
- * The last four digits of the card.
150
- */
151
- last4: string;
152
-
153
- /**
154
- * Contains details on how this Card maybe be used for 3D Secure authentication.
155
- */
156
- three_d_secure_usage: Card.ThreeDSecureUsage | null;
157
-
158
- /**
159
- * If this Card is part of a card wallet, this contains the details of the card wallet.
160
- */
161
- wallet: null | {[k: string]: any};
162
- }
163
-
164
- export namespace Card {
165
- export interface Checks {
166
- /**
167
- * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
168
- */
169
- address_line1_check: string | null;
170
-
171
- /**
172
- * If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
173
- */
174
- address_postal_code_check: string | null;
175
-
176
- /**
177
- * If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
178
- */
179
- cvc_check: string | null;
180
- }
181
-
182
- export interface ThreeDSecureUsage {
183
- /**
184
- * Whether 3D Secure is supported on this card.
185
- */
186
- supported: boolean;
187
- }
188
- }
189
-
190
- export interface CardPresent {}
191
-
192
- export interface Eps {
193
- /**
194
- * The customer's bank.
195
- */
196
- bank: string;
197
- }
198
-
199
- export interface Fpx {
200
- /**
201
- * The customer's bank.
202
- */
203
- bank: string;
204
- }
205
-
206
- export interface GrabPay {}
207
-
208
- export interface Ideal {
209
- /**
210
- * The customer's bank, if provided.
211
- */
212
- bank: string | null;
213
-
214
- /**
215
- * The Bank Identifier Code of the customer's bank, if the bank was provided.
216
- */
217
- bic: string | null;
218
- }
219
-
220
- export interface P24 {
221
- /**
222
- * The customer's bank.
223
- */
224
- bank: string;
225
- }
226
-
227
- export interface SepaDebit {
228
- /**
229
- * Bank code of bank associated with the bank account.
230
- */
231
- bank_code: string | null;
232
-
233
- /**
234
- * Branch code of bank associated with the bank account.
235
- */
236
- branch_code: string | null;
237
-
238
- /**
239
- * Two-letter ISO code representing the country the bank account is located in.
240
- */
241
- country: string | null;
242
-
243
- /**
244
- * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
245
- */
246
- fingerprint: string | null;
247
-
248
- /**
249
- * Last four characters of the IBAN.
250
- */
251
- last4: string | null;
252
- }
253
-
254
- export interface Affirm {}
255
-
256
- export interface AfterpayClearpay {}
257
-
258
- export interface AcssDebit {
259
- /**
260
- * Customer’s bank account number.
261
- */
262
- account_number: string;
263
-
264
- /**
265
- * Institution number of the customer’s bank.
266
- */
267
- institution_number: string;
268
-
269
- /**
270
- * Transit number of the customer’s bank.
271
- */
272
- transit_number: string;
273
- }
274
-
275
- export interface UsBankAccount {
276
- /**
277
- * Customer’s bank account number.
278
- */
279
- account_number: string;
280
-
281
- /**
282
- * The routing transit number for the bank account.
283
- */
284
- routing_number: string;
285
-
286
- /**
287
- * The type of entity that holds the account. This can be either `individual` or `company`.
288
- */
289
- account_holder_type: string;
290
-
291
- /**
292
- * Account type: checkings or savings. Defaults to checking if omitted.
293
- */
294
- account_type: string;
295
-
296
- /**
297
- * The name of the bank.
298
- */
299
- bank_name: string;
300
-
301
- /**
302
- * The ID of the Financial Connections Account used to create the payment method.
303
- */
304
- financial_connections_account: string;
305
-
306
- /**
307
- * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
308
- */
309
- fingerprint: string;
310
-
311
- /**
312
- * Last four digits of the bank account number.
313
- */
314
- last4: string;
315
-
316
- /**
317
- * Contains information about US bank account networks that can be used.
318
- */
319
- networks: {
320
- /**
321
- * The preferred network.
322
- */
323
- preferred: string;
324
-
325
- /**
326
- * All supported networks.
327
- */
328
- supported: string[];
329
- };
330
- }
331
- }
332
-
333
- export interface PaymentMethodCreateParams {
334
- /**
335
- * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
336
- */
337
- billing_details?: PaymentMethodCreateParams.BillingDetails;
338
-
339
- /**
340
- * 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`.
341
- */
342
- metadata?: MetadataParam;
343
-
344
- /**
345
- * The PaymentMethod to share.
346
- */
347
- payment_method?: string;
348
-
349
- /**
350
- * The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. Required unless `payment_method` is specified (see the [Cloning PaymentMethods](https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods) guide)
351
- */
352
- type?: string;
353
- }
354
-
355
- export interface CreatePaymentMethodFromElements {
356
- /**
357
- * The Elements instance
358
- *
359
- * @docs https://stripe.com/docs/js/elements_object
360
- */
361
- elements: StripeElements;
362
-
363
- /**
364
- * Parameters that will be passed on to the PaymentMethod API
365
- *
366
- * @docs https://stripe.com/docs/api/payment_methods/create
367
- */
368
- params?: PaymentMethodCreateParams;
369
-
370
- /**
371
- * 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`.
372
- */
373
- metadata?: MetadataParam;
374
- }
375
- export interface CreatePaymentMethodFromElement {
376
- /**
377
- * The specific Element used to collect payment details
378
- *
379
- * @docs https://stripe.com/docs/js/element
380
- */
381
- element: StripeElement;
382
-
383
- /**
384
- * Parameters that will be passed on to the PaymentMethod API
385
- *
386
- * @docs https://stripe.com/docs/api/payment_methods/create
387
- */
388
- params?: PaymentMethodCreateParams;
389
-
390
- /**
391
- * 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`.
392
- */
393
- metadata?: MetadataParam;
394
- }
395
-
396
- export namespace PaymentMethodCreateParams {
397
- export interface BillingDetails {
398
- /**
399
- * Billing address.
400
- */
401
- address?: BillingDetails.Address;
402
-
403
- /**
404
- * Email address.
405
- */
406
- email?: string;
407
-
408
- /**
409
- * Full name.
410
- */
411
- name?: string;
412
-
413
- /**
414
- * Billing phone number (including extension).
415
- */
416
- phone?: string;
417
- }
418
-
419
- export namespace BillingDetails {
420
- export interface Address {
421
- /**
422
- * City, district, suburb, town, or village.
423
- */
424
- city?: string;
425
-
426
- /**
427
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
428
- */
429
- country?: string;
430
-
431
- /**
432
- * Address line 1 (e.g., street, PO Box, or company name).
433
- */
434
- line1?: string;
435
-
436
- /**
437
- * Address line 2 (e.g., apartment, suite, unit, or building).
438
- */
439
- line2?: string;
440
-
441
- /**
442
- * ZIP or postal code.
443
- */
444
- postal_code?: string;
445
-
446
- /**
447
- * State, county, province, or region.
448
- */
449
- state?: string;
450
- }
451
- }
452
- }