diff --git a/services/web/types/stripe/webhook-event.ts b/services/web/types/stripe/webhook-event.ts index 9c92fdc7ff..f6e36b8b0a 100644 --- a/services/web/types/stripe/webhook-event.ts +++ b/services/web/types/stripe/webhook-event.ts @@ -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