cecon-interfaces 1.8.10 → 1.8.12
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/company.entity.mjs +2 -3
- package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/transaction/entities/transaction.entity.mjs +3 -2
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +19 -18
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/company/entities/company.entity.d.ts +1 -1
- package/dist/natipay/company/entities/company.entity.js +1 -2
- package/dist/natipay/company/interfaces/i-company.d.ts +9 -9
- package/dist/package.json +1 -1
- package/dist/transaction/entities/transaction.entity.d.ts +2 -1
- package/dist/transaction/entities/transaction.entity.js +2 -1
- package/dist/transaction/interfaces/i-transaction.d.ts +14 -13
- package/package.json +1 -1
@@ -30,7 +30,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
|
|
30
30
|
pixKeys: PixKeyEntity[];
|
31
31
|
sandbox: boolean;
|
32
32
|
shortName: string;
|
33
|
-
sponsorFees: NatipaySponsorFeeEntity;
|
33
|
+
sponsorFees: NatipaySponsorFeeEntity[];
|
34
34
|
tags: string[];
|
35
35
|
updatedAt: Date;
|
36
36
|
version: string;
|
@@ -5,7 +5,6 @@ var general_1 = require("../../../general");
|
|
5
5
|
var address_entity_1 = require("./address.entity");
|
6
6
|
var natipay_fee_entity_1 = require("./natipay-fee.entity");
|
7
7
|
var natipay_entity_1 = require("./natipay.entity");
|
8
|
-
var sponsor_fee_entity_1 = require("./sponsor-fee.entity");
|
9
8
|
var NatipayCompanyEntity = /** @class */ (function () {
|
10
9
|
function NatipayCompanyEntity(data) {
|
11
10
|
this.active = false;
|
@@ -31,7 +30,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
|
|
31
30
|
this.pixKeys = [];
|
32
31
|
this.sandbox = false;
|
33
32
|
this.shortName = '';
|
34
|
-
this.sponsorFees =
|
33
|
+
this.sponsorFees = [];
|
35
34
|
this.tags = [];
|
36
35
|
this.updatedAt = new Date();
|
37
36
|
this.version = '';
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { EDocType } from
|
2
|
-
import { IPixKey } from
|
3
|
-
import { ETransactionProvider } from
|
4
|
-
import { INatipayAddress } from
|
5
|
-
import { INatipayCompanyExternalFee } from
|
6
|
-
import { INatipayFee } from
|
7
|
-
import { INatipay } from
|
8
|
-
import { INatipaySponsorFee } from
|
1
|
+
import { EDocType } from '../../../general';
|
2
|
+
import { IPixKey } from '../../../general/interfaces/i-pix-key';
|
3
|
+
import { ETransactionProvider } from '../../../transaction';
|
4
|
+
import { INatipayAddress } from './i-address';
|
5
|
+
import { INatipayCompanyExternalFee } from './i-company-external-fee';
|
6
|
+
import { INatipayFee } from './i-fee';
|
7
|
+
import { INatipay } from './i-natipay';
|
8
|
+
import { INatipaySponsorFee } from './i-sponsor-fee';
|
9
9
|
export interface INatipayCompany {
|
10
10
|
active: boolean;
|
11
11
|
address: INatipayAddress;
|
@@ -34,7 +34,7 @@ export interface INatipayCompany {
|
|
34
34
|
pixKeys: IPixKey[];
|
35
35
|
sandbox: boolean;
|
36
36
|
shortName: string;
|
37
|
-
sponsorFees: INatipaySponsorFee;
|
37
|
+
sponsorFees: INatipaySponsorFee[];
|
38
38
|
tags: string[];
|
39
39
|
updatedAt: Date;
|
40
40
|
version: string;
|
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
|
+
payerInfo: IInfo | null;
|
32
32
|
paymentMethod: TransactionPaymentMethodEntity | null;
|
33
33
|
paymentMethodId: EPaymentMethodId;
|
34
34
|
posId: string;
|
@@ -44,6 +44,7 @@ export declare class TransactionEntity implements ITransaction {
|
|
44
44
|
transactionAmountRefunded: number;
|
45
45
|
transactionOperation: ETransactionOperation;
|
46
46
|
transactionStatus: ETransactionStatus;
|
47
|
+
transactionTraceIds: string[];
|
47
48
|
updatedAt: Date;
|
48
49
|
constructor(data?: Partial<TransactionEntity>);
|
49
50
|
}
|
@@ -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.payerInfo = new general_1.InfoEntity();
|
31
31
|
this.paymentMethod = null;
|
32
32
|
this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
|
33
33
|
this.posId = '';
|
@@ -43,6 +43,7 @@ var TransactionEntity = /** @class */ (function () {
|
|
43
43
|
this.transactionAmountRefunded = 0;
|
44
44
|
this.transactionOperation = enums_1.ETransactionOperation.STAMP_NEEDED;
|
45
45
|
this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
|
46
|
+
this.transactionTraceIds = [];
|
46
47
|
this.updatedAt = new Date();
|
47
48
|
if (data) {
|
48
49
|
for (var key in data) {
|
@@ -34,19 +34,7 @@ export interface ITransaction {
|
|
34
34
|
moneyReleaseStatus: EReleaseStatus;
|
35
35
|
natiInfo: IInfo | null;
|
36
36
|
operationType: EOperationType;
|
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[];
|
37
|
+
payerInfo: IInfo | null;
|
50
38
|
paymentMethod: ITransactionPaymentMethod | null;
|
51
39
|
paymentMethodId: EPaymentMethodId;
|
52
40
|
posId: string;
|
@@ -62,5 +50,18 @@ export interface ITransaction {
|
|
62
50
|
transactionAmountRefunded: number;
|
63
51
|
transactionOperation: ETransactionOperation;
|
64
52
|
transactionStatus: ETransactionStatus;
|
53
|
+
/**
|
54
|
+
* @description IDs das transações originais usadas para rastreamento de fees (tarifas).
|
55
|
+
*
|
56
|
+
* - Quando o `feePayer` for MERCHANT: utilize `id[0]` para localizar
|
57
|
+
* a transação original associada à tarifa do lojista.
|
58
|
+
*
|
59
|
+
* - Quando o `feePayer` for PLATFORM: utilize `id[1]` para localizar
|
60
|
+
* a transação original associada à tarifa da plataforma.
|
61
|
+
*
|
62
|
+
* @important Esses IDs são cruciais para auditoria e reconciliação,
|
63
|
+
* mantendo o vínculo com as transações de origem.
|
64
|
+
*/
|
65
|
+
transactionTraceIds: string[];
|
65
66
|
updatedAt: Date;
|
66
67
|
}
|