Merge pull request #25560 from overleaf/mf-stripe-analytics-invoice-event

[web] Handle stripe analytics for the `subscription-invoice-collected` event

GitOrigin-RevId: cba56db820cac92a66307a05350c779e1198cbf3
This commit is contained in:
M Fahru
2025-05-15 08:13:06 -07:00
committed by Copybot
parent 81dd3c10a7
commit 1440a47d53

View File

@@ -48,7 +48,18 @@ export type CustomerSubscriptionsDeletedWebhookEvent = {
}
}
export type InvoicePaidWebhookEvent = {
type: 'invoice.paid'
data: {
object: Stripe.Invoice
}
}
export type CustomerSubscriptionWebhookEvent =
| CustomerSubscriptionUpdatedWebhookEvent
| CustomerSubscriptionCreatedWebhookEvent
| CustomerSubscriptionsDeletedWebhookEvent
export type WebhookEvent =
| CustomerSubscriptionWebhookEvent
| InvoicePaidWebhookEvent