import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsOptional, IsString, MaxLength } from 'class-validator';

export class SetShopPlanDto {
  @ApiProperty({ example: 'GROWTH' })
  @IsString()
  @MaxLength(30)
  planCode!: string;

  @ApiProperty({
    required: false,
    description:
      'If true, renew/extend the plan validity period (charges again).',
    example: true,
  })
  @IsOptional()
  @IsBoolean()
  renew?: boolean;
}
