@konplit-services/common 1.0.273 → 1.0.274

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,3 +1,4 @@
1
+ import { Usage } from "../../../helper";
1
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
3
  export interface TransactionAbortedEvent {
3
4
  subject: Subjects.TransactionAborted;
@@ -8,5 +9,6 @@ export interface TransactionAbortedEvent {
8
9
  transactionId: string;
9
10
  amount: number;
10
11
  additionalData?: any;
12
+ usage: Usage;
11
13
  };
12
14
  }
@@ -1,3 +1,4 @@
1
+ import { Usage } from "../../../helper";
1
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
3
  export interface TransactionCancelledEvent {
3
4
  subject: Subjects.TransactionCancelled;
@@ -8,5 +9,6 @@ export interface TransactionCancelledEvent {
8
9
  transactionId: string;
9
10
  amount: number;
10
11
  additionalData?: any;
12
+ usage: Usage;
11
13
  };
12
14
  }
@@ -1,4 +1,4 @@
1
- import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
1
+ import { TRANSACTION_CHARGES_TYPE, Usage } from "../../../helper";
2
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
3
  export interface TransactionCompletedEvent {
4
4
  subject: Subjects.TransactionCompleted;
@@ -11,5 +11,6 @@ export interface TransactionCompletedEvent {
11
11
  trasactionType?: TRANSACTION_CHARGES_TYPE;
12
12
  amount: number;
13
13
  additionalData?: any;
14
+ usage: Usage;
14
15
  };
15
16
  }
@@ -1,3 +1,4 @@
1
+ import { Usage } from "../../../helper";
1
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
3
  export interface TransactionDeclinedEvent {
3
4
  subject: Subjects.TransactionDeclined;
@@ -8,5 +9,6 @@ export interface TransactionDeclinedEvent {
8
9
  transactionId: string;
9
10
  amount: number;
10
11
  additionalData?: any;
12
+ usage: Usage;
11
13
  };
12
14
  }
@@ -1,3 +1,4 @@
1
+ import { Usage } from "../../../helper";
1
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
3
  export interface TransactionFailedEvent {
3
4
  subject: Subjects.TransactionFailed;
@@ -8,5 +9,6 @@ export interface TransactionFailedEvent {
8
9
  transactionId: string;
9
10
  amount: number;
10
11
  additionalData?: any;
12
+ usage: Usage;
11
13
  };
12
14
  }
@@ -1,3 +1,4 @@
1
+ import { Usage } from "../../../helper";
1
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
3
  export interface TransactionProcessingEvent {
3
4
  subject: Subjects.TransactionProcessing;
@@ -8,5 +9,6 @@ export interface TransactionProcessingEvent {
8
9
  transactionId: string;
9
10
  amount: number;
10
11
  additionalData?: any;
12
+ usage: Usage;
11
13
  };
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.273",
3
+ "version": "1.0.274",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",