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

/** The customer approving a handover must record their full name (signature optional). */
export class ApproveDeliveryDto {
  @ApiProperty({ description: 'Full name of the person approving delivery.' })
  @IsString()
  @IsNotEmpty()
  @MaxLength(160)
  signerName!: string;
}
