cecon-interfaces 1.8.3 → 1.8.5
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/transaction/entities/transaction.entity.mjs +4 -2
- package/dist/esm2022/transaction/enums/fee-payer.enum.mjs +6 -1
- package/dist/esm2022/transaction/enums/transaction-operation.enum.mjs +8 -1
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +14 -0
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/transaction/entities/transaction.entity.d.ts +3 -1
- package/dist/transaction/entities/transaction.entity.js +2 -0
- package/dist/transaction/enums/fee-payer.enum.d.ts +5 -0
- package/dist/transaction/enums/transaction-operation.enum.d.ts +7 -0
- package/dist/transaction/interfaces/i-transaction.d.ts +6 -4
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
|
2
2
|
import { ENatipaySaleChannel } from '../../natipay';
|
3
|
-
import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionOperation, ETransactionProvider, ETransactionStatus } from '../enums';
|
3
|
+
import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionOperation, 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';
|
@@ -18,6 +18,7 @@ export declare class TransactionEntity implements ITransaction {
|
|
18
18
|
desenfilaInfo: IDesenfilaInfo | null;
|
19
19
|
externalOrderReference: string;
|
20
20
|
feeDetails: FeeDetailEntity[];
|
21
|
+
feePayer: EFeePayer;
|
21
22
|
from: EFrom;
|
22
23
|
id: string;
|
23
24
|
installments: number;
|
@@ -27,6 +28,7 @@ export declare class TransactionEntity implements ITransaction {
|
|
27
28
|
moneyReleaseStatus: EReleaseStatus;
|
28
29
|
natiInfo: IInfo | null;
|
29
30
|
operationType: EOperationType;
|
31
|
+
originalTransactionId: string | null;
|
30
32
|
paymentMethod: TransactionPaymentMethodEntity | null;
|
31
33
|
paymentMethodId: EPaymentMethodId;
|
32
34
|
posId: string;
|
@@ -17,6 +17,7 @@ var TransactionEntity = /** @class */ (function () {
|
|
17
17
|
this.desenfilaInfo = new general_1.DesenfilaInfoEntity(); // TODO: Verificar se é necessário
|
18
18
|
this.externalOrderReference = '';
|
19
19
|
this.feeDetails = [];
|
20
|
+
this.feePayer = enums_1.EFeePayer.PLATFORM;
|
20
21
|
this.from = general_1.EFrom.NATIPAY;
|
21
22
|
this.id = '';
|
22
23
|
this.installments = 0;
|
@@ -26,6 +27,7 @@ var TransactionEntity = /** @class */ (function () {
|
|
26
27
|
this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
|
27
28
|
this.natiInfo = new general_1.InfoEntity();
|
28
29
|
this.operationType = enums_1.EOperationType.REGULAR_PAYMENT;
|
30
|
+
this.originalTransactionId = null;
|
29
31
|
this.paymentMethod = null;
|
30
32
|
this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
|
31
33
|
this.posId = '';
|
@@ -4,3 +4,10 @@ export declare enum ETransactionOperation {
|
|
4
4
|
COMPLETE_NEEDED = "COMPLETE_NEEDED",
|
5
5
|
COMPLETED = "COMPLETED"
|
6
6
|
}
|
7
|
+
/**
|
8
|
+
* Usado para saber se a transação precisa de um stamp, sponsors ou completar.
|
9
|
+
* STAMP_NEEDED: A transação precisa de um stamp. Será criada uma cópia da transação na Natipay com o stamp e a operaçao SPONSORS_NEEDED.
|
10
|
+
* SPONSORS_NEEDED: Será verificado se a transação possui SPONSORS. Caso possua será criada transações com o COMPLETE_NEEDED.
|
11
|
+
* COMPLETE_NEEDED: A transação precisa de completar. Será criada uma cópia da transação na Natipay ou na Loja com o valor completo e a operaçao COMPLETED.
|
12
|
+
* COMPLETED: A transação foi completada.
|
13
|
+
*/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
|
2
2
|
import { ENatipaySaleChannel } from '../../natipay/orders/enums';
|
3
|
-
import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
|
3
|
+
import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
|
4
4
|
import { ETransactionOperation } from '../enums/transaction-operation.enum';
|
5
5
|
import { ITransactionBalance } from './i-balance';
|
6
6
|
import { IFeeDetail } from './i-fee-detail';
|
@@ -18,29 +18,31 @@ export interface ITransaction {
|
|
18
18
|
desenfilaInfo: IDesenfilaInfo | null;
|
19
19
|
externalOrderReference: string;
|
20
20
|
feeDetails: IFeeDetail[];
|
21
|
+
feePayer: EFeePayer;
|
21
22
|
from: EFrom;
|
22
23
|
id: string;
|
23
24
|
installments: number;
|
24
25
|
liveMode: boolean;
|
25
26
|
mobyoInfo: IMobyoInfo | null;
|
26
|
-
provider: ETransactionProvider;
|
27
27
|
moneyReleaseDate: Date | null;
|
28
28
|
moneyReleaseStatus: EReleaseStatus;
|
29
29
|
natiInfo: IInfo | null;
|
30
30
|
operationType: EOperationType;
|
31
|
-
|
31
|
+
originalTransactionId: string | null;
|
32
32
|
paymentMethod: ITransactionPaymentMethod | null;
|
33
33
|
paymentMethodId: EPaymentMethodId;
|
34
34
|
posId: string;
|
35
|
+
provider: ETransactionProvider;
|
35
36
|
referenceId: 'goLive' | 'engine_mobyo_fee' | 'withdraw' | string;
|
36
37
|
resumeVersion: string;
|
38
|
+
saleChannel: ENatipaySaleChannel;
|
37
39
|
stamped: string | null;
|
38
40
|
status: EMpStatus;
|
39
41
|
statusDetail: EMpStatusDetail;
|
40
42
|
total: ITransactionTotal | null;
|
41
43
|
transactionAmount: number;
|
42
44
|
transactionAmountRefunded: number;
|
43
|
-
transactionStatus: ETransactionStatus;
|
44
45
|
transactionOperation: ETransactionOperation;
|
46
|
+
transactionStatus: ETransactionStatus;
|
45
47
|
updatedAt: Date;
|
46
48
|
}
|