mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 23:28:11 +00:00
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
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;
|
|
} |