cecon-interfaces 2.0.4 → 2.0.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/esm2022/withdraw/entities/withdraw.entity.mjs +4 -3
- package/dist/esm2022/withdraw/enums/index.mjs +2 -1
- package/dist/esm2022/withdraw/enums/withdraw-recurrence-interval.enum.mjs +8 -0
- package/dist/esm2022/withdraw/interfaces/i-withdraw.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +10 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/withdraw/entities/withdraw.entity.d.ts +4 -3
- package/dist/withdraw/entities/withdraw.entity.js +1 -0
- package/dist/withdraw/enums/index.d.ts +1 -0
- package/dist/withdraw/enums/index.js +3 -1
- package/dist/withdraw/enums/withdraw-recurrence-interval.enum.d.ts +6 -0
- package/dist/withdraw/enums/withdraw-recurrence-interval.enum.js +10 -0
- package/dist/withdraw/interfaces/i-withdraw.d.ts +8 -2
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
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
|
+
cancelledReason: string | null;
|
|
7
8
|
completedAt: Date | null;
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
data: string | null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EWithdrawType = exports.EWithdrawStatus = exports.EPixValidation = void 0;
|
|
3
|
+
exports.EWithdrawType = exports.EWithdrawStatus = exports.EWithdrawRecurrenceInterval = exports.EPixValidation = void 0;
|
|
4
4
|
var pix_validation_enum_1 = require("./pix-validation.enum");
|
|
5
5
|
Object.defineProperty(exports, "EPixValidation", { enumerable: true, get: function () { return pix_validation_enum_1.EPixValidation; } });
|
|
6
|
+
var withdraw_recurrence_interval_enum_1 = require("./withdraw-recurrence-interval.enum");
|
|
7
|
+
Object.defineProperty(exports, "EWithdrawRecurrenceInterval", { enumerable: true, get: function () { return withdraw_recurrence_interval_enum_1.EWithdrawRecurrenceInterval; } });
|
|
6
8
|
var withdraw_status_enum_1 = require("./withdraw-status.enum");
|
|
7
9
|
Object.defineProperty(exports, "EWithdrawStatus", { enumerable: true, get: function () { return withdraw_status_enum_1.EWithdrawStatus; } });
|
|
8
10
|
var withdraw_type_enum_1 = require("./withdraw-type.enum");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EWithdrawRecurrenceInterval = void 0;
|
|
4
|
+
var EWithdrawRecurrenceInterval;
|
|
5
|
+
(function (EWithdrawRecurrenceInterval) {
|
|
6
|
+
EWithdrawRecurrenceInterval["DAILY"] = "daily";
|
|
7
|
+
EWithdrawRecurrenceInterval["WEEKLY"] = "weekly";
|
|
8
|
+
EWithdrawRecurrenceInterval["BIWEEKLY"] = "biweekly";
|
|
9
|
+
EWithdrawRecurrenceInterval["MONTHLY"] = "monthly";
|
|
10
|
+
})(EWithdrawRecurrenceInterval || (exports.EWithdrawRecurrenceInterval = EWithdrawRecurrenceInterval = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IInfo, IPixKey } from
|
|
2
|
-
import { EPixValidation, EWithdrawStatus, EWithdrawType } from
|
|
1
|
+
import { IInfo, IPixKey } from '../../general';
|
|
2
|
+
import { EPixValidation, EWithdrawRecurrenceInterval, EWithdrawStatus, EWithdrawType } from '../enums';
|
|
3
3
|
export interface IWithdrawRequest {
|
|
4
4
|
amount: number;
|
|
5
5
|
cancelledAt: Date | null;
|
|
@@ -8,6 +8,7 @@ export interface IWithdrawRequest {
|
|
|
8
8
|
data: string | null;
|
|
9
9
|
failedAt: Date | null;
|
|
10
10
|
failedReason: string | null;
|
|
11
|
+
cancelledReason: string | null;
|
|
11
12
|
id: string;
|
|
12
13
|
/**
|
|
13
14
|
* Indica se o saque é recorrente, ou seja, será realizado sempre o mesmo saque na mesma data (ex: mensal).
|
|
@@ -18,6 +19,11 @@ export interface IWithdrawRequest {
|
|
|
18
19
|
natiInfo: IInfo;
|
|
19
20
|
pixKey: IPixKey | null;
|
|
20
21
|
pixValidation: EPixValidation;
|
|
22
|
+
/**
|
|
23
|
+
* Intervalo de recorrência do saque (diário, semanal, quinzenal ou mensal).
|
|
24
|
+
* Obrigatório quando isRecurring for true.
|
|
25
|
+
*/
|
|
26
|
+
recurrenceInterval?: EWithdrawRecurrenceInterval;
|
|
21
27
|
status: EWithdrawStatus;
|
|
22
28
|
transactionId: string | null;
|
|
23
29
|
transferDocumentUrl: string | null;
|