Explorar o código

Merge pull request #29714 from overleaf/kh-rm-dead-sessions-code

[web] remove dead code from Stripe hosted checkout

GitOrigin-RevId: 47372e320dbcee44e04b3bd731a585633433a5c8
Kristina hai 8 meses
pai
achega
42fa9701e5
Modificáronse 1 ficheiros con 0 adicións e 12 borrados
  1. 0 12
      services/web/types/stripe/webhook-event.ts

+ 0 - 12
services/web/types/stripe/webhook-event.ts

@@ -107,17 +107,6 @@ export interface InvoiceOverdueWebhookEvent extends Stripe.EventBase {
   }
 }
 
-export interface CheckoutSessionCompletedWebhookEvent extends Stripe.EventBase {
-  type: 'checkout.session.completed'
-  data: {
-    object: Stripe.Checkout.Session & {
-      metadata: {
-        userId?: string
-      }
-    }
-  }
-}
-
 export interface CustomerCreatedWebhookEvent extends Stripe.EventBase {
   type: 'customer.created'
   data: {
@@ -137,5 +126,4 @@ export type WebhookEvent =
   | PaymentIntentPaymentFailedWebhookEvent
   | SetupIntentSetupFailedWebhookEvent
   | InvoiceOverdueWebhookEvent
-  | CheckoutSessionCompletedWebhookEvent
   | CustomerCreatedWebhookEvent