cecon-interfaces 1.8.8 → 1.8.10
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/natipay/company/entities/sponsor-fee.entity.mjs +3 -2
- package/dist/esm2022/natipay/company/interfaces/i-sponsor-fee.mjs +1 -1
- package/dist/esm2022/natipay/index.mjs +1 -2
- package/dist/esm2022/transaction/entities/transaction.entity.mjs +2 -2
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -25
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/company/entities/sponsor-fee.entity.d.ts +2 -1
- package/dist/natipay/company/entities/sponsor-fee.entity.js +2 -1
- package/dist/natipay/company/interfaces/i-sponsor-fee.d.ts +2 -1
- package/dist/natipay/index.d.ts +0 -1
- package/dist/natipay/index.js +0 -1
- package/dist/package.json +1 -1
- package/dist/transaction/entities/transaction.entity.d.ts +1 -1
- package/dist/transaction/entities/transaction.entity.js +1 -1
- package/dist/transaction/interfaces/i-transaction.d.ts +19 -1
- package/package.json +1 -1
- package/dist/esm2022/natipay/sponsor/entities/index.mjs +0 -2
- package/dist/esm2022/natipay/sponsor/entities/sponsor.entity.mjs +0 -23
- package/dist/esm2022/natipay/sponsor/index.mjs +0 -3
- package/dist/esm2022/natipay/sponsor/interfaces/i-sponsor.mjs +0 -2
- package/dist/esm2022/natipay/sponsor/interfaces/index.mjs +0 -2
- package/dist/natipay/sponsor/entities/index.d.ts +0 -1
- package/dist/natipay/sponsor/entities/index.js +0 -5
- package/dist/natipay/sponsor/entities/sponsor.entity.d.ts +0 -16
- package/dist/natipay/sponsor/entities/sponsor.entity.js +0 -27
- package/dist/natipay/sponsor/index.d.ts +0 -2
- package/dist/natipay/sponsor/index.js +0 -18
- package/dist/natipay/sponsor/interfaces/i-sponsor.d.ts +0 -14
- package/dist/natipay/sponsor/interfaces/i-sponsor.js +0 -2
- package/dist/natipay/sponsor/interfaces/index.d.ts +0 -1
- package/dist/natipay/sponsor/interfaces/index.js +0 -2
@@ -1,7 +1,8 @@
|
|
1
1
|
import { INatipaySponsorFee } from '../interfaces/i-sponsor-fee';
|
2
2
|
import { NatipayFeeEntity } from './natipay-fee.entity';
|
3
3
|
export declare class NatipaySponsorFeeEntity extends NatipayFeeEntity implements INatipaySponsorFee {
|
4
|
-
|
4
|
+
companyId: string;
|
5
|
+
containerId: string;
|
5
6
|
sponsorName: string | null;
|
6
7
|
constructor(data?: Partial<NatipaySponsorFeeEntity>);
|
7
8
|
}
|
@@ -21,7 +21,8 @@ var NatipaySponsorFeeEntity = /** @class */ (function (_super) {
|
|
21
21
|
__extends(NatipaySponsorFeeEntity, _super);
|
22
22
|
function NatipaySponsorFeeEntity(data) {
|
23
23
|
var _this = _super.call(this, data) || this;
|
24
|
-
_this.
|
24
|
+
_this.companyId = '';
|
25
|
+
_this.containerId = '';
|
25
26
|
_this.sponsorName = null;
|
26
27
|
if (data) {
|
27
28
|
for (var key in data) {
|
package/dist/natipay/index.d.ts
CHANGED
package/dist/natipay/index.js
CHANGED
@@ -18,6 +18,5 @@ __exportStar(require("./company"), exports);
|
|
18
18
|
__exportStar(require("./members"), exports);
|
19
19
|
__exportStar(require("./orders"), exports);
|
20
20
|
__exportStar(require("./payload"), exports);
|
21
|
-
__exportStar(require("./sponsor"), exports);
|
22
21
|
__exportStar(require("./tokens"), exports);
|
23
22
|
__exportStar(require("./user"), exports);
|
package/dist/package.json
CHANGED
@@ -28,7 +28,7 @@ export declare class TransactionEntity implements ITransaction {
|
|
28
28
|
moneyReleaseStatus: EReleaseStatus;
|
29
29
|
natiInfo: IInfo | null;
|
30
30
|
operationType: EOperationType;
|
31
|
-
|
31
|
+
transactionTraceIds: string[];
|
32
32
|
paymentMethod: TransactionPaymentMethodEntity | null;
|
33
33
|
paymentMethodId: EPaymentMethodId;
|
34
34
|
posId: string;
|
@@ -27,7 +27,7 @@ var TransactionEntity = /** @class */ (function () {
|
|
27
27
|
this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
|
28
28
|
this.natiInfo = new general_1.InfoEntity();
|
29
29
|
this.operationType = enums_1.EOperationType.REGULAR_PAYMENT;
|
30
|
-
this.
|
30
|
+
this.transactionTraceIds = [];
|
31
31
|
this.paymentMethod = null;
|
32
32
|
this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
|
33
33
|
this.posId = '';
|
@@ -18,6 +18,12 @@ export interface ITransaction {
|
|
18
18
|
desenfilaInfo: IDesenfilaInfo | null;
|
19
19
|
externalOrderReference: string;
|
20
20
|
feeDetails: IFeeDetail[];
|
21
|
+
/**
|
22
|
+
* @description Define quem paga a taxa (fee) da transação.
|
23
|
+
*
|
24
|
+
* - MERCHANT: A taxa é paga pelo lojista.
|
25
|
+
* - PLATFORM: A taxa é paga pela plataforma.
|
26
|
+
*/
|
21
27
|
feePayer: EFeePayer;
|
22
28
|
from: EFrom;
|
23
29
|
id: string;
|
@@ -28,7 +34,19 @@ export interface ITransaction {
|
|
28
34
|
moneyReleaseStatus: EReleaseStatus;
|
29
35
|
natiInfo: IInfo | null;
|
30
36
|
operationType: EOperationType;
|
31
|
-
|
37
|
+
/**
|
38
|
+
* @description IDs das transações originais usadas para rastreamento de fees (tarifas).
|
39
|
+
*
|
40
|
+
* - Quando o `feePayer` for MERCHANT: utilize `id[0]` para localizar
|
41
|
+
* a transação original associada à tarifa do lojista.
|
42
|
+
*
|
43
|
+
* - Quando o `feePayer` for PLATFORM: utilize `id[1]` para localizar
|
44
|
+
* a transação original associada à tarifa da plataforma.
|
45
|
+
*
|
46
|
+
* @important Esses IDs são cruciais para auditoria e reconciliação,
|
47
|
+
* mantendo o vínculo com as transações de origem.
|
48
|
+
*/
|
49
|
+
transactionTraceIds: string[];
|
32
50
|
paymentMethod: ITransactionPaymentMethod | null;
|
33
51
|
paymentMethodId: EPaymentMethodId;
|
34
52
|
posId: string;
|
package/package.json
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
export { NatipaySponsorEntity } from './sponsor.entity';
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2VudGl0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgTmF0aXBheVNwb25zb3JFbnRpdHkgfSBmcm9tICcuL3Nwb25zb3IuZW50aXR5JztcclxuIl19
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { EDocType, InfoEntity } from '../../../general';
|
2
|
-
export class NatipaySponsorEntity {
|
3
|
-
createdAt = new Date();
|
4
|
-
doc = '';
|
5
|
-
docType = EDocType.CNPJ;
|
6
|
-
email = null;
|
7
|
-
fees = [];
|
8
|
-
id = '';
|
9
|
-
info = new InfoEntity();
|
10
|
-
internationalCode = '55';
|
11
|
-
name = '';
|
12
|
-
phoneNumber = '';
|
13
|
-
constructor(data) {
|
14
|
-
if (data) {
|
15
|
-
for (let key in data) {
|
16
|
-
if (data.hasOwnProperty(key) && key in this) {
|
17
|
-
this[key] = data[key];
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BvbnNvci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2VudGl0aWVzL3Nwb25zb3IuZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR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ydCBjbGFzcyBOYXRpcGF5U3BvbnNvckVudGl0eSBpbXBsZW1lbnRzIElOYXRpcGF5U3BvbnNvciB7XHJcbiAgcHVibGljIGNyZWF0ZWRBdDogRGF0ZSA9IG5ldyBEYXRlKCk7XHJcbiAgcHVibGljIGRvYzogc3RyaW5nID0gJyc7XHJcbiAgcHVibGljIGRvY1R5cGU6IEVEb2NUeXBlID0gRURvY1R5cGUuQ05QSjtcclxuICBwdWJsaWMgZW1haWw6IHN0cmluZyB8IG51bGwgPSBudWxsO1xyXG4gIHB1YmxpYyBmZWVzOiBOYXRpcGF5RmVlRW50aXR5W10gPSBbXTtcclxuICBwdWJsaWMgaWQ6IHN0cmluZyA9ICcnO1xyXG4gIHB1YmxpYyBpbmZvOiBJbmZvRW50aXR5ID0gbmV3IEluZm9FbnRpdHkoKTtcclxuICBwdWJsaWMgaW50ZXJuYXRpb25hbENvZGU6IHN0cmluZyA9ICc1NSc7XHJcbiAgcHVibGljIG5hbWU6IHN0cmluZyA9ICcnO1xyXG4gIHB1YmxpYyBwaG9uZU51bWJlcjogc3RyaW5nID0gJyc7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPE5hdGlwYXlTcG9uc29yRW50aXR5Pikge1xyXG4gICAgaWYgKGRhdGEpIHtcclxuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,3 +0,0 @@
|
|
1
|
-
export * from './entities';
|
2
|
-
export * from './interfaces';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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86IElJbmZvOyAvLyBTZXJ2ZSBwYXJhIHNhYmVyIGEgY29udGEgZG8gc3BvbnNvclxyXG59XHJcbiJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElOYXRpcGF5U3BvbnNvciB9IGZyb20gJy4vaS1zcG9uc29yJztcclxuIl19
|
@@ -1 +0,0 @@
|
|
1
|
-
export { NatipaySponsorEntity } from './sponsor.entity';
|
@@ -1,5 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NatipaySponsorEntity = void 0;
|
4
|
-
var sponsor_entity_1 = require("./sponsor.entity");
|
5
|
-
Object.defineProperty(exports, "NatipaySponsorEntity", { enumerable: true, get: function () { return sponsor_entity_1.NatipaySponsorEntity; } });
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { EDocType, InfoEntity } from '../../../general';
|
2
|
-
import { NatipayFeeEntity } from '../../company';
|
3
|
-
import { INatipaySponsor } from '../interfaces/i-sponsor';
|
4
|
-
export declare class NatipaySponsorEntity implements INatipaySponsor {
|
5
|
-
createdAt: Date;
|
6
|
-
doc: string;
|
7
|
-
docType: EDocType;
|
8
|
-
email: string | null;
|
9
|
-
fees: NatipayFeeEntity[];
|
10
|
-
id: string;
|
11
|
-
info: InfoEntity;
|
12
|
-
internationalCode: string;
|
13
|
-
name: string;
|
14
|
-
phoneNumber: string;
|
15
|
-
constructor(data?: Partial<NatipaySponsorEntity>);
|
16
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NatipaySponsorEntity = void 0;
|
4
|
-
var general_1 = require("../../../general");
|
5
|
-
var NatipaySponsorEntity = /** @class */ (function () {
|
6
|
-
function NatipaySponsorEntity(data) {
|
7
|
-
this.createdAt = new Date();
|
8
|
-
this.doc = '';
|
9
|
-
this.docType = general_1.EDocType.CNPJ;
|
10
|
-
this.email = null;
|
11
|
-
this.fees = [];
|
12
|
-
this.id = '';
|
13
|
-
this.info = new general_1.InfoEntity();
|
14
|
-
this.internationalCode = '55';
|
15
|
-
this.name = '';
|
16
|
-
this.phoneNumber = '';
|
17
|
-
if (data) {
|
18
|
-
for (var key in data) {
|
19
|
-
if (data.hasOwnProperty(key) && key in this) {
|
20
|
-
this[key] = data[key];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
return NatipaySponsorEntity;
|
26
|
-
}());
|
27
|
-
exports.NatipaySponsorEntity = NatipaySponsorEntity;
|
@@ -1,18 +0,0 @@
|
|
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);
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { EDocType, IInfo } from '../../../general';
|
2
|
-
import { INatipayFee } from '../../company';
|
3
|
-
export interface INatipaySponsor {
|
4
|
-
id: string;
|
5
|
-
fees: INatipayFee[];
|
6
|
-
createdAt: Date;
|
7
|
-
name: string;
|
8
|
-
doc: string;
|
9
|
-
docType: EDocType;
|
10
|
-
internationalCode: string;
|
11
|
-
phoneNumber: string;
|
12
|
-
email: string | null;
|
13
|
-
info: IInfo;
|
14
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { INatipaySponsor } from './i-sponsor';
|