@merkaly/api 0.32.1 → 0.33.0
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/app.schemas.d.ts +1 -0
- package/dist/finance/withdrawal/index.d.ts +2 -0
- package/dist/finance/withdrawal/index.js +1 -0
- package/dist/finance/withdrawal/withdrawal.entity.d.ts +18 -0
- package/dist/finance/withdrawal/withdrawal.enum.d.ts +8 -0
- package/dist/finance/withdrawal/withdrawal.enum.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/integration/payment/account.d.ts +8 -1
- package/package.json +2 -2
package/dist/app.schemas.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './withdrawal.enum.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AccountUserEntity } from '../../account/user';
|
|
2
|
+
import { PaymentPixKeyTypeEnum } from '../../integration/payment';
|
|
3
|
+
import { AbstractEntity } from '../../abstract.entity.js';
|
|
4
|
+
import { FinanceWithdrawalStatusEnum } from './withdrawal.enum.js';
|
|
5
|
+
export declare class FinanceWithdrawalEntity extends AbstractEntity {
|
|
6
|
+
amount: number;
|
|
7
|
+
fee: number;
|
|
8
|
+
readonly netAmount: number;
|
|
9
|
+
keyType?: PaymentPixKeyTypeEnum | null;
|
|
10
|
+
keyMasked?: string | null;
|
|
11
|
+
status: FinanceWithdrawalStatusEnum;
|
|
12
|
+
rawStatus: string;
|
|
13
|
+
failReason?: string | null;
|
|
14
|
+
requestedBy?: AccountUserEntity | string | null;
|
|
15
|
+
completedAt?: Date | null;
|
|
16
|
+
transferId: string;
|
|
17
|
+
receiptUrl?: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum FinanceWithdrawalStatusEnum {
|
|
2
|
+
REQUESTED = "REQUESTED",
|
|
3
|
+
PROCESSING = "PROCESSING",
|
|
4
|
+
DONE = "DONE",
|
|
5
|
+
FAILED = "FAILED",
|
|
6
|
+
CANCELLED = "CANCELLED"
|
|
7
|
+
}
|
|
8
|
+
export declare const FINANCE_WITHDRAWAL_OPEN_STATUSES: readonly FinanceWithdrawalStatusEnum[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var FinanceWithdrawalStatusEnum;
|
|
2
|
+
(function (FinanceWithdrawalStatusEnum) {
|
|
3
|
+
FinanceWithdrawalStatusEnum["REQUESTED"] = "REQUESTED";
|
|
4
|
+
FinanceWithdrawalStatusEnum["PROCESSING"] = "PROCESSING";
|
|
5
|
+
FinanceWithdrawalStatusEnum["DONE"] = "DONE";
|
|
6
|
+
FinanceWithdrawalStatusEnum["FAILED"] = "FAILED";
|
|
7
|
+
FinanceWithdrawalStatusEnum["CANCELLED"] = "CANCELLED";
|
|
8
|
+
})(FinanceWithdrawalStatusEnum || (FinanceWithdrawalStatusEnum = {}));
|
|
9
|
+
export const FINANCE_WITHDRAWAL_OPEN_STATUSES = [
|
|
10
|
+
FinanceWithdrawalStatusEnum.REQUESTED,
|
|
11
|
+
FinanceWithdrawalStatusEnum.PROCESSING,
|
|
12
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './dashboard/client';
|
|
|
22
22
|
export * from './finance/chargeback';
|
|
23
23
|
export * from './finance/payment';
|
|
24
24
|
export * from './finance/refund';
|
|
25
|
+
export * from './finance/withdrawal';
|
|
25
26
|
export * from './integration/supplier';
|
|
26
27
|
export * from './integration/payment';
|
|
27
28
|
export * from './inventory/catalog/brand';
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './dashboard/client/index.js';
|
|
|
13
13
|
export * from './finance/chargeback/index.js';
|
|
14
14
|
export * from './finance/payment/index.js';
|
|
15
15
|
export * from './finance/refund/index.js';
|
|
16
|
+
export * from './finance/withdrawal/index.js';
|
|
16
17
|
export * from './integration/supplier/index.js';
|
|
17
18
|
export * from './integration/payment/index.js';
|
|
18
19
|
export * from './inventory/catalog/brand/index.js';
|
|
@@ -59,11 +59,18 @@ export interface PaymentAccountBalance {
|
|
|
59
59
|
export interface PaymentAccountTransfer {
|
|
60
60
|
id: string;
|
|
61
61
|
amount: number;
|
|
62
|
-
fee: number
|
|
62
|
+
fee: number;
|
|
63
|
+
netAmount: number;
|
|
63
64
|
status: string;
|
|
64
65
|
failReason: string | null;
|
|
65
66
|
createdAt: Date | null;
|
|
66
67
|
}
|
|
68
|
+
export type PaymentWithdrawalAuthorization = {
|
|
69
|
+
status: 'APPROVED';
|
|
70
|
+
} | {
|
|
71
|
+
status: 'REFUSED';
|
|
72
|
+
refuseReason: string;
|
|
73
|
+
};
|
|
67
74
|
export interface PaymentAccountCommercialInfo {
|
|
68
75
|
personType: PaymentAccountPersonTypeEnum;
|
|
69
76
|
cpfCnpj: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript interfaces and enums for Merkaly API",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26.6.1",
|
|
33
33
|
"changelogen": "^0.6.2",
|
|
34
|
-
"oxlint": "^1.
|
|
34
|
+
"oxlint": "^1.91.0",
|
|
35
35
|
"tsx": "^4.23.0",
|
|
36
36
|
"typescript": "^7.0.2"
|
|
37
37
|
},
|