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
@@ -151,6 +151,8 @@ declare module 'stripe' {
151
151
  */
152
152
  allow_redisplay?: PaymentMethodPreview.AllowRedisplay;
153
153
 
154
+ alma?: PaymentMethodPreview.Alma;
155
+
154
156
  amazon_pay?: PaymentMethodPreview.AmazonPay;
155
157
 
156
158
  au_becs_debit?: PaymentMethodPreview.AuBecsDebit;
@@ -190,20 +192,28 @@ declare module 'stripe' {
190
192
 
191
193
  interac_present?: PaymentMethodPreview.InteracPresent;
192
194
 
195
+ kakao_pay?: PaymentMethodPreview.KakaoPay;
196
+
193
197
  klarna?: PaymentMethodPreview.Klarna;
194
198
 
195
199
  konbini?: PaymentMethodPreview.Konbini;
196
200
 
201
+ kr_card?: PaymentMethodPreview.KrCard;
202
+
197
203
  link?: PaymentMethodPreview.Link;
198
204
 
199
205
  mobilepay?: PaymentMethodPreview.Mobilepay;
200
206
 
201
207
  multibanco?: PaymentMethodPreview.Multibanco;
202
208
 
209
+ naver_pay?: PaymentMethodPreview.NaverPay;
210
+
203
211
  oxxo?: PaymentMethodPreview.Oxxo;
204
212
 
205
213
  p24?: PaymentMethodPreview.P24;
206
214
 
215
+ payco?: PaymentMethodPreview.Payco;
216
+
207
217
  paynow?: PaymentMethodPreview.Paynow;
208
218
 
209
219
  paypal?: PaymentMethodPreview.Paypal;
@@ -214,6 +224,8 @@ declare module 'stripe' {
214
224
 
215
225
  revolut_pay?: PaymentMethodPreview.RevolutPay;
216
226
 
227
+ samsung_pay?: PaymentMethodPreview.SamsungPay;
228
+
217
229
  sepa_debit?: PaymentMethodPreview.SepaDebit;
218
230
 
219
231
  sofort?: PaymentMethodPreview.Sofort;
@@ -270,6 +282,8 @@ declare module 'stripe' {
270
282
 
271
283
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
272
284
 
285
+ interface Alma {}
286
+
273
287
  interface AmazonPay {}
274
288
 
275
289
  interface AuBecsDebit {
@@ -1172,6 +1186,8 @@ declare module 'stripe' {
1172
1186
  | 'magnetic_stripe_track2';
1173
1187
  }
1174
1188
 
1189
+ interface KakaoPay {}
1190
+
1175
1191
  interface Klarna {
1176
1192
  /**
1177
1193
  * The customer's date of birth, if provided.
@@ -1200,6 +1216,44 @@ declare module 'stripe' {
1200
1216
 
1201
1217
  interface Konbini {}
1202
1218
 
1219
+ interface KrCard {
1220
+ /**
1221
+ * The local credit or debit card brand.
1222
+ */
1223
+ brand: KrCard.Brand | null;
1224
+
1225
+ /**
1226
+ * The last four digits of the card. This may not be present for American Express cards.
1227
+ */
1228
+ last4: string | null;
1229
+ }
1230
+
1231
+ namespace KrCard {
1232
+ type Brand =
1233
+ | 'bc'
1234
+ | 'citi'
1235
+ | 'hana'
1236
+ | 'hyundai'
1237
+ | 'jeju'
1238
+ | 'jeonbuk'
1239
+ | 'kakaobank'
1240
+ | 'kbank'
1241
+ | 'kdbbank'
1242
+ | 'kookmin'
1243
+ | 'kwangju'
1244
+ | 'lotte'
1245
+ | 'mg'
1246
+ | 'nh'
1247
+ | 'post'
1248
+ | 'samsung'
1249
+ | 'savingsbank'
1250
+ | 'shinhan'
1251
+ | 'shinhyup'
1252
+ | 'suhyup'
1253
+ | 'tossbank'
1254
+ | 'woori';
1255
+ }
1256
+
1203
1257
  interface Link {
1204
1258
  /**
1205
1259
  * Account owner's email address.
@@ -1217,6 +1271,17 @@ declare module 'stripe' {
1217
1271
 
1218
1272
  interface Multibanco {}
1219
1273
 
1274
+ interface NaverPay {
1275
+ /**
1276
+ * Whether to fund this transaction with Naver Pay points or a card.
1277
+ */
1278
+ funding: NaverPay.Funding;
1279
+ }
1280
+
1281
+ namespace NaverPay {
1282
+ type Funding = 'card' | 'points';
1283
+ }
1284
+
1220
1285
  interface Oxxo {}
1221
1286
 
1222
1287
  interface P24 {
@@ -1256,6 +1321,8 @@ declare module 'stripe' {
1256
1321
  | 'volkswagen_bank';
1257
1322
  }
1258
1323
 
1324
+ interface Payco {}
1325
+
1259
1326
  interface Paynow {}
1260
1327
 
1261
1328
  interface Paypal {
@@ -1277,6 +1344,8 @@ declare module 'stripe' {
1277
1344
 
1278
1345
  interface RevolutPay {}
1279
1346
 
1347
+ interface SamsungPay {}
1348
+
1280
1349
  interface SepaDebit {
1281
1350
  /**
1282
1351
  * Bank code of bank associated with the bank account.
@@ -1339,6 +1408,7 @@ declare module 'stripe' {
1339
1408
  | 'affirm'
1340
1409
  | 'afterpay_clearpay'
1341
1410
  | 'alipay'
1411
+ | 'alma'
1342
1412
  | 'amazon_pay'
1343
1413
  | 'au_becs_debit'
1344
1414
  | 'bacs_debit'
@@ -1355,18 +1425,23 @@ declare module 'stripe' {
1355
1425
  | 'grabpay'
1356
1426
  | 'ideal'
1357
1427
  | 'interac_present'
1428
+ | 'kakao_pay'
1358
1429
  | 'klarna'
1359
1430
  | 'konbini'
1431
+ | 'kr_card'
1360
1432
  | 'link'
1361
1433
  | 'mobilepay'
1362
1434
  | 'multibanco'
1435
+ | 'naver_pay'
1363
1436
  | 'oxxo'
1364
1437
  | 'p24'
1438
+ | 'payco'
1365
1439
  | 'paynow'
1366
1440
  | 'paypal'
1367
1441
  | 'pix'
1368
1442
  | 'promptpay'
1369
1443
  | 'revolut_pay'
1444
+ | 'samsung_pay'
1370
1445
  | 'sepa_debit'
1371
1446
  | 'sofort'
1372
1447
  | 'swish'
@@ -51,6 +51,9 @@ declare module 'stripe' {
51
51
  */
52
52
  livemode: boolean;
53
53
 
54
+ /**
55
+ * The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
56
+ */
54
57
  pretax_credit_amounts?: Array<CreditNoteLineItem.PretaxCreditAmount>;
55
58
 
56
59
  /**
@@ -106,6 +106,9 @@ declare module 'stripe' {
106
106
  */
107
107
  pdf: string;
108
108
 
109
+ /**
110
+ * The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
111
+ */
109
112
  pretax_credit_amounts?: Array<CreditNote.PretaxCreditAmount>;
110
113
 
111
114
  /**
@@ -79,7 +79,7 @@ declare module 'stripe' {
79
79
 
80
80
  interface Line {
81
81
  /**
82
- * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
82
+ * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
83
83
  */
84
84
  amount?: number;
85
85
 
@@ -289,7 +289,7 @@ declare module 'stripe' {
289
289
 
290
290
  interface Line {
291
291
  /**
292
- * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
292
+ * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
293
293
  */
294
294
  amount?: number;
295
295
 
@@ -446,7 +446,7 @@ declare module 'stripe' {
446
446
 
447
447
  interface Line {
448
448
  /**
449
- * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
449
+ * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
450
450
  */
451
451
  amount?: number;
452
452
 
@@ -220,7 +220,7 @@ declare module 'stripe' {
220
220
 
221
221
  interface TaxIdDatum {
222
222
  /**
223
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
223
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
224
224
  */
225
225
  type: TaxIdDatum.Type;
226
226
 
@@ -242,6 +242,7 @@ declare module 'stripe' {
242
242
  | 'bo_tin'
243
243
  | 'br_cnpj'
244
244
  | 'br_cpf'
245
+ | 'by_tin'
245
246
  | 'ca_bn'
246
247
  | 'ca_gst_hst'
247
248
  | 'ca_pst_bc'
@@ -277,6 +278,8 @@ declare module 'stripe' {
277
278
  | 'kr_brn'
278
279
  | 'kz_bin'
279
280
  | 'li_uid'
281
+ | 'ma_vat'
282
+ | 'md_vat'
280
283
  | 'mx_rfc'
281
284
  | 'my_frp'
282
285
  | 'my_itn'
@@ -300,9 +303,12 @@ declare module 'stripe' {
300
303
  | 'th_vat'
301
304
  | 'tr_tin'
302
305
  | 'tw_vat'
306
+ | 'tz_vat'
303
307
  | 'ua_vat'
304
308
  | 'us_ein'
305
309
  | 'uy_ruc'
310
+ | 'uz_tin'
311
+ | 'uz_vat'
306
312
  | 've_rif'
307
313
  | 'vn_tin'
308
314
  | 'za_vat';
@@ -524,7 +530,7 @@ declare module 'stripe' {
524
530
  }
525
531
 
526
532
  namespace Tax {
527
- type ValidateLocation = 'deferred' | 'immediately';
533
+ type ValidateLocation = 'auto' | 'deferred' | 'immediately';
528
534
  }
529
535
 
530
536
  type TaxExempt = 'exempt' | 'none' | 'reverse';
@@ -663,7 +669,7 @@ declare module 'stripe' {
663
669
 
664
670
  interface CustomerCreateTaxIdParams {
665
671
  /**
666
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
672
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
667
673
  */
668
674
  type: CustomerCreateTaxIdParams.Type;
669
675
 
@@ -690,6 +696,7 @@ declare module 'stripe' {
690
696
  | 'bo_tin'
691
697
  | 'br_cnpj'
692
698
  | 'br_cpf'
699
+ | 'by_tin'
693
700
  | 'ca_bn'
694
701
  | 'ca_gst_hst'
695
702
  | 'ca_pst_bc'
@@ -725,6 +732,8 @@ declare module 'stripe' {
725
732
  | 'kr_brn'
726
733
  | 'kz_bin'
727
734
  | 'li_uid'
735
+ | 'ma_vat'
736
+ | 'md_vat'
728
737
  | 'mx_rfc'
729
738
  | 'my_frp'
730
739
  | 'my_itn'
@@ -748,9 +757,12 @@ declare module 'stripe' {
748
757
  | 'th_vat'
749
758
  | 'tr_tin'
750
759
  | 'tw_vat'
760
+ | 'tz_vat'
751
761
  | 'ua_vat'
752
762
  | 'us_ein'
753
763
  | 'uy_ruc'
764
+ | 'uz_tin'
765
+ | 'uz_vat'
754
766
  | 've_rif'
755
767
  | 'vn_tin'
756
768
  | 'za_vat';
@@ -807,6 +819,7 @@ declare module 'stripe' {
807
819
  | 'affirm'
808
820
  | 'afterpay_clearpay'
809
821
  | 'alipay'
822
+ | 'alma'
810
823
  | 'amazon_pay'
811
824
  | 'au_becs_debit'
812
825
  | 'bacs_debit'
@@ -821,18 +834,23 @@ declare module 'stripe' {
821
834
  | 'giropay'
822
835
  | 'grabpay'
823
836
  | 'ideal'
837
+ | 'kakao_pay'
824
838
  | 'klarna'
825
839
  | 'konbini'
840
+ | 'kr_card'
826
841
  | 'link'
827
842
  | 'mobilepay'
828
843
  | 'multibanco'
844
+ | 'naver_pay'
829
845
  | 'oxxo'
830
846
  | 'p24'
847
+ | 'payco'
831
848
  | 'paynow'
832
849
  | 'paypal'
833
850
  | 'pix'
834
851
  | 'promptpay'
835
852
  | 'revolut_pay'
853
+ | 'samsung_pay'
836
854
  | 'sepa_debit'
837
855
  | 'sofort'
838
856
  | 'swish'
@@ -45,6 +45,11 @@ declare module 'stripe' {
45
45
  */
46
46
  currency: string;
47
47
 
48
+ /**
49
+ * List of eligibility types that are included in `enhanced_evidence`.
50
+ */
51
+ enhanced_eligibility_types: Array<'visa_compelling_evidence_3'>;
52
+
48
53
  evidence: Dispute.Evidence;
49
54
 
50
55
  evidence_details: Dispute.EvidenceDetails;
@@ -154,6 +159,8 @@ declare module 'stripe' {
154
159
  */
155
160
  duplicate_charge_id: string | null;
156
161
 
162
+ enhanced_evidence: Evidence.EnhancedEvidence;
163
+
157
164
  /**
158
165
  * A description of the product or service that was sold.
159
166
  */
@@ -225,12 +232,126 @@ declare module 'stripe' {
225
232
  uncategorized_text: string | null;
226
233
  }
227
234
 
235
+ namespace Evidence {
236
+ interface EnhancedEvidence {
237
+ visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
238
+ }
239
+
240
+ namespace EnhancedEvidence {
241
+ interface VisaCompellingEvidence3 {
242
+ /**
243
+ * Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
244
+ */
245
+ disputed_transaction: VisaCompellingEvidence3.DisputedTransaction | null;
246
+
247
+ /**
248
+ * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
249
+ */
250
+ prior_undisputed_transactions: Array<
251
+ VisaCompellingEvidence3.PriorUndisputedTransaction
252
+ >;
253
+ }
254
+
255
+ namespace VisaCompellingEvidence3 {
256
+ interface DisputedTransaction {
257
+ /**
258
+ * User Account ID used to log into business platform. Must be recognizable by the user.
259
+ */
260
+ customer_account_id: string | null;
261
+
262
+ /**
263
+ * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
264
+ */
265
+ customer_device_fingerprint: string | null;
266
+
267
+ /**
268
+ * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
269
+ */
270
+ customer_device_id: string | null;
271
+
272
+ /**
273
+ * The email address of the customer.
274
+ */
275
+ customer_email_address: string | null;
276
+
277
+ /**
278
+ * The IP address that the customer used when making the purchase.
279
+ */
280
+ customer_purchase_ip: string | null;
281
+
282
+ /**
283
+ * Categorization of disputed payment.
284
+ */
285
+ merchandise_or_services: DisputedTransaction.MerchandiseOrServices | null;
286
+
287
+ /**
288
+ * A description of the product or service that was sold.
289
+ */
290
+ product_description: string | null;
291
+
292
+ /**
293
+ * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
294
+ */
295
+ shipping_address: Stripe.Address | null;
296
+ }
297
+
298
+ namespace DisputedTransaction {
299
+ type MerchandiseOrServices = 'merchandise' | 'services';
300
+ }
301
+
302
+ interface PriorUndisputedTransaction {
303
+ /**
304
+ * Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
305
+ */
306
+ charge: string;
307
+
308
+ /**
309
+ * User Account ID used to log into business platform. Must be recognizable by the user.
310
+ */
311
+ customer_account_id: string | null;
312
+
313
+ /**
314
+ * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
315
+ */
316
+ customer_device_fingerprint: string | null;
317
+
318
+ /**
319
+ * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
320
+ */
321
+ customer_device_id: string | null;
322
+
323
+ /**
324
+ * The email address of the customer.
325
+ */
326
+ customer_email_address: string | null;
327
+
328
+ /**
329
+ * The IP address that the customer used when making the purchase.
330
+ */
331
+ customer_purchase_ip: string | null;
332
+
333
+ /**
334
+ * A description of the product or service that was sold.
335
+ */
336
+ product_description: string | null;
337
+
338
+ /**
339
+ * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
340
+ */
341
+ shipping_address: Stripe.Address | null;
342
+ }
343
+ }
344
+ }
345
+ }
346
+
228
347
  interface EvidenceDetails {
229
348
  /**
230
349
  * Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
231
350
  */
232
351
  due_by: number | null;
233
352
 
353
+ enhanced_eligibility: EvidenceDetails.EnhancedEligibility;
354
+
234
355
  /**
235
356
  * Whether evidence has been staged for this dispute.
236
357
  */
@@ -247,6 +368,37 @@ declare module 'stripe' {
247
368
  submission_count: number;
248
369
  }
249
370
 
371
+ namespace EvidenceDetails {
372
+ interface EnhancedEligibility {
373
+ visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3;
374
+ }
375
+
376
+ namespace EnhancedEligibility {
377
+ interface VisaCompellingEvidence3 {
378
+ /**
379
+ * List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.
380
+ */
381
+ required_actions: Array<VisaCompellingEvidence3.RequiredAction>;
382
+
383
+ /**
384
+ * Visa Compelling Evidence 3.0 eligibility status.
385
+ */
386
+ status: VisaCompellingEvidence3.Status;
387
+ }
388
+
389
+ namespace VisaCompellingEvidence3 {
390
+ type RequiredAction =
391
+ | 'missing_customer_identifiers'
392
+ | 'missing_disputed_transaction_description'
393
+ | 'missing_merchandise_or_services'
394
+ | 'missing_prior_undisputed_transaction_description'
395
+ | 'missing_prior_undisputed_transactions';
396
+
397
+ type Status = 'not_qualified' | 'qualified' | 'requires_action';
398
+ }
399
+ }
400
+ }
401
+
250
402
  interface PaymentMethodDetails {
251
403
  amazon_pay?: PaymentMethodDetails.AmazonPay;
252
404
 
@@ -98,6 +98,11 @@ declare module 'stripe' {
98
98
  */
99
99
  duplicate_charge_id?: string;
100
100
 
101
+ /**
102
+ * Additional evidence for qualifying evidence programs.
103
+ */
104
+ enhanced_evidence?: Stripe.Emptyable<Evidence.EnhancedEvidence>;
105
+
101
106
  /**
102
107
  * A description of the product or service that was sold. Has a maximum character count of 20,000.
103
108
  */
@@ -168,6 +173,121 @@ declare module 'stripe' {
168
173
  */
169
174
  uncategorized_text?: string;
170
175
  }
176
+
177
+ namespace Evidence {
178
+ interface EnhancedEvidence {
179
+ /**
180
+ * Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
181
+ */
182
+ visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
183
+ }
184
+
185
+ namespace EnhancedEvidence {
186
+ interface VisaCompellingEvidence3 {
187
+ /**
188
+ * Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
189
+ */
190
+ disputed_transaction?: VisaCompellingEvidence3.DisputedTransaction;
191
+
192
+ /**
193
+ * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
194
+ */
195
+ prior_undisputed_transactions?: Array<
196
+ VisaCompellingEvidence3.PriorUndisputedTransaction
197
+ >;
198
+ }
199
+
200
+ namespace VisaCompellingEvidence3 {
201
+ interface DisputedTransaction {
202
+ /**
203
+ * User Account ID used to log into business platform. Must be recognizable by the user.
204
+ */
205
+ customer_account_id?: Stripe.Emptyable<string>;
206
+
207
+ /**
208
+ * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
209
+ */
210
+ customer_device_fingerprint?: Stripe.Emptyable<string>;
211
+
212
+ /**
213
+ * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
214
+ */
215
+ customer_device_id?: Stripe.Emptyable<string>;
216
+
217
+ /**
218
+ * The email address of the customer.
219
+ */
220
+ customer_email_address?: Stripe.Emptyable<string>;
221
+
222
+ /**
223
+ * The IP address that the customer used when making the purchase.
224
+ */
225
+ customer_purchase_ip?: Stripe.Emptyable<string>;
226
+
227
+ /**
228
+ * Categorization of disputed payment.
229
+ */
230
+ merchandise_or_services?: DisputedTransaction.MerchandiseOrServices;
231
+
232
+ /**
233
+ * A description of the product or service that was sold.
234
+ */
235
+ product_description?: Stripe.Emptyable<string>;
236
+
237
+ /**
238
+ * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
239
+ */
240
+ shipping_address?: Stripe.AddressParam;
241
+ }
242
+
243
+ namespace DisputedTransaction {
244
+ type MerchandiseOrServices = 'merchandise' | 'services';
245
+ }
246
+
247
+ interface PriorUndisputedTransaction {
248
+ /**
249
+ * Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
250
+ */
251
+ charge: string;
252
+
253
+ /**
254
+ * User Account ID used to log into business platform. Must be recognizable by the user.
255
+ */
256
+ customer_account_id?: Stripe.Emptyable<string>;
257
+
258
+ /**
259
+ * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
260
+ */
261
+ customer_device_fingerprint?: Stripe.Emptyable<string>;
262
+
263
+ /**
264
+ * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
265
+ */
266
+ customer_device_id?: Stripe.Emptyable<string>;
267
+
268
+ /**
269
+ * The email address of the customer.
270
+ */
271
+ customer_email_address?: Stripe.Emptyable<string>;
272
+
273
+ /**
274
+ * The IP address that the customer used when making the purchase.
275
+ */
276
+ customer_purchase_ip?: Stripe.Emptyable<string>;
277
+
278
+ /**
279
+ * A description of the product or service that was sold.
280
+ */
281
+ product_description?: Stripe.Emptyable<string>;
282
+
283
+ /**
284
+ * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
285
+ */
286
+ shipping_address?: Stripe.AddressParam;
287
+ }
288
+ }
289
+ }
290
+ }
171
291
  }
172
292
 
173
293
  interface DisputeListParams extends PaginationParams {