stripe 17.3.1 → 17.4.0-beta.2

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 (195) hide show
  1. package/CHANGELOG.md +967 -109
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  19. package/cjs/resources/PaymentIntents.js +8 -0
  20. package/cjs/resources/PaymentRecords.js +29 -0
  21. package/cjs/resources/Quotes.js +32 -0
  22. package/cjs/resources/SubscriptionSchedules.js +4 -0
  23. package/cjs/resources/Tax/Associations.js +9 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  26. package/cjs/resources/Terminal/Readers.js +12 -0
  27. package/cjs/resources.js +68 -14
  28. package/cjs/stripe.core.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  41. package/esm/resources/Margins.js +19 -0
  42. package/esm/resources/Orders.js +21 -0
  43. package/esm/resources/PaymentAttemptRecords.js +14 -0
  44. package/esm/resources/PaymentIntents.js +8 -0
  45. package/esm/resources/PaymentRecords.js +26 -0
  46. package/esm/resources/Quotes.js +32 -0
  47. package/esm/resources/SubscriptionSchedules.js +4 -0
  48. package/esm/resources/Tax/Associations.js +6 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  51. package/esm/resources/Terminal/Readers.js +12 -0
  52. package/esm/resources.js +51 -1
  53. package/esm/stripe.core.js +1 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +113 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +50 -5
  59. package/types/AccountSessionsResource.d.ts +355 -0
  60. package/types/Accounts.d.ts +221 -5
  61. package/types/AccountsResource.d.ts +496 -0
  62. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  63. package/types/Billing/CreditGrants.d.ts +5 -6
  64. package/types/Billing/CreditGrantsResource.d.ts +11 -11
  65. package/types/Billing/MeterErrorReports.d.ts +106 -0
  66. package/types/Billing/MeterEventsResource.d.ts +1 -1
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +121 -5
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +360 -5
  76. package/types/Checkout/SessionsResource.d.ts +444 -9
  77. package/types/ConfirmationTokens.d.ts +103 -4
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNotes.d.ts +21 -0
  81. package/types/CreditNotesResource.d.ts +51 -0
  82. package/types/CustomersResource.d.ts +11 -2
  83. package/types/Disputes.d.ts +1 -1
  84. package/types/EventTypes.d.ts +579 -0
  85. package/types/Events.d.ts +92 -0
  86. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  87. package/types/FinancialConnections/Accounts.d.ts +29 -1
  88. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  89. package/types/FinancialConnections/Institutions.d.ts +93 -0
  90. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  91. package/types/FinancialConnections/Sessions.d.ts +49 -1
  92. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  93. package/types/FundingInstructions.d.ts +28 -0
  94. package/types/GiftCards/Cards.d.ts +118 -0
  95. package/types/GiftCards/CardsResource.d.ts +159 -0
  96. package/types/GiftCards/Transactions.d.ts +129 -0
  97. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  98. package/types/Identity/VerificationReports.d.ts +1 -1
  99. package/types/Identity/VerificationSessions.d.ts +1 -1
  100. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +28 -1
  104. package/types/InvoicePayments.d.ts +113 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5536 -1845
  107. package/types/Issuing/Authorizations.d.ts +1 -1
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/Cards.d.ts +1 -1
  110. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  111. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  112. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  113. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  114. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  115. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  116. package/types/Issuing/Settlements.d.ts +103 -0
  117. package/types/Issuing/Transactions.d.ts +2 -0
  118. package/types/Issuing/TransactionsResource.d.ts +5 -0
  119. package/types/LineItems.d.ts +7 -0
  120. package/types/Mandates.d.ts +77 -0
  121. package/types/Margins.d.ts +56 -0
  122. package/types/MarginsResource.d.ts +114 -0
  123. package/types/Orders.d.ts +1155 -0
  124. package/types/OrdersResource.d.ts +2913 -0
  125. package/types/PaymentAttemptRecords.d.ts +242 -0
  126. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  127. package/types/PaymentIntents.d.ts +667 -2
  128. package/types/PaymentIntentsResource.d.ts +7948 -3704
  129. package/types/PaymentLinks.d.ts +6 -0
  130. package/types/PaymentLinksResource.d.ts +21 -2
  131. package/types/PaymentMethodConfigurations.d.ts +180 -0
  132. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  133. package/types/PaymentMethods.d.ts +103 -4
  134. package/types/PaymentMethodsResource.d.ts +133 -0
  135. package/types/PaymentRecords.d.ts +259 -0
  136. package/types/PaymentRecordsResource.d.ts +455 -0
  137. package/types/Prices.d.ts +22 -0
  138. package/types/PricesResource.d.ts +22 -0
  139. package/types/Products.d.ts +39 -0
  140. package/types/ProductsResource.d.ts +36 -0
  141. package/types/QuoteLines.d.ts +634 -0
  142. package/types/QuotePreviewInvoices.d.ts +1615 -0
  143. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  144. package/types/Quotes.d.ts +591 -1
  145. package/types/QuotesResource.d.ts +2526 -194
  146. package/types/Refunds.d.ts +14 -0
  147. package/types/SetupAttempts.d.ts +40 -2
  148. package/types/SetupIntents.d.ts +113 -2
  149. package/types/SetupIntentsResource.d.ts +652 -7
  150. package/types/Sources.d.ts +23 -0
  151. package/types/SubscriptionItems.d.ts +21 -0
  152. package/types/SubscriptionItemsResource.d.ts +109 -0
  153. package/types/SubscriptionSchedules.d.ts +200 -0
  154. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  155. package/types/Subscriptions.d.ts +92 -1
  156. package/types/SubscriptionsResource.d.ts +371 -2
  157. package/types/Tax/Associations.d.ts +126 -0
  158. package/types/Tax/AssociationsResource.d.ts +29 -0
  159. package/types/Tax/CalculationLineItems.d.ts +1 -0
  160. package/types/Tax/Calculations.d.ts +4 -1
  161. package/types/Tax/CalculationsResource.d.ts +2 -1
  162. package/types/Tax/Forms.d.ts +220 -0
  163. package/types/Tax/FormsResource.d.ts +107 -0
  164. package/types/Tax/Transactions.d.ts +3 -1
  165. package/types/TaxIds.d.ts +2 -1
  166. package/types/TaxIdsResource.d.ts +2 -1
  167. package/types/TaxRates.d.ts +1 -0
  168. package/types/TaxRatesResource.d.ts +2 -0
  169. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  170. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  171. package/types/Terminal/Readers.d.ts +278 -0
  172. package/types/Terminal/ReadersResource.d.ts +215 -0
  173. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  174. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +14 -4
  175. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  176. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/InboundTransfers.d.ts +1 -1
  181. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  182. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  183. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  184. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  185. package/types/WebhookEndpointsResource.d.ts +68 -0
  186. package/types/index.d.ts +74 -4
  187. package/cjs/resources/V2/Billing.js +0 -18
  188. package/cjs/resources/V2/Core.js +0 -14
  189. package/cjs/resources/V2.js +0 -14
  190. package/esm/resources/V2/Billing.js +0 -15
  191. package/esm/resources/V2/Core.js +0 -11
  192. package/esm/resources/V2.js +0 -11
  193. package/types/V2/BillingResource.d.ts +0 -14
  194. package/types/V2/CoreResource.d.ts +0 -12
  195. package/types/V2Resource.d.ts +0 -10
@@ -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,7 +111,9 @@ declare module 'stripe' {
93
111
  | InvoiceMarkedUncollectibleEvent
94
112
  | InvoiceOverdueEvent
95
113
  | InvoicePaidEvent
114
+ | InvoicePaymentOverpaidEvent
96
115
  | InvoicePaymentActionRequiredEvent
116
+ | InvoicePaymentAttemptRequiredEvent
97
117
  | InvoicePaymentFailedEvent
98
118
  | InvoicePaymentSucceededEvent
99
119
  | InvoiceSentEvent
@@ -116,10 +136,15 @@ declare module 'stripe' {
116
136
  | IssuingDisputeFundsRescindedEvent
117
137
  | IssuingDisputeSubmittedEvent
118
138
  | IssuingDisputeUpdatedEvent
139
+ | IssuingDisputeSettlementDetailCreatedEvent
140
+ | IssuingDisputeSettlementDetailUpdatedEvent
141
+ | IssuingFraudLiabilityDebitCreatedEvent
119
142
  | IssuingPersonalizationDesignActivatedEvent
120
143
  | IssuingPersonalizationDesignDeactivatedEvent
121
144
  | IssuingPersonalizationDesignRejectedEvent
122
145
  | IssuingPersonalizationDesignUpdatedEvent
146
+ | IssuingSettlementCreatedEvent
147
+ | IssuingSettlementUpdatedEvent
123
148
  | IssuingTokenCreatedEvent
124
149
  | IssuingTokenUpdatedEvent
125
150
  | IssuingTransactionCreatedEvent
@@ -160,10 +185,16 @@ declare module 'stripe' {
160
185
  | ProductUpdatedEvent
161
186
  | PromotionCodeCreatedEvent
162
187
  | PromotionCodeUpdatedEvent
188
+ | QuoteAcceptFailedEvent
163
189
  | QuoteAcceptedEvent
190
+ | QuoteAcceptingEvent
164
191
  | QuoteCanceledEvent
165
192
  | QuoteCreatedEvent
193
+ | QuoteDraftEvent
166
194
  | QuoteFinalizedEvent
195
+ | QuoteReestimateFailedEvent
196
+ | QuoteReestimatedEvent
197
+ | QuoteStaleEvent
167
198
  | RadarEarlyFraudWarningCreatedEvent
168
199
  | RadarEarlyFraudWarningUpdatedEvent
169
200
  | RefundCreatedEvent
@@ -192,13 +223,16 @@ declare module 'stripe' {
192
223
  | SubscriptionScheduleCompletedEvent
193
224
  | SubscriptionScheduleCreatedEvent
194
225
  | SubscriptionScheduleExpiringEvent
226
+ | SubscriptionSchedulePriceMigrationFailedEvent
195
227
  | SubscriptionScheduleReleasedEvent
196
228
  | SubscriptionScheduleUpdatedEvent
229
+ | TaxFormUpdatedEvent
197
230
  | TaxSettingsUpdatedEvent
198
231
  | TaxRateCreatedEvent
199
232
  | TaxRateUpdatedEvent
200
233
  | TerminalReaderActionFailedEvent
201
234
  | TerminalReaderActionSucceededEvent
235
+ | TerminalReaderActionUpdatedEvent
202
236
  | TestHelpersTestClockAdvancingEvent
203
237
  | TestHelpersTestClockCreatedEvent
204
238
  | TestHelpersTestClockDeletedEvent
@@ -341,6 +375,38 @@ declare module 'stripe' {
341
375
  }
342
376
  }
343
377
 
378
+ /**
379
+ * Occurs whenever an AccountNotice is created.
380
+ */
381
+ interface AccountNoticeCreatedEvent extends EventBase {
382
+ type: 'account_notice.created';
383
+ data: AccountNoticeCreatedEvent.Data;
384
+ }
385
+
386
+ namespace AccountNoticeCreatedEvent {
387
+ interface Data extends Stripe.Event.Data {
388
+ object: Stripe.AccountNotice;
389
+
390
+ previous_attributes?: Partial<Stripe.AccountNotice>;
391
+ }
392
+ }
393
+
394
+ /**
395
+ * Occurs whenever an AccountNotice is updated.
396
+ */
397
+ interface AccountNoticeUpdatedEvent extends EventBase {
398
+ type: 'account_notice.updated';
399
+ data: AccountNoticeUpdatedEvent.Data;
400
+ }
401
+
402
+ namespace AccountNoticeUpdatedEvent {
403
+ interface Data extends Stripe.Event.Data {
404
+ object: Stripe.AccountNotice;
405
+
406
+ previous_attributes?: Partial<Stripe.AccountNotice>;
407
+ }
408
+ }
409
+
344
410
  /**
345
411
  * Occurs whenever an application fee is created on a charge.
346
412
  */
@@ -421,6 +487,22 @@ declare module 'stripe' {
421
487
  }
422
488
  }
423
489
 
490
+ /**
491
+ * Notifies of errors on a billing meter
492
+ */
493
+ interface BillingMeterErrorReportTriggeredEvent extends EventBase {
494
+ type: 'billing.meter_error_report.triggered';
495
+ data: BillingMeterErrorReportTriggeredEvent.Data;
496
+ }
497
+
498
+ namespace BillingMeterErrorReportTriggeredEvent {
499
+ interface Data extends Stripe.Event.Data {
500
+ object: Stripe.Billing.MeterErrorReport;
501
+
502
+ previous_attributes?: Partial<Stripe.Billing.MeterErrorReport>;
503
+ }
504
+ }
505
+
424
506
  /**
425
507
  * Occurs whenever a portal configuration is created.
426
508
  */
@@ -485,6 +567,150 @@ declare module 'stripe' {
485
567
  }
486
568
  }
487
569
 
570
+ /**
571
+ * Occurs whenever a connected account accepts a financing offer.
572
+ */
573
+ interface CapitalFinancingOfferAcceptedEvent extends EventBase {
574
+ type: 'capital.financing_offer.accepted';
575
+ data: CapitalFinancingOfferAcceptedEvent.Data;
576
+ }
577
+
578
+ namespace CapitalFinancingOfferAcceptedEvent {
579
+ interface Data extends Stripe.Event.Data {
580
+ object: Stripe.Capital.FinancingOffer;
581
+
582
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
583
+ }
584
+ }
585
+
586
+ /**
587
+ * Occurs whenever a financing offer is canceled.
588
+ */
589
+ interface CapitalFinancingOfferCanceledEvent extends EventBase {
590
+ type: 'capital.financing_offer.canceled';
591
+ data: CapitalFinancingOfferCanceledEvent.Data;
592
+ }
593
+
594
+ namespace CapitalFinancingOfferCanceledEvent {
595
+ interface Data extends Stripe.Event.Data {
596
+ object: Stripe.Capital.FinancingOffer;
597
+
598
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
599
+ }
600
+ }
601
+
602
+ /**
603
+ * Occurs whenever a new financing offer is created for a connected account.
604
+ */
605
+ interface CapitalFinancingOfferCreatedEvent extends EventBase {
606
+ type: 'capital.financing_offer.created';
607
+ data: CapitalFinancingOfferCreatedEvent.Data;
608
+ }
609
+
610
+ namespace CapitalFinancingOfferCreatedEvent {
611
+ interface Data extends Stripe.Event.Data {
612
+ object: Stripe.Capital.FinancingOffer;
613
+
614
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
615
+ }
616
+ }
617
+
618
+ /**
619
+ * Occurs whenever a financing offer expires.
620
+ */
621
+ interface CapitalFinancingOfferExpiredEvent extends EventBase {
622
+ type: 'capital.financing_offer.expired';
623
+ data: CapitalFinancingOfferExpiredEvent.Data;
624
+ }
625
+
626
+ namespace CapitalFinancingOfferExpiredEvent {
627
+ interface Data extends Stripe.Event.Data {
628
+ object: Stripe.Capital.FinancingOffer;
629
+
630
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
631
+ }
632
+ }
633
+
634
+ /**
635
+ * Occurs whenever a financing offer is fully repaid.
636
+ */
637
+ interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
638
+ type: 'capital.financing_offer.fully_repaid';
639
+ data: CapitalFinancingOfferFullyRepaidEvent.Data;
640
+ }
641
+
642
+ namespace CapitalFinancingOfferFullyRepaidEvent {
643
+ interface Data extends Stripe.Event.Data {
644
+ object: Stripe.Capital.FinancingOffer;
645
+
646
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
647
+ }
648
+ }
649
+
650
+ /**
651
+ * Occurs whenever a financing offer is paid out.
652
+ */
653
+ interface CapitalFinancingOfferPaidOutEvent extends EventBase {
654
+ type: 'capital.financing_offer.paid_out';
655
+ data: CapitalFinancingOfferPaidOutEvent.Data;
656
+ }
657
+
658
+ namespace CapitalFinancingOfferPaidOutEvent {
659
+ interface Data extends Stripe.Event.Data {
660
+ object: Stripe.Capital.FinancingOffer;
661
+
662
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
663
+ }
664
+ }
665
+
666
+ /**
667
+ * Occurs whenever a financing offer is rejected.
668
+ */
669
+ interface CapitalFinancingOfferRejectedEvent extends EventBase {
670
+ type: 'capital.financing_offer.rejected';
671
+ data: CapitalFinancingOfferRejectedEvent.Data;
672
+ }
673
+
674
+ namespace CapitalFinancingOfferRejectedEvent {
675
+ interface Data extends Stripe.Event.Data {
676
+ object: Stripe.Capital.FinancingOffer;
677
+
678
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
679
+ }
680
+ }
681
+
682
+ /**
683
+ * Occurs whenever a replacement for a financing offer has been created.
684
+ */
685
+ interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
686
+ type: 'capital.financing_offer.replacement_created';
687
+ data: CapitalFinancingOfferReplacementCreatedEvent.Data;
688
+ }
689
+
690
+ namespace CapitalFinancingOfferReplacementCreatedEvent {
691
+ interface Data extends Stripe.Event.Data {
692
+ object: Stripe.Capital.FinancingOffer;
693
+
694
+ previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
695
+ }
696
+ }
697
+
698
+ /**
699
+ * Occurs whenever a financing transaction is created.
700
+ */
701
+ interface CapitalFinancingTransactionCreatedEvent extends EventBase {
702
+ type: 'capital.financing_transaction.created';
703
+ data: CapitalFinancingTransactionCreatedEvent.Data;
704
+ }
705
+
706
+ namespace CapitalFinancingTransactionCreatedEvent {
707
+ interface Data extends Stripe.Event.Data {
708
+ object: Stripe.Capital.FinancingTransaction;
709
+
710
+ previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
711
+ }
712
+ }
713
+
488
714
  /**
489
715
  * 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
716
  */
@@ -1125,6 +1351,38 @@ declare module 'stripe' {
1125
1351
  }
1126
1352
  }
1127
1353
 
1354
+ /**
1355
+ * 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`.
1356
+ */
1357
+ interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
1358
+ type: 'customer.subscription.collection_paused';
1359
+ data: CustomerSubscriptionCollectionPausedEvent.Data;
1360
+ }
1361
+
1362
+ namespace CustomerSubscriptionCollectionPausedEvent {
1363
+ interface Data extends Stripe.Event.Data {
1364
+ object: Stripe.Subscription;
1365
+
1366
+ previous_attributes?: Partial<Stripe.Subscription>;
1367
+ }
1368
+ }
1369
+
1370
+ /**
1371
+ * 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`.
1372
+ */
1373
+ interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
1374
+ type: 'customer.subscription.collection_resumed';
1375
+ data: CustomerSubscriptionCollectionResumedEvent.Data;
1376
+ }
1377
+
1378
+ namespace CustomerSubscriptionCollectionResumedEvent {
1379
+ interface Data extends Stripe.Event.Data {
1380
+ object: Stripe.Subscription;
1381
+
1382
+ previous_attributes?: Partial<Stripe.Subscription>;
1383
+ }
1384
+ }
1385
+
1128
1386
  /**
1129
1387
  * Occurs whenever a customer is signed up for a new plan.
1130
1388
  */
@@ -1141,6 +1399,22 @@ declare module 'stripe' {
1141
1399
  }
1142
1400
  }
1143
1401
 
1402
+ /**
1403
+ * An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
1404
+ */
1405
+ interface CustomerSubscriptionCustomEventEvent extends EventBase {
1406
+ type: 'customer.subscription.custom_event';
1407
+ data: CustomerSubscriptionCustomEventEvent.Data;
1408
+ }
1409
+
1410
+ namespace CustomerSubscriptionCustomEventEvent {
1411
+ interface Data extends Stripe.Event.Data {
1412
+ object: Stripe.Subscription;
1413
+
1414
+ previous_attributes?: Partial<Stripe.Subscription>;
1415
+ }
1416
+ }
1417
+
1144
1418
  /**
1145
1419
  * Occurs whenever a customer's subscription ends.
1146
1420
  */
@@ -1205,6 +1479,22 @@ declare module 'stripe' {
1205
1479
  }
1206
1480
  }
1207
1481
 
1482
+ /**
1483
+ * Occurs whenever a price migration failed to transition prices on a subscription.
1484
+ */
1485
+ interface CustomerSubscriptionPriceMigrationFailedEvent extends EventBase {
1486
+ type: 'customer.subscription.price_migration_failed';
1487
+ data: CustomerSubscriptionPriceMigrationFailedEvent.Data;
1488
+ }
1489
+
1490
+ namespace CustomerSubscriptionPriceMigrationFailedEvent {
1491
+ interface Data extends Stripe.Event.Data {
1492
+ object: Stripe.Subscription;
1493
+
1494
+ previous_attributes?: Partial<Stripe.Subscription>;
1495
+ }
1496
+ }
1497
+
1208
1498
  /**
1209
1499
  * 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
1500
  */
@@ -1449,6 +1739,23 @@ declare module 'stripe' {
1449
1739
  }
1450
1740
  }
1451
1741
 
1742
+ /**
1743
+ * Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1744
+ */
1745
+ interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
1746
+ extends EventBase {
1747
+ type: 'financial_connections.account.refreshed_inferred_balances';
1748
+ data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
1749
+ }
1750
+
1751
+ namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
1752
+ interface Data extends Stripe.Event.Data {
1753
+ object: Stripe.FinancialConnections.Account;
1754
+
1755
+ previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
1756
+ }
1757
+ }
1758
+
1452
1759
  /**
1453
1760
  * Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
1454
1761
  */
@@ -1483,6 +1790,22 @@ declare module 'stripe' {
1483
1790
  }
1484
1791
  }
1485
1792
 
1793
+ /**
1794
+ * Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
1795
+ */
1796
+ interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
1797
+ type: 'financial_connections.session.updated';
1798
+ data: FinancialConnectionsSessionUpdatedEvent.Data;
1799
+ }
1800
+
1801
+ namespace FinancialConnectionsSessionUpdatedEvent {
1802
+ interface Data extends Stripe.Event.Data {
1803
+ object: Stripe.FinancialConnections.Session;
1804
+
1805
+ previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
1806
+ }
1807
+ }
1808
+
1486
1809
  /**
1487
1810
  * Occurs whenever a VerificationSession is canceled
1488
1811
  */
@@ -1691,6 +2014,22 @@ declare module 'stripe' {
1691
2014
  }
1692
2015
  }
1693
2016
 
2017
+ /**
2018
+ * Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
2019
+ */
2020
+ interface InvoicePaymentOverpaidEvent extends EventBase {
2021
+ type: 'invoice.payment.overpaid';
2022
+ data: InvoicePaymentOverpaidEvent.Data;
2023
+ }
2024
+
2025
+ namespace InvoicePaymentOverpaidEvent {
2026
+ interface Data extends Stripe.Event.Data {
2027
+ object: Stripe.InvoicePayment;
2028
+
2029
+ previous_attributes?: Partial<Stripe.InvoicePayment>;
2030
+ }
2031
+ }
2032
+
1694
2033
  /**
1695
2034
  * Occurs whenever an invoice payment attempt requires further user action to complete.
1696
2035
  */
@@ -1707,6 +2046,22 @@ declare module 'stripe' {
1707
2046
  }
1708
2047
  }
1709
2048
 
2049
+ /**
2050
+ * Occurs when an invoice requires a payment using a payment method that cannot be processed by Stripe.
2051
+ */
2052
+ interface InvoicePaymentAttemptRequiredEvent extends EventBase {
2053
+ type: 'invoice.payment_attempt_required';
2054
+ data: InvoicePaymentAttemptRequiredEvent.Data;
2055
+ }
2056
+
2057
+ namespace InvoicePaymentAttemptRequiredEvent {
2058
+ interface Data extends Stripe.Event.Data {
2059
+ object: Stripe.Invoice;
2060
+
2061
+ previous_attributes?: Partial<Stripe.Invoice>;
2062
+ }
2063
+ }
2064
+
1710
2065
  /**
1711
2066
  * Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.
1712
2067
  */
@@ -2059,6 +2414,54 @@ declare module 'stripe' {
2059
2414
  }
2060
2415
  }
2061
2416
 
2417
+ /**
2418
+ * Emitted when the DisputeSettlementDetail object is created
2419
+ */
2420
+ interface IssuingDisputeSettlementDetailCreatedEvent extends EventBase {
2421
+ type: 'issuing_dispute_settlement_detail.created';
2422
+ data: IssuingDisputeSettlementDetailCreatedEvent.Data;
2423
+ }
2424
+
2425
+ namespace IssuingDisputeSettlementDetailCreatedEvent {
2426
+ interface Data extends Stripe.Event.Data {
2427
+ object: Stripe.Issuing.DisputeSettlementDetail;
2428
+
2429
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2430
+ }
2431
+ }
2432
+
2433
+ /**
2434
+ * Emitted when the DisputeSettlementDetail object is updated
2435
+ */
2436
+ interface IssuingDisputeSettlementDetailUpdatedEvent extends EventBase {
2437
+ type: 'issuing_dispute_settlement_detail.updated';
2438
+ data: IssuingDisputeSettlementDetailUpdatedEvent.Data;
2439
+ }
2440
+
2441
+ namespace IssuingDisputeSettlementDetailUpdatedEvent {
2442
+ interface Data extends Stripe.Event.Data {
2443
+ object: Stripe.Issuing.DisputeSettlementDetail;
2444
+
2445
+ previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
2446
+ }
2447
+ }
2448
+
2449
+ /**
2450
+ * Occurs whenever funds are deducted from your account for fraud dispute loss liability.
2451
+ */
2452
+ interface IssuingFraudLiabilityDebitCreatedEvent extends EventBase {
2453
+ type: 'issuing_fraud_liability_debit.created';
2454
+ data: IssuingFraudLiabilityDebitCreatedEvent.Data;
2455
+ }
2456
+
2457
+ namespace IssuingFraudLiabilityDebitCreatedEvent {
2458
+ interface Data extends Stripe.Event.Data {
2459
+ object: Stripe.Issuing.FraudLiabilityDebit;
2460
+
2461
+ previous_attributes?: Partial<Stripe.Issuing.FraudLiabilityDebit>;
2462
+ }
2463
+ }
2464
+
2062
2465
  /**
2063
2466
  * Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
2064
2467
  */
@@ -2123,6 +2526,38 @@ declare module 'stripe' {
2123
2526
  }
2124
2527
  }
2125
2528
 
2529
+ /**
2530
+ * Occurs whenever an issuing settlement is created.
2531
+ */
2532
+ interface IssuingSettlementCreatedEvent extends EventBase {
2533
+ type: 'issuing_settlement.created';
2534
+ data: IssuingSettlementCreatedEvent.Data;
2535
+ }
2536
+
2537
+ namespace IssuingSettlementCreatedEvent {
2538
+ interface Data extends Stripe.Event.Data {
2539
+ object: Stripe.Issuing.Settlement;
2540
+
2541
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2542
+ }
2543
+ }
2544
+
2545
+ /**
2546
+ * Occurs whenever an issuing settlement is updated.
2547
+ */
2548
+ interface IssuingSettlementUpdatedEvent extends EventBase {
2549
+ type: 'issuing_settlement.updated';
2550
+ data: IssuingSettlementUpdatedEvent.Data;
2551
+ }
2552
+
2553
+ namespace IssuingSettlementUpdatedEvent {
2554
+ interface Data extends Stripe.Event.Data {
2555
+ object: Stripe.Issuing.Settlement;
2556
+
2557
+ previous_attributes?: Partial<Stripe.Issuing.Settlement>;
2558
+ }
2559
+ }
2560
+
2126
2561
  /**
2127
2562
  * Occurs whenever an issuing digital wallet token is created.
2128
2563
  */
@@ -2764,6 +3199,22 @@ declare module 'stripe' {
2764
3199
  }
2765
3200
  }
2766
3201
 
3202
+ /**
3203
+ * Occurs whenever a quote acceptance fails
3204
+ */
3205
+ interface QuoteAcceptFailedEvent extends EventBase {
3206
+ type: 'quote.accept_failed';
3207
+ data: QuoteAcceptFailedEvent.Data;
3208
+ }
3209
+
3210
+ namespace QuoteAcceptFailedEvent {
3211
+ interface Data extends Stripe.Event.Data {
3212
+ object: Stripe.Quote;
3213
+
3214
+ previous_attributes?: Partial<Stripe.Quote>;
3215
+ }
3216
+ }
3217
+
2767
3218
  /**
2768
3219
  * Occurs whenever a quote is accepted.
2769
3220
  */
@@ -2780,6 +3231,22 @@ declare module 'stripe' {
2780
3231
  }
2781
3232
  }
2782
3233
 
3234
+ /**
3235
+ * Occurs whenever a quote's status changes to accepting
3236
+ */
3237
+ interface QuoteAcceptingEvent extends EventBase {
3238
+ type: 'quote.accepting';
3239
+ data: QuoteAcceptingEvent.Data;
3240
+ }
3241
+
3242
+ namespace QuoteAcceptingEvent {
3243
+ interface Data extends Stripe.Event.Data {
3244
+ object: Stripe.Quote;
3245
+
3246
+ previous_attributes?: Partial<Stripe.Quote>;
3247
+ }
3248
+ }
3249
+
2783
3250
  /**
2784
3251
  * Occurs whenever a quote is canceled.
2785
3252
  */
@@ -2812,6 +3279,22 @@ declare module 'stripe' {
2812
3279
  }
2813
3280
  }
2814
3281
 
3282
+ /**
3283
+ * Occurs when a quote's status changes from stale to draft
3284
+ */
3285
+ interface QuoteDraftEvent extends EventBase {
3286
+ type: 'quote.draft';
3287
+ data: QuoteDraftEvent.Data;
3288
+ }
3289
+
3290
+ namespace QuoteDraftEvent {
3291
+ interface Data extends Stripe.Event.Data {
3292
+ object: Stripe.Quote;
3293
+
3294
+ previous_attributes?: Partial<Stripe.Quote>;
3295
+ }
3296
+ }
3297
+
2815
3298
  /**
2816
3299
  * Occurs whenever a quote is finalized.
2817
3300
  */
@@ -2828,6 +3311,54 @@ declare module 'stripe' {
2828
3311
  }
2829
3312
  }
2830
3313
 
3314
+ /**
3315
+ * Occurs whenever a quote reestimate fails
3316
+ */
3317
+ interface QuoteReestimateFailedEvent extends EventBase {
3318
+ type: 'quote.reestimate_failed';
3319
+ data: QuoteReestimateFailedEvent.Data;
3320
+ }
3321
+
3322
+ namespace QuoteReestimateFailedEvent {
3323
+ interface Data extends Stripe.Event.Data {
3324
+ object: Stripe.Quote;
3325
+
3326
+ previous_attributes?: Partial<Stripe.Quote>;
3327
+ }
3328
+ }
3329
+
3330
+ /**
3331
+ * Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
3332
+ */
3333
+ interface QuoteReestimatedEvent extends EventBase {
3334
+ type: 'quote.reestimated';
3335
+ data: QuoteReestimatedEvent.Data;
3336
+ }
3337
+
3338
+ namespace QuoteReestimatedEvent {
3339
+ interface Data extends Stripe.Event.Data {
3340
+ object: Stripe.Quote;
3341
+
3342
+ previous_attributes?: Partial<Stripe.Quote>;
3343
+ }
3344
+ }
3345
+
3346
+ /**
3347
+ * Occurs whenever a quote's status changes to stale
3348
+ */
3349
+ interface QuoteStaleEvent extends EventBase {
3350
+ type: 'quote.stale';
3351
+ data: QuoteStaleEvent.Data;
3352
+ }
3353
+
3354
+ namespace QuoteStaleEvent {
3355
+ interface Data extends Stripe.Event.Data {
3356
+ object: Stripe.Quote;
3357
+
3358
+ previous_attributes?: Partial<Stripe.Quote>;
3359
+ }
3360
+ }
3361
+
2831
3362
  /**
2832
3363
  * Occurs whenever an early fraud warning is created.
2833
3364
  */
@@ -3276,6 +3807,22 @@ declare module 'stripe' {
3276
3807
  }
3277
3808
  }
3278
3809
 
3810
+ /**
3811
+ * Occurs whenever a price migration failed to transition prices on a subscription schedule.
3812
+ */
3813
+ interface SubscriptionSchedulePriceMigrationFailedEvent extends EventBase {
3814
+ type: 'subscription_schedule.price_migration_failed';
3815
+ data: SubscriptionSchedulePriceMigrationFailedEvent.Data;
3816
+ }
3817
+
3818
+ namespace SubscriptionSchedulePriceMigrationFailedEvent {
3819
+ interface Data extends Stripe.Event.Data {
3820
+ object: Stripe.SubscriptionSchedule;
3821
+
3822
+ previous_attributes?: Partial<Stripe.SubscriptionSchedule>;
3823
+ }
3824
+ }
3825
+
3279
3826
  /**
3280
3827
  * Occurs whenever a new subscription schedule is released.
3281
3828
  */
@@ -3308,6 +3855,22 @@ declare module 'stripe' {
3308
3855
  }
3309
3856
  }
3310
3857
 
3858
+ /**
3859
+ * Occurs when a tax form is updated.
3860
+ */
3861
+ interface TaxFormUpdatedEvent extends EventBase {
3862
+ type: 'tax.form.updated';
3863
+ data: TaxFormUpdatedEvent.Data;
3864
+ }
3865
+
3866
+ namespace TaxFormUpdatedEvent {
3867
+ interface Data extends Stripe.Event.Data {
3868
+ object: Stripe.Tax.Form;
3869
+
3870
+ previous_attributes?: Partial<Stripe.Tax.Form>;
3871
+ }
3872
+ }
3873
+
3311
3874
  /**
3312
3875
  * Occurs whenever tax settings is updated.
3313
3876
  */
@@ -3388,6 +3951,22 @@ declare module 'stripe' {
3388
3951
  }
3389
3952
  }
3390
3953
 
3954
+ /**
3955
+ * Occurs whenever an action sent to a Terminal reader is updated.
3956
+ */
3957
+ interface TerminalReaderActionUpdatedEvent extends EventBase {
3958
+ type: 'terminal.reader.action_updated';
3959
+ data: TerminalReaderActionUpdatedEvent.Data;
3960
+ }
3961
+
3962
+ namespace TerminalReaderActionUpdatedEvent {
3963
+ interface Data extends Stripe.Event.Data {
3964
+ object: Stripe.Terminal.Reader;
3965
+
3966
+ previous_attributes?: Partial<Stripe.Terminal.Reader>;
3967
+ }
3968
+ }
3969
+
3391
3970
  /**
3392
3971
  * Occurs whenever a test clock starts advancing.
3393
3972
  */