cecon-interfaces 1.9.85 → 1.9.86

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.
@@ -1,6 +1,6 @@
1
- import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
1
+ import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay';
3
- import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionOperation, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
4
4
  import { ITransaction } from '../interfaces';
5
5
  import { FeeDetailEntity } from './fee-detail.entity';
6
6
  import { TransactionBalanceEntity } from './transaction-balance.entity';
@@ -8,22 +8,14 @@ import { TransactionPaymentMethodEntity } from './transaction-payment-method.ent
8
8
  import { TransactionTotalEntity } from './transaction-total.entity';
9
9
  export declare class TransactionEntity implements ITransaction {
10
10
  balance: TransactionBalanceEntity | null;
11
- card: {};
12
11
  createdAt: Date;
13
- dateApproved: Date | null;
14
- dateCreated: Date;
15
- dateLastUpdated: Date;
16
- dateOfExpiration: Date | null;
12
+ data: string;
17
13
  description: string;
18
- desenfilaInfo: IDesenfilaInfo | null;
19
14
  externalOrderReference: string;
20
15
  feeDetails: FeeDetailEntity[];
21
16
  feePayer: EFeePayer;
22
17
  from: EFrom;
23
18
  id: string;
24
- installments: number;
25
- liveMode: boolean;
26
- mobyoInfo: IMobyoInfo | null;
27
19
  moneyReleaseDate: Date | null;
28
20
  moneyReleaseStatus: EReleaseStatus;
29
21
  natiInfo: IInfo | null;
@@ -40,11 +32,7 @@ export declare class TransactionEntity implements ITransaction {
40
32
  status: EMpStatus;
41
33
  statusDetail: EMpStatusDetail;
42
34
  total: TransactionTotalEntity | null;
43
- transactionAmount: number;
44
- transactionAmountRefunded: number;
45
- transactionOperation: ETransactionOperation;
46
35
  transactionStatus: ETransactionStatus;
47
- transactionTraceIds: string[];
48
36
  updatedAt: Date;
49
37
  constructor(data?: Partial<TransactionEntity>);
50
38
  }
@@ -7,22 +7,14 @@ var enums_1 = require("../enums");
7
7
  var TransactionEntity = /** @class */ (function () {
8
8
  function TransactionEntity(data) {
9
9
  this.balance = null;
10
- this.card = {};
11
10
  this.createdAt = new Date();
12
- this.dateApproved = null;
13
- this.dateCreated = new Date();
14
- this.dateLastUpdated = new Date();
15
- this.dateOfExpiration = null;
11
+ this.data = '';
16
12
  this.description = '';
17
- this.desenfilaInfo = new general_1.DesenfilaInfoEntity(); // TODO: Verificar se é necessário
18
13
  this.externalOrderReference = '';
19
14
  this.feeDetails = [];
20
15
  this.feePayer = enums_1.EFeePayer.PLATFORM;
21
16
  this.from = general_1.EFrom.NATIPAY;
22
17
  this.id = '';
23
- this.installments = 0;
24
- this.liveMode = true;
25
- this.mobyoInfo = new general_1.MobyoInfoEntity(); // TODO: Verificar se é necessário
26
18
  this.moneyReleaseDate = null;
27
19
  this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
28
20
  this.natiInfo = new general_1.InfoEntity();
@@ -39,11 +31,7 @@ var TransactionEntity = /** @class */ (function () {
39
31
  this.status = enums_1.EMpStatus.PENDING;
40
32
  this.statusDetail = enums_1.EMpStatusDetail.ACCREDITED;
41
33
  this.total = null;
42
- this.transactionAmount = 0;
43
- this.transactionAmountRefunded = 0;
44
- this.transactionOperation = enums_1.ETransactionOperation.STAMP_NEEDED;
45
34
  this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
46
- this.transactionTraceIds = [];
47
35
  this.updatedAt = new Date();
48
36
  if (data) {
49
37
  for (var key in data) {
@@ -1,21 +1,15 @@
1
- import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
1
+ import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay/orders/enums';
3
3
  import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
4
- import { ETransactionOperation } from '../enums/transaction-operation.enum';
5
4
  import { ITransactionBalance } from './i-balance';
6
5
  import { IFeeDetail } from './i-fee-detail';
7
6
  import { ITransactionPaymentMethod } from './i-payment-method';
8
7
  import { ITransactionTotal } from './i-total';
9
8
  export interface ITransaction {
10
9
  balance: ITransactionBalance | null;
11
- card: {};
12
10
  createdAt: Date;
13
- dateApproved: Date | null;
14
- dateCreated: Date;
15
- dateLastUpdated: Date;
16
- dateOfExpiration: Date | null;
11
+ data: string;
17
12
  description: string;
18
- desenfilaInfo: IDesenfilaInfo | null;
19
13
  externalOrderReference: string;
20
14
  feeDetails: IFeeDetail[];
21
15
  /**
@@ -27,12 +21,9 @@ export interface ITransaction {
27
21
  feePayer: EFeePayer;
28
22
  from: EFrom;
29
23
  id: string;
30
- installments: number;
31
- liveMode: boolean;
32
- mobyoInfo: IMobyoInfo | null;
24
+ natiInfo: IInfo | null;
33
25
  moneyReleaseDate: Date | null;
34
26
  moneyReleaseStatus: EReleaseStatus;
35
- natiInfo: IInfo | null;
36
27
  operationType: EOperationType;
37
28
  payerInfo: IInfo | null;
38
29
  paymentMethod: ITransactionPaymentMethod | null;
@@ -46,22 +37,6 @@ export interface ITransaction {
46
37
  status: EMpStatus;
47
38
  statusDetail: EMpStatusDetail;
48
39
  total: ITransactionTotal | null;
49
- transactionAmount: number;
50
- transactionAmountRefunded: number;
51
- transactionOperation: ETransactionOperation;
52
40
  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[];
66
41
  updatedAt: Date;
67
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.85",
3
+ "version": "1.9.86",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",