import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateLineitemDto {
	@ApiProperty()
	@IsString()
	@IsNotEmpty()
	color: string;

	@ApiProperty()
	@IsNumber()
	@IsNotEmpty()
	total: number;

	@ApiProperty()
	@IsNumber()
	@IsNotEmpty()
	productId: number;

	@ApiProperty()
	@IsNumber()
	@IsNotEmpty()
	designId: number;

	@ApiProperty()
	@IsNumber()
	@IsOptional()
	calculatedPrice: number;

	sizes: any;
}
