pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
65 lines (51 loc) • 1.26 kB
text/typescript
import { IsEnum, IsNotEmpty, IsOptional, IsString, IsBoolean, IsNumber, Min, IsInt } from "class-validator";
import { ProductCategory } from "../../../enums/product-categories.enum";
import { ProductUOM } from "../../../enums/product-uom.enum";
export class ProductDTO {
id?: string;
name: string;
brand: string;
category: ProductCategory;
/**
* Properties worked on by a restriction service
*/
regulationType?: string;
minimumAge?: number;
requiresVerification?: boolean;
/**
* Properties worked on by a restriction service
*/
isWeighable?: boolean;
quantity: number;
weight?: number;
uom: ProductUOM;
upc: string;
sku: string;
}