payservedb 8.3.0 → 8.3.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -81,7 +81,7 @@ const leaseAgreementSchema = new mongoose.Schema({
81
81
  type: {
82
82
  type: String,
83
83
  required: true,
84
- enum: ['Bank Transfer', 'Cash', 'Cheque']
84
+ enum: ['Bank Transfer', 'Cash', 'Cheque', 'Mobile Money']
85
85
  },
86
86
  // Reference bank details ID instead of storing bank info
87
87
  bankDetailsId: {
@@ -96,6 +96,7 @@ const leaseAgreementSchema = new mongoose.Schema({
96
96
  preferredCashLocation: String,
97
97
  // For mobile money
98
98
  provider: String,
99
+ businessNumber: String,
99
100
  phoneNumber: String,
100
101
  accountName: String
101
102
  },
@@ -103,19 +104,11 @@ const leaseAgreementSchema = new mongoose.Schema({
103
104
  }],
104
105
  securityDeposit: { type: Number, required: true },
105
106
  balanceBroughtForward: { type: Number, required: true, default: 0 },
107
+ taxEnabled: { type: Boolean, default: true },
106
108
  penaltyId: {
107
109
  type: mongoose.Schema.Types.ObjectId,
108
110
  ref: 'Penalty'
109
111
  },
110
- mpesaEnabled: {
111
- type: Boolean,
112
- default: false
113
- },
114
- mpesaDetails: {
115
- businessNumber: String,
116
- accountNumber: String,
117
- phoneNumber: String
118
- },
119
112
  escalations: [{
120
113
  _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
121
114
  effectiveDate: { type: Date, required: true },