From 6c3cc794a4bfa1e24b8861be8ba07232cd730b54 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Tue, 6 May 2025 09:49:37 -0700 Subject: [PATCH] Merge pull request #25161 from overleaf/mf-stripe-webhook [web] Implement stripe webhook for `customer.subscription.created` event type GitOrigin-RevId: f32e7607ddf900211efbe487bcd1f09172100178 --- services/web/types/stripe/webhook-event.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 services/web/types/stripe/webhook-event.ts diff --git a/services/web/types/stripe/webhook-event.ts b/services/web/types/stripe/webhook-event.ts new file mode 100644 index 0000000000..6be2ea1e95 --- /dev/null +++ b/services/web/types/stripe/webhook-event.ts @@ -0,0 +1,13 @@ +type CustomerSubscriptionCreated = { + type: 'customer.subscription.created' + data: { + object: { + id: string + metadata: { + adminUserId?: string + } + } + } +} + +export type WebhookEvent = CustomerSubscriptionCreated