import { IsEnum, IsOptional, IsString } from 'class-validator'

export class CreateSubscriptionDto {
  @IsString()
  tenantSlug!: string

  @IsOptional() @IsEnum(['mvp', 'pro', 'enterprise'])
  plan?: 'mvp' | 'pro' | 'enterprise'

  @IsOptional() @IsEnum(['trialing', 'active', 'past_due', 'canceled', 'incomplete', 'incomplete_expired'])
  status?: 'trialing' | 'active' | 'past_due' | 'canceled' | 'incomplete' | 'incomplete_expired'

  @IsOptional() @IsString() stripeCustomerId?: string
  @IsOptional() @IsString() stripeSubscriptionId?: string
}
