@konplit-services/common 1.18.0 → 1.19.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.
@@ -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",
@@ -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";
@@ -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.19.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",