payservedb 5.3.9 → 5.4.0

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": "5.3.9",
3
+ "version": "5.4.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -128,7 +128,12 @@ const handoverSchema = new mongoose.Schema({
128
128
  type: Number,
129
129
  min: 0
130
130
  },
131
- description: String
131
+ description: String,
132
+ invoiceId: {
133
+ type: mongoose.Schema.Types.ObjectId,
134
+ ref: 'Invoice',
135
+ default: null
136
+ }
132
137
  }],
133
138
  refundAmount: {
134
139
  type: Number,