import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator'; export class SubmitBankSlipDto { @ApiProperty({ example: '556677', description: 'Bank receipt tracking/reference number submitted by user.', }) @IsString() @IsNotEmpty() @MaxLength(100) trackingNumber: string; @ApiPropertyOptional() @IsOptional() @IsString() @MaxLength(500) notes?: string; }