stripe 16.2.0 → 16.4.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 (158) hide show
  1. package/CHANGELOG.md +768 -109
  2. package/README.md +33 -0
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +66 -5
  5. package/cjs/ResourceNamespace.js +3 -0
  6. package/cjs/StripeResource.js +1 -1
  7. package/cjs/Webhooks.js +29 -17
  8. package/cjs/apiVersion.js +2 -1
  9. package/cjs/multipart.js +4 -1
  10. package/cjs/resources/AccountNotices.js +21 -0
  11. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  12. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  13. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  14. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  15. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  16. package/cjs/resources/GiftCards/Cards.js +23 -0
  17. package/cjs/resources/GiftCards/Transactions.js +33 -0
  18. package/cjs/resources/Invoices.js +13 -0
  19. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  20. package/cjs/resources/Margins.js +22 -0
  21. package/cjs/resources/OAuth.js +1 -1
  22. package/cjs/resources/Orders.js +24 -0
  23. package/cjs/resources/PaymentIntents.js +4 -0
  24. package/cjs/resources/QuotePhases.js +22 -0
  25. package/cjs/resources/Quotes.js +32 -0
  26. package/cjs/resources/SubscriptionSchedules.js +4 -0
  27. package/cjs/resources/Tax/Forms.js +20 -0
  28. package/cjs/resources/Terminal/Readers.js +12 -0
  29. package/cjs/resources.js +38 -10
  30. package/cjs/stripe.core.js +16 -7
  31. package/cjs/utils.js +30 -3
  32. package/esm/RequestSender.js +67 -6
  33. package/esm/ResourceNamespace.js +3 -0
  34. package/esm/StripeResource.js +2 -2
  35. package/esm/Webhooks.js +29 -17
  36. package/esm/apiVersion.js +1 -0
  37. package/esm/multipart.js +5 -2
  38. package/esm/resources/AccountNotices.js +18 -0
  39. package/esm/resources/Capital/FinancingOffers.js +18 -0
  40. package/esm/resources/Capital/FinancingSummary.js +9 -0
  41. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  42. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  43. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  44. package/esm/resources/GiftCards/Cards.js +20 -0
  45. package/esm/resources/GiftCards/Transactions.js +30 -0
  46. package/esm/resources/Invoices.js +13 -0
  47. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  48. package/esm/resources/Margins.js +19 -0
  49. package/esm/resources/OAuth.js +2 -2
  50. package/esm/resources/Orders.js +21 -0
  51. package/esm/resources/PaymentIntents.js +4 -0
  52. package/esm/resources/QuotePhases.js +19 -0
  53. package/esm/resources/Quotes.js +32 -0
  54. package/esm/resources/SubscriptionSchedules.js +4 -0
  55. package/esm/resources/Tax/Forms.js +17 -0
  56. package/esm/resources/Terminal/Readers.js +12 -0
  57. package/esm/resources.js +24 -0
  58. package/esm/stripe.core.js +16 -7
  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 +110 -0
  63. package/types/AccountNoticesResource.d.ts +98 -0
  64. package/types/AccountSessions.d.ts +15 -0
  65. package/types/AccountSessionsResource.d.ts +205 -0
  66. package/types/Accounts.d.ts +88 -1
  67. package/types/AccountsResource.d.ts +204 -0
  68. package/types/BillingPortal/Sessions.d.ts +1 -1
  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 +67 -0
  76. package/types/ChargesResource.d.ts +1294 -0
  77. package/types/Checkout/Sessions.d.ts +28 -1
  78. package/types/Checkout/SessionsResource.d.ts +15 -1
  79. package/types/ConfirmationTokens.d.ts +83 -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/CustomerSessions.d.ts +76 -0
  85. package/types/CustomerSessionsResource.d.ts +76 -0
  86. package/types/CustomersResource.d.ts +2 -0
  87. package/types/Disputes.d.ts +168 -0
  88. package/types/DisputesResource.d.ts +120 -0
  89. package/types/EventTypes.d.ts +426 -0
  90. package/types/Events.d.ts +83 -0
  91. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  92. package/types/FinancialConnections/Accounts.d.ts +29 -1
  93. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  94. package/types/FinancialConnections/Institutions.d.ts +93 -0
  95. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  96. package/types/FinancialConnections/Sessions.d.ts +49 -1
  97. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  98. package/types/GiftCards/Cards.d.ts +118 -0
  99. package/types/GiftCards/CardsResource.d.ts +159 -0
  100. package/types/GiftCards/Transactions.d.ts +129 -0
  101. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  102. package/types/InvoiceItems.d.ts +5 -0
  103. package/types/InvoiceItemsResource.d.ts +98 -0
  104. package/types/InvoiceLineItems.d.ts +22 -0
  105. package/types/InvoicePayments.d.ts +91 -0
  106. package/types/Invoices.d.ts +116 -6
  107. package/types/InvoicesResource.d.ts +5395 -1818
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/Cards.d.ts +34 -0
  110. package/types/Issuing/CardsResource.d.ts +125 -0
  111. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  112. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  113. package/types/LineItems.d.ts +7 -0
  114. package/types/Mandates.d.ts +77 -0
  115. package/types/Margins.d.ts +56 -0
  116. package/types/MarginsResource.d.ts +114 -0
  117. package/types/Orders.d.ts +1057 -0
  118. package/types/OrdersResource.d.ts +2711 -0
  119. package/types/PaymentIntents.d.ts +469 -6
  120. package/types/PaymentIntentsResource.d.ts +6721 -3373
  121. package/types/PaymentMethods.d.ts +62 -0
  122. package/types/PaymentMethodsResource.d.ts +110 -0
  123. package/types/Plans.d.ts +1 -1
  124. package/types/Prices.d.ts +23 -1
  125. package/types/PricesResource.d.ts +22 -0
  126. package/types/Products.d.ts +39 -0
  127. package/types/ProductsResource.d.ts +36 -0
  128. package/types/QuoteLines.d.ts +634 -0
  129. package/types/QuotePhases.d.ts +198 -0
  130. package/types/QuotePhasesResource.d.ts +67 -0
  131. package/types/QuotePreviewInvoices.d.ts +1530 -0
  132. package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
  133. package/types/Quotes.d.ts +578 -1
  134. package/types/QuotesResource.d.ts +3174 -265
  135. package/types/SetupAttempts.d.ts +9 -5
  136. package/types/SetupIntents.d.ts +110 -6
  137. package/types/SetupIntentsResource.d.ts +498 -3
  138. package/types/Sources.d.ts +23 -0
  139. package/types/SubscriptionItems.d.ts +21 -0
  140. package/types/SubscriptionItemsResource.d.ts +109 -0
  141. package/types/SubscriptionSchedules.d.ts +164 -0
  142. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  143. package/types/Subscriptions.d.ts +46 -1
  144. package/types/SubscriptionsResource.d.ts +350 -5
  145. package/types/Tax/Forms.d.ts +133 -0
  146. package/types/Tax/FormsResource.d.ts +90 -0
  147. package/types/Terminal/Readers.d.ts +278 -0
  148. package/types/Terminal/ReadersResource.d.ts +208 -0
  149. package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
  150. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  151. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  152. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  153. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  154. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  155. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  156. package/types/WebhookEndpointsResource.d.ts +50 -0
  157. package/types/index.d.ts +64 -0
  158. package/types/lib.d.ts +12 -0
@@ -9,6 +9,8 @@ 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
@@ -17,6 +19,15 @@ declare module 'stripe' {
17
19
  | BillingPortalConfigurationUpdatedEvent
18
20
  | BillingPortalSessionCreatedEvent
19
21
  | CapabilityUpdatedEvent
22
+ | CapitalFinancingOfferAcceptedEvent
23
+ | CapitalFinancingOfferCanceledEvent
24
+ | CapitalFinancingOfferCreatedEvent
25
+ | CapitalFinancingOfferExpiredEvent
26
+ | CapitalFinancingOfferFullyRepaidEvent
27
+ | CapitalFinancingOfferPaidOutEvent
28
+ | CapitalFinancingOfferRejectedEvent
29
+ | CapitalFinancingOfferReplacementCreatedEvent
30
+ | CapitalFinancingTransactionCreatedEvent
20
31
  | CashBalanceFundsAvailableEvent
21
32
  | ChargeCapturedEvent
22
33
  | ChargeDisputeClosedEvent
@@ -57,7 +68,10 @@ declare module 'stripe' {
57
68
  | CustomerSourceDeletedEvent
58
69
  | CustomerSourceExpiringEvent
59
70
  | CustomerSourceUpdatedEvent
71
+ | CustomerSubscriptionCollectionPausedEvent
72
+ | CustomerSubscriptionCollectionResumedEvent
60
73
  | CustomerSubscriptionCreatedEvent
74
+ | CustomerSubscriptionCustomEventEvent
61
75
  | CustomerSubscriptionDeletedEvent
62
76
  | CustomerSubscriptionPausedEvent
63
77
  | CustomerSubscriptionPendingUpdateAppliedEvent
@@ -77,8 +91,10 @@ declare module 'stripe' {
77
91
  | FinancialConnectionsAccountDisconnectedEvent
78
92
  | FinancialConnectionsAccountReactivatedEvent
79
93
  | FinancialConnectionsAccountRefreshedBalanceEvent
94
+ | FinancialConnectionsAccountRefreshedInferredBalancesEvent
80
95
  | FinancialConnectionsAccountRefreshedOwnershipEvent
81
96
  | FinancialConnectionsAccountRefreshedTransactionsEvent
97
+ | FinancialConnectionsSessionUpdatedEvent
82
98
  | IdentityVerificationSessionCanceledEvent
83
99
  | IdentityVerificationSessionCreatedEvent
84
100
  | IdentityVerificationSessionProcessingEvent
@@ -91,6 +107,7 @@ declare module 'stripe' {
91
107
  | InvoiceFinalizedEvent
92
108
  | InvoiceMarkedUncollectibleEvent
93
109
  | InvoicePaidEvent
110
+ | InvoicePaymentOverpaidEvent
94
111
  | InvoicePaymentActionRequiredEvent
95
112
  | InvoicePaymentFailedEvent
96
113
  | InvoicePaymentSucceededEvent
@@ -155,10 +172,16 @@ declare module 'stripe' {
155
172
  | ProductUpdatedEvent
156
173
  | PromotionCodeCreatedEvent
157
174
  | PromotionCodeUpdatedEvent
175
+ | QuoteAcceptFailedEvent
158
176
  | QuoteAcceptedEvent
177
+ | QuoteAcceptingEvent
159
178
  | QuoteCanceledEvent
160
179
  | QuoteCreatedEvent
180
+ | QuoteDraftEvent
161
181
  | QuoteFinalizedEvent
182
+ | QuoteReestimateFailedEvent
183
+ | QuoteReestimatedEvent
184
+ | QuoteStaleEvent
162
185
  | RadarEarlyFraudWarningCreatedEvent
163
186
  | RadarEarlyFraudWarningUpdatedEvent
164
187
  | RefundCreatedEvent
@@ -188,11 +211,13 @@ declare module 'stripe' {
188
211
  | SubscriptionScheduleExpiringEvent
189
212
  | SubscriptionScheduleReleasedEvent
190
213
  | SubscriptionScheduleUpdatedEvent
214
+ | TaxFormUpdatedEvent
191
215
  | TaxSettingsUpdatedEvent
192
216
  | TaxRateCreatedEvent
193
217
  | TaxRateUpdatedEvent
194
218
  | TerminalReaderActionFailedEvent
195
219
  | TerminalReaderActionSucceededEvent
220
+ | TerminalReaderActionUpdatedEvent
196
221
  | TestHelpersTestClockAdvancingEvent
197
222
  | TestHelpersTestClockCreatedEvent
198
223
  | TestHelpersTestClockDeletedEvent
@@ -333,6 +358,38 @@ declare module 'stripe' {
333
358
  }
334
359
  }
335
360
 
361
+ /**
362
+ * Occurs whenever an AccountNotice is created.
363
+ */
364
+ interface AccountNoticeCreatedEvent extends EventBase {
365
+ type: 'account_notice.created';
366
+ data: AccountNoticeCreatedEvent.Data;
367
+ }
368
+
369
+ namespace AccountNoticeCreatedEvent {
370
+ interface Data extends Stripe.Event.Data {
371
+ object: Stripe.AccountNotice;
372
+
373
+ previous_attributes?: Partial<Stripe.AccountNotice>;
374
+ }
375
+ }
376
+
377
+ /**
378
+ * Occurs whenever an AccountNotice is updated.
379
+ */
380
+ interface AccountNoticeUpdatedEvent extends EventBase {
381
+ type: 'account_notice.updated';
382
+ data: AccountNoticeUpdatedEvent.Data;
383
+ }
384
+
385
+ namespace AccountNoticeUpdatedEvent {
386
+ interface Data extends Stripe.Event.Data {
387
+ object: Stripe.AccountNotice;
388
+
389
+ previous_attributes?: Partial<Stripe.AccountNotice>;
390
+ }
391
+ }
392
+
336
393
  /**
337
394
  * Occurs whenever an application fee is created on a charge.
338
395
  */
@@ -461,6 +518,150 @@ declare module 'stripe' {
461
518
  }
462
519
  }
463
520
 
521
+ /**
522
+ * Occurs whenever a connected account accepts a financing offer.
523
+ */
524
+ interface CapitalFinancingOfferAcceptedEvent extends EventBase {
525
+ type: 'capital.financing_offer.accepted';
526
+ data: CapitalFinancingOfferAcceptedEvent.Data;
527
+ }
528
+
529
+ namespace CapitalFinancingOfferAcceptedEvent {
530
+ interface Data extends Stripe.Event.Data {
531
+ object: Stripe.Capital.FinancingOffer;
532
+
533
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
534
+ }
535
+ }
536
+
537
+ /**
538
+ * Occurs whenever a financing offer is canceled.
539
+ */
540
+ interface CapitalFinancingOfferCanceledEvent extends EventBase {
541
+ type: 'capital.financing_offer.canceled';
542
+ data: CapitalFinancingOfferCanceledEvent.Data;
543
+ }
544
+
545
+ namespace CapitalFinancingOfferCanceledEvent {
546
+ interface Data extends Stripe.Event.Data {
547
+ object: Stripe.Capital.FinancingOffer;
548
+
549
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
550
+ }
551
+ }
552
+
553
+ /**
554
+ * Occurs whenever a new financing offer is created for a connected account.
555
+ */
556
+ interface CapitalFinancingOfferCreatedEvent extends EventBase {
557
+ type: 'capital.financing_offer.created';
558
+ data: CapitalFinancingOfferCreatedEvent.Data;
559
+ }
560
+
561
+ namespace CapitalFinancingOfferCreatedEvent {
562
+ interface Data extends Stripe.Event.Data {
563
+ object: Stripe.Capital.FinancingOffer;
564
+
565
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
566
+ }
567
+ }
568
+
569
+ /**
570
+ * Occurs whenever a financing offer expires.
571
+ */
572
+ interface CapitalFinancingOfferExpiredEvent extends EventBase {
573
+ type: 'capital.financing_offer.expired';
574
+ data: CapitalFinancingOfferExpiredEvent.Data;
575
+ }
576
+
577
+ namespace CapitalFinancingOfferExpiredEvent {
578
+ interface Data extends Stripe.Event.Data {
579
+ object: Stripe.Capital.FinancingOffer;
580
+
581
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
582
+ }
583
+ }
584
+
585
+ /**
586
+ * Occurs whenever a financing offer is fully repaid.
587
+ */
588
+ interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
589
+ type: 'capital.financing_offer.fully_repaid';
590
+ data: CapitalFinancingOfferFullyRepaidEvent.Data;
591
+ }
592
+
593
+ namespace CapitalFinancingOfferFullyRepaidEvent {
594
+ interface Data extends Stripe.Event.Data {
595
+ object: Stripe.Capital.FinancingOffer;
596
+
597
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
598
+ }
599
+ }
600
+
601
+ /**
602
+ * Occurs whenever a financing offer is paid out.
603
+ */
604
+ interface CapitalFinancingOfferPaidOutEvent extends EventBase {
605
+ type: 'capital.financing_offer.paid_out';
606
+ data: CapitalFinancingOfferPaidOutEvent.Data;
607
+ }
608
+
609
+ namespace CapitalFinancingOfferPaidOutEvent {
610
+ interface Data extends Stripe.Event.Data {
611
+ object: Stripe.Capital.FinancingOffer;
612
+
613
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
614
+ }
615
+ }
616
+
617
+ /**
618
+ * Occurs whenever a financing offer is rejected.
619
+ */
620
+ interface CapitalFinancingOfferRejectedEvent extends EventBase {
621
+ type: 'capital.financing_offer.rejected';
622
+ data: CapitalFinancingOfferRejectedEvent.Data;
623
+ }
624
+
625
+ namespace CapitalFinancingOfferRejectedEvent {
626
+ interface Data extends Stripe.Event.Data {
627
+ object: Stripe.Capital.FinancingOffer;
628
+
629
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
630
+ }
631
+ }
632
+
633
+ /**
634
+ * Occurs whenever a replacement for a financing offer has been created.
635
+ */
636
+ interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
637
+ type: 'capital.financing_offer.replacement_created';
638
+ data: CapitalFinancingOfferReplacementCreatedEvent.Data;
639
+ }
640
+
641
+ namespace CapitalFinancingOfferReplacementCreatedEvent {
642
+ interface Data extends Stripe.Event.Data {
643
+ object: Stripe.Capital.FinancingOffer;
644
+
645
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
646
+ }
647
+ }
648
+
649
+ /**
650
+ * Occurs whenever a financing transaction is created.
651
+ */
652
+ interface CapitalFinancingTransactionCreatedEvent extends EventBase {
653
+ type: 'capital.financing_transaction.created';
654
+ data: CapitalFinancingTransactionCreatedEvent.Data;
655
+ }
656
+
657
+ namespace CapitalFinancingTransactionCreatedEvent {
658
+ interface Data extends Stripe.Event.Data {
659
+ object: Stripe.Capital.FinancingTransaction;
660
+
661
+ previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
662
+ }
663
+ }
664
+
464
665
  /**
465
666
  * 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.
466
667
  */
@@ -1101,6 +1302,38 @@ declare module 'stripe' {
1101
1302
  }
1102
1303
  }
1103
1304
 
1305
+ /**
1306
+ * 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`.
1307
+ */
1308
+ interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
1309
+ type: 'customer.subscription.collection_paused';
1310
+ data: CustomerSubscriptionCollectionPausedEvent.Data;
1311
+ }
1312
+
1313
+ namespace CustomerSubscriptionCollectionPausedEvent {
1314
+ interface Data extends Stripe.Event.Data {
1315
+ object: Stripe.Subscription;
1316
+
1317
+ previous_attributes?: Partial<Stripe.Subscription>;
1318
+ }
1319
+ }
1320
+
1321
+ /**
1322
+ * 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`.
1323
+ */
1324
+ interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
1325
+ type: 'customer.subscription.collection_resumed';
1326
+ data: CustomerSubscriptionCollectionResumedEvent.Data;
1327
+ }
1328
+
1329
+ namespace CustomerSubscriptionCollectionResumedEvent {
1330
+ interface Data extends Stripe.Event.Data {
1331
+ object: Stripe.Subscription;
1332
+
1333
+ previous_attributes?: Partial<Stripe.Subscription>;
1334
+ }
1335
+ }
1336
+
1104
1337
  /**
1105
1338
  * Occurs whenever a customer is signed up for a new plan.
1106
1339
  */
@@ -1117,6 +1350,22 @@ declare module 'stripe' {
1117
1350
  }
1118
1351
  }
1119
1352
 
1353
+ /**
1354
+ * An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
1355
+ */
1356
+ interface CustomerSubscriptionCustomEventEvent extends EventBase {
1357
+ type: 'customer.subscription.custom_event';
1358
+ data: CustomerSubscriptionCustomEventEvent.Data;
1359
+ }
1360
+
1361
+ namespace CustomerSubscriptionCustomEventEvent {
1362
+ interface Data extends Stripe.Event.Data {
1363
+ object: Stripe.Subscription;
1364
+
1365
+ previous_attributes?: Partial<Stripe.Subscription>;
1366
+ }
1367
+ }
1368
+
1120
1369
  /**
1121
1370
  * Occurs whenever a customer's subscription ends.
1122
1371
  */
@@ -1425,6 +1674,23 @@ declare module 'stripe' {
1425
1674
  }
1426
1675
  }
1427
1676
 
1677
+ /**
1678
+ * Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1679
+ */
1680
+ interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
1681
+ extends EventBase {
1682
+ type: 'financial_connections.account.refreshed_inferred_balances';
1683
+ data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
1684
+ }
1685
+
1686
+ namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
1687
+ interface Data extends Stripe.Event.Data {
1688
+ object: Stripe.FinancialConnections.Account;
1689
+
1690
+ previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
1691
+ }
1692
+ }
1693
+
1428
1694
  /**
1429
1695
  * Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1430
1696
  */
@@ -1459,6 +1725,22 @@ declare module 'stripe' {
1459
1725
  }
1460
1726
  }
1461
1727
 
1728
+ /**
1729
+ * Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
1730
+ */
1731
+ interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
1732
+ type: 'financial_connections.session.updated';
1733
+ data: FinancialConnectionsSessionUpdatedEvent.Data;
1734
+ }
1735
+
1736
+ namespace FinancialConnectionsSessionUpdatedEvent {
1737
+ interface Data extends Stripe.Event.Data {
1738
+ object: Stripe.FinancialConnections.Session;
1739
+
1740
+ previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
1741
+ }
1742
+ }
1743
+
1462
1744
  /**
1463
1745
  * Occurs whenever a VerificationSession is canceled
1464
1746
  */
@@ -1651,6 +1933,22 @@ declare module 'stripe' {
1651
1933
  }
1652
1934
  }
1653
1935
 
1936
+ /**
1937
+ * Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
1938
+ */
1939
+ interface InvoicePaymentOverpaidEvent extends EventBase {
1940
+ type: 'invoice.payment.overpaid';
1941
+ data: InvoicePaymentOverpaidEvent.Data;
1942
+ }
1943
+
1944
+ namespace InvoicePaymentOverpaidEvent {
1945
+ interface Data extends Stripe.Event.Data {
1946
+ object: Stripe.InvoicePayment;
1947
+
1948
+ previous_attributes?: Partial<Stripe.InvoicePayment>;
1949
+ }
1950
+ }
1951
+
1654
1952
  /**
1655
1953
  * Occurs whenever an invoice payment attempt requires further user action to complete.
1656
1954
  */
@@ -2675,6 +2973,22 @@ declare module 'stripe' {
2675
2973
  }
2676
2974
  }
2677
2975
 
2976
+ /**
2977
+ * Occurs whenever a quote acceptance fails
2978
+ */
2979
+ interface QuoteAcceptFailedEvent extends EventBase {
2980
+ type: 'quote.accept_failed';
2981
+ data: QuoteAcceptFailedEvent.Data;
2982
+ }
2983
+
2984
+ namespace QuoteAcceptFailedEvent {
2985
+ interface Data extends Stripe.Event.Data {
2986
+ object: Stripe.Quote;
2987
+
2988
+ previous_attributes?: Partial<Stripe.Quote>;
2989
+ }
2990
+ }
2991
+
2678
2992
  /**
2679
2993
  * Occurs whenever a quote is accepted.
2680
2994
  */
@@ -2691,6 +3005,22 @@ declare module 'stripe' {
2691
3005
  }
2692
3006
  }
2693
3007
 
3008
+ /**
3009
+ * Occurs whenever a quote's status changes to accepting
3010
+ */
3011
+ interface QuoteAcceptingEvent extends EventBase {
3012
+ type: 'quote.accepting';
3013
+ data: QuoteAcceptingEvent.Data;
3014
+ }
3015
+
3016
+ namespace QuoteAcceptingEvent {
3017
+ interface Data extends Stripe.Event.Data {
3018
+ object: Stripe.Quote;
3019
+
3020
+ previous_attributes?: Partial<Stripe.Quote>;
3021
+ }
3022
+ }
3023
+
2694
3024
  /**
2695
3025
  * Occurs whenever a quote is canceled.
2696
3026
  */
@@ -2723,6 +3053,22 @@ declare module 'stripe' {
2723
3053
  }
2724
3054
  }
2725
3055
 
3056
+ /**
3057
+ * Occurs when a quote's status changes from stale to draft
3058
+ */
3059
+ interface QuoteDraftEvent extends EventBase {
3060
+ type: 'quote.draft';
3061
+ data: QuoteDraftEvent.Data;
3062
+ }
3063
+
3064
+ namespace QuoteDraftEvent {
3065
+ interface Data extends Stripe.Event.Data {
3066
+ object: Stripe.Quote;
3067
+
3068
+ previous_attributes?: Partial<Stripe.Quote>;
3069
+ }
3070
+ }
3071
+
2726
3072
  /**
2727
3073
  * Occurs whenever a quote is finalized.
2728
3074
  */
@@ -2739,6 +3085,54 @@ declare module 'stripe' {
2739
3085
  }
2740
3086
  }
2741
3087
 
3088
+ /**
3089
+ * Occurs whenever a quote reestimate fails
3090
+ */
3091
+ interface QuoteReestimateFailedEvent extends EventBase {
3092
+ type: 'quote.reestimate_failed';
3093
+ data: QuoteReestimateFailedEvent.Data;
3094
+ }
3095
+
3096
+ namespace QuoteReestimateFailedEvent {
3097
+ interface Data extends Stripe.Event.Data {
3098
+ object: Stripe.Quote;
3099
+
3100
+ previous_attributes?: Partial<Stripe.Quote>;
3101
+ }
3102
+ }
3103
+
3104
+ /**
3105
+ * Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
3106
+ */
3107
+ interface QuoteReestimatedEvent extends EventBase {
3108
+ type: 'quote.reestimated';
3109
+ data: QuoteReestimatedEvent.Data;
3110
+ }
3111
+
3112
+ namespace QuoteReestimatedEvent {
3113
+ interface Data extends Stripe.Event.Data {
3114
+ object: Stripe.Quote;
3115
+
3116
+ previous_attributes?: Partial<Stripe.Quote>;
3117
+ }
3118
+ }
3119
+
3120
+ /**
3121
+ * Occurs whenever a quote's status changes to stale
3122
+ */
3123
+ interface QuoteStaleEvent extends EventBase {
3124
+ type: 'quote.stale';
3125
+ data: QuoteStaleEvent.Data;
3126
+ }
3127
+
3128
+ namespace QuoteStaleEvent {
3129
+ interface Data extends Stripe.Event.Data {
3130
+ object: Stripe.Quote;
3131
+
3132
+ previous_attributes?: Partial<Stripe.Quote>;
3133
+ }
3134
+ }
3135
+
2742
3136
  /**
2743
3137
  * Occurs whenever an early fraud warning is created.
2744
3138
  */
@@ -3203,6 +3597,22 @@ declare module 'stripe' {
3203
3597
  }
3204
3598
  }
3205
3599
 
3600
+ /**
3601
+ * Occurs when a tax form is updated.
3602
+ */
3603
+ interface TaxFormUpdatedEvent extends EventBase {
3604
+ type: 'tax.form.updated';
3605
+ data: TaxFormUpdatedEvent.Data;
3606
+ }
3607
+
3608
+ namespace TaxFormUpdatedEvent {
3609
+ interface Data extends Stripe.Event.Data {
3610
+ object: Stripe.Tax.Form;
3611
+
3612
+ previous_attributes?: Partial<Stripe.Tax.Form>;
3613
+ }
3614
+ }
3615
+
3206
3616
  /**
3207
3617
  * Occurs whenever tax settings is updated.
3208
3618
  */
@@ -3283,6 +3693,22 @@ declare module 'stripe' {
3283
3693
  }
3284
3694
  }
3285
3695
 
3696
+ /**
3697
+ * Occurs whenever an action sent to a Terminal reader is updated.
3698
+ */
3699
+ interface TerminalReaderActionUpdatedEvent extends EventBase {
3700
+ type: 'terminal.reader.action_updated';
3701
+ data: TerminalReaderActionUpdatedEvent.Data;
3702
+ }
3703
+
3704
+ namespace TerminalReaderActionUpdatedEvent {
3705
+ interface Data extends Stripe.Event.Data {
3706
+ object: Stripe.Terminal.Reader;
3707
+
3708
+ previous_attributes?: Partial<Stripe.Terminal.Reader>;
3709
+ }
3710
+ }
3711
+
3286
3712
  /**
3287
3713
  * Occurs whenever a test clock starts advancing.
3288
3714
  */