chore: create customer
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { ApiProperty, ApiPropertyOptional, PartialType } from "@nestjs/swagger";
|
||||
import { IsEmail, IsMobilePhone, IsNotEmpty, IsNumberString, IsOptional, IsString, IsUrl, Length, MinLength } from "class-validator";
|
||||
|
||||
import { CreateLegalUserDto } from "./create-legal-user.dto";
|
||||
import { AuthMessage, FinancialMessage, UserMessage } from "../../../common/enums/message.enum";
|
||||
|
||||
export class CreateCustomerDto extends PartialType(CreateLegalUserDto) {
|
||||
export class CreateCustomerDto {
|
||||
@IsNotEmpty({ message: AuthMessage.PHONE_NOT_EMPTY })
|
||||
@IsMobilePhone("fa-IR", {}, { message: AuthMessage.INVALID_PHONE_FORMAT })
|
||||
@Length(11, 11, { message: AuthMessage.PHONE_SHOULD_BE_11_DIGIT })
|
||||
|
||||
Reference in New Issue
Block a user