cecon-interfaces 1.8.8 → 1.8.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@ export declare class TransactionEntity implements ITransaction {
28
28
  moneyReleaseStatus: EReleaseStatus;
29
29
  natiInfo: IInfo | null;
30
30
  operationType: EOperationType;
31
- transactionHistoryIds: string[];
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.transactionHistoryIds = [];
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
- transactionHistoryIds: string[];
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,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",