stripe 17.6.0 → 17.7.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 (179) hide show
  1. package/CHANGELOG.md +1068 -109
  2. package/OPENAPI_VERSION +1 -0
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/Orders.js +24 -0
  19. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  20. package/cjs/resources/PaymentIntents.js +8 -0
  21. package/cjs/resources/PaymentRecords.js +29 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Associations.js +9 -0
  25. package/cjs/resources/Tax/Forms.js +20 -0
  26. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources.js +48 -10
  29. package/cjs/stripe.core.js +1 -1
  30. package/esm/resources/AccountNotices.js +18 -0
  31. package/esm/resources/Capital/FinancingOffers.js +18 -0
  32. package/esm/resources/Capital/FinancingSummary.js +9 -0
  33. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  34. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  35. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  36. package/esm/resources/GiftCards/Cards.js +20 -0
  37. package/esm/resources/GiftCards/Transactions.js +30 -0
  38. package/esm/resources/Invoices.js +17 -0
  39. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  40. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  41. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  42. package/esm/resources/Margins.js +19 -0
  43. package/esm/resources/Orders.js +21 -0
  44. package/esm/resources/PaymentAttemptRecords.js +14 -0
  45. package/esm/resources/PaymentIntents.js +8 -0
  46. package/esm/resources/PaymentRecords.js +26 -0
  47. package/esm/resources/Quotes.js +32 -0
  48. package/esm/resources/SubscriptionSchedules.js +4 -0
  49. package/esm/resources/Tax/Associations.js +6 -0
  50. package/esm/resources/Tax/Forms.js +17 -0
  51. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  52. package/esm/resources/Terminal/Readers.js +12 -0
  53. package/esm/resources.js +33 -0
  54. package/esm/stripe.core.js +1 -1
  55. package/package.json +1 -1
  56. package/types/AccountLinksResource.d.ts +5 -1
  57. package/types/AccountNotices.d.ts +113 -0
  58. package/types/AccountNoticesResource.d.ts +98 -0
  59. package/types/AccountSessions.d.ts +45 -0
  60. package/types/AccountSessionsResource.d.ts +243 -0
  61. package/types/Accounts.d.ts +205 -1
  62. package/types/AccountsResource.d.ts +526 -2
  63. package/types/Balance.d.ts +18 -18
  64. package/types/Billing/CreditBalanceSummaryResource.d.ts +14 -0
  65. package/types/Billing/CreditGrants.d.ts +15 -1
  66. package/types/Billing/CreditGrantsResource.d.ts +14 -0
  67. package/types/Billing/MeterErrorReports.d.ts +106 -0
  68. package/types/Billing/MeterEventSummaries.d.ts +2 -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/Cards.d.ts +5 -0
  76. package/types/Charges.d.ts +151 -3
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +362 -9
  79. package/types/Checkout/SessionsResource.d.ts +465 -5
  80. package/types/ConfirmationTokens.d.ts +103 -4
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNotes.d.ts +23 -2
  84. package/types/CreditNotesResource.d.ts +51 -0
  85. package/types/CustomersResource.d.ts +7 -0
  86. package/types/EventTypes.d.ts +596 -0
  87. package/types/Events.d.ts +93 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/GiftCards/Cards.d.ts +118 -0
  96. package/types/GiftCards/CardsResource.d.ts +159 -0
  97. package/types/GiftCards/Transactions.d.ts +129 -0
  98. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  99. package/types/InvoiceItems.d.ts +5 -0
  100. package/types/InvoiceItemsResource.d.ts +98 -0
  101. package/types/InvoiceLineItems.d.ts +28 -1
  102. package/types/InvoicePayments.d.ts +113 -0
  103. package/types/Invoices.d.ts +139 -4
  104. package/types/InvoicesResource.d.ts +4618 -933
  105. package/types/Issuing/Authorizations.d.ts +1 -0
  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/FraudLiabilityDebits.d.ts +52 -0
  112. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +34 -2
  117. package/types/Mandates.d.ts +77 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1179 -0
  121. package/types/OrdersResource.d.ts +2961 -0
  122. package/types/PaymentAttemptRecords.d.ts +242 -0
  123. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  124. package/types/PaymentIntents.d.ts +644 -1
  125. package/types/PaymentIntentsResource.d.ts +8027 -3740
  126. package/types/PaymentLinks.d.ts +6 -0
  127. package/types/PaymentLinksResource.d.ts +12 -0
  128. package/types/PaymentMethodConfigurations.d.ts +180 -0
  129. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  130. package/types/PaymentMethods.d.ts +103 -4
  131. package/types/PaymentMethodsResource.d.ts +133 -0
  132. package/types/PaymentRecords.d.ts +242 -0
  133. package/types/PaymentRecordsResource.d.ts +455 -0
  134. package/types/Prices.d.ts +22 -0
  135. package/types/PricesResource.d.ts +22 -0
  136. package/types/Products.d.ts +39 -0
  137. package/types/ProductsResource.d.ts +36 -0
  138. package/types/QuoteLines.d.ts +634 -0
  139. package/types/QuotePreviewInvoices.d.ts +1658 -0
  140. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  141. package/types/Quotes.d.ts +597 -7
  142. package/types/QuotesResource.d.ts +2526 -194
  143. package/types/Refunds.d.ts +16 -2
  144. package/types/SetupAttempts.d.ts +38 -0
  145. package/types/SetupIntents.d.ts +111 -1
  146. package/types/SetupIntentsResource.d.ts +648 -6
  147. package/types/Sources.d.ts +29 -0
  148. package/types/SubscriptionItems.d.ts +21 -0
  149. package/types/SubscriptionItemsResource.d.ts +109 -0
  150. package/types/SubscriptionSchedules.d.ts +200 -0
  151. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  152. package/types/Subscriptions.d.ts +91 -1
  153. package/types/SubscriptionsResource.d.ts +369 -2
  154. package/types/Tax/Associations.d.ts +126 -0
  155. package/types/Tax/AssociationsResource.d.ts +29 -0
  156. package/types/Tax/CalculationLineItems.d.ts +1 -1
  157. package/types/Tax/Calculations.d.ts +1 -1
  158. package/types/Tax/Forms.d.ts +220 -0
  159. package/types/Tax/FormsResource.d.ts +107 -0
  160. package/types/Tax/Transactions.d.ts +1 -1
  161. package/types/TaxRates.d.ts +3 -3
  162. package/types/TaxRatesResource.d.ts +2 -2
  163. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  164. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  165. package/types/Terminal/Readers.d.ts +290 -0
  166. package/types/Terminal/ReadersResource.d.ts +215 -0
  167. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  168. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  169. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  170. package/types/TokensResource.d.ts +3 -1
  171. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  172. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  173. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  174. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  175. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  176. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  177. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  178. package/types/WebhookEndpointsResource.d.ts +70 -0
  179. package/types/index.d.ts +62 -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
@@ -92,8 +110,11 @@ declare module 'stripe' {
92
110
  | InvoiceFinalizedEvent
93
111
  | InvoiceMarkedUncollectibleEvent
94
112
  | InvoiceOverdueEvent
113
+ | InvoiceOverpaidEvent
95
114
  | InvoicePaidEvent
115
+ | InvoicePaymentOverpaidEvent
96
116
  | InvoicePaymentActionRequiredEvent
117
+ | InvoicePaymentAttemptRequiredEvent
97
118
  | InvoicePaymentFailedEvent
98
119
  | InvoicePaymentSucceededEvent
99
120
  | InvoiceSentEvent
@@ -116,10 +137,15 @@ declare module 'stripe' {
116
137
  | IssuingDisputeFundsRescindedEvent
117
138
  | IssuingDisputeSubmittedEvent
118
139
  | IssuingDisputeUpdatedEvent
140
+ | IssuingDisputeSettlementDetailCreatedEvent
141
+ | IssuingDisputeSettlementDetailUpdatedEvent
142
+ | IssuingFraudLiabilityDebitCreatedEvent
119
143
  | IssuingPersonalizationDesignActivatedEvent
120
144
  | IssuingPersonalizationDesignDeactivatedEvent
121
145
  | IssuingPersonalizationDesignRejectedEvent
122
146
  | IssuingPersonalizationDesignUpdatedEvent
147
+ | IssuingSettlementCreatedEvent
148
+ | IssuingSettlementUpdatedEvent
123
149
  | IssuingTokenCreatedEvent
124
150
  | IssuingTokenUpdatedEvent
125
151
  | IssuingTransactionCreatedEvent
@@ -160,10 +186,16 @@ declare module 'stripe' {
160
186
  | ProductUpdatedEvent
161
187
  | PromotionCodeCreatedEvent
162
188
  | PromotionCodeUpdatedEvent
189
+ | QuoteAcceptFailedEvent
163
190
  | QuoteAcceptedEvent
191
+ | QuoteAcceptingEvent
164
192
  | QuoteCanceledEvent
165
193
  | QuoteCreatedEvent
194
+ | QuoteDraftEvent
166
195
  | QuoteFinalizedEvent
196
+ | QuoteReestimateFailedEvent
197
+ | QuoteReestimatedEvent
198
+ | QuoteStaleEvent
167
199
  | RadarEarlyFraudWarningCreatedEvent
168
200
  | RadarEarlyFraudWarningUpdatedEvent
169
201
  | RefundCreatedEvent
@@ -192,13 +224,16 @@ declare module 'stripe' {
192
224
  | SubscriptionScheduleCompletedEvent
193
225
  | SubscriptionScheduleCreatedEvent
194
226
  | SubscriptionScheduleExpiringEvent
227
+ | SubscriptionSchedulePriceMigrationFailedEvent
195
228
  | SubscriptionScheduleReleasedEvent
196
229
  | SubscriptionScheduleUpdatedEvent
230
+ | TaxFormUpdatedEvent
197
231
  | TaxSettingsUpdatedEvent
198
232
  | TaxRateCreatedEvent
199
233
  | TaxRateUpdatedEvent
200
234
  | TerminalReaderActionFailedEvent
201
235
  | TerminalReaderActionSucceededEvent
236
+ | TerminalReaderActionUpdatedEvent
202
237
  | TestHelpersTestClockAdvancingEvent
203
238
  | TestHelpersTestClockCreatedEvent
204
239
  | TestHelpersTestClockDeletedEvent
@@ -341,6 +376,38 @@ declare module 'stripe' {
341
376
  }
342
377
  }
343
378
 
379
+ /**
380
+ * Occurs whenever an AccountNotice is created.
381
+ */
382
+ interface AccountNoticeCreatedEvent extends EventBase {
383
+ type: 'account_notice.created';
384
+ data: AccountNoticeCreatedEvent.Data;
385
+ }
386
+
387
+ namespace AccountNoticeCreatedEvent {
388
+ interface Data extends Stripe.Event.Data {
389
+ object: Stripe.AccountNotice;
390
+
391
+ previous_attributes?: Partial<Stripe.AccountNotice>;
392
+ }
393
+ }
394
+
395
+ /**
396
+ * Occurs whenever an AccountNotice is updated.
397
+ */
398
+ interface AccountNoticeUpdatedEvent extends EventBase {
399
+ type: 'account_notice.updated';
400
+ data: AccountNoticeUpdatedEvent.Data;
401
+ }
402
+
403
+ namespace AccountNoticeUpdatedEvent {
404
+ interface Data extends Stripe.Event.Data {
405
+ object: Stripe.AccountNotice;
406
+
407
+ previous_attributes?: Partial<Stripe.AccountNotice>;
408
+ }
409
+ }
410
+
344
411
  /**
345
412
  * Occurs whenever an application fee is created on a charge.
346
413
  */
@@ -421,6 +488,22 @@ declare module 'stripe' {
421
488
  }
422
489
  }
423
490
 
491
+ /**
492
+ * Notifies of errors on a billing meter
493
+ */
494
+ interface BillingMeterErrorReportTriggeredEvent extends EventBase {
495
+ type: 'billing.meter_error_report.triggered';
496
+ data: BillingMeterErrorReportTriggeredEvent.Data;
497
+ }
498
+
499
+ namespace BillingMeterErrorReportTriggeredEvent {
500
+ interface Data extends Stripe.Event.Data {
501
+ object: Stripe.Billing.MeterErrorReport;
502
+
503
+ previous_attributes?: Partial<Stripe.Billing.MeterErrorReport>;
504
+ }
505
+ }
506
+
424
507
  /**
425
508
  * Occurs whenever a portal configuration is created.
426
509
  */
@@ -485,6 +568,150 @@ declare module 'stripe' {
485
568
  }
486
569
  }
487
570
 
571
+ /**
572
+ * Occurs whenever a connected account accepts a financing offer.
573
+ */
574
+ interface CapitalFinancingOfferAcceptedEvent extends EventBase {
575
+ type: 'capital.financing_offer.accepted';
576
+ data: CapitalFinancingOfferAcceptedEvent.Data;
577
+ }
578
+
579
+ namespace CapitalFinancingOfferAcceptedEvent {
580
+ interface Data extends Stripe.Event.Data {
581
+ object: Stripe.Capital.FinancingOffer;
582
+
583
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
584
+ }
585
+ }
586
+
587
+ /**
588
+ * Occurs whenever a financing offer is canceled.
589
+ */
590
+ interface CapitalFinancingOfferCanceledEvent extends EventBase {
591
+ type: 'capital.financing_offer.canceled';
592
+ data: CapitalFinancingOfferCanceledEvent.Data;
593
+ }
594
+
595
+ namespace CapitalFinancingOfferCanceledEvent {
596
+ interface Data extends Stripe.Event.Data {
597
+ object: Stripe.Capital.FinancingOffer;
598
+
599
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
600
+ }
601
+ }
602
+
603
+ /**
604
+ * Occurs whenever a new financing offer is created for a connected account.
605
+ */
606
+ interface CapitalFinancingOfferCreatedEvent extends EventBase {
607
+ type: 'capital.financing_offer.created';
608
+ data: CapitalFinancingOfferCreatedEvent.Data;
609
+ }
610
+
611
+ namespace CapitalFinancingOfferCreatedEvent {
612
+ interface Data extends Stripe.Event.Data {
613
+ object: Stripe.Capital.FinancingOffer;
614
+
615
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
616
+ }
617
+ }
618
+
619
+ /**
620
+ * Occurs whenever a financing offer expires.
621
+ */
622
+ interface CapitalFinancingOfferExpiredEvent extends EventBase {
623
+ type: 'capital.financing_offer.expired';
624
+ data: CapitalFinancingOfferExpiredEvent.Data;
625
+ }
626
+
627
+ namespace CapitalFinancingOfferExpiredEvent {
628
+ interface Data extends Stripe.Event.Data {
629
+ object: Stripe.Capital.FinancingOffer;
630
+
631
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
632
+ }
633
+ }
634
+
635
+ /**
636
+ * Occurs whenever a financing offer is fully repaid.
637
+ */
638
+ interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
639
+ type: 'capital.financing_offer.fully_repaid';
640
+ data: CapitalFinancingOfferFullyRepaidEvent.Data;
641
+ }
642
+
643
+ namespace CapitalFinancingOfferFullyRepaidEvent {
644
+ interface Data extends Stripe.Event.Data {
645
+ object: Stripe.Capital.FinancingOffer;
646
+
647
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
648
+ }
649
+ }
650
+
651
+ /**
652
+ * Occurs whenever a financing offer is paid out.
653
+ */
654
+ interface CapitalFinancingOfferPaidOutEvent extends EventBase {
655
+ type: 'capital.financing_offer.paid_out';
656
+ data: CapitalFinancingOfferPaidOutEvent.Data;
657
+ }
658
+
659
+ namespace CapitalFinancingOfferPaidOutEvent {
660
+ interface Data extends Stripe.Event.Data {
661
+ object: Stripe.Capital.FinancingOffer;
662
+
663
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
664
+ }
665
+ }
666
+
667
+ /**
668
+ * Occurs whenever a financing offer is rejected.
669
+ */
670
+ interface CapitalFinancingOfferRejectedEvent extends EventBase {
671
+ type: 'capital.financing_offer.rejected';
672
+ data: CapitalFinancingOfferRejectedEvent.Data;
673
+ }
674
+
675
+ namespace CapitalFinancingOfferRejectedEvent {
676
+ interface Data extends Stripe.Event.Data {
677
+ object: Stripe.Capital.FinancingOffer;
678
+
679
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
680
+ }
681
+ }
682
+
683
+ /**
684
+ * Occurs whenever a replacement for a financing offer has been created. More details can be [found here](https://docs.stripe.com/capital/replacements).
685
+ */
686
+ interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
687
+ type: 'capital.financing_offer.replacement_created';
688
+ data: CapitalFinancingOfferReplacementCreatedEvent.Data;
689
+ }
690
+
691
+ namespace CapitalFinancingOfferReplacementCreatedEvent {
692
+ interface Data extends Stripe.Event.Data {
693
+ object: Stripe.Capital.FinancingOffer;
694
+
695
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
696
+ }
697
+ }
698
+
699
+ /**
700
+ * Occurs whenever a financing transaction is created.
701
+ */
702
+ interface CapitalFinancingTransactionCreatedEvent extends EventBase {
703
+ type: 'capital.financing_transaction.created';
704
+ data: CapitalFinancingTransactionCreatedEvent.Data;
705
+ }
706
+
707
+ namespace CapitalFinancingTransactionCreatedEvent {
708
+ interface Data extends Stripe.Event.Data {
709
+ object: Stripe.Capital.FinancingTransaction;
710
+
711
+ previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
712
+ }
713
+ }
714
+
488
715
  /**
489
716
  * 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.
490
717
  */
@@ -1125,6 +1352,38 @@ declare module 'stripe' {
1125
1352
  }
1126
1353
  }
1127
1354
 
1355
+ /**
1356
+ * 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`.
1357
+ */
1358
+ interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
1359
+ type: 'customer.subscription.collection_paused';
1360
+ data: CustomerSubscriptionCollectionPausedEvent.Data;
1361
+ }
1362
+
1363
+ namespace CustomerSubscriptionCollectionPausedEvent {
1364
+ interface Data extends Stripe.Event.Data {
1365
+ object: Stripe.Subscription;
1366
+
1367
+ previous_attributes?: Partial<Stripe.Subscription>;
1368
+ }
1369
+ }
1370
+
1371
+ /**
1372
+ * 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`.
1373
+ */
1374
+ interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
1375
+ type: 'customer.subscription.collection_resumed';
1376
+ data: CustomerSubscriptionCollectionResumedEvent.Data;
1377
+ }
1378
+
1379
+ namespace CustomerSubscriptionCollectionResumedEvent {
1380
+ interface Data extends Stripe.Event.Data {
1381
+ object: Stripe.Subscription;
1382
+
1383
+ previous_attributes?: Partial<Stripe.Subscription>;
1384
+ }
1385
+ }
1386
+
1128
1387
  /**
1129
1388
  * Occurs whenever a customer is signed up for a new plan.
1130
1389
  */
@@ -1141,6 +1400,22 @@ declare module 'stripe' {
1141
1400
  }
1142
1401
  }
1143
1402
 
1403
+ /**
1404
+ * An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
1405
+ */
1406
+ interface CustomerSubscriptionCustomEventEvent extends EventBase {
1407
+ type: 'customer.subscription.custom_event';
1408
+ data: CustomerSubscriptionCustomEventEvent.Data;
1409
+ }
1410
+
1411
+ namespace CustomerSubscriptionCustomEventEvent {
1412
+ interface Data extends Stripe.Event.Data {
1413
+ object: Stripe.Subscription;
1414
+
1415
+ previous_attributes?: Partial<Stripe.Subscription>;
1416
+ }
1417
+ }
1418
+
1144
1419
  /**
1145
1420
  * Occurs whenever a customer's subscription ends.
1146
1421
  */
@@ -1205,6 +1480,22 @@ declare module 'stripe' {
1205
1480
  }
1206
1481
  }
1207
1482
 
1483
+ /**
1484
+ * Occurs whenever a price migration failed to transition prices on a subscription.
1485
+ */
1486
+ interface CustomerSubscriptionPriceMigrationFailedEvent extends EventBase {
1487
+ type: 'customer.subscription.price_migration_failed';
1488
+ data: CustomerSubscriptionPriceMigrationFailedEvent.Data;
1489
+ }
1490
+
1491
+ namespace CustomerSubscriptionPriceMigrationFailedEvent {
1492
+ interface Data extends Stripe.Event.Data {
1493
+ object: Stripe.Subscription;
1494
+
1495
+ previous_attributes?: Partial<Stripe.Subscription>;
1496
+ }
1497
+ }
1498
+
1208
1499
  /**
1209
1500
  * 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.
1210
1501
  */
@@ -1449,6 +1740,23 @@ declare module 'stripe' {
1449
1740
  }
1450
1741
  }
1451
1742
 
1743
+ /**
1744
+ * Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1745
+ */
1746
+ interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
1747
+ extends EventBase {
1748
+ type: 'financial_connections.account.refreshed_inferred_balances';
1749
+ data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
1750
+ }
1751
+
1752
+ namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
1753
+ interface Data extends Stripe.Event.Data {
1754
+ object: Stripe.FinancialConnections.Account;
1755
+
1756
+ previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
1757
+ }
1758
+ }
1759
+
1452
1760
  /**
1453
1761
  * Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1454
1762
  */
@@ -1483,6 +1791,22 @@ declare module 'stripe' {
1483
1791
  }
1484
1792
  }
1485
1793
 
1794
+ /**
1795
+ * Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
1796
+ */
1797
+ interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
1798
+ type: 'financial_connections.session.updated';
1799
+ data: FinancialConnectionsSessionUpdatedEvent.Data;
1800
+ }
1801
+
1802
+ namespace FinancialConnectionsSessionUpdatedEvent {
1803
+ interface Data extends Stripe.Event.Data {
1804
+ object: Stripe.FinancialConnections.Session;
1805
+
1806
+ previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
1807
+ }
1808
+ }
1809
+
1486
1810
  /**
1487
1811
  * Occurs whenever a VerificationSession is canceled
1488
1812
  */
@@ -1675,6 +1999,22 @@ declare module 'stripe' {
1675
1999
  }
1676
2000
  }
1677
2001
 
2002
+ /**
2003
+ * Occurs when an invoice transitions to paid with a non-zero amount_overpaid.
2004
+ */
2005
+ interface InvoiceOverpaidEvent extends EventBase {
2006
+ type: 'invoice.overpaid';
2007
+ data: InvoiceOverpaidEvent.Data;
2008
+ }
2009
+
2010
+ namespace InvoiceOverpaidEvent {
2011
+ interface Data extends Stripe.Event.Data {
2012
+ object: Stripe.Invoice;
2013
+
2014
+ previous_attributes?: Partial<Stripe.Invoice>;
2015
+ }
2016
+ }
2017
+
1678
2018
  /**
1679
2019
  * Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band.
1680
2020
  */
@@ -1691,6 +2031,22 @@ declare module 'stripe' {
1691
2031
  }
1692
2032
  }
1693
2033
 
2034
+ /**
2035
+ * Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
2036
+ */
2037
+ interface InvoicePaymentOverpaidEvent extends EventBase {
2038
+ type: 'invoice.payment.overpaid';
2039
+ data: InvoicePaymentOverpaidEvent.Data;
2040
+ }
2041
+
2042
+ namespace InvoicePaymentOverpaidEvent {
2043
+ interface Data extends Stripe.Event.Data {
2044
+ object: Stripe.InvoicePayment;
2045
+
2046
+ previous_attributes?: Partial<Stripe.InvoicePayment>;
2047
+ }
2048
+ }
2049
+
1694
2050
  /**
1695
2051
  * Occurs whenever an invoice payment attempt requires further user action to complete.
1696
2052
  */
@@ -1707,6 +2063,22 @@ declare module 'stripe' {
1707
2063
  }
1708
2064
  }
1709
2065
 
2066
+ /**
2067
+ * Occurs when an invoice requires a payment using a payment method that cannot be processed by Stripe.
2068
+ */
2069
+ interface InvoicePaymentAttemptRequiredEvent extends EventBase {
2070
+ type: 'invoice.payment_attempt_required';
2071
+ data: InvoicePaymentAttemptRequiredEvent.Data;
2072
+ }
2073
+
2074
+ namespace InvoicePaymentAttemptRequiredEvent {
2075
+ interface Data extends Stripe.Event.Data {
2076
+ object: Stripe.Invoice;
2077
+
2078
+ previous_attributes?: Partial<Stripe.Invoice>;
2079
+ }
2080
+ }
2081
+
1710
2082
  /**
1711
2083
  * Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.
1712
2084
  */
@@ -2059,6 +2431,54 @@ declare module 'stripe' {
2059
2431
  }
2060
2432
  }
2061
2433
 
2434
+ /**
2435
+ * Emitted when the DisputeSettlementDetail object is created
2436
+ */
2437
+ interface IssuingDisputeSettlementDetailCreatedEvent extends EventBase {
2438
+ type: 'issuing_dispute_settlement_detail.created';
2439
+ data: IssuingDisputeSettlementDetailCreatedEvent.Data;
2440
+ }
2441
+
2442
+ namespace IssuingDisputeSettlementDetailCreatedEvent {
2443
+ interface Data extends Stripe.Event.Data {
2444
+ object: Stripe.Issuing.DisputeSettlementDetail;
2445
+
2446
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2447
+ }
2448
+ }
2449
+
2450
+ /**
2451
+ * Emitted when the DisputeSettlementDetail object is updated
2452
+ */
2453
+ interface IssuingDisputeSettlementDetailUpdatedEvent extends EventBase {
2454
+ type: 'issuing_dispute_settlement_detail.updated';
2455
+ data: IssuingDisputeSettlementDetailUpdatedEvent.Data;
2456
+ }
2457
+
2458
+ namespace IssuingDisputeSettlementDetailUpdatedEvent {
2459
+ interface Data extends Stripe.Event.Data {
2460
+ object: Stripe.Issuing.DisputeSettlementDetail;
2461
+
2462
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2463
+ }
2464
+ }
2465
+
2466
+ /**
2467
+ * Occurs whenever funds are deducted from your account for fraud dispute loss liability.
2468
+ */
2469
+ interface IssuingFraudLiabilityDebitCreatedEvent extends EventBase {
2470
+ type: 'issuing_fraud_liability_debit.created';
2471
+ data: IssuingFraudLiabilityDebitCreatedEvent.Data;
2472
+ }
2473
+
2474
+ namespace IssuingFraudLiabilityDebitCreatedEvent {
2475
+ interface Data extends Stripe.Event.Data {
2476
+ object: Stripe.Issuing.FraudLiabilityDebit;
2477
+
2478
+ previous_attributes?: Partial<Stripe.Issuing.FraudLiabilityDebit>;
2479
+ }
2480
+ }
2481
+
2062
2482
  /**
2063
2483
  * Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
2064
2484
  */
@@ -2123,6 +2543,38 @@ declare module 'stripe' {
2123
2543
  }
2124
2544
  }
2125
2545
 
2546
+ /**
2547
+ * Occurs whenever an issuing settlement is created.
2548
+ */
2549
+ interface IssuingSettlementCreatedEvent extends EventBase {
2550
+ type: 'issuing_settlement.created';
2551
+ data: IssuingSettlementCreatedEvent.Data;
2552
+ }
2553
+
2554
+ namespace IssuingSettlementCreatedEvent {
2555
+ interface Data extends Stripe.Event.Data {
2556
+ object: Stripe.Issuing.Settlement;
2557
+
2558
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2559
+ }
2560
+ }
2561
+
2562
+ /**
2563
+ * Occurs whenever an issuing settlement is updated.
2564
+ */
2565
+ interface IssuingSettlementUpdatedEvent extends EventBase {
2566
+ type: 'issuing_settlement.updated';
2567
+ data: IssuingSettlementUpdatedEvent.Data;
2568
+ }
2569
+
2570
+ namespace IssuingSettlementUpdatedEvent {
2571
+ interface Data extends Stripe.Event.Data {
2572
+ object: Stripe.Issuing.Settlement;
2573
+
2574
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2575
+ }
2576
+ }
2577
+
2126
2578
  /**
2127
2579
  * Occurs whenever an issuing digital wallet token is created.
2128
2580
  */
@@ -2764,6 +3216,22 @@ declare module 'stripe' {
2764
3216
  }
2765
3217
  }
2766
3218
 
3219
+ /**
3220
+ * Occurs whenever a quote acceptance fails
3221
+ */
3222
+ interface QuoteAcceptFailedEvent extends EventBase {
3223
+ type: 'quote.accept_failed';
3224
+ data: QuoteAcceptFailedEvent.Data;
3225
+ }
3226
+
3227
+ namespace QuoteAcceptFailedEvent {
3228
+ interface Data extends Stripe.Event.Data {
3229
+ object: Stripe.Quote;
3230
+
3231
+ previous_attributes?: Partial<Stripe.Quote>;
3232
+ }
3233
+ }
3234
+
2767
3235
  /**
2768
3236
  * Occurs whenever a quote is accepted.
2769
3237
  */
@@ -2780,6 +3248,22 @@ declare module 'stripe' {
2780
3248
  }
2781
3249
  }
2782
3250
 
3251
+ /**
3252
+ * Occurs whenever a quote's status changes to accepting
3253
+ */
3254
+ interface QuoteAcceptingEvent extends EventBase {
3255
+ type: 'quote.accepting';
3256
+ data: QuoteAcceptingEvent.Data;
3257
+ }
3258
+
3259
+ namespace QuoteAcceptingEvent {
3260
+ interface Data extends Stripe.Event.Data {
3261
+ object: Stripe.Quote;
3262
+
3263
+ previous_attributes?: Partial<Stripe.Quote>;
3264
+ }
3265
+ }
3266
+
2783
3267
  /**
2784
3268
  * Occurs whenever a quote is canceled.
2785
3269
  */
@@ -2812,6 +3296,22 @@ declare module 'stripe' {
2812
3296
  }
2813
3297
  }
2814
3298
 
3299
+ /**
3300
+ * Occurs when a quote's status changes from stale to draft
3301
+ */
3302
+ interface QuoteDraftEvent extends EventBase {
3303
+ type: 'quote.draft';
3304
+ data: QuoteDraftEvent.Data;
3305
+ }
3306
+
3307
+ namespace QuoteDraftEvent {
3308
+ interface Data extends Stripe.Event.Data {
3309
+ object: Stripe.Quote;
3310
+
3311
+ previous_attributes?: Partial<Stripe.Quote>;
3312
+ }
3313
+ }
3314
+
2815
3315
  /**
2816
3316
  * Occurs whenever a quote is finalized.
2817
3317
  */
@@ -2828,6 +3328,54 @@ declare module 'stripe' {
2828
3328
  }
2829
3329
  }
2830
3330
 
3331
+ /**
3332
+ * Occurs whenever a quote reestimate fails
3333
+ */
3334
+ interface QuoteReestimateFailedEvent extends EventBase {
3335
+ type: 'quote.reestimate_failed';
3336
+ data: QuoteReestimateFailedEvent.Data;
3337
+ }
3338
+
3339
+ namespace QuoteReestimateFailedEvent {
3340
+ interface Data extends Stripe.Event.Data {
3341
+ object: Stripe.Quote;
3342
+
3343
+ previous_attributes?: Partial<Stripe.Quote>;
3344
+ }
3345
+ }
3346
+
3347
+ /**
3348
+ * Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
3349
+ */
3350
+ interface QuoteReestimatedEvent extends EventBase {
3351
+ type: 'quote.reestimated';
3352
+ data: QuoteReestimatedEvent.Data;
3353
+ }
3354
+
3355
+ namespace QuoteReestimatedEvent {
3356
+ interface Data extends Stripe.Event.Data {
3357
+ object: Stripe.Quote;
3358
+
3359
+ previous_attributes?: Partial<Stripe.Quote>;
3360
+ }
3361
+ }
3362
+
3363
+ /**
3364
+ * Occurs whenever a quote's status changes to stale
3365
+ */
3366
+ interface QuoteStaleEvent extends EventBase {
3367
+ type: 'quote.stale';
3368
+ data: QuoteStaleEvent.Data;
3369
+ }
3370
+
3371
+ namespace QuoteStaleEvent {
3372
+ interface Data extends Stripe.Event.Data {
3373
+ object: Stripe.Quote;
3374
+
3375
+ previous_attributes?: Partial<Stripe.Quote>;
3376
+ }
3377
+ }
3378
+
2831
3379
  /**
2832
3380
  * Occurs whenever an early fraud warning is created.
2833
3381
  */
@@ -3276,6 +3824,22 @@ declare module 'stripe' {
3276
3824
  }
3277
3825
  }
3278
3826
 
3827
+ /**
3828
+ * Occurs whenever a price migration failed to transition prices on a subscription schedule.
3829
+ */
3830
+ interface SubscriptionSchedulePriceMigrationFailedEvent extends EventBase {
3831
+ type: 'subscription_schedule.price_migration_failed';
3832
+ data: SubscriptionSchedulePriceMigrationFailedEvent.Data;
3833
+ }
3834
+
3835
+ namespace SubscriptionSchedulePriceMigrationFailedEvent {
3836
+ interface Data extends Stripe.Event.Data {
3837
+ object: Stripe.SubscriptionSchedule;
3838
+
3839
+ previous_attributes?: Partial<Stripe.SubscriptionSchedule>;
3840
+ }
3841
+ }
3842
+
3279
3843
  /**
3280
3844
  * Occurs whenever a new subscription schedule is released.
3281
3845
  */
@@ -3308,6 +3872,22 @@ declare module 'stripe' {
3308
3872
  }
3309
3873
  }
3310
3874
 
3875
+ /**
3876
+ * Occurs when a tax form is updated.
3877
+ */
3878
+ interface TaxFormUpdatedEvent extends EventBase {
3879
+ type: 'tax.form.updated';
3880
+ data: TaxFormUpdatedEvent.Data;
3881
+ }
3882
+
3883
+ namespace TaxFormUpdatedEvent {
3884
+ interface Data extends Stripe.Event.Data {
3885
+ object: Stripe.Tax.Form;
3886
+
3887
+ previous_attributes?: Partial<Stripe.Tax.Form>;
3888
+ }
3889
+ }
3890
+
3311
3891
  /**
3312
3892
  * Occurs whenever tax settings is updated.
3313
3893
  */
@@ -3388,6 +3968,22 @@ declare module 'stripe' {
3388
3968
  }
3389
3969
  }
3390
3970
 
3971
+ /**
3972
+ * Occurs whenever an action sent to a Terminal reader is updated.
3973
+ */
3974
+ interface TerminalReaderActionUpdatedEvent extends EventBase {
3975
+ type: 'terminal.reader.action_updated';
3976
+ data: TerminalReaderActionUpdatedEvent.Data;
3977
+ }
3978
+
3979
+ namespace TerminalReaderActionUpdatedEvent {
3980
+ interface Data extends Stripe.Event.Data {
3981
+ object: Stripe.Terminal.Reader;
3982
+
3983
+ previous_attributes?: Partial<Stripe.Terminal.Reader>;
3984
+ }
3985
+ }
3986
+
3391
3987
  /**
3392
3988
  * Occurs whenever a test clock starts advancing.
3393
3989
  */