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
@@ -5,14 +5,14 @@ declare module 'stripe' {
5
5
  namespace BillingPortal {
6
6
  interface ConfigurationCreateParams {
7
7
  /**
8
- * The business information shown to customers in the portal.
8
+ * Information about the features available in the portal.
9
9
  */
10
- business_profile: ConfigurationCreateParams.BusinessProfile;
10
+ features: ConfigurationCreateParams.Features;
11
11
 
12
12
  /**
13
- * Information about the features available in the portal.
13
+ * The business information shown to customers in the portal.
14
14
  */
15
- features: ConfigurationCreateParams.Features;
15
+ business_profile?: ConfigurationCreateParams.BusinessProfile;
16
16
 
17
17
  /**
18
18
  * The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
@@ -196,6 +196,11 @@ declare module 'stripe' {
196
196
  * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
197
197
  */
198
198
  proration_behavior?: SubscriptionUpdate.ProrationBehavior;
199
+
200
+ /**
201
+ * Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
202
+ */
203
+ schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
199
204
  }
200
205
 
201
206
  namespace SubscriptionUpdate {
@@ -217,6 +222,26 @@ declare module 'stripe' {
217
222
  | 'always_invoice'
218
223
  | 'create_prorations'
219
224
  | 'none';
225
+
226
+ interface ScheduleAtPeriodEnd {
227
+ /**
228
+ * List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
229
+ */
230
+ conditions?: Array<ScheduleAtPeriodEnd.Condition>;
231
+ }
232
+
233
+ namespace ScheduleAtPeriodEnd {
234
+ interface Condition {
235
+ /**
236
+ * The type of condition.
237
+ */
238
+ type: Condition.Type;
239
+ }
240
+
241
+ namespace Condition {
242
+ type Type = 'decreasing_item_amount' | 'shortening_interval';
243
+ }
244
+ }
220
245
  }
221
246
  }
222
247
 
@@ -433,6 +458,11 @@ declare module 'stripe' {
433
458
  * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
434
459
  */
435
460
  proration_behavior?: SubscriptionUpdate.ProrationBehavior;
461
+
462
+ /**
463
+ * Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
464
+ */
465
+ schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
436
466
  }
437
467
 
438
468
  namespace SubscriptionUpdate {
@@ -454,6 +484,28 @@ declare module 'stripe' {
454
484
  | 'always_invoice'
455
485
  | 'create_prorations'
456
486
  | 'none';
487
+
488
+ interface ScheduleAtPeriodEnd {
489
+ /**
490
+ * List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
491
+ */
492
+ conditions?: Stripe.Emptyable<
493
+ Array<ScheduleAtPeriodEnd.Condition>
494
+ >;
495
+ }
496
+
497
+ namespace ScheduleAtPeriodEnd {
498
+ interface Condition {
499
+ /**
500
+ * The type of condition.
501
+ */
502
+ type: Condition.Type;
503
+ }
504
+
505
+ namespace Condition {
506
+ type Type = 'decreasing_item_amount' | 'shortening_interval';
507
+ }
508
+ }
457
509
  }
458
510
  }
459
511
 
@@ -380,6 +380,8 @@ declare module 'stripe' {
380
380
 
381
381
  alipay?: PaymentMethodDetails.Alipay;
382
382
 
383
+ alma?: PaymentMethodDetails.Alma;
384
+
383
385
  amazon_pay?: PaymentMethodDetails.AmazonPay;
384
386
 
385
387
  au_becs_debit?: PaymentMethodDetails.AuBecsDebit;
@@ -412,20 +414,28 @@ declare module 'stripe' {
412
414
 
413
415
  interac_present?: PaymentMethodDetails.InteracPresent;
414
416
 
417
+ kakao_pay?: PaymentMethodDetails.KakaoPay;
418
+
415
419
  klarna?: PaymentMethodDetails.Klarna;
416
420
 
417
421
  konbini?: PaymentMethodDetails.Konbini;
418
422
 
423
+ kr_card?: PaymentMethodDetails.KrCard;
424
+
419
425
  link?: PaymentMethodDetails.Link;
420
426
 
421
427
  mobilepay?: PaymentMethodDetails.Mobilepay;
422
428
 
423
429
  multibanco?: PaymentMethodDetails.Multibanco;
424
430
 
431
+ naver_pay?: PaymentMethodDetails.NaverPay;
432
+
425
433
  oxxo?: PaymentMethodDetails.Oxxo;
426
434
 
427
435
  p24?: PaymentMethodDetails.P24;
428
436
 
437
+ payco?: PaymentMethodDetails.Payco;
438
+
429
439
  paynow?: PaymentMethodDetails.Paynow;
430
440
 
431
441
  paypal?: PaymentMethodDetails.Paypal;
@@ -436,6 +446,8 @@ declare module 'stripe' {
436
446
 
437
447
  revolut_pay?: PaymentMethodDetails.RevolutPay;
438
448
 
449
+ samsung_pay?: PaymentMethodDetails.SamsungPay;
450
+
439
451
  sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
440
452
 
441
453
  sepa_debit?: PaymentMethodDetails.SepaDebit;
@@ -591,6 +603,8 @@ declare module 'stripe' {
591
603
  transaction_id: string | null;
592
604
  }
593
605
 
606
+ interface Alma {}
607
+
594
608
  interface AmazonPay {}
595
609
 
596
610
  interface AuBecsDebit {
@@ -1656,6 +1670,13 @@ declare module 'stripe' {
1656
1670
  }
1657
1671
  }
1658
1672
 
1673
+ interface KakaoPay {
1674
+ /**
1675
+ * A unique identifier for the buyer as determined by the local payment processor.
1676
+ */
1677
+ buyer_id: string | null;
1678
+ }
1679
+
1659
1680
  interface Klarna {
1660
1681
  /**
1661
1682
  * The payer details for this transaction.
@@ -1713,6 +1734,49 @@ declare module 'stripe' {
1713
1734
  }
1714
1735
  }
1715
1736
 
1737
+ interface KrCard {
1738
+ /**
1739
+ * The local credit or debit card brand.
1740
+ */
1741
+ brand: KrCard.Brand | null;
1742
+
1743
+ /**
1744
+ * A unique identifier for the buyer as determined by the local payment processor.
1745
+ */
1746
+ buyer_id: string | null;
1747
+
1748
+ /**
1749
+ * The last four digits of the card. This may not be present for American Express cards.
1750
+ */
1751
+ last4: string | null;
1752
+ }
1753
+
1754
+ namespace KrCard {
1755
+ type Brand =
1756
+ | 'bc'
1757
+ | 'citi'
1758
+ | 'hana'
1759
+ | 'hyundai'
1760
+ | 'jeju'
1761
+ | 'jeonbuk'
1762
+ | 'kakaobank'
1763
+ | 'kbank'
1764
+ | 'kdbbank'
1765
+ | 'kookmin'
1766
+ | 'kwangju'
1767
+ | 'lotte'
1768
+ | 'mg'
1769
+ | 'nh'
1770
+ | 'post'
1771
+ | 'samsung'
1772
+ | 'savingsbank'
1773
+ | 'shinhan'
1774
+ | 'shinhyup'
1775
+ | 'suhyup'
1776
+ | 'tossbank'
1777
+ | 'woori';
1778
+ }
1779
+
1716
1780
  interface Link {
1717
1781
  /**
1718
1782
  * Two-letter ISO code representing the funding source country beneath the Link payment.
@@ -1769,6 +1833,13 @@ declare module 'stripe' {
1769
1833
  reference: string | null;
1770
1834
  }
1771
1835
 
1836
+ interface NaverPay {
1837
+ /**
1838
+ * A unique identifier for the buyer as determined by the local payment processor.
1839
+ */
1840
+ buyer_id: string | null;
1841
+ }
1842
+
1772
1843
  interface Oxxo {
1773
1844
  /**
1774
1845
  * OXXO reference number
@@ -1825,6 +1896,13 @@ declare module 'stripe' {
1825
1896
  | 'volkswagen_bank';
1826
1897
  }
1827
1898
 
1899
+ interface Payco {
1900
+ /**
1901
+ * A unique identifier for the buyer as determined by the local payment processor.
1902
+ */
1903
+ buyer_id: string | null;
1904
+ }
1905
+
1828
1906
  interface Paynow {
1829
1907
  /**
1830
1908
  * Reference number associated with this PayNow payment
@@ -1897,6 +1975,13 @@ declare module 'stripe' {
1897
1975
 
1898
1976
  interface RevolutPay {}
1899
1977
 
1978
+ interface SamsungPay {
1979
+ /**
1980
+ * A unique identifier for the buyer as determined by the local payment processor.
1981
+ */
1982
+ buyer_id: string | null;
1983
+ }
1984
+
1900
1985
  interface SepaCreditTransfer {
1901
1986
  /**
1902
1987
  * Name of the bank associated with the bank account.
@@ -490,7 +490,7 @@ declare module 'stripe' {
490
490
 
491
491
  interface TaxId {
492
492
  /**
493
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
493
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
494
494
  */
495
495
  type: TaxId.Type;
496
496
 
@@ -512,6 +512,7 @@ declare module 'stripe' {
512
512
  | 'bo_tin'
513
513
  | 'br_cnpj'
514
514
  | 'br_cpf'
515
+ | 'by_tin'
515
516
  | 'ca_bn'
516
517
  | 'ca_gst_hst'
517
518
  | 'ca_pst_bc'
@@ -547,6 +548,8 @@ declare module 'stripe' {
547
548
  | 'kr_brn'
548
549
  | 'kz_bin'
549
550
  | 'li_uid'
551
+ | 'ma_vat'
552
+ | 'md_vat'
550
553
  | 'mx_rfc'
551
554
  | 'my_frp'
552
555
  | 'my_itn'
@@ -570,10 +573,13 @@ declare module 'stripe' {
570
573
  | 'th_vat'
571
574
  | 'tr_tin'
572
575
  | 'tw_vat'
576
+ | 'tz_vat'
573
577
  | 'ua_vat'
574
578
  | 'unknown'
575
579
  | 'us_ein'
576
580
  | 'uy_ruc'
581
+ | 'uz_tin'
582
+ | 'uz_vat'
577
583
  | 've_rif'
578
584
  | 'vn_tin'
579
585
  | 'za_vat';
@@ -929,20 +935,28 @@ declare module 'stripe' {
929
935
 
930
936
  ideal?: PaymentMethodOptions.Ideal;
931
937
 
938
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
939
+
932
940
  klarna?: PaymentMethodOptions.Klarna;
933
941
 
934
942
  konbini?: PaymentMethodOptions.Konbini;
935
943
 
944
+ kr_card?: PaymentMethodOptions.KrCard;
945
+
936
946
  link?: PaymentMethodOptions.Link;
937
947
 
938
948
  mobilepay?: PaymentMethodOptions.Mobilepay;
939
949
 
940
950
  multibanco?: PaymentMethodOptions.Multibanco;
941
951
 
952
+ naver_pay?: PaymentMethodOptions.NaverPay;
953
+
942
954
  oxxo?: PaymentMethodOptions.Oxxo;
943
955
 
944
956
  p24?: PaymentMethodOptions.P24;
945
957
 
958
+ payco?: PaymentMethodOptions.Payco;
959
+
946
960
  paynow?: PaymentMethodOptions.Paynow;
947
961
 
948
962
  paypal?: PaymentMethodOptions.Paypal;
@@ -951,6 +965,8 @@ declare module 'stripe' {
951
965
 
952
966
  revolut_pay?: PaymentMethodOptions.RevolutPay;
953
967
 
968
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
969
+
954
970
  sepa_debit?: PaymentMethodOptions.SepaDebit;
955
971
 
956
972
  sofort?: PaymentMethodOptions.Sofort;
@@ -1340,6 +1356,28 @@ declare module 'stripe' {
1340
1356
  setup_future_usage?: 'none';
1341
1357
  }
1342
1358
 
1359
+ interface KakaoPay {
1360
+ /**
1361
+ * Controls when the funds will be captured from the customer's account.
1362
+ */
1363
+ capture_method?: 'manual';
1364
+
1365
+ /**
1366
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1367
+ *
1368
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1369
+ *
1370
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1371
+ *
1372
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1373
+ */
1374
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
1375
+ }
1376
+
1377
+ namespace KakaoPay {
1378
+ type SetupFutureUsage = 'none' | 'off_session';
1379
+ }
1380
+
1343
1381
  interface Klarna {
1344
1382
  /**
1345
1383
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1375,6 +1413,28 @@ declare module 'stripe' {
1375
1413
  setup_future_usage?: 'none';
1376
1414
  }
1377
1415
 
1416
+ interface KrCard {
1417
+ /**
1418
+ * Controls when the funds will be captured from the customer's account.
1419
+ */
1420
+ capture_method?: 'manual';
1421
+
1422
+ /**
1423
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1424
+ *
1425
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1426
+ *
1427
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1428
+ *
1429
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1430
+ */
1431
+ setup_future_usage?: KrCard.SetupFutureUsage;
1432
+ }
1433
+
1434
+ namespace KrCard {
1435
+ type SetupFutureUsage = 'none' | 'off_session';
1436
+ }
1437
+
1378
1438
  interface Link {
1379
1439
  /**
1380
1440
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1418,6 +1478,13 @@ declare module 'stripe' {
1418
1478
  setup_future_usage?: 'none';
1419
1479
  }
1420
1480
 
1481
+ interface NaverPay {
1482
+ /**
1483
+ * Controls when the funds will be captured from the customer's account.
1484
+ */
1485
+ capture_method?: 'manual';
1486
+ }
1487
+
1421
1488
  interface Oxxo {
1422
1489
  /**
1423
1490
  * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1449,6 +1516,13 @@ declare module 'stripe' {
1449
1516
  setup_future_usage?: 'none';
1450
1517
  }
1451
1518
 
1519
+ interface Payco {
1520
+ /**
1521
+ * Controls when the funds will be captured from the customer's account.
1522
+ */
1523
+ capture_method?: 'manual';
1524
+ }
1525
+
1452
1526
  interface Paynow {
1453
1527
  /**
1454
1528
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1518,6 +1592,13 @@ declare module 'stripe' {
1518
1592
  type SetupFutureUsage = 'none' | 'off_session';
1519
1593
  }
1520
1594
 
1595
+ interface SamsungPay {
1596
+ /**
1597
+ * Controls when the funds will be captured from the customer's account.
1598
+ */
1599
+ capture_method?: 'manual';
1600
+ }
1601
+
1521
1602
  interface SepaDebit {
1522
1603
  /**
1523
1604
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1068,6 +1068,11 @@ declare module 'stripe' {
1068
1068
  */
1069
1069
  ideal?: PaymentMethodOptions.Ideal;
1070
1070
 
1071
+ /**
1072
+ * contains details about the Kakao Pay payment method options.
1073
+ */
1074
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
1075
+
1071
1076
  /**
1072
1077
  * contains details about the Klarna payment method options.
1073
1078
  */
@@ -1078,6 +1083,11 @@ declare module 'stripe' {
1078
1083
  */
1079
1084
  konbini?: PaymentMethodOptions.Konbini;
1080
1085
 
1086
+ /**
1087
+ * contains details about the Korean card payment method options.
1088
+ */
1089
+ kr_card?: PaymentMethodOptions.KrCard;
1090
+
1081
1091
  /**
1082
1092
  * contains details about the Link payment method options.
1083
1093
  */
@@ -1093,6 +1103,11 @@ declare module 'stripe' {
1093
1103
  */
1094
1104
  multibanco?: PaymentMethodOptions.Multibanco;
1095
1105
 
1106
+ /**
1107
+ * contains details about the Kakao Pay payment method options.
1108
+ */
1109
+ naver_pay?: PaymentMethodOptions.NaverPay;
1110
+
1096
1111
  /**
1097
1112
  * contains details about the OXXO payment method options.
1098
1113
  */
@@ -1103,6 +1118,11 @@ declare module 'stripe' {
1103
1118
  */
1104
1119
  p24?: PaymentMethodOptions.P24;
1105
1120
 
1121
+ /**
1122
+ * contains details about the PAYCO payment method options.
1123
+ */
1124
+ payco?: PaymentMethodOptions.Payco;
1125
+
1106
1126
  /**
1107
1127
  * contains details about the PayNow payment method options.
1108
1128
  */
@@ -1123,6 +1143,11 @@ declare module 'stripe' {
1123
1143
  */
1124
1144
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1125
1145
 
1146
+ /**
1147
+ * contains details about the Samsung Pay payment method options.
1148
+ */
1149
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
1150
+
1126
1151
  /**
1127
1152
  * contains details about the Sepa Debit payment method options.
1128
1153
  */
@@ -1544,6 +1569,23 @@ declare module 'stripe' {
1544
1569
  setup_future_usage?: 'none';
1545
1570
  }
1546
1571
 
1572
+ interface KakaoPay {
1573
+ /**
1574
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1575
+ *
1576
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1577
+ *
1578
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1579
+ *
1580
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1581
+ */
1582
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
1583
+ }
1584
+
1585
+ namespace KakaoPay {
1586
+ type SetupFutureUsage = 'none' | 'off_session';
1587
+ }
1588
+
1547
1589
  interface Klarna {
1548
1590
  /**
1549
1591
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1575,6 +1617,23 @@ declare module 'stripe' {
1575
1617
  setup_future_usage?: 'none';
1576
1618
  }
1577
1619
 
1620
+ interface KrCard {
1621
+ /**
1622
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1623
+ *
1624
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1625
+ *
1626
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1627
+ *
1628
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1629
+ */
1630
+ setup_future_usage?: KrCard.SetupFutureUsage;
1631
+ }
1632
+
1633
+ namespace KrCard {
1634
+ type SetupFutureUsage = 'none' | 'off_session';
1635
+ }
1636
+
1578
1637
  interface Link {
1579
1638
  /**
1580
1639
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1618,6 +1677,23 @@ declare module 'stripe' {
1618
1677
  setup_future_usage?: 'none';
1619
1678
  }
1620
1679
 
1680
+ interface NaverPay {
1681
+ /**
1682
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1683
+ *
1684
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1685
+ *
1686
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1687
+ *
1688
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1689
+ */
1690
+ setup_future_usage?: NaverPay.SetupFutureUsage;
1691
+ }
1692
+
1693
+ namespace NaverPay {
1694
+ type SetupFutureUsage = 'none' | 'off_session';
1695
+ }
1696
+
1621
1697
  interface Oxxo {
1622
1698
  /**
1623
1699
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1654,6 +1730,8 @@ declare module 'stripe' {
1654
1730
  tos_shown_and_accepted?: boolean;
1655
1731
  }
1656
1732
 
1733
+ interface Payco {}
1734
+
1657
1735
  interface Paynow {
1658
1736
  /**
1659
1737
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1753,6 +1831,8 @@ declare module 'stripe' {
1753
1831
  type SetupFutureUsage = 'none' | 'off_session';
1754
1832
  }
1755
1833
 
1834
+ interface SamsungPay {}
1835
+
1756
1836
  interface SepaDebit {
1757
1837
  /**
1758
1838
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1874,6 +1954,7 @@ declare module 'stripe' {
1874
1954
  | 'affirm'
1875
1955
  | 'afterpay_clearpay'
1876
1956
  | 'alipay'
1957
+ | 'alma'
1877
1958
  | 'amazon_pay'
1878
1959
  | 'au_becs_debit'
1879
1960
  | 'bacs_debit'
@@ -1888,18 +1969,23 @@ declare module 'stripe' {
1888
1969
  | 'giropay'
1889
1970
  | 'grabpay'
1890
1971
  | 'ideal'
1972
+ | 'kakao_pay'
1891
1973
  | 'klarna'
1892
1974
  | 'konbini'
1975
+ | 'kr_card'
1893
1976
  | 'link'
1894
1977
  | 'mobilepay'
1895
1978
  | 'multibanco'
1979
+ | 'naver_pay'
1896
1980
  | 'oxxo'
1897
1981
  | 'p24'
1982
+ | 'payco'
1898
1983
  | 'paynow'
1899
1984
  | 'paypal'
1900
1985
  | 'pix'
1901
1986
  | 'promptpay'
1902
1987
  | 'revolut_pay'
1988
+ | 'samsung_pay'
1903
1989
  | 'sepa_debit'
1904
1990
  | 'sofort'
1905
1991
  | 'swish'