remove rest id from creating
This commit is contained in:
@@ -2,10 +2,6 @@ import { IsString, IsOptional, IsBoolean } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class CreateRestaurantPaymentMethodDto {
|
||||
@ApiProperty({ description: 'Restaurant ID' })
|
||||
@IsString()
|
||||
restaurantId!: string;
|
||||
|
||||
@ApiProperty({ description: 'Payment method ID' })
|
||||
@IsString()
|
||||
paymentMethodId!: string;
|
||||
@@ -20,4 +16,3 @@ export class CreateRestaurantPaymentMethodDto {
|
||||
@IsBoolean()
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { CreateRestaurantPaymentMethodDto } from './create-restaurant-payment-method.dto';
|
||||
import { IsString } from 'class-validator';
|
||||
import { IsString, IsOptional } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class UpdateRestaurantPaymentMethodDto extends PartialType(CreateRestaurantPaymentMethodDto) {
|
||||
@ApiProperty({ description: 'Restaurant payment method ID' })
|
||||
@IsString()
|
||||
id!: string;
|
||||
|
||||
@ApiProperty({ description: 'Restaurant ID', required: false })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
restaurantId?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user