@konplit-services/common 1.2.2 → 1.2.4

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.
@@ -137,6 +137,20 @@ interface Interswitch {
137
137
  recurrent_secret_key: string;
138
138
  webhookSecretKey: string;
139
139
  }
140
+ export interface ValuePay {
141
+ visa_redirect_url: string;
142
+ visa_redirect_fail_url: string;
143
+ visa_callback_url: string;
144
+ valuepay_ceo: string;
145
+ support_email: string;
146
+ support_phone: string;
147
+ ip_token: string;
148
+ invoice_url: string;
149
+ noReplyEmail: string;
150
+ emailName: string;
151
+ checkoutUrl: string;
152
+ paymentUrl: string;
153
+ }
140
154
  interface InterswitchTransfer {
141
155
  client_id: string;
142
156
  secret_key: string;
@@ -308,19 +322,7 @@ declare class AppConfigs {
308
322
  rotateKey: string;
309
323
  region: string;
310
324
  };
311
- getValuePayDetails(): {
312
- visa_redirect_url: string;
313
- visa_redirect_fail_url: string;
314
- visa_callback_url: string;
315
- valuepay_ceo: string;
316
- support_email: string;
317
- support_phone: string;
318
- ip_token: string;
319
- invoice_url: string;
320
- noReplyEmail: string;
321
- emailName: string;
322
- checkoutUrl: string;
323
- };
325
+ getValuePayDetails(): ValuePay;
324
326
  getOpayDetails(): Opay;
325
327
  getNIBSSDetails(): NIBSS;
326
328
  getFidelityDetails(): {
@@ -543,6 +543,9 @@ class AppConfigs {
543
543
  if (!this.env.CHECKOUT_URL) {
544
544
  throw new Error("CHECKOUT_URL is required");
545
545
  }
546
+ if (!this.env.VALUEPAY_PAYMENT_URL) {
547
+ throw new Error("VALUEPAY_PAYMENT_URL is required");
548
+ }
546
549
  return {
547
550
  visa_redirect_url: this.env.VALUEPAY_VISA_REDIRECT_URL,
548
551
  visa_redirect_fail_url: this.env.VALUEPAY_VISA_FAIL_REDIRECT_URL,
@@ -555,6 +558,7 @@ class AppConfigs {
555
558
  noReplyEmail: this.env.VALUEPAY_NO_REPLY_EMAIL,
556
559
  emailName: this.env.VALUEPAY_EMAIL_NAME,
557
560
  checkoutUrl: this.env.CHECKOUT_URL,
561
+ paymentUrl: this.env.VALUEPAY_PAYMENT_URL
558
562
  };
559
563
  }
560
564
  getOpayDetails() {
@@ -10,10 +10,8 @@ export interface RecipientWebhookCreatedEvent {
10
10
  streamName: StreamName.name;
11
11
  streamEvents: StreamEvent.Event;
12
12
  data: {
13
- type: RecipientWebhook;
14
- requestUrl: string;
15
- encrytionKey: string;
16
13
  data: {
14
+ event: RecipientWebhook;
17
15
  id: string;
18
16
  merchantId: string;
19
17
  accountNumber: string;
@@ -22,6 +20,7 @@ export interface RecipientWebhookCreatedEvent {
22
20
  bankName?: string;
23
21
  code?: string;
24
22
  status?: Status;
23
+ isValid: boolean;
25
24
  usage?: Usage;
26
25
  };
27
26
  };
@@ -5,6 +5,7 @@ interface Recipient {
5
5
  merchantId: string;
6
6
  accountNumber: string;
7
7
  accountName: string;
8
+ clientName: string;
8
9
  bankCode: string;
9
10
  bankName?: string;
10
11
  code?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",