clean foldering

This commit is contained in:
2025-11-24 20:28:49 +03:30
parent cfc7e1ffb9
commit 26b5d2b561
13 changed files with 76 additions and 118 deletions
@@ -1,28 +0,0 @@
import { IsNumber, IsBoolean, IsOptional, IsString, Min } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Type } from 'class-transformer';
export class CreateRestaurantShipmentMethodDto {
@ApiProperty({ example: 'shipment-method-id', description: 'Shipment method ID' })
@IsString()
shipmentMethodId!: string;
@ApiProperty({ example: 5000, description: 'Shipping price' })
@IsNumber()
@Min(0)
@Type(() => Number)
price!: number;
@ApiProperty({ example: 100000, description: 'Minimum order price for free shipping' })
@IsNumber()
@Min(0)
@Type(() => Number)
minOrderPrice!: number;
@ApiPropertyOptional({ example: true, description: 'Is this shipment method active?' })
@IsOptional()
@IsBoolean()
@Type(() => Boolean)
isActive?: boolean;
}
@@ -1,5 +0,0 @@
import { PartialType } from '@nestjs/swagger';
import { CreateRestaurantShipmentMethodDto } from './create-restaurant-shipment-method.dto';
export class UpdateRestaurantShipmentMethodDto extends PartialType(CreateRestaurantShipmentMethodDto) {}