verify cash paymnt
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsString, IsOptional, IsNumber, IsBoolean, IsArray, IsUrl, IsObject } from 'class-validator';
|
||||
import { IsString, IsOptional, IsNumber, IsBoolean, IsArray, IsUrl, IsObject, IsEnum } from 'class-validator';
|
||||
import { PlanEnum } from '../interface/plan.interface';
|
||||
|
||||
export class CreateRestaurantDto {
|
||||
@ApiProperty({ example: 'کافه ژیوان', description: 'نام رستوران' })
|
||||
@@ -65,7 +66,6 @@ export class CreateRestaurantDto {
|
||||
@IsNumber()
|
||||
establishedYear?: number;
|
||||
|
||||
|
||||
@ApiPropertyOptional({ example: '09123456789', description: 'شماره تلفن' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@@ -151,4 +151,8 @@ export class CreateRestaurantDto {
|
||||
marriageDateScore: string;
|
||||
referrerScore: string;
|
||||
};
|
||||
|
||||
@ApiProperty({ example: true, description: 'PlanEnum.Base', enum: PlanEnum })
|
||||
@IsEnum(PlanEnum)
|
||||
plan: PlanEnum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user