docta-package 1.2.88 → 1.2.91

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.
@@ -4,5 +4,6 @@ export declare enum SessionStatus {
4
4
  PAID = "PAID",
5
5
  CANCELLED = "CANCELLED",
6
6
  CANCELLED_BY_DOCTOR = "CANCELLED_BY_DOCTOR",
7
- CANCELLED_DUE_TO_TIME_OUT = "CANCELLED_DUE_TO_TIME_OUT"
7
+ CANCELLED_DUE_TO_TIME_OUT = "CANCELLED_DUE_TO_TIME_OUT",
8
+ FAILED = "FAILED"
8
9
  }
@@ -9,4 +9,5 @@ var SessionStatus;
9
9
  SessionStatus["CANCELLED"] = "CANCELLED";
10
10
  SessionStatus["CANCELLED_BY_DOCTOR"] = "CANCELLED_BY_DOCTOR";
11
11
  SessionStatus["CANCELLED_DUE_TO_TIME_OUT"] = "CANCELLED_DUE_TO_TIME_OUT";
12
+ SessionStatus["FAILED"] = "FAILED";
12
13
  })(SessionStatus || (exports.SessionStatus = SessionStatus = {}));
@@ -18,8 +18,8 @@ export interface ISessionConfig {
18
18
  * Interface for embedded payment data
19
19
  */
20
20
  export interface ISessionPayment {
21
- transactionId: string;
22
- transactionTime: number;
21
+ transactionId?: string;
22
+ transactionTime?: string;
23
23
  webhookStatus: EnumTranzakPaymentStatus;
24
24
  webhookId: string;
25
25
  amount: number;
@@ -40,7 +40,7 @@ const SessionSchema = new mongoose_1.Schema(Object.assign(Object.assign({}, base
40
40
  disbursementPercentage: { type: Number, required: true },
41
41
  }, hasDoctorCollected: { type: Boolean, required: true, default: false }, hasPlatformCollected: { type: Boolean, required: true, default: false }, payment: {
42
42
  transactionId: { type: String, required: false },
43
- transactionTime: { type: Number, required: false },
43
+ transactionTime: { type: String, required: false },
44
44
  webhookStatus: {
45
45
  type: String,
46
46
  enum: Object.values(tranzak_1.EnumTranzakPaymentStatus),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.88",
3
+ "version": "1.2.91",
4
4
  "description": "This package will contail all the required files to run the docta micro-service app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",