@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.
@@ -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
  }
@@ -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;
@@ -5,3 +5,7 @@ export declare enum TOPUP_TRANSACTIONS {
5
5
  TV_SUBSCRIPTION = "TV_SUBSCRIPTION",
6
6
  TRANSFER = "TRANSFER"
7
7
  }
8
+ export declare enum TRANSACTION_CHARGES_TYPE {
9
+ FUND_WALLET = "FUND_WALLET",
10
+ UPDATE_TRANSACTION = "UPDATE_TRANSACTION"
11
+ }
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.143",
3
+ "version": "1.0.146",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",