@konplit-services/common 1.0.143 → 1.0.146
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/build/events/base-events/base-events.listener.js +1 -0
- package/build/events/virtual-account-events/interfaces/virtual-dynamic-account.interface.d.ts +2 -0
- package/build/events/virtual-account-events/interfaces/virtual-fixed-account.interface.d.ts +2 -0
- package/build/helper/charges.d.ts +4 -0
- package/build/helper/charges.js +6 -1
- package/package.json +1 -1
|
@@ -92,6 +92,7 @@ class Listener {
|
|
|
92
92
|
const decodedRequest = this.jc.decode(msg.data);
|
|
93
93
|
console.log("Received Request:", decodedRequest);
|
|
94
94
|
const response = yield this.onMessageResponse(decodedRequest, msg);
|
|
95
|
+
console.log("Respons comming here", response);
|
|
95
96
|
// Send a reply back
|
|
96
97
|
msg.respond(this.jc.encode({ data: response }));
|
|
97
98
|
}
|
package/build/events/virtual-account-events/interfaces/virtual-dynamic-account.interface.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
|
|
1
2
|
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
2
3
|
export interface VirtualDynamicAccountCreatedEvent {
|
|
3
4
|
subject: Subjects.VirtualDynamicAccountCreatedEvent;
|
|
@@ -6,6 +7,7 @@ export interface VirtualDynamicAccountCreatedEvent {
|
|
|
6
7
|
data: {
|
|
7
8
|
merchantId: string;
|
|
8
9
|
accountId: string;
|
|
10
|
+
transactionType: TRANSACTION_CHARGES_TYPE;
|
|
9
11
|
customer: {
|
|
10
12
|
firstname: string;
|
|
11
13
|
middlename: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
|
|
1
2
|
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
2
3
|
export interface VirtualFixedAccountCreatedEvent {
|
|
3
4
|
subject: Subjects.VirtualFixedAccountCreatedEvent;
|
|
@@ -6,6 +7,7 @@ export interface VirtualFixedAccountCreatedEvent {
|
|
|
6
7
|
data: {
|
|
7
8
|
merchantId: string;
|
|
8
9
|
accountId: string;
|
|
10
|
+
transactionType: TRANSACTION_CHARGES_TYPE;
|
|
9
11
|
customer: {
|
|
10
12
|
firstname: string;
|
|
11
13
|
middlename: string;
|
package/build/helper/charges.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TOPUP_TRANSACTIONS = void 0;
|
|
3
|
+
exports.TRANSACTION_CHARGES_TYPE = exports.TOPUP_TRANSACTIONS = void 0;
|
|
4
4
|
var TOPUP_TRANSACTIONS;
|
|
5
5
|
(function (TOPUP_TRANSACTIONS) {
|
|
6
6
|
TOPUP_TRANSACTIONS["FUND_WALLET"] = "FUND_WALLET";
|
|
@@ -9,3 +9,8 @@ var TOPUP_TRANSACTIONS;
|
|
|
9
9
|
TOPUP_TRANSACTIONS["TV_SUBSCRIPTION"] = "TV_SUBSCRIPTION";
|
|
10
10
|
TOPUP_TRANSACTIONS["TRANSFER"] = "TRANSFER";
|
|
11
11
|
})(TOPUP_TRANSACTIONS = exports.TOPUP_TRANSACTIONS || (exports.TOPUP_TRANSACTIONS = {}));
|
|
12
|
+
var TRANSACTION_CHARGES_TYPE;
|
|
13
|
+
(function (TRANSACTION_CHARGES_TYPE) {
|
|
14
|
+
TRANSACTION_CHARGES_TYPE["FUND_WALLET"] = "FUND_WALLET";
|
|
15
|
+
TRANSACTION_CHARGES_TYPE["UPDATE_TRANSACTION"] = "UPDATE_TRANSACTION";
|
|
16
|
+
})(TRANSACTION_CHARGES_TYPE = exports.TRANSACTION_CHARGES_TYPE || (exports.TRANSACTION_CHARGES_TYPE = {}));
|