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

export class UpdateMarketplaceStatusDto {
  @ApiProperty({ example: false })
  @IsBoolean()
  isActive!: boolean;

  @ApiPropertyOptional({ example: 'Listing disabled pending verification' })
  @IsOptional()
  @IsString()
  @MaxLength(1200)
  reason?: string;
}
