@merkaly/api 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/finance/payment/payment.entity.d.ts +3 -1
- package/dist/finance/refund/refund.entity.d.ts +2 -0
- package/dist/inventory/stock/transfer/transfer.entity.d.ts +2 -0
- package/dist/order/purchase/transaction/transaction.entity.d.ts +2 -0
- package/dist/order/sale/transaction/transaction.entity.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { PurchaseTransactionEntity } from '../../order/purchase/transaction';
|
|
2
2
|
import { SaleTransactionEntity } from '../../order/sale/transaction';
|
|
3
3
|
import { AbstractEntity, MongoEntity } from '../..';
|
|
4
|
+
import { StatusEntity } from '../..';
|
|
4
5
|
import { FinancePaymentMethodEnum, FinancePaymentStatusEnum, FinancePaymentTypeEnum } from './payment.enum.js';
|
|
5
6
|
export declare class FinancePaymentEntity extends AbstractEntity {
|
|
6
7
|
type: FinancePaymentTypeEnum;
|
|
7
8
|
target: string;
|
|
8
9
|
order: MongoEntity<SaleTransactionEntity | PurchaseTransactionEntity>;
|
|
9
|
-
status: FinancePaymentStatusEnum;
|
|
10
10
|
total: number;
|
|
11
11
|
fee: number;
|
|
12
12
|
method?: FinancePaymentMethodEnum;
|
|
13
|
+
status: FinancePaymentStatusEnum;
|
|
14
|
+
history: StatusEntity<FinancePaymentStatusEnum>[];
|
|
13
15
|
sequence: number;
|
|
14
16
|
readonly number: string;
|
|
15
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity, MongoEntity } from '../..';
|
|
2
|
+
import { StatusEntity } from '../..';
|
|
2
3
|
import { FinanceRefundReasonEnum, FinanceRefundStatusEnum } from './refund.enum.js';
|
|
3
4
|
import type { FinancePaymentEntity } from '../payment';
|
|
4
5
|
export declare class FinanceRefundEntity extends AbstractEntity {
|
|
@@ -7,6 +8,7 @@ export declare class FinanceRefundEntity extends AbstractEntity {
|
|
|
7
8
|
status: FinanceRefundStatusEnum;
|
|
8
9
|
reason: FinanceRefundReasonEnum;
|
|
9
10
|
notes?: string;
|
|
11
|
+
history: StatusEntity<FinanceRefundStatusEnum>[];
|
|
10
12
|
sequence: number;
|
|
11
13
|
readonly number: string;
|
|
12
14
|
}
|
|
@@ -3,6 +3,7 @@ import { CatalogProductEntity } from '../../catalog/product';
|
|
|
3
3
|
import { StockWarehouseEntity } from '../warehouse';
|
|
4
4
|
import { TransferStatusEnum } from './';
|
|
5
5
|
import { AbstractEntity } from '../../..';
|
|
6
|
+
import { StatusEntity } from '../../..';
|
|
6
7
|
import { CatalogVariantEntity } from '../../catalog/variant';
|
|
7
8
|
import type { MongoEntity } from '../../..';
|
|
8
9
|
export declare class StockTransferItemEntity {
|
|
@@ -17,6 +18,7 @@ export declare class StockTransferEntity extends AbstractEntity {
|
|
|
17
18
|
items: StockTransferItemEntity[];
|
|
18
19
|
status: TransferStatusEnum;
|
|
19
20
|
notes?: string;
|
|
21
|
+
history: StatusEntity<TransferStatusEnum>[];
|
|
20
22
|
user: MongoEntity<AccountUserEntity>;
|
|
21
23
|
readonly type: 'in' | 'out';
|
|
22
24
|
readonly number: string;
|
|
@@ -2,6 +2,7 @@ import { AccountUserEntity } from '../../../account/user';
|
|
|
2
2
|
import { FinancePaymentEntity } from '../../../finance/payment';
|
|
3
3
|
import { StockTransferEntity } from '../../../inventory/stock/transfer';
|
|
4
4
|
import { AbstractEntity } from '../../..';
|
|
5
|
+
import { StatusEntity } from '../../..';
|
|
5
6
|
import { PurchaseTransactionStatusEnum } from './transaction.enum.js';
|
|
6
7
|
import { PurchaseItemEntity } from '../item';
|
|
7
8
|
import { PurchaseVendorEntity } from '../vendor';
|
|
@@ -13,6 +14,7 @@ export declare class PurchaseTransactionEntity extends AbstractEntity {
|
|
|
13
14
|
items: PurchaseItemEntity[];
|
|
14
15
|
notes?: string;
|
|
15
16
|
status: PurchaseTransactionStatusEnum;
|
|
17
|
+
history: StatusEntity<PurchaseTransactionStatusEnum>[];
|
|
16
18
|
sequence: number;
|
|
17
19
|
readonly number: string;
|
|
18
20
|
readonly total: number;
|
|
@@ -2,6 +2,7 @@ import { AccountUserEntity } from '../../../account/user';
|
|
|
2
2
|
import { FinancePaymentEntity } from '../../../finance/payment';
|
|
3
3
|
import { StockTransferEntity } from '../../../inventory/stock/transfer';
|
|
4
4
|
import { AbstractEntity } from '../../..';
|
|
5
|
+
import { StatusEntity } from '../../..';
|
|
5
6
|
import { SaleTransactionStatusEnum } from './transaction.enum.js';
|
|
6
7
|
import { SaleCustomerEntity } from '../customer';
|
|
7
8
|
import { SaleItemEntity } from '../item';
|
|
@@ -13,6 +14,7 @@ export declare class SaleTransactionEntity extends AbstractEntity {
|
|
|
13
14
|
items: SaleItemEntity[];
|
|
14
15
|
notes?: string;
|
|
15
16
|
status: SaleTransactionStatusEnum;
|
|
17
|
+
history: StatusEntity<SaleTransactionStatusEnum>[];
|
|
16
18
|
sequence: number;
|
|
17
19
|
readonly number: string;
|
|
18
20
|
readonly subtotal: number;
|