20 lines
289 B
TypeScript
20 lines
289 B
TypeScript
import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
|
export class OrderTransactionDto {
|
|
|
|
@IsNotEmpty()
|
|
productId: string;
|
|
|
|
@IsNotEmpty()
|
|
productCode: string;
|
|
|
|
@IsNotEmpty()
|
|
destination: string;
|
|
|
|
@IsOptional()
|
|
trx_id: string;
|
|
|
|
@IsOptional()
|
|
bill_trx_id: string;
|
|
}
|