@konplit-services/common 1.29.2 → 1.29.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.
@@ -396,6 +396,7 @@ declare class AppConfigs {
396
396
  isProduction(): boolean;
397
397
  getDSN_Key(): DSN;
398
398
  getComplianceEmail(): string;
399
+ getComplianceRiskEmail(): string;
399
400
  }
400
401
  declare const appConfigs: AppConfigs;
401
402
  export { appConfigs };
@@ -1050,6 +1050,12 @@ class AppConfigs {
1050
1050
  }
1051
1051
  return this.env.COMPLIANCE_EMAIL;
1052
1052
  }
1053
+ getComplianceRiskEmail() {
1054
+ if (!this.env.COMPLIANCE_RISK_EMAIL) {
1055
+ throw new Error("COMPLIANCE_RISK_EMAIL is required");
1056
+ }
1057
+ return this.env.COMPLIANCE_RISK_EMAIL;
1058
+ }
1053
1059
  }
1054
1060
  // make sure all keys are available on startup
1055
1061
  const appConfigs = new AppConfigs(process.env);
@@ -14,6 +14,8 @@ export interface SettlementCreatedEvent {
14
14
  charges: number;
15
15
  stampDuty: number;
16
16
  tax: number;
17
+ sourceVat: number;
18
+ sourceFee: number;
17
19
  transactionFee: number;
18
20
  settlementType: Settlement_TYPES;
19
21
  transactionDate: Date;
@@ -122,6 +122,7 @@ export declare enum Subjects {
122
122
  TransactionDeclined = "events.transaction.declined",
123
123
  TransactionWebhook = "events.transaction.webhook",
124
124
  TransactionFIRSNotification = "events.transaction.firs.created",
125
+ TransactionTaxNotification = "events.transaction.tax.report",
125
126
  TransactionDailyResetAmountCreated = "events.transaction.daily.reset.created",
126
127
  TransactionAmountUpdateSyncCreated = "events.transaction.amount.update.sync.created",
127
128
  TransactionExpiryDelayCreated = "events.transaction.expiry.delay.created",
@@ -149,6 +149,7 @@ var Subjects;
149
149
  Subjects["TransactionDeclined"] = "events.transaction.declined";
150
150
  Subjects["TransactionWebhook"] = "events.transaction.webhook";
151
151
  Subjects["TransactionFIRSNotification"] = "events.transaction.firs.created";
152
+ Subjects["TransactionTaxNotification"] = "events.transaction.tax.report";
152
153
  Subjects["TransactionDailyResetAmountCreated"] = "events.transaction.daily.reset.created";
153
154
  Subjects["TransactionAmountUpdateSyncCreated"] = "events.transaction.amount.update.sync.created";
154
155
  Subjects["TransactionExpiryDelayCreated"] = "events.transaction.expiry.delay.created";
@@ -10,3 +10,4 @@ export * from "./expiry-delay-timer.interface";
10
10
  export * from "./expiry-delay-timer.update.interface";
11
11
  export * from "./transaction-webhook.interface";
12
12
  export * from "./firs-notification-created.interface";
13
+ export * from "./tax-report.interface";
@@ -26,3 +26,4 @@ __exportStar(require("./expiry-delay-timer.interface"), exports);
26
26
  __exportStar(require("./expiry-delay-timer.update.interface"), exports);
27
27
  __exportStar(require("./transaction-webhook.interface"), exports);
28
28
  __exportStar(require("./firs-notification-created.interface"), exports);
29
+ __exportStar(require("./tax-report.interface"), exports);
@@ -0,0 +1,10 @@
1
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
+ export interface TransactionTaxNotificationEvent {
3
+ subject: Subjects.TransactionTaxNotification;
4
+ streamName: StreamName.name;
5
+ streamEvents: StreamEvent.Event;
6
+ data: {
7
+ message: string;
8
+ notification_date: string | Date;
9
+ };
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,9 +27,9 @@ export declare enum DISPUTE_WEBHOOK_TYPES {
27
27
  auto_accepted = "dispute.auto_accepted"
28
28
  }
29
29
  export declare enum DisputeReasonCode {
30
- FRAUD = "10.4",
31
- NON_DELIVERED = "13.1",
32
- DUPLICATE = "12.6",
33
- NOT_AUTHORIZED = "10.5",
34
- OTHER = "other"
30
+ FRAUD = "FRAUD",//"10.4",
31
+ NON_DELIVERED = "NON_DELIVERED",// "13.1",
32
+ DUPLICATE = "DUPLICATE",// "12.6",
33
+ NOT_AUTHORIZED = "NOT_AUTHORIZED",//"10.5",
34
+ OTHER = "OTHER"
35
35
  }
@@ -34,9 +34,9 @@ var DISPUTE_WEBHOOK_TYPES;
34
34
  })(DISPUTE_WEBHOOK_TYPES || (exports.DISPUTE_WEBHOOK_TYPES = DISPUTE_WEBHOOK_TYPES = {}));
35
35
  var DisputeReasonCode;
36
36
  (function (DisputeReasonCode) {
37
- DisputeReasonCode["FRAUD"] = "10.4";
38
- DisputeReasonCode["NON_DELIVERED"] = "13.1";
39
- DisputeReasonCode["DUPLICATE"] = "12.6";
40
- DisputeReasonCode["NOT_AUTHORIZED"] = "10.5";
41
- DisputeReasonCode["OTHER"] = "other";
37
+ DisputeReasonCode["FRAUD"] = "FRAUD";
38
+ DisputeReasonCode["NON_DELIVERED"] = "NON_DELIVERED";
39
+ DisputeReasonCode["DUPLICATE"] = "DUPLICATE";
40
+ DisputeReasonCode["NOT_AUTHORIZED"] = "NOT_AUTHORIZED";
41
+ DisputeReasonCode["OTHER"] = "OTHER";
42
42
  })(DisputeReasonCode || (exports.DisputeReasonCode = DisputeReasonCode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.29.2",
3
+ "version": "1.29.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",