import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean } from 'class-validator';

/**
 * Warehouse staff's post-unloading answer: did these goods have to be
 * re-handled? Only `true` makes the DOUBLE_HANDLING_FEE rule bill the booking.
 */
export class SetDoubleHandlingDto {
  @ApiProperty({
    description: 'Yes (true) applies the double-handling fee rule; No (false) does not.',
  })
  @IsBoolean()
  doubleHandling!: boolean;
}
