cecon-interfaces 2.0.3 → 2.0.4
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 +7 -6
- package/dist/esm2022/withdraw/interfaces/i-withdraw.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/withdraw/entities/withdraw.entity.d.ts +7 -6
- package/dist/withdraw/entities/withdraw.entity.js +4 -3
- package/dist/withdraw/interfaces/i-withdraw.d.ts +6 -5
- package/package.json +1 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { IInfo, PixKeyEntity } from
|
|
2
|
-
import { EPixValidation, 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
|
+
cancelledAt: Date | null;
|
|
7
|
+
completedAt: Date | null;
|
|
7
8
|
createdAt: Date;
|
|
8
9
|
data: string | null;
|
|
10
|
+
failedAt: Date | null;
|
|
11
|
+
failedReason: string | null;
|
|
9
12
|
id: string;
|
|
10
13
|
isRecurring: boolean;
|
|
11
14
|
liveMode: boolean;
|
|
@@ -13,8 +16,6 @@ export declare class WithDrawRequestEntity implements IWithdrawRequest {
|
|
|
13
16
|
natiInfo: IInfo;
|
|
14
17
|
pixKey: PixKeyEntity | null;
|
|
15
18
|
pixValidation: EPixValidation;
|
|
16
|
-
refusalReason: string | null;
|
|
17
|
-
refusedAt: Date | null;
|
|
18
19
|
status: EWithdrawStatus;
|
|
19
20
|
transactionId: string | null;
|
|
20
21
|
transferDocumentUrl: string | null;
|
|
@@ -6,9 +6,12 @@ var enums_1 = require("../enums");
|
|
|
6
6
|
var WithDrawRequestEntity = /** @class */ (function () {
|
|
7
7
|
function WithDrawRequestEntity(data) {
|
|
8
8
|
this.amount = 0;
|
|
9
|
-
this.
|
|
9
|
+
this.cancelledAt = null;
|
|
10
|
+
this.completedAt = null;
|
|
10
11
|
this.createdAt = new Date();
|
|
11
12
|
this.data = null;
|
|
13
|
+
this.failedAt = null;
|
|
14
|
+
this.failedReason = null;
|
|
12
15
|
this.id = '';
|
|
13
16
|
this.isRecurring = false;
|
|
14
17
|
this.liveMode = false;
|
|
@@ -16,8 +19,6 @@ var WithDrawRequestEntity = /** @class */ (function () {
|
|
|
16
19
|
this.natiInfo = new general_1.InfoEntity();
|
|
17
20
|
this.pixKey = null;
|
|
18
21
|
this.pixValidation = enums_1.EPixValidation.LOCKED;
|
|
19
|
-
this.refusalReason = null;
|
|
20
|
-
this.refusedAt = null;
|
|
21
22
|
this.status = enums_1.EWithdrawStatus.PROCESSING;
|
|
22
23
|
this.transactionId = null;
|
|
23
24
|
this.transferDocumentUrl = null;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { IInfo, IPixKey } from
|
|
2
|
-
import { EPixValidation, 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
|
+
cancelledAt: Date | null;
|
|
6
|
+
completedAt: Date | null;
|
|
6
7
|
createdAt: Date;
|
|
7
8
|
data: string | null;
|
|
9
|
+
failedAt: Date | null;
|
|
10
|
+
failedReason: string | null;
|
|
8
11
|
id: string;
|
|
9
12
|
/**
|
|
10
13
|
* Indica se o saque é recorrente, ou seja, será realizado sempre o mesmo saque na mesma data (ex: mensal).
|
|
@@ -15,8 +18,6 @@ export interface IWithdrawRequest {
|
|
|
15
18
|
natiInfo: IInfo;
|
|
16
19
|
pixKey: IPixKey | null;
|
|
17
20
|
pixValidation: EPixValidation;
|
|
18
|
-
refusalReason: string | null;
|
|
19
|
-
refusedAt: Date | null;
|
|
20
21
|
status: EWithdrawStatus;
|
|
21
22
|
transactionId: string | null;
|
|
22
23
|
transferDocumentUrl: string | null;
|