@konplit-services/common 1.25.4 → 1.25.6

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.
@@ -1,4 +1,4 @@
1
- import { PaymentOptions, Usage } from "../../../helper";
1
+ import { PaymentOptions, TransactionCharge, Usage } from "../../../helper";
2
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
3
  export interface MandateCreatedEvent {
4
4
  subject: Subjects.KORE_MANDATE_CREATED;
@@ -16,5 +16,7 @@ export interface MandateCreatedEvent {
16
16
  channel: PaymentOptions;
17
17
  accountName?: string;
18
18
  processorTransactionId: string;
19
+ payee: TransactionCharge;
20
+ fee: number;
19
21
  };
20
22
  }
@@ -0,0 +1,8 @@
1
+ import { AdminPaymentOptionSetting } from "../../../interfaces/admin-paymentoption-setting.interface";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface PaymentOptionCreatedEvent {
4
+ subject: Subjects.PaymentOptionCreated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: AdminPaymentOptionSetting;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,3 +23,4 @@ export * from "./bvn-validation-created.interface";
23
23
  export * from "./bvn-validation-updated.interface";
24
24
  export * from "./merchant-registration-created.interface";
25
25
  export * from "./merchant-registration-updated.interface";
26
+ export * from "./admin-paymentoption-setting.interface";
@@ -44,3 +44,5 @@ __exportStar(require("./bvn-validation-updated.interface"), exports);
44
44
  //Registration
45
45
  __exportStar(require("./merchant-registration-created.interface"), exports);
46
46
  __exportStar(require("./merchant-registration-updated.interface"), exports);
47
+ //Payment Options
48
+ __exportStar(require("./admin-paymentoption-setting.interface"), exports);
@@ -102,6 +102,8 @@ export declare enum Subjects {
102
102
  BANKACCOUNT_DELETED = "events.bank.account.deleted",
103
103
  BANKACCOUNT_VERIFY = "events.bank.account.verify",
104
104
  BANKACCOUNT_VERIFY_UPDATED = "events.bank.account.verify_updated",
105
+ PaymentOptionUpdated = "events.payment.option.updated",
106
+ PaymentOptionCreated = "events.payment.option.created",
105
107
  SUBBANKACCOUNT_CREATED = "events.sub.account.created",
106
108
  SUBACCOUNT_UPDATED = "events.sub.account.updated",
107
109
  SUBBANKACCOUNT_DELETED = "events.sub.account.deleted",
@@ -124,6 +124,9 @@ var Subjects;
124
124
  Subjects["BANKACCOUNT_DELETED"] = "events.bank.account.deleted";
125
125
  Subjects["BANKACCOUNT_VERIFY"] = "events.bank.account.verify";
126
126
  Subjects["BANKACCOUNT_VERIFY_UPDATED"] = "events.bank.account.verify_updated";
127
+ //PAYMENT OPTIONS
128
+ Subjects["PaymentOptionUpdated"] = "events.payment.option.updated";
129
+ Subjects["PaymentOptionCreated"] = "events.payment.option.created";
127
130
  //SUBACCOUNT
128
131
  Subjects["SUBBANKACCOUNT_CREATED"] = "events.sub.account.created";
129
132
  Subjects["SUBACCOUNT_UPDATED"] = "events.sub.account.updated";
@@ -59,6 +59,7 @@ export declare const PERMISSIONS: {
59
59
  CAN_UPDATE_WEBHOOK: string;
60
60
  CAN_FETCH_WEBHOOK: string;
61
61
  CAN_UPDATE_SETTINGS: string;
62
+ CAN_MANAGE_PAYMENT_OPTIONS: string;
62
63
  CAN_VIEW_TRANSACTION: string;
63
64
  CAN_UPDATE_TRANSACTION: string;
64
65
  CAN_CREATE_TRANSACTION: string;
@@ -63,6 +63,7 @@ exports.PERMISSIONS = {
63
63
  CAN_UPDATE_WEBHOOK: "CAN_UPDATE_WEBHOOK",
64
64
  CAN_FETCH_WEBHOOK: "CAN_FETCH_WEBHOOK",
65
65
  CAN_UPDATE_SETTINGS: "CAN_UPDATE_SETTINGS",
66
+ CAN_MANAGE_PAYMENT_OPTIONS: "CAN_MANAGE_PAYMENT_OPTIONS",
66
67
  CAN_VIEW_TRANSACTION: "CAN_VIEW_TRANSACTION",
67
68
  CAN_UPDATE_TRANSACTION: "CAN_UPDATE_TRANSACTION",
68
69
  CAN_CREATE_TRANSACTION: "CAN_CREATE_TRANSACTION",
@@ -0,0 +1,6 @@
1
+ import { PaymentOptions } from "../helper";
2
+ export interface AdminPaymentOptionSetting {
3
+ id: string;
4
+ paymentOptions: Record<PaymentOptions, boolean>;
5
+ version?: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.25.4",
3
+ "version": "1.25.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",