Parcourir la source

Merge pull request #25161 from overleaf/mf-stripe-webhook

[web] Implement stripe webhook for `customer.subscription.created` event type

GitOrigin-RevId: f32e7607ddf900211efbe487bcd1f09172100178
M Fahru il y a 1 an
Parent
commit
6c3cc794a4
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      services/web/types/stripe/webhook-event.ts

+ 13 - 0
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