fix: order history
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class AddSaldoSupplier {
|
||||
@IsNotEmpty()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { balanceType, coaType, statusTransaction, typeTransaction } from 'src/helper/enum-list';
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
import { statusTransaction, typeTransaction } from 'src/helper/enum-list';
|
||||
import { EntityManager } from 'typeorm';
|
||||
import { Transactions } from '../entities/transactions.entity';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class DistributeTransactionDto {
|
||||
@IsNotEmpty()
|
||||
|
||||
7
src/transaction/dto/order-transaction-partner.dto.ts
Normal file
7
src/transaction/dto/order-transaction-partner.dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
import { OrderTransactionDto } from './order-transaction.dto';
|
||||
|
||||
export class OrderTransactionPartnerDto extends OrderTransactionDto {
|
||||
@IsNotEmpty()
|
||||
trx_id: string;
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class OrderTransactionDto {
|
||||
@IsNotEmpty()
|
||||
productCode: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
phoneNumber: string;
|
||||
destination: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user