cecon-interfaces 1.3.5 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/transfer-request/entities/index.mjs +2 -0
- package/dist/esm2022/transfer-request/entities/withdraw-request.entity.mjs +28 -0
- package/dist/esm2022/transfer-request/index.mjs +3 -0
- package/dist/esm2022/transfer-request/interfaces/i-withdraw-request.mjs +2 -0
- package/dist/esm2022/transfer-request/interfaces/index.mjs +2 -0
- package/dist/esm2022/withdraw/interfaces/i-withdraw-request.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +35 -8
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/transfer-request/entities/index.d.ts +1 -0
- package/dist/transfer-request/entities/index.js +5 -0
- package/dist/transfer-request/entities/withdraw-request.entity.d.ts +20 -0
- package/dist/transfer-request/entities/withdraw-request.entity.js +32 -0
- package/dist/transfer-request/index.d.ts +2 -0
- package/dist/transfer-request/index.js +18 -0
- package/dist/transfer-request/interfaces/i-withdraw-request.d.ts +18 -0
- package/dist/transfer-request/interfaces/i-withdraw-request.js +2 -0
- package/dist/transfer-request/interfaces/index.d.ts +1 -0
- package/dist/transfer-request/interfaces/index.js +2 -0
- package/dist/withdraw/interfaces/i-withdraw-request.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -45,6 +45,7 @@ export * from './subscription-customer';
|
|
45
45
|
export * from './token';
|
46
46
|
export * from './token-jwt';
|
47
47
|
export * from './transaction';
|
48
|
+
export * from './transfer-request';
|
48
49
|
export * from './verifier-token';
|
49
50
|
export * from './viacep';
|
50
51
|
export * from './voucher';
|
package/dist/index.js
CHANGED
@@ -61,6 +61,7 @@ __exportStar(require("./subscription-customer"), exports);
|
|
61
61
|
__exportStar(require("./token"), exports);
|
62
62
|
__exportStar(require("./token-jwt"), exports);
|
63
63
|
__exportStar(require("./transaction"), exports);
|
64
|
+
__exportStar(require("./transfer-request"), exports);
|
64
65
|
__exportStar(require("./verifier-token"), exports);
|
65
66
|
__exportStar(require("./viacep"), exports);
|
66
67
|
__exportStar(require("./voucher"), exports);
|
package/dist/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export { TransferRequestEntity } from './withdraw-request.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TransferRequestEntity = void 0;
|
4
|
+
var withdraw_request_entity_1 = require("./withdraw-request.entity");
|
5
|
+
Object.defineProperty(exports, "TransferRequestEntity", { enumerable: true, get: function () { return withdraw_request_entity_1.TransferRequestEntity; } });
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { IInvoicePix } from '../../invoice';
|
2
|
+
import { EWithdrawRequestStatus } from '../../withdraw/enums';
|
3
|
+
import { ITransferRequest } from '../interfaces/i-withdraw-request';
|
4
|
+
export declare class TransferRequestEntity implements ITransferRequest {
|
5
|
+
amount: number;
|
6
|
+
aprovedAt: Date | null;
|
7
|
+
containerId: string;
|
8
|
+
merchantId: string;
|
9
|
+
createdAt: Date;
|
10
|
+
id: string;
|
11
|
+
liveMode: boolean;
|
12
|
+
status: EWithdrawRequestStatus;
|
13
|
+
transactionId: string | null;
|
14
|
+
transferDocumentUrl: string | null;
|
15
|
+
updatedAt: Date;
|
16
|
+
transactionReferenceId: string | null;
|
17
|
+
naiRefId: string;
|
18
|
+
pix: IInvoicePix | null;
|
19
|
+
constructor(data?: Partial<TransferRequestEntity>);
|
20
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TransferRequestEntity = void 0;
|
4
|
+
var enums_1 = require("../../withdraw/enums");
|
5
|
+
var TransferRequestEntity = /** @class */ (function () {
|
6
|
+
function TransferRequestEntity(data) {
|
7
|
+
// #region Properties (11)
|
8
|
+
this.amount = 0;
|
9
|
+
this.aprovedAt = null;
|
10
|
+
this.containerId = '';
|
11
|
+
this.merchantId = '';
|
12
|
+
this.createdAt = new Date();
|
13
|
+
this.id = '';
|
14
|
+
this.liveMode = false;
|
15
|
+
this.status = enums_1.EWithdrawRequestStatus.PENDING;
|
16
|
+
this.transactionId = null;
|
17
|
+
this.transferDocumentUrl = null;
|
18
|
+
this.updatedAt = new Date();
|
19
|
+
this.transactionReferenceId = null;
|
20
|
+
this.naiRefId = '';
|
21
|
+
this.pix = null;
|
22
|
+
if (data) {
|
23
|
+
for (var key in data) {
|
24
|
+
if (data.hasOwnProperty(key) && key in this) {
|
25
|
+
this[key] = data[key];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
return TransferRequestEntity;
|
31
|
+
}());
|
32
|
+
exports.TransferRequestEntity = TransferRequestEntity;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./interfaces"), exports);
|
18
|
+
__exportStar(require("./entities"), exports);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { IInvoicePix } from '../../invoice';
|
2
|
+
import { EWithdrawRequestStatus } from '../../withdraw/enums';
|
3
|
+
export interface ITransferRequest {
|
4
|
+
id: string;
|
5
|
+
createdAt: Date;
|
6
|
+
liveMode: boolean;
|
7
|
+
containerId: string;
|
8
|
+
merchantId: string;
|
9
|
+
naiRefId: string;
|
10
|
+
amount: number;
|
11
|
+
aprovedAt: Date | null;
|
12
|
+
transactionId: string | null;
|
13
|
+
transactionReferenceId: string | null;
|
14
|
+
status: EWithdrawRequestStatus;
|
15
|
+
transferDocumentUrl: string | null;
|
16
|
+
updatedAt: Date;
|
17
|
+
pix: IInvoicePix | null;
|
18
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ITransferRequest } from './i-withdraw-request';
|
@@ -2,11 +2,11 @@ import { EWithdrawRequestStatus } from '../enums';
|
|
2
2
|
export interface IWithdrawRequest {
|
3
3
|
amount: number;
|
4
4
|
containerId: string;
|
5
|
+
merchantId: string;
|
5
6
|
createdAt: Date;
|
6
7
|
aprovedAt: Date | null;
|
7
8
|
id: string;
|
8
9
|
liveMode: boolean;
|
9
|
-
merchantId: string;
|
10
10
|
status: EWithdrawRequestStatus;
|
11
11
|
transactionId: string | null;
|
12
12
|
transferDocumentUrl: string | null;
|