chore: create customer

This commit is contained in:
Matin
2025-02-18 12:43:57 +03:30
parent fb0c484728
commit ef928da5e2
+1 -2
View File
@@ -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 })