stripe 17.3.0-beta.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 (164) hide show
  1. package/CHANGELOG.md +152 -925
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/V2/Core/EventDestinations.js +41 -0
  12. package/cjs/resources/V2/Core.js +2 -0
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/V2/Core/EventDestinations.js +38 -0
  23. package/esm/resources/V2/Core.js +2 -0
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +0 -45
  29. package/types/AccountSessionsResource.d.ts +0 -324
  30. package/types/Accounts.d.ts +1 -155
  31. package/types/AccountsResource.d.ts +1 -415
  32. package/types/Charges.d.ts +0 -83
  33. package/types/ChargesResource.d.ts +0 -1294
  34. package/types/Checkout/Sessions.d.ts +79 -302
  35. package/types/Checkout/SessionsResource.d.ts +85 -354
  36. package/types/ConfirmationTokens.d.ts +0 -82
  37. package/types/Coupons.d.ts +1 -1
  38. package/types/CouponsResource.d.ts +1 -1
  39. package/types/CreditNotes.d.ts +0 -21
  40. package/types/CreditNotesResource.d.ts +0 -51
  41. package/types/CustomersResource.d.ts +0 -6
  42. package/types/Disputes.d.ts +3 -3
  43. package/types/EventTypes.d.ts +18 -545
  44. package/types/Events.d.ts +1 -90
  45. package/types/FinancialConnections/Accounts.d.ts +1 -29
  46. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  47. package/types/FinancialConnections/Sessions.d.ts +1 -49
  48. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  49. package/types/InvoiceItems.d.ts +0 -5
  50. package/types/InvoiceItemsResource.d.ts +0 -98
  51. package/types/InvoiceLineItems.d.ts +1 -28
  52. package/types/Invoices.d.ts +2 -124
  53. package/types/InvoicesResource.d.ts +1855 -5503
  54. package/types/Issuing/CardholdersResource.d.ts +1 -2
  55. package/types/Issuing/Transactions.d.ts +0 -2
  56. package/types/Issuing/TransactionsResource.d.ts +0 -5
  57. package/types/LineItems.d.ts +0 -7
  58. package/types/Mandates.d.ts +0 -77
  59. package/types/PaymentIntents.d.ts +1 -613
  60. package/types/PaymentIntentsResource.d.ts +3687 -7740
  61. package/types/PaymentLinks.d.ts +0 -6
  62. package/types/PaymentLinksResource.d.ts +0 -12
  63. package/types/PaymentMethodConfigurations.d.ts +0 -36
  64. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  65. package/types/PaymentMethods.d.ts +0 -82
  66. package/types/PaymentMethodsResource.d.ts +0 -115
  67. package/types/Prices.d.ts +0 -22
  68. package/types/PricesResource.d.ts +0 -22
  69. package/types/Products.d.ts +0 -39
  70. package/types/ProductsResource.d.ts +0 -36
  71. package/types/Quotes.d.ts +1 -591
  72. package/types/QuotesResource.d.ts +199 -2531
  73. package/types/Refunds.d.ts +1 -4
  74. package/types/SetupAttempts.d.ts +0 -11
  75. package/types/SetupIntents.d.ts +1 -112
  76. package/types/SetupIntentsResource.d.ts +3 -594
  77. package/types/Sources.d.ts +0 -23
  78. package/types/SubscriptionItems.d.ts +0 -21
  79. package/types/SubscriptionItemsResource.d.ts +0 -109
  80. package/types/SubscriptionSchedules.d.ts +0 -200
  81. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  82. package/types/Subscriptions.d.ts +1 -82
  83. package/types/SubscriptionsResource.d.ts +2 -347
  84. package/types/Terminal/Readers.d.ts +0 -278
  85. package/types/Terminal/ReadersResource.d.ts +0 -215
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -87
  87. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  88. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  89. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  90. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  91. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  92. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  93. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  94. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  95. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  96. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  97. package/types/V2/Core/EventsResource.d.ts +1 -1
  98. package/types/V2/CoreResource.d.ts +1 -0
  99. package/types/V2/EventDestinations.d.ts +164 -0
  100. package/types/WebhookEndpointsResource.d.ts +4 -65
  101. package/types/index.d.ts +2 -53
  102. package/cjs/resources/AccountNotices.js +0 -21
  103. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  104. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  105. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  106. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  107. package/cjs/resources/GiftCards/Cards.js +0 -23
  108. package/cjs/resources/GiftCards/Transactions.js +0 -33
  109. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  110. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  111. package/cjs/resources/Margins.js +0 -22
  112. package/cjs/resources/Orders.js +0 -24
  113. package/cjs/resources/Tax/Associations.js +0 -9
  114. package/cjs/resources/Tax/Forms.js +0 -20
  115. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  116. package/esm/resources/AccountNotices.js +0 -18
  117. package/esm/resources/Capital/FinancingOffers.js +0 -18
  118. package/esm/resources/Capital/FinancingSummary.js +0 -9
  119. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  120. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  121. package/esm/resources/GiftCards/Cards.js +0 -20
  122. package/esm/resources/GiftCards/Transactions.js +0 -30
  123. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  124. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  125. package/esm/resources/Margins.js +0 -19
  126. package/esm/resources/Orders.js +0 -21
  127. package/esm/resources/Tax/Associations.js +0 -6
  128. package/esm/resources/Tax/Forms.js +0 -17
  129. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  130. package/types/AccountNotices.d.ts +0 -113
  131. package/types/AccountNoticesResource.d.ts +0 -98
  132. package/types/Billing/MeterErrorReports.d.ts +0 -106
  133. package/types/Capital/FinancingOffers.d.ts +0 -188
  134. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  135. package/types/Capital/FinancingSummary.d.ts +0 -106
  136. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  137. package/types/Capital/FinancingTransactions.d.ts +0 -135
  138. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  139. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  140. package/types/FinancialConnections/Institutions.d.ts +0 -93
  141. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  142. package/types/GiftCards/Cards.d.ts +0 -118
  143. package/types/GiftCards/CardsResource.d.ts +0 -159
  144. package/types/GiftCards/Transactions.d.ts +0 -129
  145. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  146. package/types/InvoicePayments.d.ts +0 -138
  147. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  148. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  149. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  150. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  151. package/types/Issuing/Settlements.d.ts +0 -103
  152. package/types/Margins.d.ts +0 -56
  153. package/types/MarginsResource.d.ts +0 -114
  154. package/types/Orders.d.ts +0 -1154
  155. package/types/OrdersResource.d.ts +0 -2911
  156. package/types/QuoteLines.d.ts +0 -634
  157. package/types/QuotePreviewInvoices.d.ts +0 -1601
  158. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  159. package/types/Tax/Associations.d.ts +0 -126
  160. package/types/Tax/AssociationsResource.d.ts +0 -29
  161. package/types/Tax/Forms.d.ts +0 -220
  162. package/types/Tax/FormsResource.d.ts +0 -107
  163. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  164. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -111,8 +111,6 @@ declare module 'stripe' {
111
111
 
112
112
  requirements?: Account.Requirements;
113
113
 
114
- risk_controls?: Account.RiskControls;
115
-
116
114
  /**
117
115
  * Options for customizing how the account functions within Stripe.
118
116
  */
@@ -314,11 +312,6 @@ declare module 'stripe' {
314
312
  */
315
313
  giropay_payments?: Capabilities.GiropayPayments;
316
314
 
317
- /**
318
- * The status of the Gopay capability of the account, or whether the account can directly process Gopay payments.
319
- */
320
- gopay_payments?: Capabilities.GopayPayments;
321
-
322
315
  /**
323
316
  * The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
324
317
  */
@@ -374,11 +367,6 @@ declare module 'stripe' {
374
367
  */
375
368
  link_payments?: Capabilities.LinkPayments;
376
369
 
377
- /**
378
- * The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
379
- */
380
- mb_way_payments?: Capabilities.MbWayPayments;
381
-
382
370
  /**
383
371
  * The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
384
372
  */
@@ -419,31 +407,11 @@ declare module 'stripe' {
419
407
  */
420
408
  paynow_payments?: Capabilities.PaynowPayments;
421
409
 
422
- /**
423
- * The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
424
- */
425
- paypal_payments?: Capabilities.PaypalPayments;
426
-
427
- /**
428
- * The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
429
- */
430
- payto_payments?: Capabilities.PaytoPayments;
431
-
432
410
  /**
433
411
  * The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
434
412
  */
435
413
  promptpay_payments?: Capabilities.PromptpayPayments;
436
414
 
437
- /**
438
- * The status of the Qris capability of the account, or whether the account can directly process Qris payments.
439
- */
440
- qris_payments?: Capabilities.QrisPayments;
441
-
442
- /**
443
- * The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
444
- */
445
- rechnung_payments?: Capabilities.RechnungPayments;
446
-
447
415
  /**
448
416
  * The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
449
417
  */
@@ -464,11 +432,6 @@ declare module 'stripe' {
464
432
  */
465
433
  sepa_debit_payments?: Capabilities.SepaDebitPayments;
466
434
 
467
- /**
468
- * The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
469
- */
470
- shopeepay_payments?: Capabilities.ShopeepayPayments;
471
-
472
435
  /**
473
436
  * The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
474
437
  */
@@ -499,21 +462,6 @@ declare module 'stripe' {
499
462
  */
500
463
  treasury?: Capabilities.Treasury;
501
464
 
502
- /**
503
- * The status of the treasury_evolve capability of the account.
504
- */
505
- treasury_evolve?: Capabilities.TreasuryEvolve;
506
-
507
- /**
508
- * The status of the treasury_fifth_third capability of the account.
509
- */
510
- treasury_fifth_third?: Capabilities.TreasuryFifthThird;
511
-
512
- /**
513
- * The status of the treasury_goldman_sachs capability of the account.
514
- */
515
- treasury_goldman_sachs?: Capabilities.TreasuryGoldmanSachs;
516
-
517
465
  /**
518
466
  * The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
519
467
  */
@@ -574,8 +522,6 @@ declare module 'stripe' {
574
522
 
575
523
  type GiropayPayments = 'active' | 'inactive' | 'pending';
576
524
 
577
- type GopayPayments = 'active' | 'inactive' | 'pending';
578
-
579
525
  type GrabpayPayments = 'active' | 'inactive' | 'pending';
580
526
 
581
527
  type IdealPayments = 'active' | 'inactive' | 'pending';
@@ -598,8 +544,6 @@ declare module 'stripe' {
598
544
 
599
545
  type LinkPayments = 'active' | 'inactive' | 'pending';
600
546
 
601
- type MbWayPayments = 'active' | 'inactive' | 'pending';
602
-
603
547
  type MobilepayPayments = 'active' | 'inactive' | 'pending';
604
548
 
605
549
  type MultibancoPayments = 'active' | 'inactive' | 'pending';
@@ -616,16 +560,8 @@ declare module 'stripe' {
616
560
 
617
561
  type PaynowPayments = 'active' | 'inactive' | 'pending';
618
562
 
619
- type PaypalPayments = 'active' | 'inactive' | 'pending';
620
-
621
- type PaytoPayments = 'active' | 'inactive' | 'pending';
622
-
623
563
  type PromptpayPayments = 'active' | 'inactive' | 'pending';
624
564
 
625
- type QrisPayments = 'active' | 'inactive' | 'pending';
626
-
627
- type RechnungPayments = 'active' | 'inactive' | 'pending';
628
-
629
565
  type RevolutPayPayments = 'active' | 'inactive' | 'pending';
630
566
 
631
567
  type SamsungPayPayments = 'active' | 'inactive' | 'pending';
@@ -634,8 +570,6 @@ declare module 'stripe' {
634
570
 
635
571
  type SepaDebitPayments = 'active' | 'inactive' | 'pending';
636
572
 
637
- type ShopeepayPayments = 'active' | 'inactive' | 'pending';
638
-
639
573
  type SofortPayments = 'active' | 'inactive' | 'pending';
640
574
 
641
575
  type SwishPayments = 'active' | 'inactive' | 'pending';
@@ -648,12 +582,6 @@ declare module 'stripe' {
648
582
 
649
583
  type Treasury = 'active' | 'inactive' | 'pending';
650
584
 
651
- type TreasuryEvolve = 'active' | 'inactive' | 'pending';
652
-
653
- type TreasuryFifthThird = 'active' | 'inactive' | 'pending';
654
-
655
- type TreasuryGoldmanSachs = 'active' | 'inactive' | 'pending';
656
-
657
585
  type TwintPayments = 'active' | 'inactive' | 'pending';
658
586
 
659
587
  type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
@@ -899,10 +827,6 @@ declare module 'stripe' {
899
827
  }
900
828
 
901
829
  interface Controller {
902
- application?: Controller.Application;
903
-
904
- dashboard?: Controller.Dashboard;
905
-
906
830
  fees?: Controller.Fees;
907
831
 
908
832
  /**
@@ -926,34 +850,6 @@ declare module 'stripe' {
926
850
  }
927
851
 
928
852
  namespace Controller {
929
- interface Application {
930
- /**
931
- * `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
932
- */
933
- loss_liable: boolean;
934
-
935
- /**
936
- * `true` if the Connect application is responsible for onboarding the account.
937
- */
938
- onboarding_owner: boolean;
939
-
940
- /**
941
- * `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
942
- */
943
- pricing_controls: boolean;
944
- }
945
-
946
- interface Dashboard {
947
- /**
948
- * Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
949
- */
950
- type: Dashboard.Type;
951
- }
952
-
953
- namespace Dashboard {
954
- type Type = 'express' | 'full' | 'none';
955
- }
956
-
957
853
  interface Fees {
958
854
  /**
959
855
  * A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
@@ -966,8 +862,7 @@ declare module 'stripe' {
966
862
  | 'account'
967
863
  | 'application'
968
864
  | 'application_custom'
969
- | 'application_express'
970
- | 'application_unified_accounts_beta';
865
+ | 'application_express';
971
866
  }
972
867
 
973
868
  interface Losses {
@@ -1338,35 +1233,11 @@ declare module 'stripe' {
1338
1233
  }
1339
1234
  }
1340
1235
 
1341
- interface RiskControls {
1342
- charges: RiskControls.Charges;
1343
-
1344
- payouts: RiskControls.Payouts;
1345
- }
1346
-
1347
- namespace RiskControls {
1348
- interface Charges {
1349
- /**
1350
- * Whether a pause of the risk control has been requested.
1351
- */
1352
- pause_requested: boolean;
1353
- }
1354
-
1355
- interface Payouts {
1356
- /**
1357
- * Whether a pause of the risk control has been requested.
1358
- */
1359
- pause_requested: boolean;
1360
- }
1361
- }
1362
-
1363
1236
  interface Settings {
1364
1237
  bacs_debit_payments?: Settings.BacsDebitPayments;
1365
1238
 
1366
1239
  branding: Settings.Branding;
1367
1240
 
1368
- capital?: Settings.Capital;
1369
-
1370
1241
  card_issuing?: Settings.CardIssuing;
1371
1242
 
1372
1243
  card_payments: Settings.CardPayments;
@@ -1381,8 +1252,6 @@ declare module 'stripe' {
1381
1252
 
1382
1253
  sepa_debit_payments?: Settings.SepaDebitPayments;
1383
1254
 
1384
- tax_forms?: Settings.TaxForms;
1385
-
1386
1255
  treasury?: Settings.Treasury;
1387
1256
  }
1388
1257
 
@@ -1421,22 +1290,6 @@ declare module 'stripe' {
1421
1290
  secondary_color: string | null;
1422
1291
  }
1423
1292
 
1424
- interface Capital {
1425
- /**
1426
- * Per-currency mapping of user-selected destination accounts used to pay out loans.
1427
- */
1428
- payout_destination?: {
1429
- [key: string]: string;
1430
- };
1431
-
1432
- /**
1433
- * Per-currency mapping of all destination accounts eligible to receive loan payouts.
1434
- */
1435
- payout_destination_selector?: {
1436
- [key: string]: Array<string>;
1437
- };
1438
- }
1439
-
1440
1293
  interface CardIssuing {
1441
1294
  tos_acceptance?: CardIssuing.TosAcceptance;
1442
1295
  }
@@ -1584,13 +1437,6 @@ declare module 'stripe' {
1584
1437
  creditor_id?: string;
1585
1438
  }
1586
1439
 
1587
- interface TaxForms {
1588
- /**
1589
- * Whether the account opted out of receiving their tax forms by postal delivery.
1590
- */
1591
- consented_to_paperless_delivery: boolean;
1592
- }
1593
-
1594
1440
  interface Treasury {
1595
1441
  tos_acceptance?: Treasury.TosAcceptance;
1596
1442
  }