payservedb 1.6.7 → 1.6.8

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": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,3 +1,4 @@
1
+ const e = require('cors');
1
2
  const mongoose = require('mongoose');
2
3
 
3
4
  const LevySchema = new mongoose.Schema({
@@ -24,12 +25,17 @@ const LevySchema = new mongoose.Schema({
24
25
  type: String,
25
26
  required: [true, 'Collection Frequency is required'],
26
27
  trim: true,
28
+ enum: ['Monthly', 'Quarterly', 'Annually', 'Semi-annually', 'Weekly']
27
29
  },
28
30
  invoiceDate: {
29
31
  type: String,
30
32
  required: [true, 'Invoice Date is required'],
31
33
  trim: true,
32
34
  },
35
+ disabled: {
36
+ type: Boolean,
37
+ default: false
38
+ },
33
39
  facilityId: {
34
40
  type: mongoose.Schema.Types.ObjectId,
35
41
  ref: 'Facility',