15 lines
281 B
TypeScript
15 lines
281 B
TypeScript
import { IsBoolean, IsInt, IsOptional, IsString, MinLength } from 'class-validator';
|
|
|
|
export class CreateReceiptAliasDto {
|
|
@IsString()
|
|
@MinLength(1)
|
|
receiptName!: string;
|
|
|
|
@IsInt()
|
|
productId!: number;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
isGlobal?: boolean;
|
|
}
|