@konplit-services/common 1.0.142 → 1.0.145

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.
@@ -89,6 +89,7 @@ declare class AppConfigs {
89
89
  getActivityLogDBURI(): string;
90
90
  getAccountDBURI(): string;
91
91
  getMerchantDBURI(): string;
92
+ getVirtualAccountDBURI(): string;
92
93
  getWalletDBURI(): string;
93
94
  getNATSURI(): string;
94
95
  getWebsiteDBURI(): string;
@@ -41,6 +41,12 @@ class AppConfigs {
41
41
  }
42
42
  return this.env.MONGO_URI_MERCHANT;
43
43
  }
44
+ getVirtualAccountDBURI() {
45
+ if (!this.env.MONGO_URI_VIRTUAL_ACCOUNT) {
46
+ throw new Error("MONGO_URI_VIRTUAL_ACCOUNT is required");
47
+ }
48
+ return this.env.MONGO_URI_VIRTUAL_ACCOUNT;
49
+ }
44
50
  getWalletDBURI() {
45
51
  if (!this.env.MONGO_URI_WALLET) {
46
52
  throw new Error("MONGO_URI_WALLET is required");
@@ -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.142",
3
+ "version": "1.0.145",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",