stripe 17.2.0 → 17.3.0-beta.1

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 (191) hide show
  1. package/CHANGELOG.md +926 -109
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentIntents.js +4 -0
  19. package/cjs/resources/Quotes.js +32 -0
  20. package/cjs/resources/SubscriptionSchedules.js +4 -0
  21. package/cjs/resources/Tax/Associations.js +9 -0
  22. package/cjs/resources/Tax/Forms.js +20 -0
  23. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  24. package/cjs/resources/Terminal/Readers.js +12 -0
  25. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  26. package/cjs/resources.js +42 -10
  27. package/cjs/stripe.core.js +1 -1
  28. package/esm/Webhooks.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Margins.js +19 -0
  41. package/esm/resources/Orders.js +21 -0
  42. package/esm/resources/PaymentIntents.js +4 -0
  43. package/esm/resources/Quotes.js +32 -0
  44. package/esm/resources/SubscriptionSchedules.js +4 -0
  45. package/esm/resources/Tax/Associations.js +6 -0
  46. package/esm/resources/Tax/Forms.js +17 -0
  47. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  48. package/esm/resources/Terminal/Readers.js +12 -0
  49. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  50. package/esm/resources.js +29 -0
  51. package/esm/stripe.core.js +1 -1
  52. package/package.json +1 -1
  53. package/types/AccountLinksResource.d.ts +5 -1
  54. package/types/AccountNotices.d.ts +113 -0
  55. package/types/AccountNoticesResource.d.ts +98 -0
  56. package/types/AccountSessions.d.ts +75 -5
  57. package/types/AccountSessionsResource.d.ts +354 -5
  58. package/types/Accounts.d.ts +211 -3
  59. package/types/AccountsResource.d.ts +584 -2
  60. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  61. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  62. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  63. package/types/Billing/CreditGrants.d.ts +11 -8
  64. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Billing/Meters.d.ts +2 -0
  67. package/types/BillingPortal/Configurations.d.ts +22 -0
  68. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Charges.d.ts +168 -0
  76. package/types/ChargesResource.d.ts +1294 -0
  77. package/types/Checkout/Sessions.d.ts +309 -5
  78. package/types/Checkout/SessionsResource.d.ts +360 -5
  79. package/types/ConfirmationTokens.d.ts +157 -0
  80. package/types/Coupons.d.ts +1 -1
  81. package/types/CouponsResource.d.ts +1 -1
  82. package/types/CreditNoteLineItems.d.ts +3 -0
  83. package/types/CreditNotes.d.ts +24 -0
  84. package/types/CreditNotesResource.d.ts +54 -3
  85. package/types/CustomersResource.d.ts +27 -3
  86. package/types/Disputes.d.ts +152 -0
  87. package/types/DisputesResource.d.ts +120 -0
  88. package/types/EventTypes.d.ts +564 -2
  89. package/types/Events.d.ts +91 -0
  90. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  91. package/types/FinancialConnections/Accounts.d.ts +29 -1
  92. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  93. package/types/FinancialConnections/Institutions.d.ts +93 -0
  94. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  95. package/types/FinancialConnections/Sessions.d.ts +49 -1
  96. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  97. package/types/Forwarding/Requests.d.ts +5 -0
  98. package/types/Forwarding/RequestsResource.d.ts +5 -0
  99. package/types/GiftCards/Cards.d.ts +118 -0
  100. package/types/GiftCards/CardsResource.d.ts +159 -0
  101. package/types/GiftCards/Transactions.d.ts +129 -0
  102. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  103. package/types/InvoiceItems.d.ts +5 -0
  104. package/types/InvoiceItemsResource.d.ts +98 -0
  105. package/types/InvoiceLineItems.d.ts +31 -1
  106. package/types/InvoicePayments.d.ts +138 -0
  107. package/types/Invoices.d.ts +139 -3
  108. package/types/InvoicesResource.d.ts +5488 -1799
  109. package/types/Issuing/CardholdersResource.d.ts +2 -1
  110. package/types/Issuing/CardsResource.d.ts +1 -1
  111. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  112. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  113. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  114. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  115. package/types/Issuing/Settlements.d.ts +103 -0
  116. package/types/Issuing/Transactions.d.ts +2 -0
  117. package/types/Issuing/TransactionsResource.d.ts +5 -0
  118. package/types/LineItems.d.ts +7 -0
  119. package/types/Mandates.d.ts +85 -0
  120. package/types/Margins.d.ts +56 -0
  121. package/types/MarginsResource.d.ts +114 -0
  122. package/types/Orders.d.ts +1154 -0
  123. package/types/OrdersResource.d.ts +2911 -0
  124. package/types/PaymentIntents.d.ts +697 -1
  125. package/types/PaymentIntentsResource.d.ts +7977 -3377
  126. package/types/PaymentLinks.d.ts +7 -0
  127. package/types/PaymentLinksResource.d.ts +14 -0
  128. package/types/PaymentMethodConfigurations.d.ts +72 -0
  129. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  130. package/types/PaymentMethodDomains.d.ts +28 -0
  131. package/types/PaymentMethods.d.ts +157 -0
  132. package/types/PaymentMethodsResource.d.ts +195 -1
  133. package/types/Persons.d.ts +1 -1
  134. package/types/Prices.d.ts +22 -0
  135. package/types/PricesResource.d.ts +22 -0
  136. package/types/Products.d.ts +39 -0
  137. package/types/ProductsResource.d.ts +36 -0
  138. package/types/QuoteLines.d.ts +634 -0
  139. package/types/QuotePreviewInvoices.d.ts +1601 -0
  140. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  141. package/types/Quotes.d.ts +591 -1
  142. package/types/QuotesResource.d.ts +2526 -194
  143. package/types/Refunds.d.ts +4 -0
  144. package/types/SetupAttempts.d.ts +19 -0
  145. package/types/SetupIntents.d.ts +112 -1
  146. package/types/SetupIntentsResource.d.ts +768 -6
  147. package/types/Sources.d.ts +23 -0
  148. package/types/SubscriptionItems.d.ts +21 -0
  149. package/types/SubscriptionItemsResource.d.ts +109 -0
  150. package/types/SubscriptionSchedules.d.ts +200 -0
  151. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  152. package/types/Subscriptions.d.ts +87 -1
  153. package/types/SubscriptionsResource.d.ts +359 -4
  154. package/types/Tax/Associations.d.ts +126 -0
  155. package/types/Tax/AssociationsResource.d.ts +29 -0
  156. package/types/Tax/CalculationLineItems.d.ts +1 -0
  157. package/types/Tax/Calculations.d.ts +33 -1
  158. package/types/Tax/CalculationsResource.d.ts +7 -1
  159. package/types/Tax/Forms.d.ts +220 -0
  160. package/types/Tax/FormsResource.d.ts +107 -0
  161. package/types/Tax/Registrations.d.ts +82 -0
  162. package/types/Tax/RegistrationsResource.d.ts +109 -0
  163. package/types/Tax/Transactions.d.ts +8 -1
  164. package/types/TaxIds.d.ts +7 -1
  165. package/types/TaxIdsResource.d.ts +7 -1
  166. package/types/TaxRates.d.ts +25 -0
  167. package/types/TaxRatesResource.d.ts +2 -0
  168. package/types/Terminal/Configurations.d.ts +19 -0
  169. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  170. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  171. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  172. package/types/Terminal/Readers.d.ts +278 -0
  173. package/types/Terminal/ReadersResource.d.ts +215 -0
  174. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  175. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  176. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  177. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  178. package/types/TokensResource.d.ts +2 -2
  179. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  180. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  181. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  182. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  183. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  184. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  185. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  186. package/types/UsageRecordSummaries.d.ts +1 -1
  187. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  188. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  189. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  190. package/types/WebhookEndpointsResource.d.ts +66 -0
  191. package/types/index.d.ts +53 -0
@@ -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;
@@ -406,40 +408,62 @@ declare module 'stripe' {
406
408
 
407
409
  giropay?: PaymentMethodDetails.Giropay;
408
410
 
411
+ gopay?: PaymentMethodDetails.Gopay;
412
+
409
413
  grabpay?: PaymentMethodDetails.Grabpay;
410
414
 
411
415
  ideal?: PaymentMethodDetails.Ideal;
412
416
 
413
417
  interac_present?: PaymentMethodDetails.InteracPresent;
414
418
 
419
+ kakao_pay?: PaymentMethodDetails.KakaoPay;
420
+
415
421
  klarna?: PaymentMethodDetails.Klarna;
416
422
 
417
423
  konbini?: PaymentMethodDetails.Konbini;
418
424
 
425
+ kr_card?: PaymentMethodDetails.KrCard;
426
+
419
427
  link?: PaymentMethodDetails.Link;
420
428
 
429
+ mb_way?: PaymentMethodDetails.MbWay;
430
+
421
431
  mobilepay?: PaymentMethodDetails.Mobilepay;
422
432
 
423
433
  multibanco?: PaymentMethodDetails.Multibanco;
424
434
 
435
+ naver_pay?: PaymentMethodDetails.NaverPay;
436
+
425
437
  oxxo?: PaymentMethodDetails.Oxxo;
426
438
 
427
439
  p24?: PaymentMethodDetails.P24;
428
440
 
441
+ payco?: PaymentMethodDetails.Payco;
442
+
429
443
  paynow?: PaymentMethodDetails.Paynow;
430
444
 
431
445
  paypal?: PaymentMethodDetails.Paypal;
432
446
 
447
+ payto?: PaymentMethodDetails.Payto;
448
+
433
449
  pix?: PaymentMethodDetails.Pix;
434
450
 
435
451
  promptpay?: PaymentMethodDetails.Promptpay;
436
452
 
453
+ qris?: PaymentMethodDetails.Qris;
454
+
455
+ rechnung?: PaymentMethodDetails.Rechnung;
456
+
437
457
  revolut_pay?: PaymentMethodDetails.RevolutPay;
438
458
 
459
+ samsung_pay?: PaymentMethodDetails.SamsungPay;
460
+
439
461
  sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
440
462
 
441
463
  sepa_debit?: PaymentMethodDetails.SepaDebit;
442
464
 
465
+ shopeepay?: PaymentMethodDetails.Shopeepay;
466
+
443
467
  sofort?: PaymentMethodDetails.Sofort;
444
468
 
445
469
  stripe_account?: PaymentMethodDetails.StripeAccount;
@@ -591,6 +615,8 @@ declare module 'stripe' {
591
615
  transaction_id: string | null;
592
616
  }
593
617
 
618
+ interface Alma {}
619
+
594
620
  interface AmazonPay {}
595
621
 
596
622
  interface AuBecsDebit {
@@ -730,6 +756,8 @@ declare module 'stripe' {
730
756
  */
731
757
  country: string | null;
732
758
 
759
+ decremental_authorization?: Card.DecrementalAuthorization;
760
+
733
761
  /**
734
762
  * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
735
763
  */
@@ -836,6 +864,17 @@ declare module 'stripe' {
836
864
  cvc_check: string | null;
837
865
  }
838
866
 
867
+ interface DecrementalAuthorization {
868
+ /**
869
+ * Indicates whether or not the decremental authorization feature is supported.
870
+ */
871
+ status: DecrementalAuthorization.Status;
872
+ }
873
+
874
+ namespace DecrementalAuthorization {
875
+ type Status = 'available' | 'unavailable';
876
+ }
877
+
839
878
  interface ExtendedAuthorization {
840
879
  /**
841
880
  * Indicates whether or not the capture window is extended beyond the standard authorization.
@@ -1423,6 +1462,8 @@ declare module 'stripe' {
1423
1462
  verified_name: string | null;
1424
1463
  }
1425
1464
 
1465
+ interface Gopay {}
1466
+
1426
1467
  interface Grabpay {
1427
1468
  /**
1428
1469
  * Unique transaction id generated by GrabPay
@@ -1656,6 +1697,13 @@ declare module 'stripe' {
1656
1697
  }
1657
1698
  }
1658
1699
 
1700
+ interface KakaoPay {
1701
+ /**
1702
+ * A unique identifier for the buyer as determined by the local payment processor.
1703
+ */
1704
+ buyer_id: string | null;
1705
+ }
1706
+
1659
1707
  interface Klarna {
1660
1708
  /**
1661
1709
  * The payer details for this transaction.
@@ -1713,6 +1761,49 @@ declare module 'stripe' {
1713
1761
  }
1714
1762
  }
1715
1763
 
1764
+ interface KrCard {
1765
+ /**
1766
+ * The local credit or debit card brand.
1767
+ */
1768
+ brand: KrCard.Brand | null;
1769
+
1770
+ /**
1771
+ * A unique identifier for the buyer as determined by the local payment processor.
1772
+ */
1773
+ buyer_id: string | null;
1774
+
1775
+ /**
1776
+ * The last four digits of the card. This may not be present for American Express cards.
1777
+ */
1778
+ last4: string | null;
1779
+ }
1780
+
1781
+ namespace KrCard {
1782
+ type Brand =
1783
+ | 'bc'
1784
+ | 'citi'
1785
+ | 'hana'
1786
+ | 'hyundai'
1787
+ | 'jeju'
1788
+ | 'jeonbuk'
1789
+ | 'kakaobank'
1790
+ | 'kbank'
1791
+ | 'kdbbank'
1792
+ | 'kookmin'
1793
+ | 'kwangju'
1794
+ | 'lotte'
1795
+ | 'mg'
1796
+ | 'nh'
1797
+ | 'post'
1798
+ | 'samsung'
1799
+ | 'savingsbank'
1800
+ | 'shinhan'
1801
+ | 'shinhyup'
1802
+ | 'suhyup'
1803
+ | 'tossbank'
1804
+ | 'woori';
1805
+ }
1806
+
1716
1807
  interface Link {
1717
1808
  /**
1718
1809
  * Two-letter ISO code representing the funding source country beneath the Link payment.
@@ -1721,6 +1812,8 @@ declare module 'stripe' {
1721
1812
  country: string | null;
1722
1813
  }
1723
1814
 
1815
+ interface MbWay {}
1816
+
1724
1817
  interface Mobilepay {
1725
1818
  /**
1726
1819
  * Internal card details
@@ -1769,6 +1862,13 @@ declare module 'stripe' {
1769
1862
  reference: string | null;
1770
1863
  }
1771
1864
 
1865
+ interface NaverPay {
1866
+ /**
1867
+ * A unique identifier for the buyer as determined by the local payment processor.
1868
+ */
1869
+ buyer_id: string | null;
1870
+ }
1871
+
1772
1872
  interface Oxxo {
1773
1873
  /**
1774
1874
  * OXXO reference number
@@ -1825,6 +1925,13 @@ declare module 'stripe' {
1825
1925
  | 'volkswagen_bank';
1826
1926
  }
1827
1927
 
1928
+ interface Payco {
1929
+ /**
1930
+ * A unique identifier for the buyer as determined by the local payment processor.
1931
+ */
1932
+ buyer_id: string | null;
1933
+ }
1934
+
1828
1935
  interface Paynow {
1829
1936
  /**
1830
1937
  * Reference number associated with this PayNow payment
@@ -1855,10 +1962,36 @@ declare module 'stripe' {
1855
1962
  */
1856
1963
  seller_protection: Paypal.SellerProtection | null;
1857
1964
 
1965
+ /**
1966
+ * The shipping address for the customer, as supplied by the merchant at the point of payment
1967
+ * execution. This shipping address will not be updated if the merchant updates the shipping
1968
+ * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1969
+ */
1970
+ shipping?: Stripe.Address | null;
1971
+
1858
1972
  /**
1859
1973
  * A unique ID generated by PayPal for this transaction.
1860
1974
  */
1861
1975
  transaction_id: string | null;
1976
+
1977
+ /**
1978
+ * The shipping address for the customer, as supplied by the merchant at the point of payment
1979
+ * execution. This shipping address will not be updated if the merchant updates the shipping
1980
+ * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1981
+ */
1982
+ verified_address?: Stripe.Address | null;
1983
+
1984
+ /**
1985
+ * Owner's verified email. Values are verified or provided by PayPal directly
1986
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1987
+ */
1988
+ verified_email?: string | null;
1989
+
1990
+ /**
1991
+ * Owner's verified full name. Values are verified or provided by PayPal directly
1992
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1993
+ */
1994
+ verified_name?: string | null;
1862
1995
  }
1863
1996
 
1864
1997
  namespace Paypal {
@@ -1881,6 +2014,28 @@ declare module 'stripe' {
1881
2014
  }
1882
2015
  }
1883
2016
 
2017
+ interface Payto {
2018
+ /**
2019
+ * Bank-State-Branch number of the bank account.
2020
+ */
2021
+ bsb_number: string | null;
2022
+
2023
+ /**
2024
+ * Last four digits of the bank account number.
2025
+ */
2026
+ last4: string | null;
2027
+
2028
+ /**
2029
+ * ID of the mandate used to make this payment.
2030
+ */
2031
+ mandate?: string;
2032
+
2033
+ /**
2034
+ * The PayID alias for the bank account.
2035
+ */
2036
+ pay_id: string | null;
2037
+ }
2038
+
1884
2039
  interface Pix {
1885
2040
  /**
1886
2041
  * Unique transaction id generated by BCB
@@ -1895,8 +2050,19 @@ declare module 'stripe' {
1895
2050
  reference: string | null;
1896
2051
  }
1897
2052
 
2053
+ interface Qris {}
2054
+
2055
+ interface Rechnung {}
2056
+
1898
2057
  interface RevolutPay {}
1899
2058
 
2059
+ interface SamsungPay {
2060
+ /**
2061
+ * A unique identifier for the buyer as determined by the local payment processor.
2062
+ */
2063
+ buyer_id: string | null;
2064
+ }
2065
+
1900
2066
  interface SepaCreditTransfer {
1901
2067
  /**
1902
2068
  * Name of the bank associated with the bank account.
@@ -1946,6 +2112,8 @@ declare module 'stripe' {
1946
2112
  mandate: string | null;
1947
2113
  }
1948
2114
 
2115
+ interface Shopeepay {}
2116
+
1949
2117
  interface Sofort {
1950
2118
  /**
1951
2119
  * Bank code of bank associated with the bank account.