stripe 16.10.0 → 16.11.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 (163) hide show
  1. package/CHANGELOG.md +831 -113
  2. package/README.md +33 -0
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +66 -5
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -1
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/AccountNotices.js +21 -0
  9. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/GiftCards/Cards.js +23 -0
  15. package/cjs/resources/GiftCards/Transactions.js +33 -0
  16. package/cjs/resources/Invoices.js +17 -0
  17. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  18. package/cjs/resources/Margins.js +22 -0
  19. package/cjs/resources/OAuth.js +1 -1
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/PaymentIntents.js +4 -0
  22. package/cjs/resources/QuotePhases.js +22 -0
  23. package/cjs/resources/Quotes.js +32 -0
  24. package/cjs/resources/SubscriptionSchedules.js +4 -0
  25. package/cjs/resources/Tax/Associations.js +9 -0
  26. package/cjs/resources/Tax/Forms.js +20 -0
  27. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  28. package/cjs/resources/Terminal/Readers.js +12 -0
  29. package/cjs/resources.js +42 -10
  30. package/cjs/stripe.core.js +6 -3
  31. package/cjs/utils.js +30 -3
  32. package/esm/RequestSender.js +67 -6
  33. package/esm/StripeResource.js +2 -2
  34. package/esm/apiVersion.js +1 -0
  35. package/esm/multipart.js +2 -2
  36. package/esm/resources/AccountNotices.js +18 -0
  37. package/esm/resources/Capital/FinancingOffers.js +18 -0
  38. package/esm/resources/Capital/FinancingSummary.js +9 -0
  39. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  40. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  41. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  42. package/esm/resources/GiftCards/Cards.js +20 -0
  43. package/esm/resources/GiftCards/Transactions.js +30 -0
  44. package/esm/resources/Invoices.js +17 -0
  45. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  46. package/esm/resources/Margins.js +19 -0
  47. package/esm/resources/OAuth.js +2 -2
  48. package/esm/resources/Orders.js +21 -0
  49. package/esm/resources/PaymentIntents.js +4 -0
  50. package/esm/resources/QuotePhases.js +19 -0
  51. package/esm/resources/Quotes.js +32 -0
  52. package/esm/resources/SubscriptionSchedules.js +4 -0
  53. package/esm/resources/Tax/Associations.js +6 -0
  54. package/esm/resources/Tax/Forms.js +17 -0
  55. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  56. package/esm/resources/Terminal/Readers.js +12 -0
  57. package/esm/resources.js +28 -0
  58. package/esm/stripe.core.js +6 -3
  59. package/esm/utils.js +27 -1
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +5 -1
  62. package/types/AccountNotices.d.ts +113 -0
  63. package/types/AccountNoticesResource.d.ts +98 -0
  64. package/types/AccountSessions.d.ts +45 -0
  65. package/types/AccountSessionsResource.d.ts +278 -0
  66. package/types/Accounts.d.ts +113 -1
  67. package/types/AccountsResource.d.ts +270 -0
  68. package/types/Billing/MeterErrorReports.d.ts +106 -0
  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 +71 -0
  76. package/types/ChargesResource.d.ts +1294 -0
  77. package/types/Checkout/Sessions.d.ts +296 -4
  78. package/types/Checkout/SessionsResource.d.ts +350 -5
  79. package/types/ConfirmationTokens.d.ts +67 -0
  80. package/types/Coupons.d.ts +1 -1
  81. package/types/CouponsResource.d.ts +1 -1
  82. package/types/CreditNotes.d.ts +21 -0
  83. package/types/CreditNotesResource.d.ts +51 -0
  84. package/types/CustomersResource.d.ts +3 -0
  85. package/types/Disputes.d.ts +152 -0
  86. package/types/DisputesResource.d.ts +120 -0
  87. package/types/EventTypes.d.ts +477 -0
  88. package/types/Events.d.ts +86 -0
  89. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  90. package/types/FinancialConnections/Accounts.d.ts +29 -1
  91. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  92. package/types/FinancialConnections/Institutions.d.ts +93 -0
  93. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  94. package/types/FinancialConnections/Sessions.d.ts +49 -1
  95. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  96. package/types/GiftCards/Cards.d.ts +118 -0
  97. package/types/GiftCards/CardsResource.d.ts +159 -0
  98. package/types/GiftCards/Transactions.d.ts +129 -0
  99. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  100. package/types/InvoiceItems.d.ts +5 -0
  101. package/types/InvoiceItemsResource.d.ts +98 -0
  102. package/types/InvoiceLineItems.d.ts +22 -0
  103. package/types/InvoicePayments.d.ts +138 -0
  104. package/types/Invoices.d.ts +117 -1
  105. package/types/InvoicesResource.d.ts +5454 -1796
  106. package/types/Issuing/CardholdersResource.d.ts +2 -1
  107. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  108. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  109. package/types/LineItems.d.ts +7 -0
  110. package/types/Mandates.d.ts +77 -0
  111. package/types/Margins.d.ts +56 -0
  112. package/types/MarginsResource.d.ts +114 -0
  113. package/types/Orders.d.ts +1084 -0
  114. package/types/OrdersResource.d.ts +2765 -0
  115. package/types/PaymentIntents.d.ts +503 -1
  116. package/types/PaymentIntentsResource.d.ts +7000 -3400
  117. package/types/PaymentLinks.d.ts +2 -0
  118. package/types/PaymentLinksResource.d.ts +4 -0
  119. package/types/PaymentMethodConfigurations.d.ts +36 -0
  120. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  121. package/types/PaymentMethods.d.ts +67 -0
  122. package/types/PaymentMethodsResource.d.ts +88 -0
  123. package/types/Prices.d.ts +22 -0
  124. package/types/PricesResource.d.ts +22 -0
  125. package/types/Products.d.ts +39 -0
  126. package/types/ProductsResource.d.ts +36 -0
  127. package/types/QuoteLines.d.ts +634 -0
  128. package/types/QuotePhases.d.ts +198 -0
  129. package/types/QuotePhasesResource.d.ts +67 -0
  130. package/types/QuotePreviewInvoices.d.ts +1532 -0
  131. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  132. package/types/Quotes.d.ts +596 -1
  133. package/types/QuotesResource.d.ts +2526 -194
  134. package/types/SetupAttempts.d.ts +10 -0
  135. package/types/SetupIntents.d.ts +111 -1
  136. package/types/SetupIntentsResource.d.ts +522 -3
  137. package/types/Sources.d.ts +23 -0
  138. package/types/SubscriptionItems.d.ts +21 -0
  139. package/types/SubscriptionItemsResource.d.ts +109 -0
  140. package/types/SubscriptionSchedules.d.ts +200 -0
  141. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  142. package/types/Subscriptions.d.ts +82 -1
  143. package/types/SubscriptionsResource.d.ts +347 -2
  144. package/types/Tax/Associations.d.ts +126 -0
  145. package/types/Tax/AssociationsResource.d.ts +29 -0
  146. package/types/Tax/Forms.d.ts +133 -0
  147. package/types/Tax/FormsResource.d.ts +90 -0
  148. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  149. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  150. package/types/Terminal/Readers.d.ts +278 -0
  151. package/types/Terminal/ReadersResource.d.ts +208 -0
  152. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  153. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  154. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  155. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  156. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  157. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  158. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  159. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  160. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  161. package/types/WebhookEndpointsResource.d.ts +56 -0
  162. package/types/index.d.ts +71 -0
  163. package/types/lib.d.ts +12 -0
@@ -9,15 +9,27 @@ declare module 'stripe' {
9
9
  | AccountExternalAccountDeletedEvent
10
10
  | AccountExternalAccountUpdatedEvent
11
11
  | AccountUpdatedEvent
12
+ | AccountNoticeCreatedEvent
13
+ | AccountNoticeUpdatedEvent
12
14
  | ApplicationFeeCreatedEvent
13
15
  | ApplicationFeeRefundUpdatedEvent
14
16
  | ApplicationFeeRefundedEvent
15
17
  | BalanceAvailableEvent
16
18
  | BillingAlertTriggeredEvent
19
+ | BillingMeterErrorReportTriggeredEvent
17
20
  | BillingPortalConfigurationCreatedEvent
18
21
  | BillingPortalConfigurationUpdatedEvent
19
22
  | BillingPortalSessionCreatedEvent
20
23
  | CapabilityUpdatedEvent
24
+ | CapitalFinancingOfferAcceptedEvent
25
+ | CapitalFinancingOfferCanceledEvent
26
+ | CapitalFinancingOfferCreatedEvent
27
+ | CapitalFinancingOfferExpiredEvent
28
+ | CapitalFinancingOfferFullyRepaidEvent
29
+ | CapitalFinancingOfferPaidOutEvent
30
+ | CapitalFinancingOfferRejectedEvent
31
+ | CapitalFinancingOfferReplacementCreatedEvent
32
+ | CapitalFinancingTransactionCreatedEvent
21
33
  | CashBalanceFundsAvailableEvent
22
34
  | ChargeCapturedEvent
23
35
  | ChargeDisputeClosedEvent
@@ -58,11 +70,15 @@ declare module 'stripe' {
58
70
  | CustomerSourceDeletedEvent
59
71
  | CustomerSourceExpiringEvent
60
72
  | CustomerSourceUpdatedEvent
73
+ | CustomerSubscriptionCollectionPausedEvent
74
+ | CustomerSubscriptionCollectionResumedEvent
61
75
  | CustomerSubscriptionCreatedEvent
76
+ | CustomerSubscriptionCustomEventEvent
62
77
  | CustomerSubscriptionDeletedEvent
63
78
  | CustomerSubscriptionPausedEvent
64
79
  | CustomerSubscriptionPendingUpdateAppliedEvent
65
80
  | CustomerSubscriptionPendingUpdateExpiredEvent
81
+ | CustomerSubscriptionPriceMigrationFailedEvent
66
82
  | CustomerSubscriptionResumedEvent
67
83
  | CustomerSubscriptionTrialWillEndEvent
68
84
  | CustomerSubscriptionUpdatedEvent
@@ -78,8 +94,10 @@ declare module 'stripe' {
78
94
  | FinancialConnectionsAccountDisconnectedEvent
79
95
  | FinancialConnectionsAccountReactivatedEvent
80
96
  | FinancialConnectionsAccountRefreshedBalanceEvent
97
+ | FinancialConnectionsAccountRefreshedInferredBalancesEvent
81
98
  | FinancialConnectionsAccountRefreshedOwnershipEvent
82
99
  | FinancialConnectionsAccountRefreshedTransactionsEvent
100
+ | FinancialConnectionsSessionUpdatedEvent
83
101
  | IdentityVerificationSessionCanceledEvent
84
102
  | IdentityVerificationSessionCreatedEvent
85
103
  | IdentityVerificationSessionProcessingEvent
@@ -93,6 +111,7 @@ declare module 'stripe' {
93
111
  | InvoiceMarkedUncollectibleEvent
94
112
  | InvoiceOverdueEvent
95
113
  | InvoicePaidEvent
114
+ | InvoicePaymentOverpaidEvent
96
115
  | InvoicePaymentActionRequiredEvent
97
116
  | InvoicePaymentFailedEvent
98
117
  | InvoicePaymentSucceededEvent
@@ -159,10 +178,16 @@ declare module 'stripe' {
159
178
  | ProductUpdatedEvent
160
179
  | PromotionCodeCreatedEvent
161
180
  | PromotionCodeUpdatedEvent
181
+ | QuoteAcceptFailedEvent
162
182
  | QuoteAcceptedEvent
183
+ | QuoteAcceptingEvent
163
184
  | QuoteCanceledEvent
164
185
  | QuoteCreatedEvent
186
+ | QuoteDraftEvent
165
187
  | QuoteFinalizedEvent
188
+ | QuoteReestimateFailedEvent
189
+ | QuoteReestimatedEvent
190
+ | QuoteStaleEvent
166
191
  | RadarEarlyFraudWarningCreatedEvent
167
192
  | RadarEarlyFraudWarningUpdatedEvent
168
193
  | RefundCreatedEvent
@@ -190,13 +215,16 @@ declare module 'stripe' {
190
215
  | SubscriptionScheduleCompletedEvent
191
216
  | SubscriptionScheduleCreatedEvent
192
217
  | SubscriptionScheduleExpiringEvent
218
+ | SubscriptionSchedulePriceMigrationFailedEvent
193
219
  | SubscriptionScheduleReleasedEvent
194
220
  | SubscriptionScheduleUpdatedEvent
221
+ | TaxFormUpdatedEvent
195
222
  | TaxSettingsUpdatedEvent
196
223
  | TaxRateCreatedEvent
197
224
  | TaxRateUpdatedEvent
198
225
  | TerminalReaderActionFailedEvent
199
226
  | TerminalReaderActionSucceededEvent
227
+ | TerminalReaderActionUpdatedEvent
200
228
  | TestHelpersTestClockAdvancingEvent
201
229
  | TestHelpersTestClockCreatedEvent
202
230
  | TestHelpersTestClockDeletedEvent
@@ -337,6 +365,38 @@ declare module 'stripe' {
337
365
  }
338
366
  }
339
367
 
368
+ /**
369
+ * Occurs whenever an AccountNotice is created.
370
+ */
371
+ interface AccountNoticeCreatedEvent extends EventBase {
372
+ type: 'account_notice.created';
373
+ data: AccountNoticeCreatedEvent.Data;
374
+ }
375
+
376
+ namespace AccountNoticeCreatedEvent {
377
+ interface Data extends Stripe.Event.Data {
378
+ object: Stripe.AccountNotice;
379
+
380
+ previous_attributes?: Partial<Stripe.AccountNotice>;
381
+ }
382
+ }
383
+
384
+ /**
385
+ * Occurs whenever an AccountNotice is updated.
386
+ */
387
+ interface AccountNoticeUpdatedEvent extends EventBase {
388
+ type: 'account_notice.updated';
389
+ data: AccountNoticeUpdatedEvent.Data;
390
+ }
391
+
392
+ namespace AccountNoticeUpdatedEvent {
393
+ interface Data extends Stripe.Event.Data {
394
+ object: Stripe.AccountNotice;
395
+
396
+ previous_attributes?: Partial<Stripe.AccountNotice>;
397
+ }
398
+ }
399
+
340
400
  /**
341
401
  * Occurs whenever an application fee is created on a charge.
342
402
  */
@@ -417,6 +477,22 @@ declare module 'stripe' {
417
477
  }
418
478
  }
419
479
 
480
+ /**
481
+ * Notifies of errors on a billing meter
482
+ */
483
+ interface BillingMeterErrorReportTriggeredEvent extends EventBase {
484
+ type: 'billing.meter_error_report.triggered';
485
+ data: BillingMeterErrorReportTriggeredEvent.Data;
486
+ }
487
+
488
+ namespace BillingMeterErrorReportTriggeredEvent {
489
+ interface Data extends Stripe.Event.Data {
490
+ object: Stripe.Billing.MeterErrorReport;
491
+
492
+ previous_attributes?: Partial<Stripe.Billing.MeterErrorReport>;
493
+ }
494
+ }
495
+
420
496
  /**
421
497
  * Occurs whenever a portal configuration is created.
422
498
  */
@@ -481,6 +557,150 @@ declare module 'stripe' {
481
557
  }
482
558
  }
483
559
 
560
+ /**
561
+ * Occurs whenever a connected account accepts a financing offer.
562
+ */
563
+ interface CapitalFinancingOfferAcceptedEvent extends EventBase {
564
+ type: 'capital.financing_offer.accepted';
565
+ data: CapitalFinancingOfferAcceptedEvent.Data;
566
+ }
567
+
568
+ namespace CapitalFinancingOfferAcceptedEvent {
569
+ interface Data extends Stripe.Event.Data {
570
+ object: Stripe.Capital.FinancingOffer;
571
+
572
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
573
+ }
574
+ }
575
+
576
+ /**
577
+ * Occurs whenever a financing offer is canceled.
578
+ */
579
+ interface CapitalFinancingOfferCanceledEvent extends EventBase {
580
+ type: 'capital.financing_offer.canceled';
581
+ data: CapitalFinancingOfferCanceledEvent.Data;
582
+ }
583
+
584
+ namespace CapitalFinancingOfferCanceledEvent {
585
+ interface Data extends Stripe.Event.Data {
586
+ object: Stripe.Capital.FinancingOffer;
587
+
588
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
589
+ }
590
+ }
591
+
592
+ /**
593
+ * Occurs whenever a new financing offer is created for a connected account.
594
+ */
595
+ interface CapitalFinancingOfferCreatedEvent extends EventBase {
596
+ type: 'capital.financing_offer.created';
597
+ data: CapitalFinancingOfferCreatedEvent.Data;
598
+ }
599
+
600
+ namespace CapitalFinancingOfferCreatedEvent {
601
+ interface Data extends Stripe.Event.Data {
602
+ object: Stripe.Capital.FinancingOffer;
603
+
604
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
605
+ }
606
+ }
607
+
608
+ /**
609
+ * Occurs whenever a financing offer expires.
610
+ */
611
+ interface CapitalFinancingOfferExpiredEvent extends EventBase {
612
+ type: 'capital.financing_offer.expired';
613
+ data: CapitalFinancingOfferExpiredEvent.Data;
614
+ }
615
+
616
+ namespace CapitalFinancingOfferExpiredEvent {
617
+ interface Data extends Stripe.Event.Data {
618
+ object: Stripe.Capital.FinancingOffer;
619
+
620
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
621
+ }
622
+ }
623
+
624
+ /**
625
+ * Occurs whenever a financing offer is fully repaid.
626
+ */
627
+ interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
628
+ type: 'capital.financing_offer.fully_repaid';
629
+ data: CapitalFinancingOfferFullyRepaidEvent.Data;
630
+ }
631
+
632
+ namespace CapitalFinancingOfferFullyRepaidEvent {
633
+ interface Data extends Stripe.Event.Data {
634
+ object: Stripe.Capital.FinancingOffer;
635
+
636
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
637
+ }
638
+ }
639
+
640
+ /**
641
+ * Occurs whenever a financing offer is paid out.
642
+ */
643
+ interface CapitalFinancingOfferPaidOutEvent extends EventBase {
644
+ type: 'capital.financing_offer.paid_out';
645
+ data: CapitalFinancingOfferPaidOutEvent.Data;
646
+ }
647
+
648
+ namespace CapitalFinancingOfferPaidOutEvent {
649
+ interface Data extends Stripe.Event.Data {
650
+ object: Stripe.Capital.FinancingOffer;
651
+
652
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
653
+ }
654
+ }
655
+
656
+ /**
657
+ * Occurs whenever a financing offer is rejected.
658
+ */
659
+ interface CapitalFinancingOfferRejectedEvent extends EventBase {
660
+ type: 'capital.financing_offer.rejected';
661
+ data: CapitalFinancingOfferRejectedEvent.Data;
662
+ }
663
+
664
+ namespace CapitalFinancingOfferRejectedEvent {
665
+ interface Data extends Stripe.Event.Data {
666
+ object: Stripe.Capital.FinancingOffer;
667
+
668
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
669
+ }
670
+ }
671
+
672
+ /**
673
+ * Occurs whenever a replacement for a financing offer has been created.
674
+ */
675
+ interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
676
+ type: 'capital.financing_offer.replacement_created';
677
+ data: CapitalFinancingOfferReplacementCreatedEvent.Data;
678
+ }
679
+
680
+ namespace CapitalFinancingOfferReplacementCreatedEvent {
681
+ interface Data extends Stripe.Event.Data {
682
+ object: Stripe.Capital.FinancingOffer;
683
+
684
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
685
+ }
686
+ }
687
+
688
+ /**
689
+ * Occurs whenever a financing transaction is created.
690
+ */
691
+ interface CapitalFinancingTransactionCreatedEvent extends EventBase {
692
+ type: 'capital.financing_transaction.created';
693
+ data: CapitalFinancingTransactionCreatedEvent.Data;
694
+ }
695
+
696
+ namespace CapitalFinancingTransactionCreatedEvent {
697
+ interface Data extends Stripe.Event.Data {
698
+ object: Stripe.Capital.FinancingTransaction;
699
+
700
+ previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
701
+ }
702
+ }
703
+
484
704
  /**
485
705
  * Occurs whenever there is a positive remaining cash balance after Stripe automatically reconciles new funds into the cash balance. If you enabled manual reconciliation, this webhook will fire whenever there are new funds into the cash balance.
486
706
  */
@@ -1121,6 +1341,38 @@ declare module 'stripe' {
1121
1341
  }
1122
1342
  }
1123
1343
 
1344
+ /**
1345
+ * Occurs whenever collection is paused on a customer's subscription. Only applies when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is paused, not when subscriptions enter `status=paused`.
1346
+ */
1347
+ interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
1348
+ type: 'customer.subscription.collection_paused';
1349
+ data: CustomerSubscriptionCollectionPausedEvent.Data;
1350
+ }
1351
+
1352
+ namespace CustomerSubscriptionCollectionPausedEvent {
1353
+ interface Data extends Stripe.Event.Data {
1354
+ object: Stripe.Subscription;
1355
+
1356
+ previous_attributes?: Partial<Stripe.Subscription>;
1357
+ }
1358
+ }
1359
+
1360
+ /**
1361
+ * Occurs whenever collection is resumed on a customer's subscription that is currently paused. Only applies when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed, not when subscriptions exit `status=paused`.
1362
+ */
1363
+ interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
1364
+ type: 'customer.subscription.collection_resumed';
1365
+ data: CustomerSubscriptionCollectionResumedEvent.Data;
1366
+ }
1367
+
1368
+ namespace CustomerSubscriptionCollectionResumedEvent {
1369
+ interface Data extends Stripe.Event.Data {
1370
+ object: Stripe.Subscription;
1371
+
1372
+ previous_attributes?: Partial<Stripe.Subscription>;
1373
+ }
1374
+ }
1375
+
1124
1376
  /**
1125
1377
  * Occurs whenever a customer is signed up for a new plan.
1126
1378
  */
@@ -1137,6 +1389,22 @@ declare module 'stripe' {
1137
1389
  }
1138
1390
  }
1139
1391
 
1392
+ /**
1393
+ * An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
1394
+ */
1395
+ interface CustomerSubscriptionCustomEventEvent extends EventBase {
1396
+ type: 'customer.subscription.custom_event';
1397
+ data: CustomerSubscriptionCustomEventEvent.Data;
1398
+ }
1399
+
1400
+ namespace CustomerSubscriptionCustomEventEvent {
1401
+ interface Data extends Stripe.Event.Data {
1402
+ object: Stripe.Subscription;
1403
+
1404
+ previous_attributes?: Partial<Stripe.Subscription>;
1405
+ }
1406
+ }
1407
+
1140
1408
  /**
1141
1409
  * Occurs whenever a customer's subscription ends.
1142
1410
  */
@@ -1201,6 +1469,22 @@ declare module 'stripe' {
1201
1469
  }
1202
1470
  }
1203
1471
 
1472
+ /**
1473
+ * Occurs whenever a price migration failed to transition prices on a subscription.
1474
+ */
1475
+ interface CustomerSubscriptionPriceMigrationFailedEvent extends EventBase {
1476
+ type: 'customer.subscription.price_migration_failed';
1477
+ data: CustomerSubscriptionPriceMigrationFailedEvent.Data;
1478
+ }
1479
+
1480
+ namespace CustomerSubscriptionPriceMigrationFailedEvent {
1481
+ interface Data extends Stripe.Event.Data {
1482
+ object: Stripe.Subscription;
1483
+
1484
+ previous_attributes?: Partial<Stripe.Subscription>;
1485
+ }
1486
+ }
1487
+
1204
1488
  /**
1205
1489
  * Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://docs.stripe.com/api/subscriptions/resume), not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed.
1206
1490
  */
@@ -1445,6 +1729,23 @@ declare module 'stripe' {
1445
1729
  }
1446
1730
  }
1447
1731
 
1732
+ /**
1733
+ * Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1734
+ */
1735
+ interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
1736
+ extends EventBase {
1737
+ type: 'financial_connections.account.refreshed_inferred_balances';
1738
+ data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
1739
+ }
1740
+
1741
+ namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
1742
+ interface Data extends Stripe.Event.Data {
1743
+ object: Stripe.FinancialConnections.Account;
1744
+
1745
+ previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
1746
+ }
1747
+ }
1748
+
1448
1749
  /**
1449
1750
  * Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1450
1751
  */
@@ -1479,6 +1780,22 @@ declare module 'stripe' {
1479
1780
  }
1480
1781
  }
1481
1782
 
1783
+ /**
1784
+ * Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
1785
+ */
1786
+ interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
1787
+ type: 'financial_connections.session.updated';
1788
+ data: FinancialConnectionsSessionUpdatedEvent.Data;
1789
+ }
1790
+
1791
+ namespace FinancialConnectionsSessionUpdatedEvent {
1792
+ interface Data extends Stripe.Event.Data {
1793
+ object: Stripe.FinancialConnections.Session;
1794
+
1795
+ previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
1796
+ }
1797
+ }
1798
+
1482
1799
  /**
1483
1800
  * Occurs whenever a VerificationSession is canceled
1484
1801
  */
@@ -1687,6 +2004,22 @@ declare module 'stripe' {
1687
2004
  }
1688
2005
  }
1689
2006
 
2007
+ /**
2008
+ * Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
2009
+ */
2010
+ interface InvoicePaymentOverpaidEvent extends EventBase {
2011
+ type: 'invoice.payment.overpaid';
2012
+ data: InvoicePaymentOverpaidEvent.Data;
2013
+ }
2014
+
2015
+ namespace InvoicePaymentOverpaidEvent {
2016
+ interface Data extends Stripe.Event.Data {
2017
+ object: Stripe.InvoicePayment;
2018
+
2019
+ previous_attributes?: Partial<Stripe.InvoicePayment>;
2020
+ }
2021
+ }
2022
+
1690
2023
  /**
1691
2024
  * Occurs whenever an invoice payment attempt requires further user action to complete.
1692
2025
  */
@@ -2743,6 +3076,22 @@ declare module 'stripe' {
2743
3076
  }
2744
3077
  }
2745
3078
 
3079
+ /**
3080
+ * Occurs whenever a quote acceptance fails
3081
+ */
3082
+ interface QuoteAcceptFailedEvent extends EventBase {
3083
+ type: 'quote.accept_failed';
3084
+ data: QuoteAcceptFailedEvent.Data;
3085
+ }
3086
+
3087
+ namespace QuoteAcceptFailedEvent {
3088
+ interface Data extends Stripe.Event.Data {
3089
+ object: Stripe.Quote;
3090
+
3091
+ previous_attributes?: Partial<Stripe.Quote>;
3092
+ }
3093
+ }
3094
+
2746
3095
  /**
2747
3096
  * Occurs whenever a quote is accepted.
2748
3097
  */
@@ -2759,6 +3108,22 @@ declare module 'stripe' {
2759
3108
  }
2760
3109
  }
2761
3110
 
3111
+ /**
3112
+ * Occurs whenever a quote's status changes to accepting
3113
+ */
3114
+ interface QuoteAcceptingEvent extends EventBase {
3115
+ type: 'quote.accepting';
3116
+ data: QuoteAcceptingEvent.Data;
3117
+ }
3118
+
3119
+ namespace QuoteAcceptingEvent {
3120
+ interface Data extends Stripe.Event.Data {
3121
+ object: Stripe.Quote;
3122
+
3123
+ previous_attributes?: Partial<Stripe.Quote>;
3124
+ }
3125
+ }
3126
+
2762
3127
  /**
2763
3128
  * Occurs whenever a quote is canceled.
2764
3129
  */
@@ -2791,6 +3156,22 @@ declare module 'stripe' {
2791
3156
  }
2792
3157
  }
2793
3158
 
3159
+ /**
3160
+ * Occurs when a quote's status changes from stale to draft
3161
+ */
3162
+ interface QuoteDraftEvent extends EventBase {
3163
+ type: 'quote.draft';
3164
+ data: QuoteDraftEvent.Data;
3165
+ }
3166
+
3167
+ namespace QuoteDraftEvent {
3168
+ interface Data extends Stripe.Event.Data {
3169
+ object: Stripe.Quote;
3170
+
3171
+ previous_attributes?: Partial<Stripe.Quote>;
3172
+ }
3173
+ }
3174
+
2794
3175
  /**
2795
3176
  * Occurs whenever a quote is finalized.
2796
3177
  */
@@ -2807,6 +3188,54 @@ declare module 'stripe' {
2807
3188
  }
2808
3189
  }
2809
3190
 
3191
+ /**
3192
+ * Occurs whenever a quote reestimate fails
3193
+ */
3194
+ interface QuoteReestimateFailedEvent extends EventBase {
3195
+ type: 'quote.reestimate_failed';
3196
+ data: QuoteReestimateFailedEvent.Data;
3197
+ }
3198
+
3199
+ namespace QuoteReestimateFailedEvent {
3200
+ interface Data extends Stripe.Event.Data {
3201
+ object: Stripe.Quote;
3202
+
3203
+ previous_attributes?: Partial<Stripe.Quote>;
3204
+ }
3205
+ }
3206
+
3207
+ /**
3208
+ * Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
3209
+ */
3210
+ interface QuoteReestimatedEvent extends EventBase {
3211
+ type: 'quote.reestimated';
3212
+ data: QuoteReestimatedEvent.Data;
3213
+ }
3214
+
3215
+ namespace QuoteReestimatedEvent {
3216
+ interface Data extends Stripe.Event.Data {
3217
+ object: Stripe.Quote;
3218
+
3219
+ previous_attributes?: Partial<Stripe.Quote>;
3220
+ }
3221
+ }
3222
+
3223
+ /**
3224
+ * Occurs whenever a quote's status changes to stale
3225
+ */
3226
+ interface QuoteStaleEvent extends EventBase {
3227
+ type: 'quote.stale';
3228
+ data: QuoteStaleEvent.Data;
3229
+ }
3230
+
3231
+ namespace QuoteStaleEvent {
3232
+ interface Data extends Stripe.Event.Data {
3233
+ object: Stripe.Quote;
3234
+
3235
+ previous_attributes?: Partial<Stripe.Quote>;
3236
+ }
3237
+ }
3238
+
2810
3239
  /**
2811
3240
  * Occurs whenever an early fraud warning is created.
2812
3241
  */
@@ -3239,6 +3668,22 @@ declare module 'stripe' {
3239
3668
  }
3240
3669
  }
3241
3670
 
3671
+ /**
3672
+ * Occurs whenever a price migration failed to transition prices on a subscription schedule.
3673
+ */
3674
+ interface SubscriptionSchedulePriceMigrationFailedEvent extends EventBase {
3675
+ type: 'subscription_schedule.price_migration_failed';
3676
+ data: SubscriptionSchedulePriceMigrationFailedEvent.Data;
3677
+ }
3678
+
3679
+ namespace SubscriptionSchedulePriceMigrationFailedEvent {
3680
+ interface Data extends Stripe.Event.Data {
3681
+ object: Stripe.SubscriptionSchedule;
3682
+
3683
+ previous_attributes?: Partial<Stripe.SubscriptionSchedule>;
3684
+ }
3685
+ }
3686
+
3242
3687
  /**
3243
3688
  * Occurs whenever a new subscription schedule is released.
3244
3689
  */
@@ -3271,6 +3716,22 @@ declare module 'stripe' {
3271
3716
  }
3272
3717
  }
3273
3718
 
3719
+ /**
3720
+ * Occurs when a tax form is updated.
3721
+ */
3722
+ interface TaxFormUpdatedEvent extends EventBase {
3723
+ type: 'tax.form.updated';
3724
+ data: TaxFormUpdatedEvent.Data;
3725
+ }
3726
+
3727
+ namespace TaxFormUpdatedEvent {
3728
+ interface Data extends Stripe.Event.Data {
3729
+ object: Stripe.Tax.Form;
3730
+
3731
+ previous_attributes?: Partial<Stripe.Tax.Form>;
3732
+ }
3733
+ }
3734
+
3274
3735
  /**
3275
3736
  * Occurs whenever tax settings is updated.
3276
3737
  */
@@ -3351,6 +3812,22 @@ declare module 'stripe' {
3351
3812
  }
3352
3813
  }
3353
3814
 
3815
+ /**
3816
+ * Occurs whenever an action sent to a Terminal reader is updated.
3817
+ */
3818
+ interface TerminalReaderActionUpdatedEvent extends EventBase {
3819
+ type: 'terminal.reader.action_updated';
3820
+ data: TerminalReaderActionUpdatedEvent.Data;
3821
+ }
3822
+
3823
+ namespace TerminalReaderActionUpdatedEvent {
3824
+ interface Data extends Stripe.Event.Data {
3825
+ object: Stripe.Terminal.Reader;
3826
+
3827
+ previous_attributes?: Partial<Stripe.Terminal.Reader>;
3828
+ }
3829
+ }
3830
+
3354
3831
  /**
3355
3832
  * Occurs whenever a test clock starts advancing.
3356
3833
  */