docta-package 1.2.52 → 1.2.53

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.
@@ -44,10 +44,10 @@ class SessionAdminOutputDto extends SessionOutputDto {
44
44
  this.hasDoctorCollected = session.hasDoctorCollected;
45
45
  this.hasPlatformCollected = session.hasPlatformCollected;
46
46
  this.config = {
47
- originalDoctorConsultationFeePerHour: session.config.originalDoctorConsultationFeePerHour,
48
- platformPercentage: session.config.platformPercentage,
49
- collectionPercentage: session.config.collectionPercentage,
50
- disbursementPercentage: session.config.disbursementPercentage,
47
+ originalDoctorConsultationFeePerHour: session.meta.originalDoctorConsultationFeePerHour,
48
+ platformPercentage: session.meta.platformPercentage,
49
+ collectionPercentage: session.meta.collectionPercentage,
50
+ disbursementPercentage: session.meta.disbursementPercentage,
51
51
  };
52
52
  this.createdBy = session.createdBy
53
53
  ? new user_1.UserOutputDto(session.createdBy)
@@ -25,7 +25,7 @@ export interface ISession extends IBaseModel {
25
25
  platformPrice: number;
26
26
  hasDoctorCollected: boolean;
27
27
  hasPlatformCollected: boolean;
28
- config: ISessionConfig;
28
+ meta: ISessionConfig;
29
29
  }
30
30
  /**
31
31
  * Document + Model interfaces
@@ -22,7 +22,7 @@ const SessionSchema = new mongoose_1.Schema(Object.assign(Object.assign({}, base
22
22
  enum: Object.values(session_status_1.SessionStatus),
23
23
  default: session_status_1.SessionStatus.Created,
24
24
  required: true,
25
- }, totalPrice: { type: Number, required: true }, doctorPrice: { type: Number, required: true }, platformPrice: { type: Number, required: true }, paymentApiPrice: { type: Number, required: true }, config: {
25
+ }, totalPrice: { type: Number, required: true }, doctorPrice: { type: Number, required: true }, platformPrice: { type: Number, required: true }, paymentApiPrice: { type: Number, required: true }, meta: {
26
26
  originalDoctorConsultationFeePerHour: { type: Number, required: true },
27
27
  platformPercentage: { type: Number, required: true },
28
28
  collectionPercentage: { type: Number, required: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.52",
3
+ "version": "1.2.53",
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",