import { IsString, IsOptional, IsISO8601 } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class UpdateUserSubscriptionDto {
  @ApiProperty({ description: "Subscription Plan" })
  @IsString()
  plan: string;

  @ApiProperty({
    description: "Expiration Date in ISO format",
    required: false,
  })
  @IsOptional()
  @IsISO8601()
  expiresAt?: string | null;
}
