Files
parsshop-back/src/modules/payments/dto/submit-bank-slip.dto.ts

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;
}