From 286cc311c05c7263c7d50429af4231da5a553dbe Mon Sep 17 00:00:00 2001 From: Simon Gardner Date: Tue, 27 Jan 2026 10:20:34 +0000 Subject: [PATCH] [web] update invoice statement descriptor for migrated subscriptions GitOrigin-RevId: e89f8ba608d263900b5188bb416016aad95f2d6c --- services/web/types/stripe/webhook-event.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/services/web/types/stripe/webhook-event.ts b/services/web/types/stripe/webhook-event.ts index 872d944177..339cc7b88c 100644 --- a/services/web/types/stripe/webhook-event.ts +++ b/services/web/types/stripe/webhook-event.ts @@ -101,6 +101,21 @@ export interface InvoiceOverdueWebhookEvent extends Stripe.EventBase { } } +export interface InvoiceCreatedWebhookEvent extends Stripe.EventBase { + type: 'invoice.created' + data: { + object: Stripe.Invoice & { + parent: Stripe.Invoice.Parent & { + subscription_details: Stripe.Invoice.Parent.SubscriptionDetails & { + metadata: { + billing_migration_id?: string + } + } + } + } + } +} + export interface CustomerCreatedWebhookEvent extends Stripe.EventBase { type: 'customer.created' data: { @@ -132,6 +147,7 @@ export type WebhookEvent = | CustomerSubscriptionWebhookEvent | InvoicePaidWebhookEvent | InvoiceVoidedWebhookEvent + | InvoiceCreatedWebhookEvent | PaymentIntentPaymentFailedWebhookEvent | SetupIntentSetupFailedWebhookEvent | InvoiceOverdueWebhookEvent