20 lines
472 B
TypeScript
20 lines
472 B
TypeScript
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;
|
|
}
|