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

25 lines
527 B
TypeScript
Raw Normal View History

import { ApiProperty, PartialType } from '@nestjs/swagger'
import { IsNumber, IsOptional, IsString } from 'class-validator'
export class CreateSalesInvoiceDto {
@IsString()
@ApiProperty()
code: string
@IsNumber()
@ApiProperty()
total_amount: number
@IsOptional()
@IsString()
@ApiProperty({ required: false })
description?: string
@IsOptional()
@IsString()
@ApiProperty({ required: false })
customer_id?: string
}
export class UpdateSalesInvoiceDto extends PartialType(CreateSalesInvoiceDto) {}