pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
39 lines (30 loc) • 871 B
text/typescript
import { IsEnum, IsNumber, IsOptional, IsString, IsDate, Max, Min, IsNotEmpty } from "class-validator";
import { Type } from "class-transformer";
import { CurrencyCodeEnum } from "../../../enums/currency-code.enum";
export class PricingDTO {
id?: string;
productId: string;
price: number;
currencyCode: CurrencyCodeEnum;
supplierId?: string;
effectiveDate?: Date;
expiryDate?: Date;
discount?: number;
}