@konplit-services/common 1.0.316 → 1.0.318

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.
@@ -237,6 +237,7 @@ declare class AppConfigs {
237
237
  getBvnAuthDBURI(): string;
238
238
  getOpayDBURI(): string;
239
239
  getKoreDBURI(): string;
240
+ getNotificationDBURI(): string;
240
241
  getNATSPassword(): string;
241
242
  getNATSUsername(): string;
242
243
  getBVNEnvironment(): string;
@@ -143,6 +143,12 @@ class AppConfigs {
143
143
  }
144
144
  return this.env.MONGO_KORE_URI;
145
145
  }
146
+ getNotificationDBURI() {
147
+ if (!this.env.MONGO_NOTIFICATION_URI) {
148
+ throw new Error("MONGO_NOTIFICATION_URI is required");
149
+ }
150
+ return this.env.MONGO_NOTIFICATION_URI;
151
+ }
146
152
  getNATSPassword() {
147
153
  if (!this.env.NATS_PASSWORD) {
148
154
  throw new Error("NATS_PASSWORD is required");
@@ -6,6 +6,7 @@ export interface InvoicePaymentCreatedEvent {
6
6
  streamEvents: StreamEvent.Event;
7
7
  data: {
8
8
  invoiceId: string;
9
+ paymentRef: string;
9
10
  merchantId: string;
10
11
  amount: number;
11
12
  usage: Usage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.316",
3
+ "version": "1.0.318",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",