import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsNotEmpty } from 'class-validator';
import { FreewayTollClient } from '../entities/freeway-toll.entity';

export class CreateFreewayTollRequestDto {
  @ApiProperty({ required: true })
  @IsNotEmpty()
  carId: number;

  @ApiProperty({ enum: FreewayTollClient, required: true })
  @IsNotEmpty()
  @IsIn(Object.values(FreewayTollClient))
  client: FreewayTollClient;
}
