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

export class UpdateCommissionContractDto {
  @IsOptional()
  @IsString()
  @ApiPropertyOptional()
  name?: string;

  @IsOptional()
  @IsNumber({}, { message: 'order must be a number' })
  @ApiPropertyOptional({ default: 0 })
  order?: number;

  @IsOptional()
  @IsNumber({}, { message: 'active must be a number' })
  @ApiPropertyOptional({ default: 0 })
  active?: number;
}
