stripe 16.12.0 → 16.13.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 (166) hide show
  1. package/CHANGELOG.md +850 -109
  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/Issuing/DisputeSettlementDetails.js +17 -0
  19. package/cjs/resources/Margins.js +22 -0
  20. package/cjs/resources/OAuth.js +1 -1
  21. package/cjs/resources/Orders.js +24 -0
  22. package/cjs/resources/PaymentIntents.js +4 -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/Issuing/DisputeSettlementDetails.js +14 -0
  47. package/esm/resources/Margins.js +19 -0
  48. package/esm/resources/OAuth.js +2 -2
  49. package/esm/resources/Orders.js +21 -0
  50. package/esm/resources/PaymentIntents.js +4 -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 +29 -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 +288 -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 +351 -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 +545 -0
  88. package/types/Events.d.ts +90 -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/Issuing/DisputeSettlementDetails.d.ts +73 -0
  110. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  111. package/types/Issuing/Settlements.d.ts +103 -0
  112. package/types/Issuing/Transactions.d.ts +2 -0
  113. package/types/Issuing/TransactionsResource.d.ts +5 -0
  114. package/types/LineItems.d.ts +7 -0
  115. package/types/Mandates.d.ts +77 -0
  116. package/types/Margins.d.ts +56 -0
  117. package/types/MarginsResource.d.ts +114 -0
  118. package/types/Orders.d.ts +1084 -0
  119. package/types/OrdersResource.d.ts +2765 -0
  120. package/types/PaymentIntents.d.ts +503 -1
  121. package/types/PaymentIntentsResource.d.ts +7000 -3400
  122. package/types/PaymentLinks.d.ts +3 -0
  123. package/types/PaymentLinksResource.d.ts +6 -0
  124. package/types/PaymentMethodConfigurations.d.ts +36 -0
  125. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  126. package/types/PaymentMethods.d.ts +67 -0
  127. package/types/PaymentMethodsResource.d.ts +88 -0
  128. package/types/Prices.d.ts +22 -0
  129. package/types/PricesResource.d.ts +22 -0
  130. package/types/Products.d.ts +39 -0
  131. package/types/ProductsResource.d.ts +36 -0
  132. package/types/QuoteLines.d.ts +634 -0
  133. package/types/QuotePreviewInvoices.d.ts +1548 -0
  134. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  135. package/types/Quotes.d.ts +596 -1
  136. package/types/QuotesResource.d.ts +2526 -194
  137. package/types/SetupAttempts.d.ts +10 -0
  138. package/types/SetupIntents.d.ts +111 -1
  139. package/types/SetupIntentsResource.d.ts +522 -3
  140. package/types/Sources.d.ts +23 -0
  141. package/types/SubscriptionItems.d.ts +21 -0
  142. package/types/SubscriptionItemsResource.d.ts +109 -0
  143. package/types/SubscriptionSchedules.d.ts +200 -0
  144. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  145. package/types/Subscriptions.d.ts +82 -1
  146. package/types/SubscriptionsResource.d.ts +347 -2
  147. package/types/Tax/Associations.d.ts +126 -0
  148. package/types/Tax/AssociationsResource.d.ts +29 -0
  149. package/types/Tax/Forms.d.ts +133 -0
  150. package/types/Tax/FormsResource.d.ts +90 -0
  151. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  152. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  153. package/types/Terminal/Readers.d.ts +278 -0
  154. package/types/Terminal/ReadersResource.d.ts +208 -0
  155. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  156. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  157. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  158. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  159. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  160. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  161. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  162. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  163. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  164. package/types/WebhookEndpointsResource.d.ts +64 -0
  165. package/types/index.d.ts +72 -0
  166. 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
@@ -116,10 +135,14 @@ declare module 'stripe' {
116
135
  | IssuingDisputeFundsRescindedEvent
117
136
  | IssuingDisputeSubmittedEvent
118
137
  | IssuingDisputeUpdatedEvent
138
+ | IssuingDisputeSettlementDetailCreatedEvent
139
+ | IssuingDisputeSettlementDetailUpdatedEvent
119
140
  | IssuingPersonalizationDesignActivatedEvent
120
141
  | IssuingPersonalizationDesignDeactivatedEvent
121
142
  | IssuingPersonalizationDesignRejectedEvent
122
143
  | IssuingPersonalizationDesignUpdatedEvent
144
+ | IssuingSettlementCreatedEvent
145
+ | IssuingSettlementUpdatedEvent
123
146
  | IssuingTokenCreatedEvent
124
147
  | IssuingTokenUpdatedEvent
125
148
  | IssuingTransactionCreatedEvent
@@ -159,10 +182,16 @@ declare module 'stripe' {
159
182
  | ProductUpdatedEvent
160
183
  | PromotionCodeCreatedEvent
161
184
  | PromotionCodeUpdatedEvent
185
+ | QuoteAcceptFailedEvent
162
186
  | QuoteAcceptedEvent
187
+ | QuoteAcceptingEvent
163
188
  | QuoteCanceledEvent
164
189
  | QuoteCreatedEvent
190
+ | QuoteDraftEvent
165
191
  | QuoteFinalizedEvent
192
+ | QuoteReestimateFailedEvent
193
+ | QuoteReestimatedEvent
194
+ | QuoteStaleEvent
166
195
  | RadarEarlyFraudWarningCreatedEvent
167
196
  | RadarEarlyFraudWarningUpdatedEvent
168
197
  | RefundCreatedEvent
@@ -190,13 +219,16 @@ declare module 'stripe' {
190
219
  | SubscriptionScheduleCompletedEvent
191
220
  | SubscriptionScheduleCreatedEvent
192
221
  | SubscriptionScheduleExpiringEvent
222
+ | SubscriptionSchedulePriceMigrationFailedEvent
193
223
  | SubscriptionScheduleReleasedEvent
194
224
  | SubscriptionScheduleUpdatedEvent
225
+ | TaxFormUpdatedEvent
195
226
  | TaxSettingsUpdatedEvent
196
227
  | TaxRateCreatedEvent
197
228
  | TaxRateUpdatedEvent
198
229
  | TerminalReaderActionFailedEvent
199
230
  | TerminalReaderActionSucceededEvent
231
+ | TerminalReaderActionUpdatedEvent
200
232
  | TestHelpersTestClockAdvancingEvent
201
233
  | TestHelpersTestClockCreatedEvent
202
234
  | TestHelpersTestClockDeletedEvent
@@ -337,6 +369,38 @@ declare module 'stripe' {
337
369
  }
338
370
  }
339
371
 
372
+ /**
373
+ * Occurs whenever an AccountNotice is created.
374
+ */
375
+ interface AccountNoticeCreatedEvent extends EventBase {
376
+ type: 'account_notice.created';
377
+ data: AccountNoticeCreatedEvent.Data;
378
+ }
379
+
380
+ namespace AccountNoticeCreatedEvent {
381
+ interface Data extends Stripe.Event.Data {
382
+ object: Stripe.AccountNotice;
383
+
384
+ previous_attributes?: Partial<Stripe.AccountNotice>;
385
+ }
386
+ }
387
+
388
+ /**
389
+ * Occurs whenever an AccountNotice is updated.
390
+ */
391
+ interface AccountNoticeUpdatedEvent extends EventBase {
392
+ type: 'account_notice.updated';
393
+ data: AccountNoticeUpdatedEvent.Data;
394
+ }
395
+
396
+ namespace AccountNoticeUpdatedEvent {
397
+ interface Data extends Stripe.Event.Data {
398
+ object: Stripe.AccountNotice;
399
+
400
+ previous_attributes?: Partial<Stripe.AccountNotice>;
401
+ }
402
+ }
403
+
340
404
  /**
341
405
  * Occurs whenever an application fee is created on a charge.
342
406
  */
@@ -417,6 +481,22 @@ declare module 'stripe' {
417
481
  }
418
482
  }
419
483
 
484
+ /**
485
+ * Notifies of errors on a billing meter
486
+ */
487
+ interface BillingMeterErrorReportTriggeredEvent extends EventBase {
488
+ type: 'billing.meter_error_report.triggered';
489
+ data: BillingMeterErrorReportTriggeredEvent.Data;
490
+ }
491
+
492
+ namespace BillingMeterErrorReportTriggeredEvent {
493
+ interface Data extends Stripe.Event.Data {
494
+ object: Stripe.Billing.MeterErrorReport;
495
+
496
+ previous_attributes?: Partial<Stripe.Billing.MeterErrorReport>;
497
+ }
498
+ }
499
+
420
500
  /**
421
501
  * Occurs whenever a portal configuration is created.
422
502
  */
@@ -481,6 +561,150 @@ declare module 'stripe' {
481
561
  }
482
562
  }
483
563
 
564
+ /**
565
+ * Occurs whenever a connected account accepts a financing offer.
566
+ */
567
+ interface CapitalFinancingOfferAcceptedEvent extends EventBase {
568
+ type: 'capital.financing_offer.accepted';
569
+ data: CapitalFinancingOfferAcceptedEvent.Data;
570
+ }
571
+
572
+ namespace CapitalFinancingOfferAcceptedEvent {
573
+ interface Data extends Stripe.Event.Data {
574
+ object: Stripe.Capital.FinancingOffer;
575
+
576
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
577
+ }
578
+ }
579
+
580
+ /**
581
+ * Occurs whenever a financing offer is canceled.
582
+ */
583
+ interface CapitalFinancingOfferCanceledEvent extends EventBase {
584
+ type: 'capital.financing_offer.canceled';
585
+ data: CapitalFinancingOfferCanceledEvent.Data;
586
+ }
587
+
588
+ namespace CapitalFinancingOfferCanceledEvent {
589
+ interface Data extends Stripe.Event.Data {
590
+ object: Stripe.Capital.FinancingOffer;
591
+
592
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
593
+ }
594
+ }
595
+
596
+ /**
597
+ * Occurs whenever a new financing offer is created for a connected account.
598
+ */
599
+ interface CapitalFinancingOfferCreatedEvent extends EventBase {
600
+ type: 'capital.financing_offer.created';
601
+ data: CapitalFinancingOfferCreatedEvent.Data;
602
+ }
603
+
604
+ namespace CapitalFinancingOfferCreatedEvent {
605
+ interface Data extends Stripe.Event.Data {
606
+ object: Stripe.Capital.FinancingOffer;
607
+
608
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
609
+ }
610
+ }
611
+
612
+ /**
613
+ * Occurs whenever a financing offer expires.
614
+ */
615
+ interface CapitalFinancingOfferExpiredEvent extends EventBase {
616
+ type: 'capital.financing_offer.expired';
617
+ data: CapitalFinancingOfferExpiredEvent.Data;
618
+ }
619
+
620
+ namespace CapitalFinancingOfferExpiredEvent {
621
+ interface Data extends Stripe.Event.Data {
622
+ object: Stripe.Capital.FinancingOffer;
623
+
624
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
625
+ }
626
+ }
627
+
628
+ /**
629
+ * Occurs whenever a financing offer is fully repaid.
630
+ */
631
+ interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
632
+ type: 'capital.financing_offer.fully_repaid';
633
+ data: CapitalFinancingOfferFullyRepaidEvent.Data;
634
+ }
635
+
636
+ namespace CapitalFinancingOfferFullyRepaidEvent {
637
+ interface Data extends Stripe.Event.Data {
638
+ object: Stripe.Capital.FinancingOffer;
639
+
640
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
641
+ }
642
+ }
643
+
644
+ /**
645
+ * Occurs whenever a financing offer is paid out.
646
+ */
647
+ interface CapitalFinancingOfferPaidOutEvent extends EventBase {
648
+ type: 'capital.financing_offer.paid_out';
649
+ data: CapitalFinancingOfferPaidOutEvent.Data;
650
+ }
651
+
652
+ namespace CapitalFinancingOfferPaidOutEvent {
653
+ interface Data extends Stripe.Event.Data {
654
+ object: Stripe.Capital.FinancingOffer;
655
+
656
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
657
+ }
658
+ }
659
+
660
+ /**
661
+ * Occurs whenever a financing offer is rejected.
662
+ */
663
+ interface CapitalFinancingOfferRejectedEvent extends EventBase {
664
+ type: 'capital.financing_offer.rejected';
665
+ data: CapitalFinancingOfferRejectedEvent.Data;
666
+ }
667
+
668
+ namespace CapitalFinancingOfferRejectedEvent {
669
+ interface Data extends Stripe.Event.Data {
670
+ object: Stripe.Capital.FinancingOffer;
671
+
672
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
673
+ }
674
+ }
675
+
676
+ /**
677
+ * Occurs whenever a replacement for a financing offer has been created.
678
+ */
679
+ interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
680
+ type: 'capital.financing_offer.replacement_created';
681
+ data: CapitalFinancingOfferReplacementCreatedEvent.Data;
682
+ }
683
+
684
+ namespace CapitalFinancingOfferReplacementCreatedEvent {
685
+ interface Data extends Stripe.Event.Data {
686
+ object: Stripe.Capital.FinancingOffer;
687
+
688
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
689
+ }
690
+ }
691
+
692
+ /**
693
+ * Occurs whenever a financing transaction is created.
694
+ */
695
+ interface CapitalFinancingTransactionCreatedEvent extends EventBase {
696
+ type: 'capital.financing_transaction.created';
697
+ data: CapitalFinancingTransactionCreatedEvent.Data;
698
+ }
699
+
700
+ namespace CapitalFinancingTransactionCreatedEvent {
701
+ interface Data extends Stripe.Event.Data {
702
+ object: Stripe.Capital.FinancingTransaction;
703
+
704
+ previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
705
+ }
706
+ }
707
+
484
708
  /**
485
709
  * 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
710
  */
@@ -1121,6 +1345,38 @@ declare module 'stripe' {
1121
1345
  }
1122
1346
  }
1123
1347
 
1348
+ /**
1349
+ * 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`.
1350
+ */
1351
+ interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
1352
+ type: 'customer.subscription.collection_paused';
1353
+ data: CustomerSubscriptionCollectionPausedEvent.Data;
1354
+ }
1355
+
1356
+ namespace CustomerSubscriptionCollectionPausedEvent {
1357
+ interface Data extends Stripe.Event.Data {
1358
+ object: Stripe.Subscription;
1359
+
1360
+ previous_attributes?: Partial<Stripe.Subscription>;
1361
+ }
1362
+ }
1363
+
1364
+ /**
1365
+ * 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`.
1366
+ */
1367
+ interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
1368
+ type: 'customer.subscription.collection_resumed';
1369
+ data: CustomerSubscriptionCollectionResumedEvent.Data;
1370
+ }
1371
+
1372
+ namespace CustomerSubscriptionCollectionResumedEvent {
1373
+ interface Data extends Stripe.Event.Data {
1374
+ object: Stripe.Subscription;
1375
+
1376
+ previous_attributes?: Partial<Stripe.Subscription>;
1377
+ }
1378
+ }
1379
+
1124
1380
  /**
1125
1381
  * Occurs whenever a customer is signed up for a new plan.
1126
1382
  */
@@ -1137,6 +1393,22 @@ declare module 'stripe' {
1137
1393
  }
1138
1394
  }
1139
1395
 
1396
+ /**
1397
+ * An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
1398
+ */
1399
+ interface CustomerSubscriptionCustomEventEvent extends EventBase {
1400
+ type: 'customer.subscription.custom_event';
1401
+ data: CustomerSubscriptionCustomEventEvent.Data;
1402
+ }
1403
+
1404
+ namespace CustomerSubscriptionCustomEventEvent {
1405
+ interface Data extends Stripe.Event.Data {
1406
+ object: Stripe.Subscription;
1407
+
1408
+ previous_attributes?: Partial<Stripe.Subscription>;
1409
+ }
1410
+ }
1411
+
1140
1412
  /**
1141
1413
  * Occurs whenever a customer's subscription ends.
1142
1414
  */
@@ -1201,6 +1473,22 @@ declare module 'stripe' {
1201
1473
  }
1202
1474
  }
1203
1475
 
1476
+ /**
1477
+ * Occurs whenever a price migration failed to transition prices on a subscription.
1478
+ */
1479
+ interface CustomerSubscriptionPriceMigrationFailedEvent extends EventBase {
1480
+ type: 'customer.subscription.price_migration_failed';
1481
+ data: CustomerSubscriptionPriceMigrationFailedEvent.Data;
1482
+ }
1483
+
1484
+ namespace CustomerSubscriptionPriceMigrationFailedEvent {
1485
+ interface Data extends Stripe.Event.Data {
1486
+ object: Stripe.Subscription;
1487
+
1488
+ previous_attributes?: Partial<Stripe.Subscription>;
1489
+ }
1490
+ }
1491
+
1204
1492
  /**
1205
1493
  * 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
1494
  */
@@ -1445,6 +1733,23 @@ declare module 'stripe' {
1445
1733
  }
1446
1734
  }
1447
1735
 
1736
+ /**
1737
+ * Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1738
+ */
1739
+ interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
1740
+ extends EventBase {
1741
+ type: 'financial_connections.account.refreshed_inferred_balances';
1742
+ data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
1743
+ }
1744
+
1745
+ namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
1746
+ interface Data extends Stripe.Event.Data {
1747
+ object: Stripe.FinancialConnections.Account;
1748
+
1749
+ previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
1750
+ }
1751
+ }
1752
+
1448
1753
  /**
1449
1754
  * Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1450
1755
  */
@@ -1479,6 +1784,22 @@ declare module 'stripe' {
1479
1784
  }
1480
1785
  }
1481
1786
 
1787
+ /**
1788
+ * Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
1789
+ */
1790
+ interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
1791
+ type: 'financial_connections.session.updated';
1792
+ data: FinancialConnectionsSessionUpdatedEvent.Data;
1793
+ }
1794
+
1795
+ namespace FinancialConnectionsSessionUpdatedEvent {
1796
+ interface Data extends Stripe.Event.Data {
1797
+ object: Stripe.FinancialConnections.Session;
1798
+
1799
+ previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
1800
+ }
1801
+ }
1802
+
1482
1803
  /**
1483
1804
  * Occurs whenever a VerificationSession is canceled
1484
1805
  */
@@ -1687,6 +2008,22 @@ declare module 'stripe' {
1687
2008
  }
1688
2009
  }
1689
2010
 
2011
+ /**
2012
+ * Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
2013
+ */
2014
+ interface InvoicePaymentOverpaidEvent extends EventBase {
2015
+ type: 'invoice.payment.overpaid';
2016
+ data: InvoicePaymentOverpaidEvent.Data;
2017
+ }
2018
+
2019
+ namespace InvoicePaymentOverpaidEvent {
2020
+ interface Data extends Stripe.Event.Data {
2021
+ object: Stripe.InvoicePayment;
2022
+
2023
+ previous_attributes?: Partial<Stripe.InvoicePayment>;
2024
+ }
2025
+ }
2026
+
1690
2027
  /**
1691
2028
  * Occurs whenever an invoice payment attempt requires further user action to complete.
1692
2029
  */
@@ -2055,6 +2392,38 @@ declare module 'stripe' {
2055
2392
  }
2056
2393
  }
2057
2394
 
2395
+ /**
2396
+ * Emitted when the DisputeSettlementDetail object is created
2397
+ */
2398
+ interface IssuingDisputeSettlementDetailCreatedEvent extends EventBase {
2399
+ type: 'issuing_dispute_settlement_detail.created';
2400
+ data: IssuingDisputeSettlementDetailCreatedEvent.Data;
2401
+ }
2402
+
2403
+ namespace IssuingDisputeSettlementDetailCreatedEvent {
2404
+ interface Data extends Stripe.Event.Data {
2405
+ object: Stripe.Issuing.DisputeSettlementDetail;
2406
+
2407
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2408
+ }
2409
+ }
2410
+
2411
+ /**
2412
+ * Emitted when the DisputeSettlementDetail object is updated
2413
+ */
2414
+ interface IssuingDisputeSettlementDetailUpdatedEvent extends EventBase {
2415
+ type: 'issuing_dispute_settlement_detail.updated';
2416
+ data: IssuingDisputeSettlementDetailUpdatedEvent.Data;
2417
+ }
2418
+
2419
+ namespace IssuingDisputeSettlementDetailUpdatedEvent {
2420
+ interface Data extends Stripe.Event.Data {
2421
+ object: Stripe.Issuing.DisputeSettlementDetail;
2422
+
2423
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2424
+ }
2425
+ }
2426
+
2058
2427
  /**
2059
2428
  * Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
2060
2429
  */
@@ -2119,6 +2488,38 @@ declare module 'stripe' {
2119
2488
  }
2120
2489
  }
2121
2490
 
2491
+ /**
2492
+ * Occurs whenever an issuing settlement is created.
2493
+ */
2494
+ interface IssuingSettlementCreatedEvent extends EventBase {
2495
+ type: 'issuing_settlement.created';
2496
+ data: IssuingSettlementCreatedEvent.Data;
2497
+ }
2498
+
2499
+ namespace IssuingSettlementCreatedEvent {
2500
+ interface Data extends Stripe.Event.Data {
2501
+ object: Stripe.Issuing.Settlement;
2502
+
2503
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2504
+ }
2505
+ }
2506
+
2507
+ /**
2508
+ * Occurs whenever an issuing settlement is updated.
2509
+ */
2510
+ interface IssuingSettlementUpdatedEvent extends EventBase {
2511
+ type: 'issuing_settlement.updated';
2512
+ data: IssuingSettlementUpdatedEvent.Data;
2513
+ }
2514
+
2515
+ namespace IssuingSettlementUpdatedEvent {
2516
+ interface Data extends Stripe.Event.Data {
2517
+ object: Stripe.Issuing.Settlement;
2518
+
2519
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2520
+ }
2521
+ }
2522
+
2122
2523
  /**
2123
2524
  * Occurs whenever an issuing digital wallet token is created.
2124
2525
  */
@@ -2743,6 +3144,22 @@ declare module 'stripe' {
2743
3144
  }
2744
3145
  }
2745
3146
 
3147
+ /**
3148
+ * Occurs whenever a quote acceptance fails
3149
+ */
3150
+ interface QuoteAcceptFailedEvent extends EventBase {
3151
+ type: 'quote.accept_failed';
3152
+ data: QuoteAcceptFailedEvent.Data;
3153
+ }
3154
+
3155
+ namespace QuoteAcceptFailedEvent {
3156
+ interface Data extends Stripe.Event.Data {
3157
+ object: Stripe.Quote;
3158
+
3159
+ previous_attributes?: Partial<Stripe.Quote>;
3160
+ }
3161
+ }
3162
+
2746
3163
  /**
2747
3164
  * Occurs whenever a quote is accepted.
2748
3165
  */
@@ -2759,6 +3176,22 @@ declare module 'stripe' {
2759
3176
  }
2760
3177
  }
2761
3178
 
3179
+ /**
3180
+ * Occurs whenever a quote's status changes to accepting
3181
+ */
3182
+ interface QuoteAcceptingEvent extends EventBase {
3183
+ type: 'quote.accepting';
3184
+ data: QuoteAcceptingEvent.Data;
3185
+ }
3186
+
3187
+ namespace QuoteAcceptingEvent {
3188
+ interface Data extends Stripe.Event.Data {
3189
+ object: Stripe.Quote;
3190
+
3191
+ previous_attributes?: Partial<Stripe.Quote>;
3192
+ }
3193
+ }
3194
+
2762
3195
  /**
2763
3196
  * Occurs whenever a quote is canceled.
2764
3197
  */
@@ -2791,6 +3224,22 @@ declare module 'stripe' {
2791
3224
  }
2792
3225
  }
2793
3226
 
3227
+ /**
3228
+ * Occurs when a quote's status changes from stale to draft
3229
+ */
3230
+ interface QuoteDraftEvent extends EventBase {
3231
+ type: 'quote.draft';
3232
+ data: QuoteDraftEvent.Data;
3233
+ }
3234
+
3235
+ namespace QuoteDraftEvent {
3236
+ interface Data extends Stripe.Event.Data {
3237
+ object: Stripe.Quote;
3238
+
3239
+ previous_attributes?: Partial<Stripe.Quote>;
3240
+ }
3241
+ }
3242
+
2794
3243
  /**
2795
3244
  * Occurs whenever a quote is finalized.
2796
3245
  */
@@ -2807,6 +3256,54 @@ declare module 'stripe' {
2807
3256
  }
2808
3257
  }
2809
3258
 
3259
+ /**
3260
+ * Occurs whenever a quote reestimate fails
3261
+ */
3262
+ interface QuoteReestimateFailedEvent extends EventBase {
3263
+ type: 'quote.reestimate_failed';
3264
+ data: QuoteReestimateFailedEvent.Data;
3265
+ }
3266
+
3267
+ namespace QuoteReestimateFailedEvent {
3268
+ interface Data extends Stripe.Event.Data {
3269
+ object: Stripe.Quote;
3270
+
3271
+ previous_attributes?: Partial<Stripe.Quote>;
3272
+ }
3273
+ }
3274
+
3275
+ /**
3276
+ * Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
3277
+ */
3278
+ interface QuoteReestimatedEvent extends EventBase {
3279
+ type: 'quote.reestimated';
3280
+ data: QuoteReestimatedEvent.Data;
3281
+ }
3282
+
3283
+ namespace QuoteReestimatedEvent {
3284
+ interface Data extends Stripe.Event.Data {
3285
+ object: Stripe.Quote;
3286
+
3287
+ previous_attributes?: Partial<Stripe.Quote>;
3288
+ }
3289
+ }
3290
+
3291
+ /**
3292
+ * Occurs whenever a quote's status changes to stale
3293
+ */
3294
+ interface QuoteStaleEvent extends EventBase {
3295
+ type: 'quote.stale';
3296
+ data: QuoteStaleEvent.Data;
3297
+ }
3298
+
3299
+ namespace QuoteStaleEvent {
3300
+ interface Data extends Stripe.Event.Data {
3301
+ object: Stripe.Quote;
3302
+
3303
+ previous_attributes?: Partial<Stripe.Quote>;
3304
+ }
3305
+ }
3306
+
2810
3307
  /**
2811
3308
  * Occurs whenever an early fraud warning is created.
2812
3309
  */
@@ -3239,6 +3736,22 @@ declare module 'stripe' {
3239
3736
  }
3240
3737
  }
3241
3738
 
3739
+ /**
3740
+ * Occurs whenever a price migration failed to transition prices on a subscription schedule.
3741
+ */
3742
+ interface SubscriptionSchedulePriceMigrationFailedEvent extends EventBase {
3743
+ type: 'subscription_schedule.price_migration_failed';
3744
+ data: SubscriptionSchedulePriceMigrationFailedEvent.Data;
3745
+ }
3746
+
3747
+ namespace SubscriptionSchedulePriceMigrationFailedEvent {
3748
+ interface Data extends Stripe.Event.Data {
3749
+ object: Stripe.SubscriptionSchedule;
3750
+
3751
+ previous_attributes?: Partial<Stripe.SubscriptionSchedule>;
3752
+ }
3753
+ }
3754
+
3242
3755
  /**
3243
3756
  * Occurs whenever a new subscription schedule is released.
3244
3757
  */
@@ -3271,6 +3784,22 @@ declare module 'stripe' {
3271
3784
  }
3272
3785
  }
3273
3786
 
3787
+ /**
3788
+ * Occurs when a tax form is updated.
3789
+ */
3790
+ interface TaxFormUpdatedEvent extends EventBase {
3791
+ type: 'tax.form.updated';
3792
+ data: TaxFormUpdatedEvent.Data;
3793
+ }
3794
+
3795
+ namespace TaxFormUpdatedEvent {
3796
+ interface Data extends Stripe.Event.Data {
3797
+ object: Stripe.Tax.Form;
3798
+
3799
+ previous_attributes?: Partial<Stripe.Tax.Form>;
3800
+ }
3801
+ }
3802
+
3274
3803
  /**
3275
3804
  * Occurs whenever tax settings is updated.
3276
3805
  */
@@ -3351,6 +3880,22 @@ declare module 'stripe' {
3351
3880
  }
3352
3881
  }
3353
3882
 
3883
+ /**
3884
+ * Occurs whenever an action sent to a Terminal reader is updated.
3885
+ */
3886
+ interface TerminalReaderActionUpdatedEvent extends EventBase {
3887
+ type: 'terminal.reader.action_updated';
3888
+ data: TerminalReaderActionUpdatedEvent.Data;
3889
+ }
3890
+
3891
+ namespace TerminalReaderActionUpdatedEvent {
3892
+ interface Data extends Stripe.Event.Data {
3893
+ object: Stripe.Terminal.Reader;
3894
+
3895
+ previous_attributes?: Partial<Stripe.Terminal.Reader>;
3896
+ }
3897
+ }
3898
+
3354
3899
  /**
3355
3900
  * Occurs whenever a test clock starts advancing.
3356
3901
  */