@konplit-services/common 1.18.0 → 1.20.0

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.
@@ -12,3 +12,4 @@ export * from "./settlement-pay-merchant-nibss-created.interface";
12
12
  export * from "./settlement-transfer-reserved-nibss.interface";
13
13
  export * from "./settlement-manual-trigger.interface";
14
14
  export * from "./settlement-transaction-id-updated.interface";
15
+ export * from "./settlement-transaction-notify.interface";
@@ -28,3 +28,4 @@ __exportStar(require("./settlement-pay-merchant-nibss-created.interface"), expor
28
28
  __exportStar(require("./settlement-transfer-reserved-nibss.interface"), exports);
29
29
  __exportStar(require("./settlement-manual-trigger.interface"), exports);
30
30
  __exportStar(require("./settlement-transaction-id-updated.interface"), exports);
31
+ __exportStar(require("./settlement-transaction-notify.interface"), exports);
@@ -0,0 +1,18 @@
1
+ import { CURRENCY_TYPE } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface SettlementTransactionNotificationCreatedEvent {
4
+ subject: Subjects.SettlementTransactionNotifyCreated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ settlementId: string;
9
+ merchantId: string;
10
+ accountNumber: string;
11
+ accountName: string;
12
+ settledAmount: number;
13
+ charges: number;
14
+ transactionDate: Date;
15
+ merchantName: string;
16
+ currency?: CURRENCY_TYPE;
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,3 +18,4 @@ export * from "./sub-charge-receipt-notify.interface";
18
18
  export * from "./sub-payment-fail-notify.interface";
19
19
  export * from "./token-verification-notify.interface";
20
20
  export * from "./two2factor-auth-notify.interface";
21
+ export * from "./merchant-settlement-notification.event";
@@ -34,3 +34,4 @@ __exportStar(require("./sub-charge-receipt-notify.interface"), exports);
34
34
  __exportStar(require("./sub-payment-fail-notify.interface"), exports);
35
35
  __exportStar(require("./token-verification-notify.interface"), exports);
36
36
  __exportStar(require("./two2factor-auth-notify.interface"), exports);
37
+ __exportStar(require("./merchant-settlement-notification.event"), exports);
@@ -0,0 +1,8 @@
1
+ import { MerchantSettlementReceiptTemplateData } from "../../../../notification";
2
+ import { StreamEvent, StreamName, Subjects } from "../../../subjects";
3
+ export interface MerchantSettlementEmailNotificationCreatedEvent {
4
+ subject: Subjects.MerchantSettlementEmailNotificationCreated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: MerchantSettlementReceiptTemplateData;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -36,6 +36,7 @@ export declare enum Subjects {
36
36
  CustomerTransactionNotificationEmailCreated = "events.customer.trans.notification",
37
37
  MerchantTransactionNotificationEmailCreated = "events.merchant.trans.notification",
38
38
  PendingPaymentRequestNotificationEmailCreated = "events.pending.payment.request.notification",
39
+ MerchantSettlementEmailNotificationCreated = "events.merchant.settlement.email.notification",
39
40
  TwoFactorAuthNotificationEmailCreated = "events.two.factor.auth.notification",
40
41
  AdminAccountCreatedNotificationEmailCreated = "events.admin.account.created.notification",
41
42
  MerchantWelcomeNotificationEmailCreated = "events.merchant.welcome.notification",
@@ -67,6 +68,7 @@ export declare enum Subjects {
67
68
  SettlementTransferWallet = "events.settlement.transfer.wallet",
68
69
  SettlementTransactionUpdated = "events.settlement.transaction.updated",
69
70
  SettlementTransactionIdUpdated = "events.settlement.transaction.id.updated",
71
+ SettlementTransactionNotifyCreated = "events.settlement.notify.created",
70
72
  TransferInitiation = "events.transfer.initiation",
71
73
  TransferFundReserved = "events.transfer.reserved",
72
74
  TransferFailed = "events.transfer.failed",
@@ -50,6 +50,7 @@ var Subjects;
50
50
  Subjects["CustomerTransactionNotificationEmailCreated"] = "events.customer.trans.notification";
51
51
  Subjects["MerchantTransactionNotificationEmailCreated"] = "events.merchant.trans.notification";
52
52
  Subjects["PendingPaymentRequestNotificationEmailCreated"] = "events.pending.payment.request.notification";
53
+ Subjects["MerchantSettlementEmailNotificationCreated"] = "events.merchant.settlement.email.notification";
53
54
  Subjects["TwoFactorAuthNotificationEmailCreated"] = "events.two.factor.auth.notification";
54
55
  Subjects["AdminAccountCreatedNotificationEmailCreated"] = "events.admin.account.created.notification";
55
56
  Subjects["MerchantWelcomeNotificationEmailCreated"] = "events.merchant.welcome.notification";
@@ -84,6 +85,7 @@ var Subjects;
84
85
  Subjects["SettlementTransferWallet"] = "events.settlement.transfer.wallet";
85
86
  Subjects["SettlementTransactionUpdated"] = "events.settlement.transaction.updated";
86
87
  Subjects["SettlementTransactionIdUpdated"] = "events.settlement.transaction.id.updated";
88
+ Subjects["SettlementTransactionNotifyCreated"] = "events.settlement.notify.created";
87
89
  //TRANSFERS
88
90
  Subjects["TransferInitiation"] = "events.transfer.initiation";
89
91
  Subjects["TransferFundReserved"] = "events.transfer.reserved";
@@ -1,5 +1,6 @@
1
1
  import { Usage } from "../helper";
2
2
  export interface EmailBase {
3
+ merchant_id?: string;
3
4
  business_logo?: string;
4
5
  business_name?: string;
5
6
  business_support_email?: string;
@@ -106,6 +107,14 @@ export interface CustomerTransactionReceiptTemplateData extends EmailBase {
106
107
  payment_method: string;
107
108
  card_last4?: string;
108
109
  }
110
+ export interface MerchantSettlementReceiptTemplateData extends EmailBase {
111
+ transaction_date: string;
112
+ settlement_amount: number;
113
+ settlement_bank_name?: string;
114
+ settlement_account_number?: string;
115
+ number_of_transaction: number;
116
+ receipt_number?: string;
117
+ }
109
118
  export interface MerchantTransactionNotificationTemplateData extends EmailBase {
110
119
  customer_name: string;
111
120
  merchant_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",