import { Subjects } from '../subjects'; import { Tenant } from '../../types/tenant'; import { SubscriptionStatus } from '../../types/subscriptionStatus'; export interface SubscriptionUpdatedEvent { subject: Subjects.SubscriptionUpdated; data: { tenant: Tenant; externalSubscriptionId: string; status: SubscriptionStatus; currentPeriodStart: string; currentPeriodEnd: string; cancelAtPeriodEnd: boolean; cancelledAt?: string; metadata?: Record; timestamp: string; }; }