Files
psp_api/src/purchase-receipt-items/dto/create-purchase-receipt-item.dto.ts
T

25 lines
402 B
TypeScript
Raw Normal View History

import { Type } from 'class-transformer'
import { IsInt, IsNumber } from 'class-validator'
export class CreatePurchaseReceiptItemDto {
@Type(() => Number)
@IsNumber()
count: number
@Type(() => Number)
@IsNumber()
fee: number
@Type(() => Number)
@IsNumber()
total: number
@Type(() => Number)
@IsInt()
receiptId: number
@Type(() => Number)
@IsInt()
productId: number
}