Files
psp_api/src/modules/sales-invoices/dto/create-sales-invoice.dto.ts
T

21 lines
367 B
TypeScript
Raw Normal View History

import { Type } from 'class-transformer'
import { IsInt, IsNumber, IsOptional, IsString } from 'class-validator'
export class CreateSalesInvoiceDto {
@IsString()
code: string
@Type(() => Number)
@IsNumber()
totalAmount: number
@IsOptional()
@IsString()
description?: string
@IsOptional()
@Type(() => Number)
@IsInt()
customerId?: number
}