import { IsNumber, IsUUID, Min } from "class-validator"; /** * Deliberately minimal — only what the client can legitimately choose * (which product, how many). Unit price, product name, and the 5 price- * tier snapshots are always derived server-side from the live product * record + the quote's contract_period (see QuotesService.buildItems) — * a client-supplied price is never trusted, strengthening the legacy's * own principle (which snapshotted at add-time but still took unit_price * from client state at that moment). */ export class QuoteItemInputDto { @IsUUID() productId!: string; @IsNumber() @Min(0.01) quantity!: number; }