mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 05:42:27 +00:00
12 lines
677 B
TypeScript
12 lines
677 B
TypeScript
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
import { i18nValidationMessage as i18n } from 'nestjs-i18n';
|
|
|
|
export class RejectCustomerKycRequestDto {
|
|
@ApiPropertyOptional({ description: 'reason for rejecting the customer kyc' })
|
|
@IsString({ message: i18n('validation.IsString', { path: 'general', property: 'customer.rejectionReason' }) })
|
|
@IsNotEmpty({ message: i18n('validation.IsNotEmpty', { path: 'general', property: 'customer.rejectionReason' }) })
|
|
@IsOptional({ message: i18n('validation.IsOptional', { path: 'general', property: 'customer.rejectionReason' }) })
|
|
reason?: string;
|
|
}
|