@konplit-services/common 1.0.349 → 1.0.351

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.
@@ -159,6 +159,12 @@ interface ValuePaySenderTransfer {
159
159
  othernames: string;
160
160
  email: string;
161
161
  phone: string;
162
+ accountName: string;
163
+ accountNumber: string;
164
+ bankName: string;
165
+ bankCode: string;
166
+ bvn: string;
167
+ kycLevel: string;
162
168
  }
163
169
  interface MessageQueue {
164
170
  sendMail: string;
@@ -807,11 +807,35 @@ class AppConfigs {
807
807
  if (!this.env.VALUEPAY_TRANSFER_SENDER_PHONE) {
808
808
  throw new Error("VALUEPAY_TRANSFER_SENDER_PHONE is required");
809
809
  }
810
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_ACCOUNT_NAME) {
811
+ throw new Error("VALUEPAY_TRANSFER_SENDER_ACCOUNT_NAME is required");
812
+ }
813
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_ACCOUNT_NUMBER) {
814
+ throw new Error("VALUEPAY_TRANSFER_SENDER_ACCOUNT_NUMBER is required");
815
+ }
816
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_BANK_NAME) {
817
+ throw new Error("VALUEPAY_TRANSFER_SENDER_BANK_NAME is required");
818
+ }
819
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_BANK_CODE) {
820
+ throw new Error("VALUEPAY_TRANSFER_SENDER_BANK_CODE is required");
821
+ }
822
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_BVN) {
823
+ throw new Error("VALUEPAY_TRANSFER_SENDER_BVN is required");
824
+ }
825
+ if (!this.env.VALUEPAY_TRANSFER_SENDER_KYC_LEVEL) {
826
+ throw new Error("VALUEPAY_TRANSFER_SENDER_KYC_LEVEL is required");
827
+ }
810
828
  return {
811
829
  lastname: this.env.VALUEPAY_TRANSFER_SENDER_LASTNAME,
812
830
  othernames: this.env.VALUEPAY_TRANSFER_SENDER_OTHERNAMES,
813
831
  email: this.env.VALUEPAY_TRANSFER_SENDER_EMAIL,
814
832
  phone: this.env.VALUEPAY_TRANSFER_SENDER_PHONE,
833
+ accountName: this.env.VALUEPAY_TRANSFER_SENDER_ACCOUNT_NAME,
834
+ accountNumber: this.env.VALUEPAY_TRANSFER_SENDER_ACCOUNT_NUMBER,
835
+ bankName: this.env.VALUEPAY_TRANSFER_SENDER_BANK_NAME,
836
+ bankCode: this.env.VALUEPAY_TRANSFER_SENDER_BANK_CODE,
837
+ bvn: this.env.VALUEPAY_TRANSFER_SENDER_BVN,
838
+ kycLevel: this.env.VALUEPAY_TRANSFER_SENDER_KYC_LEVEL,
815
839
  };
816
840
  }
817
841
  getTransactionSetting(merchantId) {
@@ -8,7 +8,7 @@ export declare enum Subjects {
8
8
  AccountCreated = "events.account.created",
9
9
  AccountUpdated = "events.account.updated",
10
10
  UserCreated = "events.user.created",
11
- UserUpdated = "events.account.updated",
11
+ UserUpdated = "events.user.updated",
12
12
  MerchantCreated = "events.merchant.created",
13
13
  MerchantUpdated = "events.merchant.updated",
14
14
  MerchantKeyUpdated = "events.merchant.key.updated",
@@ -16,7 +16,7 @@ var Subjects;
16
16
  Subjects["AccountUpdated"] = "events.account.updated";
17
17
  //users
18
18
  Subjects["UserCreated"] = "events.user.created";
19
- Subjects["UserUpdated"] = "events.account.updated";
19
+ Subjects["UserUpdated"] = "events.user.updated";
20
20
  //Merchants Subjects
21
21
  Subjects["MerchantCreated"] = "events.merchant.created";
22
22
  Subjects["MerchantUpdated"] = "events.merchant.updated";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.349",
3
+ "version": "1.0.351",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",