cecon-interfaces 1.2.95 → 1.2.97
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/sponsor/entities/index.mjs +2 -0
- package/dist/esm2022/sponsor/entities/sponsor.entity.mjs +26 -0
- package/dist/esm2022/sponsor/enums/index.mjs +2 -0
- package/dist/esm2022/sponsor/enums/sponsor-identifier.enum.mjs +6 -0
- package/dist/esm2022/sponsor/index.mjs +4 -0
- package/dist/esm2022/sponsor/interfaces/i-sponsor-fee.mjs +2 -0
- package/dist/esm2022/sponsor/interfaces/i-sponsor.mjs +2 -0
- package/dist/esm2022/sponsor/interfaces/index.mjs +2 -0
- package/dist/esm2022/transaction/enums/operation-type.enum.mjs +8 -2
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +39 -2
- 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/sponsor/entities/index.d.ts +1 -0
- package/dist/sponsor/entities/index.js +5 -0
- package/dist/sponsor/entities/sponsor.entity.d.ts +19 -0
- package/dist/sponsor/entities/sponsor.entity.js +30 -0
- package/dist/sponsor/enums/index.d.ts +1 -0
- package/dist/sponsor/enums/index.js +5 -0
- package/dist/sponsor/enums/sponsor-identifier.enum.d.ts +4 -0
- package/dist/sponsor/enums/sponsor-identifier.enum.js +8 -0
- package/dist/sponsor/index.d.ts +3 -0
- package/dist/sponsor/index.js +19 -0
- package/dist/sponsor/interfaces/i-sponsor-fee.d.ts +7 -0
- package/dist/sponsor/interfaces/i-sponsor-fee.js +2 -0
- package/dist/sponsor/interfaces/i-sponsor.d.ts +17 -0
- package/dist/sponsor/interfaces/i-sponsor.js +2 -0
- package/dist/sponsor/interfaces/index.d.ts +2 -0
- package/dist/sponsor/interfaces/index.js +2 -0
- package/dist/transaction/enums/operation-type.enum.d.ts +6 -2
- package/dist/transaction/enums/operation-type.enum.js +7 -1
- package/dist/transaction/interfaces/i-transaction.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export { SponsorEntity } from './sponsor.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SponsorEntity = void 0;
|
4
|
+
var sponsor_entity_1 = require("./sponsor.entity");
|
5
|
+
Object.defineProperty(exports, "SponsorEntity", { enumerable: true, get: function () { return sponsor_entity_1.SponsorEntity; } });
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { EDesenfilaFrom, EDocType } from '../../general';
|
2
|
+
import { ISponsor } from '../interfaces/i-sponsor';
|
3
|
+
import { ISponsorFee } from '../interfaces/i-sponsor-fee';
|
4
|
+
export declare class SponsorEntity implements ISponsor {
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
doc: string;
|
8
|
+
createdAt: Date;
|
9
|
+
fees: ISponsorFee[];
|
10
|
+
docType: EDocType;
|
11
|
+
desenfilaRefId: string | null;
|
12
|
+
natiRefId: string | null;
|
13
|
+
mobyoRefId: string | null;
|
14
|
+
from: EDesenfilaFrom;
|
15
|
+
internationalCode: string;
|
16
|
+
phoneNumer: string;
|
17
|
+
email: string;
|
18
|
+
constructor(data?: Partial<SponsorEntity>);
|
19
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SponsorEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var SponsorEntity = /** @class */ (function () {
|
6
|
+
function SponsorEntity(data) {
|
7
|
+
this.id = '';
|
8
|
+
this.name = '';
|
9
|
+
this.doc = '';
|
10
|
+
this.createdAt = new Date();
|
11
|
+
this.fees = [];
|
12
|
+
this.docType = general_1.EDocType.CNPJ;
|
13
|
+
this.desenfilaRefId = null;
|
14
|
+
this.natiRefId = null;
|
15
|
+
this.mobyoRefId = null;
|
16
|
+
this.from = general_1.EDesenfilaFrom.DEFAULT;
|
17
|
+
this.internationalCode = '';
|
18
|
+
this.phoneNumer = '';
|
19
|
+
this.email = '';
|
20
|
+
if (data) {
|
21
|
+
for (var key in data) {
|
22
|
+
if (data.hasOwnProperty(key) && key in this) {
|
23
|
+
this[key] = data[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return SponsorEntity;
|
29
|
+
}());
|
30
|
+
exports.SponsorEntity = SponsorEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ESponsorIdentifier } from './sponsor-identifier.enum';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ESponsorIdentifier = void 0;
|
4
|
+
var sponsor_identifier_enum_1 = require("./sponsor-identifier.enum");
|
5
|
+
Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return sponsor_identifier_enum_1.ESponsorIdentifier; } });
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ESponsorIdentifier = void 0;
|
4
|
+
var ESponsorIdentifier;
|
5
|
+
(function (ESponsorIdentifier) {
|
6
|
+
ESponsorIdentifier["DEFAULT_PERCENT"] = "DEFAULT_PERCENT";
|
7
|
+
ESponsorIdentifier["DEFAULT_FIXED_AMOUNT"] = "DEFAULT_FIXED_AMOUNT";
|
8
|
+
})(ESponsorIdentifier || (exports.ESponsorIdentifier = ESponsorIdentifier = {}));
|
@@ -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("./entities"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
19
|
+
__exportStar(require("./enums"), exports);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { EDesenfilaFrom, EDocType } from '../../general';
|
2
|
+
import { ISponsorFee } from './i-sponsor-fee';
|
3
|
+
export interface ISponsor {
|
4
|
+
id: string;
|
5
|
+
fees: ISponsorFee[];
|
6
|
+
createdAt: Date;
|
7
|
+
name: string;
|
8
|
+
doc: string;
|
9
|
+
docType: EDocType;
|
10
|
+
from: EDesenfilaFrom;
|
11
|
+
desenfilaRefId: string | null;
|
12
|
+
internationalCode: string;
|
13
|
+
phoneNumer: string;
|
14
|
+
email: string;
|
15
|
+
natiRefId: string | null;
|
16
|
+
mobyoRefId: string | null;
|
17
|
+
}
|
@@ -2,11 +2,15 @@ export declare enum EOperationType {
|
|
2
2
|
INVESTMENT = "investment",
|
3
3
|
REGULAR_PAYMENT = "regular_payment",
|
4
4
|
MONEY_TRANSFER = "money_transfer",
|
5
|
-
GOLIVE = "go_live",
|
6
5
|
RECURRING_PAYMENT = "recurring_payment",
|
7
6
|
ACCOUNT_FUND = "account_fund",
|
8
7
|
PAYMENT_ADDITION = "payment_addition",
|
9
8
|
CELLPHONE_RECHARGE = "cellphone_recharge",
|
10
9
|
POS_PAYMENT = "pos_payment",
|
11
|
-
MONEY_EXCHANGE = "money_exchange"
|
10
|
+
MONEY_EXCHANGE = "money_exchange",
|
11
|
+
NATI_PAY = "Nati Pay",
|
12
|
+
GOLIVE = "Go Live",
|
13
|
+
FEE_SHIPPING = "Taxa de Entrega",
|
14
|
+
FIN_TAX = "Taxa Financeira",
|
15
|
+
WITHDRAW = "Saque em Conta"
|
12
16
|
}
|
@@ -3,16 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EOperationType = void 0;
|
4
4
|
var EOperationType;
|
5
5
|
(function (EOperationType) {
|
6
|
+
// mp enums :
|
6
7
|
EOperationType["INVESTMENT"] = "investment";
|
7
8
|
EOperationType["REGULAR_PAYMENT"] = "regular_payment";
|
8
9
|
EOperationType["MONEY_TRANSFER"] = "money_transfer";
|
9
|
-
EOperationType["GOLIVE"] = "go_live";
|
10
10
|
EOperationType["RECURRING_PAYMENT"] = "recurring_payment";
|
11
11
|
EOperationType["ACCOUNT_FUND"] = "account_fund";
|
12
12
|
EOperationType["PAYMENT_ADDITION"] = "payment_addition";
|
13
13
|
EOperationType["CELLPHONE_RECHARGE"] = "cellphone_recharge";
|
14
14
|
EOperationType["POS_PAYMENT"] = "pos_payment";
|
15
15
|
EOperationType["MONEY_EXCHANGE"] = "money_exchange";
|
16
|
+
// arcnet enums :
|
17
|
+
EOperationType["NATI_PAY"] = "Nati Pay";
|
18
|
+
EOperationType["GOLIVE"] = "Go Live";
|
19
|
+
EOperationType["FEE_SHIPPING"] = "Taxa de Entrega";
|
20
|
+
EOperationType["FIN_TAX"] = "Taxa Financeira";
|
21
|
+
EOperationType["WITHDRAW"] = "Saque em Conta";
|
16
22
|
})(EOperationType || (exports.EOperationType = EOperationType = {}));
|
17
23
|
// É o tipo de pagamento. Os tipos disponíveis são os seguintes.
|
18
24
|
// investment: When money is put into an investment, such as CDB, in the Mercado Pago application;
|
@@ -27,7 +27,7 @@ export interface ITransaction {
|
|
27
27
|
paymentMethod: ITransactionPaymentMethod | null;
|
28
28
|
paymentMethodId: EPaymentMethodId;
|
29
29
|
posId: string;
|
30
|
-
referenceId: string;
|
30
|
+
referenceId: 'goLive' | 'engine_mobyo_fee' | 'withdraw' | string;
|
31
31
|
status: EMpStatus;
|
32
32
|
statusDetail: EMpStatusDetail;
|
33
33
|
total: ITransactionTotal | null;
|