verify cash paymnt

This commit is contained in:
2025-12-19 20:58:19 +03:30
parent 2ce7dda168
commit 465810efc2
8 changed files with 70 additions and 40 deletions
@@ -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;
}