cecon-interfaces 1.9.86 → 1.9.87
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/payer.entity.mjs +16 -0
- package/dist/esm2022/transaction/entities/transaction.entity.mjs +4 -2
- package/dist/esm2022/transaction/interfaces/i-payer.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +18 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/transaction/entities/payer.entity.d.ts +8 -0
- package/dist/transaction/entities/payer.entity.js +20 -0
- package/dist/transaction/entities/transaction.entity.d.ts +3 -1
- package/dist/transaction/entities/transaction.entity.js +3 -1
- package/dist/transaction/interfaces/i-payer.d.ts +6 -0
- package/dist/transaction/interfaces/i-payer.js +2 -0
- package/dist/transaction/interfaces/i-transaction.d.ts +4 -2
- package/package.json +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ITransactionPayer } from '../interfaces/i-payer';
|
2
|
+
export declare class TransactionPayerEntity implements ITransactionPayer {
|
3
|
+
account: string | null;
|
4
|
+
bank: string | null;
|
5
|
+
branch: string | null;
|
6
|
+
name: string | null;
|
7
|
+
constructor(data?: Partial<TransactionPayerEntity>);
|
8
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TransactionPayerEntity = void 0;
|
4
|
+
var TransactionPayerEntity = /** @class */ (function () {
|
5
|
+
function TransactionPayerEntity(data) {
|
6
|
+
this.account = null;
|
7
|
+
this.bank = null;
|
8
|
+
this.branch = null;
|
9
|
+
this.name = null;
|
10
|
+
if (data) {
|
11
|
+
for (var key in data) {
|
12
|
+
if (data.hasOwnProperty(key) && key in this) {
|
13
|
+
this[key] = data[key];
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return TransactionPayerEntity;
|
19
|
+
}());
|
20
|
+
exports.TransactionPayerEntity = TransactionPayerEntity;
|
@@ -3,6 +3,7 @@ import { ENatipaySaleChannel } from '../../natipay';
|
|
3
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
|
+
import { TransactionPayerEntity } from './payer.entity';
|
6
7
|
import { TransactionBalanceEntity } from './transaction-balance.entity';
|
7
8
|
import { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
|
8
9
|
import { TransactionTotalEntity } from './transaction-total.entity';
|
@@ -16,11 +17,12 @@ export declare class TransactionEntity implements ITransaction {
|
|
16
17
|
feePayer: EFeePayer;
|
17
18
|
from: EFrom;
|
18
19
|
id: string;
|
20
|
+
receipt: string | null;
|
19
21
|
moneyReleaseDate: Date | null;
|
20
22
|
moneyReleaseStatus: EReleaseStatus;
|
21
23
|
natiInfo: IInfo | null;
|
22
24
|
operationType: EOperationType;
|
23
|
-
|
25
|
+
payer: TransactionPayerEntity;
|
24
26
|
paymentMethod: TransactionPaymentMethodEntity | null;
|
25
27
|
paymentMethodId: EPaymentMethodId;
|
26
28
|
posId: string;
|
@@ -4,6 +4,7 @@ exports.TransactionEntity = void 0;
|
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var natipay_1 = require("../../natipay");
|
6
6
|
var enums_1 = require("../enums");
|
7
|
+
var payer_entity_1 = require("./payer.entity");
|
7
8
|
var TransactionEntity = /** @class */ (function () {
|
8
9
|
function TransactionEntity(data) {
|
9
10
|
this.balance = null;
|
@@ -15,11 +16,12 @@ var TransactionEntity = /** @class */ (function () {
|
|
15
16
|
this.feePayer = enums_1.EFeePayer.PLATFORM;
|
16
17
|
this.from = general_1.EFrom.NATIPAY;
|
17
18
|
this.id = '';
|
19
|
+
this.receipt = null;
|
18
20
|
this.moneyReleaseDate = null;
|
19
21
|
this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
|
20
22
|
this.natiInfo = new general_1.InfoEntity();
|
21
23
|
this.operationType = enums_1.EOperationType.REGULAR_PAYMENT;
|
22
|
-
this.
|
24
|
+
this.payer = new payer_entity_1.TransactionPayerEntity();
|
23
25
|
this.paymentMethod = null;
|
24
26
|
this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
|
25
27
|
this.posId = '';
|
@@ -3,6 +3,7 @@ import { ENatipaySaleChannel } from '../../natipay/orders/enums';
|
|
3
3
|
import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
|
4
4
|
import { ITransactionBalance } from './i-balance';
|
5
5
|
import { IFeeDetail } from './i-fee-detail';
|
6
|
+
import { ITransactionPayer } from './i-payer';
|
6
7
|
import { ITransactionPaymentMethod } from './i-payment-method';
|
7
8
|
import { ITransactionTotal } from './i-total';
|
8
9
|
export interface ITransaction {
|
@@ -21,17 +22,18 @@ export interface ITransaction {
|
|
21
22
|
feePayer: EFeePayer;
|
22
23
|
from: EFrom;
|
23
24
|
id: string;
|
24
|
-
natiInfo: IInfo | null;
|
25
25
|
moneyReleaseDate: Date | null;
|
26
26
|
moneyReleaseStatus: EReleaseStatus;
|
27
|
+
natiInfo: IInfo | null;
|
27
28
|
operationType: EOperationType;
|
28
|
-
|
29
|
+
payer: ITransactionPayer;
|
29
30
|
paymentMethod: ITransactionPaymentMethod | null;
|
30
31
|
paymentMethodId: EPaymentMethodId;
|
31
32
|
posId: string;
|
32
33
|
provider: ETransactionProvider;
|
33
34
|
referenceId: 'goLive' | 'engine_mobyo_fee' | 'withdraw' | string;
|
34
35
|
resumeVersion: string;
|
36
|
+
receipt: string | null;
|
35
37
|
saleChannel: ENatipaySaleChannel;
|
36
38
|
stamped: string | null;
|
37
39
|
status: EMpStatus;
|