@merkaly/api 0.37.4 → 0.37.5
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 +0 -1
- package/dist/finance/withdrawal/withdrawal.entity.d.ts +2 -1
- package/dist/finance/withdrawal/withdrawal.enum.d.ts +4 -0
- package/dist/finance/withdrawal/withdrawal.enum.js +5 -0
- package/dist/integration/payment/account.d.ts +2 -0
- package/dist/order/sale/fulfillment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Schema as MongoSchema } from 'mongoose';
|
|
|
2
2
|
import { AccountUserEntity } from '../../account/user';
|
|
3
3
|
import { PaymentPixKeyTypeEnum } from '../../integration/payment';
|
|
4
4
|
import { AbstractEntity } from '../../abstract.entity.js';
|
|
5
|
-
import { FinanceWithdrawalStatusEnum } from './withdrawal.enum.js';
|
|
5
|
+
import { FinanceWithdrawalKindEnum, FinanceWithdrawalStatusEnum } from './withdrawal.enum.js';
|
|
6
6
|
export declare class FinanceWithdrawalHistoryEntity {
|
|
7
7
|
date: Date;
|
|
8
8
|
status: FinanceWithdrawalStatusEnum;
|
|
@@ -49,6 +49,7 @@ export declare class FinanceWithdrawalEntity extends AbstractEntity {
|
|
|
49
49
|
fee: number;
|
|
50
50
|
readonly netAmount: number;
|
|
51
51
|
status: FinanceWithdrawalStatusEnum;
|
|
52
|
+
kind: FinanceWithdrawalKindEnum;
|
|
52
53
|
history: FinanceWithdrawalHistoryEntity[];
|
|
53
54
|
error?: string | null;
|
|
54
55
|
requestedBy?: AccountUserEntity | string | null;
|
|
@@ -5,4 +5,8 @@ export declare enum FinanceWithdrawalStatusEnum {
|
|
|
5
5
|
FAILED = "FAILED",
|
|
6
6
|
CANCELLED = "CANCELLED"
|
|
7
7
|
}
|
|
8
|
+
export declare enum FinanceWithdrawalKindEnum {
|
|
9
|
+
WITHDRAWAL = "WITHDRAWAL",
|
|
10
|
+
DEBT = "DEBT"
|
|
11
|
+
}
|
|
8
12
|
export declare const FINANCE_WITHDRAWAL_OPEN_STATUSES: readonly FinanceWithdrawalStatusEnum[];
|
|
@@ -6,6 +6,11 @@ export var FinanceWithdrawalStatusEnum;
|
|
|
6
6
|
FinanceWithdrawalStatusEnum["FAILED"] = "FAILED";
|
|
7
7
|
FinanceWithdrawalStatusEnum["CANCELLED"] = "CANCELLED";
|
|
8
8
|
})(FinanceWithdrawalStatusEnum || (FinanceWithdrawalStatusEnum = {}));
|
|
9
|
+
export var FinanceWithdrawalKindEnum;
|
|
10
|
+
(function (FinanceWithdrawalKindEnum) {
|
|
11
|
+
FinanceWithdrawalKindEnum["WITHDRAWAL"] = "WITHDRAWAL";
|
|
12
|
+
FinanceWithdrawalKindEnum["DEBT"] = "DEBT";
|
|
13
|
+
})(FinanceWithdrawalKindEnum || (FinanceWithdrawalKindEnum = {}));
|
|
9
14
|
export const FINANCE_WITHDRAWAL_OPEN_STATUSES = [
|
|
10
15
|
FinanceWithdrawalStatusEnum.REQUESTED,
|
|
11
16
|
FinanceWithdrawalStatusEnum.PROCESSING,
|
|
@@ -60,6 +60,7 @@ export interface PaymentAccountBalance {
|
|
|
60
60
|
balance: number;
|
|
61
61
|
pending: PaymentAccountPending | null;
|
|
62
62
|
withdrawable: number;
|
|
63
|
+
withdrawableBeforeDebts: number;
|
|
63
64
|
retained: number;
|
|
64
65
|
debts: number;
|
|
65
66
|
reservedForRefunds: number;
|
|
@@ -74,6 +75,7 @@ export interface PaymentAccountTransfer {
|
|
|
74
75
|
amount: number;
|
|
75
76
|
fee: number;
|
|
76
77
|
netAmount: number;
|
|
78
|
+
debtsCollected: number;
|
|
77
79
|
status: string;
|
|
78
80
|
failReason: string | null;
|
|
79
81
|
createdAt: Date | null;
|