import { Subjects } from '../subjects'; import { Tenant } from '../../types/tenant'; import { SubscriptionStatus } from '../../types/subscriptionStatus'; import { SubscriptionPlan } from '../../types/subscriptionPlan'; import { PaymentProviderType } from '../../types/paymentProviderType'; export interface SubscriptionCreatedEvent { subject: Subjects.SubscriptionCreated; data: { tenant: Tenant; consumerId: string; sellerId?: string; status: SubscriptionStatus; plan: SubscriptionPlan; provider: PaymentProviderType; externalSubscriptionId: string; externalCustomerId: string; currentPeriodStart: string; currentPeriodEnd: string; cancelAtPeriodEnd: boolean; amount: number; currency: string; metadata?: Record; timestamp: string; }; }