import { IsDateString, IsOptional, IsString } from 'class-validator';

export class DeliverCargoDto {
  /** Name of the person who received / picked up the cargo (Proof of Delivery). */
  @IsOptional()
  @IsString()
  receiverName?: string;

  /** When the cargo was picked up / delivered. Defaults to now. */
  @IsOptional()
  @IsDateString()
  pickupDate?: string;

  @IsOptional()
  @IsString()
  deliveryRemarks?: string;
}