cecon-interfaces 1.8.11 → 1.8.13

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.
Files changed (24) hide show
  1. package/dist/esm2022/natipay/company/entities/fee-from.entity.mjs +2 -1
  2. package/dist/esm2022/natipay/company/entities/fee-sale-channel.entity.mjs +5 -4
  3. package/dist/esm2022/natipay/company/entities/sponsor-fee.entity.mjs +2 -1
  4. package/dist/esm2022/natipay/company/interfaces/i-fee-channel.mjs +1 -1
  5. package/dist/esm2022/natipay/company/interfaces/i-fee-from.mjs +1 -1
  6. package/dist/esm2022/natipay/company/interfaces/i-sponsor-fee.mjs +1 -1
  7. package/dist/esm2022/transaction/entities/transaction.entity.mjs +3 -2
  8. package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +5 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/natipay/company/entities/fee-from.entity.d.ts +1 -0
  12. package/dist/natipay/company/entities/fee-from.entity.js +1 -0
  13. package/dist/natipay/company/entities/fee-sale-channel.entity.d.ts +5 -4
  14. package/dist/natipay/company/entities/fee-sale-channel.entity.js +1 -0
  15. package/dist/natipay/company/entities/sponsor-fee.entity.d.ts +1 -0
  16. package/dist/natipay/company/entities/sponsor-fee.entity.js +1 -0
  17. package/dist/natipay/company/interfaces/i-fee-channel.d.ts +2 -1
  18. package/dist/natipay/company/interfaces/i-fee-from.d.ts +3 -2
  19. package/dist/natipay/company/interfaces/i-sponsor-fee.d.ts +1 -0
  20. package/dist/package.json +1 -1
  21. package/dist/transaction/entities/transaction.entity.d.ts +2 -1
  22. package/dist/transaction/entities/transaction.entity.js +2 -1
  23. package/dist/transaction/interfaces/i-transaction.d.ts +14 -13
  24. package/package.json +1 -1
@@ -7,6 +7,7 @@ export declare class FeeFromEntity implements IFeeFrom {
7
7
  amountMode: EAmountMode;
8
8
  feePayer: EFeePayer;
9
9
  from: EFrom;
10
+ id: string;
10
11
  operationType: EOperationType;
11
12
  constructor(data?: Partial<FeeFromEntity>);
12
13
  }
@@ -10,6 +10,7 @@ var FeeFromEntity = /** @class */ (function () {
10
10
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
11
11
  this.feePayer = fee_payer_enum_1.EFeePayer.PLATFORM;
12
12
  this.from = general_1.EFrom.DEFAULT;
13
+ this.id = '';
13
14
  this.operationType = transaction_1.EOperationType.NATIPAY;
14
15
  if (data) {
15
16
  for (var key in data) {
@@ -1,11 +1,12 @@
1
- import { ENatipaySaleChannel } from '../..';
2
- import { EAmountMode, EOperationType } from '../../../transaction';
3
- import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
4
- import { IFeeSaleChannel } from '../interfaces';
1
+ import { ENatipaySaleChannel } from "../..";
2
+ import { EAmountMode, EOperationType } from "../../../transaction";
3
+ import { EFeePayer } from "../../../transaction/enums/fee-payer.enum";
4
+ import { IFeeSaleChannel } from "../interfaces";
5
5
  export declare class FeeSaleChannelEntity implements IFeeSaleChannel {
6
6
  amount: number;
7
7
  amountMode: EAmountMode;
8
8
  feePayer: EFeePayer;
9
+ id: string;
9
10
  operationType: EOperationType;
10
11
  saleChannel: ENatipaySaleChannel;
11
12
  constructor(data?: Partial<FeeSaleChannelEntity>);
@@ -9,6 +9,7 @@ var FeeSaleChannelEntity = /** @class */ (function () {
9
9
  this.amount = 0;
10
10
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
11
11
  this.feePayer = fee_payer_enum_1.EFeePayer.PLATFORM;
12
+ this.id = '';
12
13
  this.operationType = transaction_1.EOperationType.NATIPAY;
13
14
  this.saleChannel = __1.ENatipaySaleChannel.DEFAULT;
14
15
  if (data) {
@@ -3,6 +3,7 @@ import { NatipayFeeEntity } from './natipay-fee.entity';
3
3
  export declare class NatipaySponsorFeeEntity extends NatipayFeeEntity implements INatipaySponsorFee {
4
4
  companyId: string;
5
5
  containerId: string;
6
+ id: string;
6
7
  sponsorName: string | null;
7
8
  constructor(data?: Partial<NatipaySponsorFeeEntity>);
8
9
  }
@@ -23,6 +23,7 @@ var NatipaySponsorFeeEntity = /** @class */ (function (_super) {
23
23
  var _this = _super.call(this, data) || this;
24
24
  _this.companyId = '';
25
25
  _this.containerId = '';
26
+ _this.id = '';
26
27
  _this.sponsorName = null;
27
28
  if (data) {
28
29
  for (var key in data) {
@@ -4,7 +4,8 @@ import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
4
4
  export interface IFeeSaleChannel {
5
5
  amount: number;
6
6
  amountMode: EAmountMode;
7
+ feePayer: EFeePayer;
8
+ id: string;
7
9
  operationType: EOperationType;
8
10
  saleChannel: ENatipaySaleChannel;
9
- feePayer: EFeePayer;
10
11
  }
@@ -4,7 +4,8 @@ import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
4
4
  export interface IFeeFrom {
5
5
  amount: number;
6
6
  amountMode: EAmountMode;
7
- operationType: EOperationType;
8
- from: EFrom;
9
7
  feePayer: EFeePayer;
8
+ from: EFrom;
9
+ id: string;
10
+ operationType: EOperationType;
10
11
  }
@@ -2,5 +2,6 @@ import { INatipayFee } from './i-fee';
2
2
  export interface INatipaySponsorFee extends INatipayFee {
3
3
  companyId: string;
4
4
  containerId: string;
5
+ id: string;
5
6
  sponsorName: string | null;
6
7
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
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
- transactionTraceIds: string[];
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.transactionTraceIds = [];
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",