stripe 17.2.1 → 17.3.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  5. package/cjs/resources/V2/Core/EventDestinations.js +41 -0
  6. package/cjs/resources/V2/Core.js +2 -0
  7. package/cjs/stripe.core.js +1 -1
  8. package/esm/apiVersion.js +1 -1
  9. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  10. package/esm/resources/V2/Core/EventDestinations.js +38 -0
  11. package/esm/resources/V2/Core.js +2 -0
  12. package/esm/stripe.core.js +1 -1
  13. package/package.json +1 -1
  14. package/types/AccountSessions.d.ts +30 -5
  15. package/types/AccountSessionsResource.d.ts +30 -5
  16. package/types/Accounts.d.ts +56 -2
  17. package/types/AccountsResource.d.ts +171 -3
  18. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  19. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  20. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  21. package/types/Billing/CreditGrants.d.ts +11 -8
  22. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  23. package/types/Billing/Meters.d.ts +2 -0
  24. package/types/BillingPortal/Configurations.d.ts +22 -0
  25. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  26. package/types/Charges.d.ts +85 -0
  27. package/types/Checkout/Sessions.d.ts +82 -1
  28. package/types/Checkout/SessionsResource.d.ts +86 -0
  29. package/types/ConfirmationTokens.d.ts +75 -0
  30. package/types/CreditNoteLineItems.d.ts +3 -0
  31. package/types/CreditNotes.d.ts +3 -0
  32. package/types/CreditNotesResource.d.ts +3 -3
  33. package/types/CustomersResource.d.ts +21 -3
  34. package/types/Disputes.d.ts +152 -0
  35. package/types/DisputesResource.d.ts +120 -0
  36. package/types/EventTypes.d.ts +37 -2
  37. package/types/Events.d.ts +2 -0
  38. package/types/Forwarding/Requests.d.ts +5 -0
  39. package/types/Forwarding/RequestsResource.d.ts +5 -0
  40. package/types/InvoiceLineItems.d.ts +3 -0
  41. package/types/Invoices.d.ts +15 -1
  42. package/types/InvoicesResource.d.ts +44 -3
  43. package/types/Issuing/CardsResource.d.ts +1 -1
  44. package/types/Mandates.d.ts +8 -0
  45. package/types/PaymentIntents.d.ts +84 -0
  46. package/types/PaymentIntentsResource.d.ts +554 -7
  47. package/types/PaymentLinks.d.ts +1 -0
  48. package/types/PaymentLinksResource.d.ts +2 -0
  49. package/types/PaymentMethodConfigurations.d.ts +36 -0
  50. package/types/PaymentMethodConfigurationsResource.d.ts +52 -2
  51. package/types/PaymentMethodDomains.d.ts +28 -0
  52. package/types/PaymentMethods.d.ts +75 -0
  53. package/types/PaymentMethodsResource.d.ts +80 -1
  54. package/types/Persons.d.ts +1 -1
  55. package/types/Refunds.d.ts +5 -4
  56. package/types/SetupAttempts.d.ts +8 -0
  57. package/types/SetupIntentsResource.d.ts +174 -3
  58. package/types/Subscriptions.d.ts +5 -0
  59. package/types/SubscriptionsResource.d.ts +12 -2
  60. package/types/Tax/CalculationLineItems.d.ts +1 -0
  61. package/types/Tax/Calculations.d.ts +33 -1
  62. package/types/Tax/CalculationsResource.d.ts +7 -1
  63. package/types/Tax/Registrations.d.ts +82 -0
  64. package/types/Tax/RegistrationsResource.d.ts +109 -0
  65. package/types/Tax/Transactions.d.ts +8 -1
  66. package/types/TaxIds.d.ts +7 -1
  67. package/types/TaxIdsResource.d.ts +7 -1
  68. package/types/TaxRates.d.ts +25 -0
  69. package/types/TaxRatesResource.d.ts +2 -0
  70. package/types/Terminal/Configurations.d.ts +19 -0
  71. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  72. package/types/TestHelpers/ConfirmationTokensResource.d.ts +58 -1
  73. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  74. package/types/TokensResource.d.ts +2 -2
  75. package/types/Treasury/FinancialAccounts.d.ts +1 -1
  76. package/types/UsageRecordSummaries.d.ts +1 -1
  77. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  78. package/types/V2/Core/EventsResource.d.ts +1 -1
  79. package/types/V2/CoreResource.d.ts +1 -0
  80. package/types/V2/EventDestinations.d.ts +164 -0
  81. package/types/WebhookEndpointsResource.d.ts +6 -1
  82. package/types/index.d.ts +2 -0
@@ -542,6 +542,7 @@ declare module 'stripe' {
542
542
  | 'affirm'
543
543
  | 'afterpay_clearpay'
544
544
  | 'alipay'
545
+ | 'alma'
545
546
  | 'au_becs_debit'
546
547
  | 'bacs_debit'
547
548
  | 'bancontact'
@@ -601,6 +601,7 @@ declare module 'stripe' {
601
601
  | 'affirm'
602
602
  | 'afterpay_clearpay'
603
603
  | 'alipay'
604
+ | 'alma'
604
605
  | 'au_becs_debit'
605
606
  | 'bacs_debit'
606
607
  | 'bancontact'
@@ -1525,6 +1526,7 @@ declare module 'stripe' {
1525
1526
  | 'affirm'
1526
1527
  | 'afterpay_clearpay'
1527
1528
  | 'alipay'
1529
+ | 'alma'
1528
1530
  | 'au_becs_debit'
1529
1531
  | 'bacs_debit'
1530
1532
  | 'bancontact'
@@ -42,6 +42,8 @@ declare module 'stripe' {
42
42
 
43
43
  alipay?: PaymentMethodConfiguration.Alipay;
44
44
 
45
+ alma?: PaymentMethodConfiguration.Alma;
46
+
45
47
  amazon_pay?: PaymentMethodConfiguration.AmazonPay;
46
48
 
47
49
  apple_pay?: PaymentMethodConfiguration.ApplePay;
@@ -277,6 +279,40 @@ declare module 'stripe' {
277
279
  }
278
280
  }
279
281
 
282
+ interface Alma {
283
+ /**
284
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
285
+ */
286
+ available: boolean;
287
+
288
+ display_preference: Alma.DisplayPreference;
289
+ }
290
+
291
+ namespace Alma {
292
+ interface DisplayPreference {
293
+ /**
294
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
295
+ */
296
+ overridable: boolean | null;
297
+
298
+ /**
299
+ * The account's display preference.
300
+ */
301
+ preference: DisplayPreference.Preference;
302
+
303
+ /**
304
+ * The effective display preference value.
305
+ */
306
+ value: DisplayPreference.Value;
307
+ }
308
+
309
+ namespace DisplayPreference {
310
+ type Preference = 'none' | 'off' | 'on';
311
+
312
+ type Value = 'off' | 'on';
313
+ }
314
+ }
315
+
280
316
  interface AmazonPay {
281
317
  /**
282
318
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -23,6 +23,11 @@ declare module 'stripe' {
23
23
  */
24
24
  alipay?: PaymentMethodConfigurationCreateParams.Alipay;
25
25
 
26
+ /**
27
+ * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
28
+ */
29
+ alma?: PaymentMethodConfigurationCreateParams.Alma;
30
+
26
31
  /**
27
32
  * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
28
33
  */
@@ -209,7 +214,7 @@ declare module 'stripe' {
209
214
  twint?: PaymentMethodConfigurationCreateParams.Twint;
210
215
 
211
216
  /**
212
- * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
217
+ * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details.
213
218
  */
214
219
  us_bank_account?: PaymentMethodConfigurationCreateParams.UsBankAccount;
215
220
 
@@ -305,6 +310,26 @@ declare module 'stripe' {
305
310
  }
306
311
  }
307
312
 
313
+ interface Alma {
314
+ /**
315
+ * Whether or not the payment method should be displayed.
316
+ */
317
+ display_preference?: Alma.DisplayPreference;
318
+ }
319
+
320
+ namespace Alma {
321
+ interface DisplayPreference {
322
+ /**
323
+ * The account's preference for whether or not to display this payment method.
324
+ */
325
+ preference?: DisplayPreference.Preference;
326
+ }
327
+
328
+ namespace DisplayPreference {
329
+ type Preference = 'none' | 'off' | 'on';
330
+ }
331
+ }
332
+
308
333
  interface AmazonPay {
309
334
  /**
310
335
  * Whether or not the payment method should be displayed.
@@ -1079,6 +1104,11 @@ declare module 'stripe' {
1079
1104
  */
1080
1105
  alipay?: PaymentMethodConfigurationUpdateParams.Alipay;
1081
1106
 
1107
+ /**
1108
+ * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.
1109
+ */
1110
+ alma?: PaymentMethodConfigurationUpdateParams.Alma;
1111
+
1082
1112
  /**
1083
1113
  * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
1084
1114
  */
@@ -1260,7 +1290,7 @@ declare module 'stripe' {
1260
1290
  twint?: PaymentMethodConfigurationUpdateParams.Twint;
1261
1291
 
1262
1292
  /**
1263
- * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
1293
+ * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details.
1264
1294
  */
1265
1295
  us_bank_account?: PaymentMethodConfigurationUpdateParams.UsBankAccount;
1266
1296
 
@@ -1356,6 +1386,26 @@ declare module 'stripe' {
1356
1386
  }
1357
1387
  }
1358
1388
 
1389
+ interface Alma {
1390
+ /**
1391
+ * Whether or not the payment method should be displayed.
1392
+ */
1393
+ display_preference?: Alma.DisplayPreference;
1394
+ }
1395
+
1396
+ namespace Alma {
1397
+ interface DisplayPreference {
1398
+ /**
1399
+ * The account's preference for whether or not to display this payment method.
1400
+ */
1401
+ preference?: DisplayPreference.Preference;
1402
+ }
1403
+
1404
+ namespace DisplayPreference {
1405
+ type Preference = 'none' | 'off' | 'on';
1406
+ }
1407
+ }
1408
+
1359
1409
  interface AmazonPay {
1360
1410
  /**
1361
1411
  * Whether or not the payment method should be displayed.
@@ -19,6 +19,11 @@ declare module 'stripe' {
19
19
  */
20
20
  object: 'payment_method_domain';
21
21
 
22
+ /**
23
+ * Indicates the status of a specific payment method on a payment method domain.
24
+ */
25
+ amazon_pay: PaymentMethodDomain.AmazonPay;
26
+
22
27
  /**
23
28
  * Indicates the status of a specific payment method on a payment method domain.
24
29
  */
@@ -61,6 +66,29 @@ declare module 'stripe' {
61
66
  }
62
67
 
63
68
  namespace PaymentMethodDomain {
69
+ interface AmazonPay {
70
+ /**
71
+ * The status of the payment method on the domain.
72
+ */
73
+ status: AmazonPay.Status;
74
+
75
+ /**
76
+ * Contains additional details about the status of a payment method for a specific payment method domain.
77
+ */
78
+ status_details?: AmazonPay.StatusDetails;
79
+ }
80
+
81
+ namespace AmazonPay {
82
+ type Status = 'active' | 'inactive';
83
+
84
+ interface StatusDetails {
85
+ /**
86
+ * The error message associated with the status of the payment method on the domain.
87
+ */
88
+ error_message: string;
89
+ }
90
+ }
91
+
64
92
  interface ApplePay {
65
93
  /**
66
94
  * The status of the payment method on the domain.
@@ -33,6 +33,8 @@ declare module 'stripe' {
33
33
  */
34
34
  allow_redisplay?: PaymentMethod.AllowRedisplay;
35
35
 
36
+ alma?: PaymentMethod.Alma;
37
+
36
38
  amazon_pay?: PaymentMethod.AmazonPay;
37
39
 
38
40
  au_becs_debit?: PaymentMethod.AuBecsDebit;
@@ -77,10 +79,14 @@ declare module 'stripe' {
77
79
 
78
80
  interac_present?: PaymentMethod.InteracPresent;
79
81
 
82
+ kakao_pay?: PaymentMethod.KakaoPay;
83
+
80
84
  klarna?: PaymentMethod.Klarna;
81
85
 
82
86
  konbini?: PaymentMethod.Konbini;
83
87
 
88
+ kr_card?: PaymentMethod.KrCard;
89
+
84
90
  link?: PaymentMethod.Link;
85
91
 
86
92
  /**
@@ -97,10 +103,14 @@ declare module 'stripe' {
97
103
 
98
104
  multibanco?: PaymentMethod.Multibanco;
99
105
 
106
+ naver_pay?: PaymentMethod.NaverPay;
107
+
100
108
  oxxo?: PaymentMethod.Oxxo;
101
109
 
102
110
  p24?: PaymentMethod.P24;
103
111
 
112
+ payco?: PaymentMethod.Payco;
113
+
104
114
  paynow?: PaymentMethod.Paynow;
105
115
 
106
116
  paypal?: PaymentMethod.Paypal;
@@ -116,6 +126,8 @@ declare module 'stripe' {
116
126
 
117
127
  revolut_pay?: PaymentMethod.RevolutPay;
118
128
 
129
+ samsung_pay?: PaymentMethod.SamsungPay;
130
+
119
131
  sepa_debit?: PaymentMethod.SepaDebit;
120
132
 
121
133
  sofort?: PaymentMethod.Sofort;
@@ -172,6 +184,8 @@ declare module 'stripe' {
172
184
 
173
185
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
174
186
 
187
+ interface Alma {}
188
+
175
189
  interface AmazonPay {}
176
190
 
177
191
  interface AuBecsDebit {
@@ -1074,6 +1088,8 @@ declare module 'stripe' {
1074
1088
  | 'magnetic_stripe_track2';
1075
1089
  }
1076
1090
 
1091
+ interface KakaoPay {}
1092
+
1077
1093
  interface Klarna {
1078
1094
  /**
1079
1095
  * The customer's date of birth, if provided.
@@ -1102,6 +1118,44 @@ declare module 'stripe' {
1102
1118
 
1103
1119
  interface Konbini {}
1104
1120
 
1121
+ interface KrCard {
1122
+ /**
1123
+ * The local credit or debit card brand.
1124
+ */
1125
+ brand: KrCard.Brand | null;
1126
+
1127
+ /**
1128
+ * The last four digits of the card. This may not be present for American Express cards.
1129
+ */
1130
+ last4: string | null;
1131
+ }
1132
+
1133
+ namespace KrCard {
1134
+ type Brand =
1135
+ | 'bc'
1136
+ | 'citi'
1137
+ | 'hana'
1138
+ | 'hyundai'
1139
+ | 'jeju'
1140
+ | 'jeonbuk'
1141
+ | 'kakaobank'
1142
+ | 'kbank'
1143
+ | 'kdbbank'
1144
+ | 'kookmin'
1145
+ | 'kwangju'
1146
+ | 'lotte'
1147
+ | 'mg'
1148
+ | 'nh'
1149
+ | 'post'
1150
+ | 'samsung'
1151
+ | 'savingsbank'
1152
+ | 'shinhan'
1153
+ | 'shinhyup'
1154
+ | 'suhyup'
1155
+ | 'tossbank'
1156
+ | 'woori';
1157
+ }
1158
+
1105
1159
  interface Link {
1106
1160
  /**
1107
1161
  * Account owner's email address.
@@ -1119,6 +1173,17 @@ declare module 'stripe' {
1119
1173
 
1120
1174
  interface Multibanco {}
1121
1175
 
1176
+ interface NaverPay {
1177
+ /**
1178
+ * Whether to fund this transaction with Naver Pay points or a card.
1179
+ */
1180
+ funding: NaverPay.Funding;
1181
+ }
1182
+
1183
+ namespace NaverPay {
1184
+ type Funding = 'card' | 'points';
1185
+ }
1186
+
1122
1187
  interface Oxxo {}
1123
1188
 
1124
1189
  interface P24 {
@@ -1158,6 +1223,8 @@ declare module 'stripe' {
1158
1223
  | 'volkswagen_bank';
1159
1224
  }
1160
1225
 
1226
+ interface Payco {}
1227
+
1161
1228
  interface Paynow {}
1162
1229
 
1163
1230
  interface Paypal {
@@ -1186,6 +1253,8 @@ declare module 'stripe' {
1186
1253
 
1187
1254
  interface RevolutPay {}
1188
1255
 
1256
+ interface SamsungPay {}
1257
+
1189
1258
  interface SepaDebit {
1190
1259
  /**
1191
1260
  * Bank code of bank associated with the bank account.
@@ -1248,6 +1317,7 @@ declare module 'stripe' {
1248
1317
  | 'affirm'
1249
1318
  | 'afterpay_clearpay'
1250
1319
  | 'alipay'
1320
+ | 'alma'
1251
1321
  | 'amazon_pay'
1252
1322
  | 'au_becs_debit'
1253
1323
  | 'bacs_debit'
@@ -1264,18 +1334,23 @@ declare module 'stripe' {
1264
1334
  | 'grabpay'
1265
1335
  | 'ideal'
1266
1336
  | 'interac_present'
1337
+ | 'kakao_pay'
1267
1338
  | 'klarna'
1268
1339
  | 'konbini'
1340
+ | 'kr_card'
1269
1341
  | 'link'
1270
1342
  | 'mobilepay'
1271
1343
  | 'multibanco'
1344
+ | 'naver_pay'
1272
1345
  | 'oxxo'
1273
1346
  | 'p24'
1347
+ | 'payco'
1274
1348
  | 'paynow'
1275
1349
  | 'paypal'
1276
1350
  | 'pix'
1277
1351
  | 'promptpay'
1278
1352
  | 'revolut_pay'
1353
+ | 'samsung_pay'
1279
1354
  | 'sepa_debit'
1280
1355
  | 'sofort'
1281
1356
  | 'swish'
@@ -28,6 +28,11 @@ declare module 'stripe' {
28
28
  */
29
29
  allow_redisplay?: PaymentMethodCreateParams.AllowRedisplay;
30
30
 
31
+ /**
32
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
33
+ */
34
+ alma?: PaymentMethodCreateParams.Alma;
35
+
31
36
  /**
32
37
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
33
38
  */
@@ -118,6 +123,11 @@ declare module 'stripe' {
118
123
  */
119
124
  interac_present?: PaymentMethodCreateParams.InteracPresent;
120
125
 
126
+ /**
127
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
128
+ */
129
+ kakao_pay?: PaymentMethodCreateParams.KakaoPay;
130
+
121
131
  /**
122
132
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
123
133
  */
@@ -128,6 +138,11 @@ declare module 'stripe' {
128
138
  */
129
139
  konbini?: PaymentMethodCreateParams.Konbini;
130
140
 
141
+ /**
142
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
143
+ */
144
+ kr_card?: PaymentMethodCreateParams.KrCard;
145
+
131
146
  /**
132
147
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
133
148
  */
@@ -148,6 +163,11 @@ declare module 'stripe' {
148
163
  */
149
164
  multibanco?: PaymentMethodCreateParams.Multibanco;
150
165
 
166
+ /**
167
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
168
+ */
169
+ naver_pay?: PaymentMethodCreateParams.NaverPay;
170
+
151
171
  /**
152
172
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
153
173
  */
@@ -158,6 +178,11 @@ declare module 'stripe' {
158
178
  */
159
179
  p24?: PaymentMethodCreateParams.P24;
160
180
 
181
+ /**
182
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
183
+ */
184
+ payco?: PaymentMethodCreateParams.Payco;
185
+
161
186
  /**
162
187
  * The PaymentMethod to share.
163
188
  */
@@ -193,6 +218,11 @@ declare module 'stripe' {
193
218
  */
194
219
  revolut_pay?: PaymentMethodCreateParams.RevolutPay;
195
220
 
221
+ /**
222
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
223
+ */
224
+ samsung_pay?: PaymentMethodCreateParams.SamsungPay;
225
+
196
226
  /**
197
227
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
198
228
  */
@@ -260,6 +290,8 @@ declare module 'stripe' {
260
290
 
261
291
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
262
292
 
293
+ interface Alma {}
294
+
263
295
  interface AmazonPay {}
264
296
 
265
297
  interface AuBecsDebit {
@@ -453,7 +485,7 @@ declare module 'stripe' {
453
485
 
454
486
  interface Ideal {
455
487
  /**
456
- * The customer's bank.
488
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
457
489
  */
458
490
  bank?: Ideal.Bank;
459
491
  }
@@ -480,6 +512,8 @@ declare module 'stripe' {
480
512
 
481
513
  interface InteracPresent {}
482
514
 
515
+ interface KakaoPay {}
516
+
483
517
  interface Klarna {
484
518
  /**
485
519
  * Customer's date of birth
@@ -508,12 +542,25 @@ declare module 'stripe' {
508
542
 
509
543
  interface Konbini {}
510
544
 
545
+ interface KrCard {}
546
+
511
547
  interface Link {}
512
548
 
513
549
  interface Mobilepay {}
514
550
 
515
551
  interface Multibanco {}
516
552
 
553
+ interface NaverPay {
554
+ /**
555
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
556
+ */
557
+ funding?: NaverPay.Funding;
558
+ }
559
+
560
+ namespace NaverPay {
561
+ type Funding = 'card' | 'points';
562
+ }
563
+
517
564
  interface Oxxo {}
518
565
 
519
566
  interface P24 {
@@ -553,6 +600,8 @@ declare module 'stripe' {
553
600
  | 'volkswagen_bank';
554
601
  }
555
602
 
603
+ interface Payco {}
604
+
556
605
  interface Paynow {}
557
606
 
558
607
  interface Paypal {}
@@ -570,6 +619,8 @@ declare module 'stripe' {
570
619
 
571
620
  interface RevolutPay {}
572
621
 
622
+ interface SamsungPay {}
623
+
573
624
  interface SepaDebit {
574
625
  /**
575
626
  * IBAN of the bank account.
@@ -597,6 +648,7 @@ declare module 'stripe' {
597
648
  | 'affirm'
598
649
  | 'afterpay_clearpay'
599
650
  | 'alipay'
651
+ | 'alma'
600
652
  | 'amazon_pay'
601
653
  | 'au_becs_debit'
602
654
  | 'bacs_debit'
@@ -611,18 +663,23 @@ declare module 'stripe' {
611
663
  | 'giropay'
612
664
  | 'grabpay'
613
665
  | 'ideal'
666
+ | 'kakao_pay'
614
667
  | 'klarna'
615
668
  | 'konbini'
669
+ | 'kr_card'
616
670
  | 'link'
617
671
  | 'mobilepay'
618
672
  | 'multibanco'
673
+ | 'naver_pay'
619
674
  | 'oxxo'
620
675
  | 'p24'
676
+ | 'payco'
621
677
  | 'paynow'
622
678
  | 'paypal'
623
679
  | 'pix'
624
680
  | 'promptpay'
625
681
  | 'revolut_pay'
682
+ | 'samsung_pay'
626
683
  | 'sepa_debit'
627
684
  | 'sofort'
628
685
  | 'swish'
@@ -707,6 +764,11 @@ declare module 'stripe' {
707
764
  */
708
765
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
709
766
 
767
+ /**
768
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
769
+ */
770
+ naver_pay?: PaymentMethodUpdateParams.NaverPay;
771
+
710
772
  /**
711
773
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
712
774
  */
@@ -770,6 +832,17 @@ declare module 'stripe' {
770
832
 
771
833
  interface Link {}
772
834
 
835
+ interface NaverPay {
836
+ /**
837
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
838
+ */
839
+ funding?: NaverPay.Funding;
840
+ }
841
+
842
+ namespace NaverPay {
843
+ type Funding = 'card' | 'points';
844
+ }
845
+
773
846
  interface UsBankAccount {
774
847
  /**
775
848
  * Bank account holder type.
@@ -812,6 +885,7 @@ declare module 'stripe' {
812
885
  | 'affirm'
813
886
  | 'afterpay_clearpay'
814
887
  | 'alipay'
888
+ | 'alma'
815
889
  | 'amazon_pay'
816
890
  | 'au_becs_debit'
817
891
  | 'bacs_debit'
@@ -826,18 +900,23 @@ declare module 'stripe' {
826
900
  | 'giropay'
827
901
  | 'grabpay'
828
902
  | 'ideal'
903
+ | 'kakao_pay'
829
904
  | 'klarna'
830
905
  | 'konbini'
906
+ | 'kr_card'
831
907
  | 'link'
832
908
  | 'mobilepay'
833
909
  | 'multibanco'
910
+ | 'naver_pay'
834
911
  | 'oxxo'
835
912
  | 'p24'
913
+ | 'payco'
836
914
  | 'paynow'
837
915
  | 'paypal'
838
916
  | 'pix'
839
917
  | 'promptpay'
840
918
  | 'revolut_pay'
919
+ | 'samsung_pay'
841
920
  | 'sepa_debit'
842
921
  | 'sofort'
843
922
  | 'swish'
@@ -102,7 +102,7 @@ declare module 'stripe' {
102
102
  future_requirements?: Person.FutureRequirements | null;
103
103
 
104
104
  /**
105
- * The person's gender (International regulations require either "male" or "female").
105
+ * The person's gender.
106
106
  */
107
107
  gender?: string | null;
108
108
 
@@ -113,6 +113,8 @@ declare module 'stripe' {
113
113
 
114
114
  alipay?: DestinationDetails.Alipay;
115
115
 
116
+ alma?: DestinationDetails.Alma;
117
+
116
118
  amazon_pay?: DestinationDetails.AmazonPay;
117
119
 
118
120
  au_bank_transfer?: DestinationDetails.AuBankTransfer;
@@ -180,6 +182,8 @@ declare module 'stripe' {
180
182
 
181
183
  interface Alipay {}
182
184
 
185
+ interface Alma {}
186
+
183
187
  interface AmazonPay {}
184
188
 
185
189
  interface AuBankTransfer {}
@@ -370,10 +374,7 @@ declare module 'stripe' {
370
374
  }
371
375
 
372
376
  interface NextAction {
373
- /**
374
- * Contains the refund details.
375
- */
376
- display_details: NextAction.DisplayDetails | null;
377
+ display_details?: NextAction.DisplayDetails;
377
378
 
378
379
  /**
379
380
  * Type of the next action to perform.
@@ -110,8 +110,12 @@ declare module 'stripe' {
110
110
 
111
111
  ideal?: PaymentMethodDetails.Ideal;
112
112
 
113
+ kakao_pay?: PaymentMethodDetails.KakaoPay;
114
+
113
115
  klarna?: PaymentMethodDetails.Klarna;
114
116
 
117
+ kr_card?: PaymentMethodDetails.KrCard;
118
+
115
119
  link?: PaymentMethodDetails.Link;
116
120
 
117
121
  paypal?: PaymentMethodDetails.Paypal;
@@ -462,8 +466,12 @@ declare module 'stripe' {
462
466
  | 'TRIONL2U';
463
467
  }
464
468
 
469
+ interface KakaoPay {}
470
+
465
471
  interface Klarna {}
466
472
 
473
+ interface KrCard {}
474
+
467
475
  interface Link {}
468
476
 
469
477
  interface Paypal {}