diff --git a/services/web/types/stripe/webhook-event.ts b/services/web/types/stripe/webhook-event.ts index 219be7a1d7..6f73ba8112 100644 --- a/services/web/types/stripe/webhook-event.ts +++ b/services/web/types/stripe/webhook-event.ts @@ -53,7 +53,15 @@ export type CustomerSubscriptionsDeletedWebhookEvent = { export type InvoicePaidWebhookEvent = { type: 'invoice.paid' data: { - object: Stripe.Invoice + object: Stripe.Invoice & { + parent: Stripe.Invoice.Parent & { + subscription_details: Stripe.Invoice.Parent.SubscriptionDetails & { + metadata: { + adminUserId?: string + } + } + } + } } request: Stripe.Event.Request }