cecon-interfaces 1.2.80 → 1.2.81
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/enums/desenfila-from.enum.mjs +8 -0
- package/dist/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/transaction/entities/transaction.entity.mjs +13 -9
- package/dist/esm2022/transaction/enums/operation-type.enum.mjs +2 -1
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/esm2022/withdraw/entities/index.mjs +2 -0
- package/dist/esm2022/withdraw/entities/withdraw-request.entity.mjs +27 -0
- package/dist/esm2022/withdraw/enums/index.mjs +2 -0
- package/dist/esm2022/withdraw/enums/withdraw-request-status.mjs +7 -0
- package/dist/esm2022/withdraw/index.mjs +4 -0
- package/dist/esm2022/withdraw/interfaces/i-withdraw-request.mjs +2 -0
- package/dist/esm2022/withdraw/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +54 -9
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/desenfila-from.enum.d.ts +6 -0
- package/dist/general/enums/desenfila-from.enum.js +10 -0
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/transaction/entities/transaction.entity.d.ts +9 -7
- package/dist/transaction/entities/transaction.entity.js +12 -8
- package/dist/transaction/enums/operation-type.enum.d.ts +1 -0
- package/dist/transaction/enums/operation-type.enum.js +1 -0
- package/dist/transaction/interfaces/i-transaction.d.ts +8 -6
- package/dist/withdraw/entities/index.d.ts +1 -0
- package/dist/withdraw/entities/index.js +5 -0
- package/dist/withdraw/entities/withdraw-request.entity.d.ts +16 -0
- package/dist/withdraw/entities/withdraw-request.entity.js +31 -0
- package/dist/withdraw/enums/index.d.ts +1 -0
- package/dist/withdraw/enums/index.js +5 -0
- package/dist/withdraw/enums/withdraw-request-status.d.ts +5 -0
- package/dist/withdraw/enums/withdraw-request-status.js +9 -0
- package/dist/withdraw/index.d.ts +3 -0
- package/dist/withdraw/index.js +19 -0
- package/dist/withdraw/interfaces/i-withdraw-request.d.ts +14 -0
- package/dist/withdraw/interfaces/i-withdraw-request.js +2 -0
- package/dist/withdraw/interfaces/index.d.ts +1 -0
- package/dist/withdraw/interfaces/index.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EDesenfilaFrom = void 0;
|
4
|
+
var EDesenfilaFrom;
|
5
|
+
(function (EDesenfilaFrom) {
|
6
|
+
EDesenfilaFrom["NATI"] = "NATI";
|
7
|
+
EDesenfilaFrom["AUTOMATION"] = "AUTOMATION";
|
8
|
+
EDesenfilaFrom["NATIPAY"] = "NATIPAY";
|
9
|
+
EDesenfilaFrom["MOBYO"] = "MOBYO";
|
10
|
+
})(EDesenfilaFrom || (exports.EDesenfilaFrom = EDesenfilaFrom = {}));
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export { EFcmSkill } from '../../fcm-token-message/enums/skill.enum';
|
2
2
|
export { EBankSlipStatus } from './bank-slip-status.enum';
|
3
3
|
export { EBooleanString } from './boolean-string.enum';
|
4
|
+
export { EDesenfilaFrom } from './desenfila-from.enum';
|
4
5
|
export { EDocType } from './doc-type.enum';
|
5
6
|
export { EDiscountType } from './e-discount-type.enum';
|
6
7
|
export { EFiscalDocModelCode } from './fiscal-doc-model-code.enum';
|
@@ -1,12 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.ELeadOrigin = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
3
|
+
exports.ESponsorshipValues = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.ELeadOrigin = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
4
4
|
var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
|
5
5
|
Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
|
6
6
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
7
7
|
Object.defineProperty(exports, "EBankSlipStatus", { enumerable: true, get: function () { return bank_slip_status_enum_1.EBankSlipStatus; } });
|
8
8
|
var boolean_string_enum_1 = require("./boolean-string.enum");
|
9
9
|
Object.defineProperty(exports, "EBooleanString", { enumerable: true, get: function () { return boolean_string_enum_1.EBooleanString; } });
|
10
|
+
var desenfila_from_enum_1 = require("./desenfila-from.enum");
|
11
|
+
Object.defineProperty(exports, "EDesenfilaFrom", { enumerable: true, get: function () { return desenfila_from_enum_1.EDesenfilaFrom; } });
|
10
12
|
var doc_type_enum_1 = require("./doc-type.enum");
|
11
13
|
Object.defineProperty(exports, "EDocType", { enumerable: true, get: function () { return doc_type_enum_1.EDocType; } });
|
12
14
|
var e_discount_type_enum_1 = require("./e-discount-type.enum");
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { EDesenfilaFrom } from '../../general';
|
1
2
|
import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionStatus } from '../enums';
|
2
3
|
import { ITransaction } from '../interfaces';
|
3
4
|
import { FeeDetailEntity } from './fee-detail.entity';
|
@@ -5,34 +6,35 @@ import { TransactionBalanceEntity } from './transaction-balance.entity';
|
|
5
6
|
import { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
|
6
7
|
import { TransactionTotalEntity } from './transaction-total.entity';
|
7
8
|
export declare class TransactionEntity implements ITransaction {
|
8
|
-
|
9
|
-
referenceId: string;
|
9
|
+
balance: TransactionBalanceEntity | null;
|
10
10
|
card: {};
|
11
|
-
merchantId: string;
|
12
11
|
containerId: string;
|
12
|
+
createdAt: Date;
|
13
13
|
dateApproved: Date | null;
|
14
|
-
dateOfExpiration: Date | null;
|
15
14
|
dateCreated: Date;
|
16
15
|
dateLastUpdated: Date;
|
16
|
+
dateOfExpiration: Date | null;
|
17
17
|
description: string;
|
18
18
|
externalOrderReference: string;
|
19
19
|
feeDetails: FeeDetailEntity[];
|
20
|
+
from: EDesenfilaFrom;
|
21
|
+
id: string;
|
20
22
|
installments: number;
|
21
23
|
liveMode: boolean;
|
24
|
+
merchantId: string;
|
22
25
|
moneyReleaseDate: Date | null;
|
23
26
|
moneyReleaseStatus: EReleaseStatus;
|
24
27
|
operationType: EOperationType;
|
25
28
|
paymentMethod: TransactionPaymentMethodEntity | null;
|
26
29
|
paymentMethodId: EPaymentMethodId;
|
27
30
|
posId: string;
|
31
|
+
referenceId: string;
|
28
32
|
status: EMpStatus;
|
29
33
|
statusDetail: EMpStatusDetail;
|
34
|
+
total: TransactionTotalEntity | null;
|
30
35
|
transactionAmount: number;
|
31
36
|
transactionAmountRefunded: number;
|
32
|
-
total: TransactionTotalEntity | null;
|
33
|
-
balance: TransactionBalanceEntity | null;
|
34
37
|
transactionStatus: ETransactionStatus;
|
35
|
-
createdAt: Date;
|
36
38
|
updatedAt: Date;
|
37
39
|
constructor(data?: Partial<TransactionEntity>);
|
38
40
|
}
|
@@ -1,38 +1,42 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TransactionEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
4
5
|
var enums_1 = require("../enums");
|
5
6
|
var TransactionEntity = /** @class */ (function () {
|
6
|
-
// #
|
7
|
+
// #endregion Properties (30)
|
8
|
+
// #region Constructors (1)
|
7
9
|
function TransactionEntity(data) {
|
8
|
-
|
9
|
-
this.
|
10
|
+
// #region Properties (30)
|
11
|
+
this.balance = null;
|
10
12
|
this.card = {};
|
11
|
-
this.merchantId = '';
|
12
13
|
this.containerId = '';
|
14
|
+
this.createdAt = new Date();
|
13
15
|
this.dateApproved = null;
|
14
|
-
this.dateOfExpiration = null;
|
15
16
|
this.dateCreated = new Date();
|
16
17
|
this.dateLastUpdated = new Date();
|
18
|
+
this.dateOfExpiration = null;
|
17
19
|
this.description = '';
|
18
20
|
this.externalOrderReference = '';
|
19
21
|
this.feeDetails = [];
|
22
|
+
this.from = general_1.EDesenfilaFrom.NATIPAY;
|
23
|
+
this.id = '';
|
20
24
|
this.installments = 0;
|
21
25
|
this.liveMode = true;
|
26
|
+
this.merchantId = '';
|
22
27
|
this.moneyReleaseDate = null;
|
23
28
|
this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
|
24
29
|
this.operationType = enums_1.EOperationType.REGULAR_PAYMENT;
|
25
30
|
this.paymentMethod = null;
|
26
31
|
this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
|
27
32
|
this.posId = '';
|
33
|
+
this.referenceId = '';
|
28
34
|
this.status = enums_1.EMpStatus.PENDING;
|
29
35
|
this.statusDetail = enums_1.EMpStatusDetail.ACCREDITED;
|
36
|
+
this.total = null;
|
30
37
|
this.transactionAmount = 0;
|
31
38
|
this.transactionAmountRefunded = 0;
|
32
|
-
this.total = null;
|
33
|
-
this.balance = null;
|
34
39
|
this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
|
35
|
-
this.createdAt = new Date();
|
36
40
|
this.updatedAt = new Date();
|
37
41
|
if (data) {
|
38
42
|
for (var key in data) {
|
@@ -2,6 +2,7 @@ export declare enum EOperationType {
|
|
2
2
|
INVESTMENT = "investment",
|
3
3
|
REGULAR_PAYMENT = "regular_payment",
|
4
4
|
MONEY_TRANSFER = "money_transfer",
|
5
|
+
GOLIVE = "go_live",
|
5
6
|
RECURRING_PAYMENT = "recurring_payment",
|
6
7
|
ACCOUNT_FUND = "account_fund",
|
7
8
|
PAYMENT_ADDITION = "payment_addition",
|
@@ -6,6 +6,7 @@ var EOperationType;
|
|
6
6
|
EOperationType["INVESTMENT"] = "investment";
|
7
7
|
EOperationType["REGULAR_PAYMENT"] = "regular_payment";
|
8
8
|
EOperationType["MONEY_TRANSFER"] = "money_transfer";
|
9
|
+
EOperationType["GOLIVE"] = "go_live";
|
9
10
|
EOperationType["RECURRING_PAYMENT"] = "recurring_payment";
|
10
11
|
EOperationType["ACCOUNT_FUND"] = "account_fund";
|
11
12
|
EOperationType["PAYMENT_ADDITION"] = "payment_addition";
|
@@ -1,14 +1,14 @@
|
|
1
|
+
import { EDesenfilaFrom } from '../../general';
|
1
2
|
import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionStatus } from '../enums';
|
2
3
|
import { ITransactionBalance } from './i-balance';
|
3
4
|
import { IFeeDetail } from './i-fee-detail';
|
4
5
|
import { ITransactionPaymentMethod } from './i-payment-method';
|
5
6
|
import { ITransactionTotal } from './i-total';
|
6
7
|
export interface ITransaction {
|
7
|
-
|
8
|
-
referenceId: string;
|
8
|
+
balance: ITransactionBalance | null;
|
9
9
|
card: {};
|
10
|
-
merchantId: string;
|
11
10
|
containerId: string;
|
11
|
+
createdAt: Date;
|
12
12
|
dateApproved: Date | null;
|
13
13
|
dateCreated: Date;
|
14
14
|
dateLastUpdated: Date;
|
@@ -16,21 +16,23 @@ export interface ITransaction {
|
|
16
16
|
description: string;
|
17
17
|
externalOrderReference: string;
|
18
18
|
feeDetails: IFeeDetail[];
|
19
|
+
from: EDesenfilaFrom;
|
20
|
+
id: string;
|
19
21
|
installments: number;
|
20
22
|
liveMode: boolean;
|
23
|
+
merchantId: string;
|
21
24
|
moneyReleaseDate: Date | null;
|
22
25
|
moneyReleaseStatus: EReleaseStatus;
|
23
26
|
operationType: EOperationType;
|
24
27
|
paymentMethod: ITransactionPaymentMethod | null;
|
25
28
|
paymentMethodId: EPaymentMethodId;
|
26
29
|
posId: string;
|
30
|
+
referenceId: string;
|
27
31
|
status: EMpStatus;
|
28
32
|
statusDetail: EMpStatusDetail;
|
33
|
+
total: ITransactionTotal | null;
|
29
34
|
transactionAmount: number;
|
30
35
|
transactionAmountRefunded: number;
|
31
|
-
total: ITransactionTotal | null;
|
32
|
-
balance: ITransactionBalance | null;
|
33
36
|
transactionStatus: ETransactionStatus;
|
34
|
-
createdAt: Date;
|
35
37
|
updatedAt: Date;
|
36
38
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { WithDrawRequestEntity } from './withdraw-request.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WithDrawRequestEntity = void 0;
|
4
|
+
var withdraw_request_entity_1 = require("./withdraw-request.entity");
|
5
|
+
Object.defineProperty(exports, "WithDrawRequestEntity", { enumerable: true, get: function () { return withdraw_request_entity_1.WithDrawRequestEntity; } });
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { EWithdrawRequestStatus } from '../enums';
|
2
|
+
import { IWithdrawRequest } from '../interfaces/i-withdraw-request';
|
3
|
+
export declare class WithDrawRequestEntity implements IWithdrawRequest {
|
4
|
+
amount: number;
|
5
|
+
aprovedAt: Date | null;
|
6
|
+
containerId: string;
|
7
|
+
createdAt: Date;
|
8
|
+
id: string;
|
9
|
+
liveMode: boolean;
|
10
|
+
merchantId: string;
|
11
|
+
status: EWithdrawRequestStatus;
|
12
|
+
transactionId: string | null;
|
13
|
+
transferDocumentUrl: string | null;
|
14
|
+
updatedAt: Date;
|
15
|
+
constructor(data?: Partial<WithDrawRequestEntity>);
|
16
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WithDrawRequestEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var WithDrawRequestEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (11)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function WithDrawRequestEntity(data) {
|
9
|
+
// #region Properties (11)
|
10
|
+
this.amount = 0;
|
11
|
+
this.aprovedAt = null;
|
12
|
+
this.containerId = '';
|
13
|
+
this.createdAt = new Date();
|
14
|
+
this.id = '';
|
15
|
+
this.liveMode = false;
|
16
|
+
this.merchantId = '';
|
17
|
+
this.status = enums_1.EWithdrawRequestStatus.PENDING;
|
18
|
+
this.transactionId = null;
|
19
|
+
this.transferDocumentUrl = null;
|
20
|
+
this.updatedAt = new Date();
|
21
|
+
if (data) {
|
22
|
+
for (var key in data) {
|
23
|
+
if (data.hasOwnProperty(key) && key in this) {
|
24
|
+
this[key] = data[key];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return WithDrawRequestEntity;
|
30
|
+
}());
|
31
|
+
exports.WithDrawRequestEntity = WithDrawRequestEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { EWithdrawRequestStatus } from './withdraw-request-status';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EWithdrawRequestStatus = void 0;
|
4
|
+
var withdraw_request_status_1 = require("./withdraw-request-status");
|
5
|
+
Object.defineProperty(exports, "EWithdrawRequestStatus", { enumerable: true, get: function () { return withdraw_request_status_1.EWithdrawRequestStatus; } });
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EWithdrawRequestStatus = void 0;
|
4
|
+
var EWithdrawRequestStatus;
|
5
|
+
(function (EWithdrawRequestStatus) {
|
6
|
+
EWithdrawRequestStatus["PENDING"] = "pending";
|
7
|
+
EWithdrawRequestStatus["APPROVED"] = "approved";
|
8
|
+
EWithdrawRequestStatus["REFUSED"] = "refused";
|
9
|
+
})(EWithdrawRequestStatus || (exports.EWithdrawRequestStatus = EWithdrawRequestStatus = {}));
|
@@ -0,0 +1,19 @@
|
|
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("./enums"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
19
|
+
__exportStar(require("./entities"), exports);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { EWithdrawRequestStatus } from '../enums';
|
2
|
+
export interface IWithdrawRequest {
|
3
|
+
amount: number;
|
4
|
+
containerId: string;
|
5
|
+
createdAt: Date;
|
6
|
+
aprovedAt: Date | null;
|
7
|
+
id: string;
|
8
|
+
liveMode: boolean;
|
9
|
+
merchantId: string;
|
10
|
+
status: EWithdrawRequestStatus;
|
11
|
+
transactionId: string | null;
|
12
|
+
transferDocumentUrl: string | null;
|
13
|
+
updatedAt: Date;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IWithdrawRequest } from './i-withdraw-request';
|