cecon-interfaces 1.9.94 → 1.9.96
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/esm2022/withdraw/entities/withdraw.entity.mjs +6 -3
- package/dist/esm2022/withdraw/enums/index.mjs +4 -3
- package/dist/esm2022/withdraw/enums/pix-validation.enum.mjs +7 -0
- package/dist/esm2022/withdraw/enums/withdraw-status.enum.mjs +8 -0
- package/dist/esm2022/withdraw/enums/withdraw-type.enum.mjs +7 -0
- package/dist/esm2022/withdraw/interfaces/i-withdraw.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +11 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/withdraw/entities/withdraw.entity.d.ts +6 -3
- package/dist/withdraw/entities/withdraw.entity.js +3 -0
- package/dist/withdraw/enums/index.d.ts +3 -2
- package/dist/withdraw/enums/index.js +7 -5
- package/dist/withdraw/enums/pix-validation.enum.d.ts +5 -0
- package/dist/withdraw/enums/pix-validation.enum.js +9 -0
- package/dist/withdraw/interfaces/i-withdraw.d.ts +6 -3
- package/package.json +1 -1
- package/dist/esm2022/withdraw/enums/withdraw-status.mjs +0 -8
- package/dist/esm2022/withdraw/enums/withdraw-type.mjs +0 -7
- /package/dist/withdraw/enums/{withdraw-status.d.ts → withdraw-status.enum.d.ts} +0 -0
- /package/dist/withdraw/enums/{withdraw-status.js → withdraw-status.enum.js} +0 -0
- /package/dist/withdraw/enums/{withdraw-type.d.ts → withdraw-type.enum.d.ts} +0 -0
- /package/dist/withdraw/enums/{withdraw-type.js → withdraw-type.enum.js} +0 -0
@@ -1,15 +1,17 @@
|
|
1
|
-
import { IInfo, PixKeyEntity } from
|
2
|
-
import { EWithdrawStatus, EWithdrawType } from
|
3
|
-
import { IWithdrawRequest } from
|
1
|
+
import { IInfo, PixKeyEntity } from '../../general';
|
2
|
+
import { EPixValidation, EWithdrawStatus, EWithdrawType } from '../enums';
|
3
|
+
import { IWithdrawRequest } from '../interfaces/i-withdraw';
|
4
4
|
export declare class WithDrawRequestEntity implements IWithdrawRequest {
|
5
5
|
amount: number;
|
6
6
|
approvedAt: Date | null;
|
7
7
|
createdAt: Date;
|
8
|
+
data: string | null;
|
8
9
|
id: string;
|
9
10
|
liveMode: boolean;
|
10
11
|
name: string;
|
11
12
|
natiInfo: IInfo;
|
12
13
|
pixKey: PixKeyEntity | null;
|
14
|
+
pixValidation: EPixValidation;
|
13
15
|
refusalReason: string | null;
|
14
16
|
refusedAt: Date | null;
|
15
17
|
status: EWithdrawStatus;
|
@@ -17,5 +19,6 @@ export declare class WithDrawRequestEntity implements IWithdrawRequest {
|
|
17
19
|
transferDocumentUrl: string | null;
|
18
20
|
type: EWithdrawType;
|
19
21
|
updatedAt: Date;
|
22
|
+
withdrawAt: Date;
|
20
23
|
constructor(data?: Partial<WithDrawRequestEntity>);
|
21
24
|
}
|
@@ -8,11 +8,13 @@ var WithDrawRequestEntity = /** @class */ (function () {
|
|
8
8
|
this.amount = 0;
|
9
9
|
this.approvedAt = null;
|
10
10
|
this.createdAt = new Date();
|
11
|
+
this.data = null;
|
11
12
|
this.id = '';
|
12
13
|
this.liveMode = false;
|
13
14
|
this.name = '';
|
14
15
|
this.natiInfo = new general_1.InfoEntity();
|
15
16
|
this.pixKey = null;
|
17
|
+
this.pixValidation = enums_1.EPixValidation.LOCKED;
|
16
18
|
this.refusalReason = null;
|
17
19
|
this.refusedAt = null;
|
18
20
|
this.status = enums_1.EWithdrawStatus.PROCESSING;
|
@@ -20,6 +22,7 @@ var WithDrawRequestEntity = /** @class */ (function () {
|
|
20
22
|
this.transferDocumentUrl = null;
|
21
23
|
this.type = enums_1.EWithdrawType.MANUAL;
|
22
24
|
this.updatedAt = new Date();
|
25
|
+
this.withdrawAt = new Date();
|
23
26
|
if (data) {
|
24
27
|
for (var key in data) {
|
25
28
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,2 +1,3 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { EPixValidation } from './pix-validation.enum';
|
2
|
+
export { EWithdrawStatus } from './withdraw-status.enum';
|
3
|
+
export { EWithdrawType } from './withdraw-type.enum';
|
@@ -1,7 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EWithdrawType = exports.EWithdrawStatus = void 0;
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "
|
6
|
-
var
|
7
|
-
Object.defineProperty(exports, "
|
3
|
+
exports.EWithdrawType = exports.EWithdrawStatus = exports.EPixValidation = void 0;
|
4
|
+
var pix_validation_enum_1 = require("./pix-validation.enum");
|
5
|
+
Object.defineProperty(exports, "EPixValidation", { enumerable: true, get: function () { return pix_validation_enum_1.EPixValidation; } });
|
6
|
+
var withdraw_status_enum_1 = require("./withdraw-status.enum");
|
7
|
+
Object.defineProperty(exports, "EWithdrawStatus", { enumerable: true, get: function () { return withdraw_status_enum_1.EWithdrawStatus; } });
|
8
|
+
var withdraw_type_enum_1 = require("./withdraw-type.enum");
|
9
|
+
Object.defineProperty(exports, "EWithdrawType", { enumerable: true, get: function () { return withdraw_type_enum_1.EWithdrawType; } });
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPixValidation = void 0;
|
4
|
+
var EPixValidation;
|
5
|
+
(function (EPixValidation) {
|
6
|
+
EPixValidation["LOCKED"] = "locked";
|
7
|
+
EPixValidation["OPEN"] = "open";
|
8
|
+
EPixValidation["INTERNAL"] = "internal";
|
9
|
+
})(EPixValidation || (exports.EPixValidation = EPixValidation = {}));
|
@@ -1,19 +1,22 @@
|
|
1
|
-
import { IInfo, IPixKey } from
|
2
|
-
import { EWithdrawStatus, EWithdrawType } from
|
1
|
+
import { IInfo, IPixKey } from "../../general";
|
2
|
+
import { EPixValidation, EWithdrawStatus, EWithdrawType } from "../enums";
|
3
3
|
export interface IWithdrawRequest {
|
4
4
|
amount: number;
|
5
5
|
approvedAt: Date | null;
|
6
6
|
createdAt: Date;
|
7
|
+
data: string | null;
|
7
8
|
id: string;
|
8
9
|
liveMode: boolean;
|
9
10
|
name: string;
|
10
11
|
natiInfo: IInfo;
|
11
12
|
pixKey: IPixKey | null;
|
13
|
+
pixValidation: EPixValidation;
|
12
14
|
refusalReason: string | null;
|
13
15
|
refusedAt: Date | null;
|
14
16
|
status: EWithdrawStatus;
|
15
17
|
transactionId: string | null;
|
16
18
|
transferDocumentUrl: string | null;
|
17
|
-
updatedAt: Date;
|
18
19
|
type: EWithdrawType;
|
20
|
+
updatedAt: Date;
|
21
|
+
withdrawAt: Date;
|
19
22
|
}
|
package/package.json
CHANGED
@@ -1,8 +0,0 @@
|
|
1
|
-
export var EWithdrawStatus;
|
2
|
-
(function (EWithdrawStatus) {
|
3
|
-
EWithdrawStatus["PROCESSING"] = "PROCESSING";
|
4
|
-
EWithdrawStatus["COMPLETED"] = "COMPLETED";
|
5
|
-
EWithdrawStatus["FAILED"] = "FAILED";
|
6
|
-
EWithdrawStatus["CANCELLED"] = "CANCELLED";
|
7
|
-
})(EWithdrawStatus || (EWithdrawStatus = {}));
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctc3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3dpdGhkcmF3L2VudW1zL3dpdGhkcmF3LXN0YXR1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxlQUtYO0FBTEQsV0FBWSxlQUFlO0lBQ3pCLDRDQUF5QixDQUFBO0lBQ3pCLDBDQUF1QixDQUFBO0lBQ3ZCLG9DQUFpQixDQUFBO0lBQ2pCLDBDQUF1QixDQUFBO0FBQ3pCLENBQUMsRUFMVyxlQUFlLEtBQWYsZUFBZSxRQUsxQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEVXaXRoZHJhd1N0YXR1cyB7XHJcbiAgUFJPQ0VTU0lORyA9ICdQUk9DRVNTSU5HJyxcclxuICBDT01QTEVURUQgPSAnQ09NUExFVEVEJyxcclxuICBGQUlMRUQgPSAnRkFJTEVEJyxcclxuICBDQU5DRUxMRUQgPSAnQ0FOQ0VMTEVEJyxcclxufVxyXG4iXX0=
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export var EWithdrawType;
|
2
|
-
(function (EWithdrawType) {
|
3
|
-
EWithdrawType["MANUAL"] = "MANUAL";
|
4
|
-
EWithdrawType["AUTOMATIC"] = "AUTOMATIC";
|
5
|
-
EWithdrawType["SCHEDULED"] = "SCHEDULED";
|
6
|
-
})(EWithdrawType || (EWithdrawType = {}));
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy93aXRoZHJhdy9lbnVtcy93aXRoZHJhdy10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDdkIsa0NBQWlCLENBQUE7SUFDakIsd0NBQXVCLENBQUE7SUFDdkIsd0NBQXVCLENBQUE7QUFDekIsQ0FBQyxFQUpXLGFBQWEsS0FBYixhQUFhLFFBSXhCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRVdpdGhkcmF3VHlwZSB7XHJcbiAgTUFOVUFMID0gJ01BTlVBTCcsXHJcbiAgQVVUT01BVElDID0gJ0FVVE9NQVRJQycsXHJcbiAgU0NIRURVTEVEID0gJ1NDSEVEVUxFRCcsXHJcbn1cclxuIl19
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|