database-connector 2.5.8 → 2.5.10

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/models/Policy.js CHANGED
@@ -86,6 +86,9 @@ const { Schema } = require('mongoose');
86
86
  * refund:
87
87
  * type: object
88
88
  * properties:
89
+ * enabled:
90
+ * type: boolean
91
+ * nullable: true
89
92
  * order:
90
93
  * type: object
91
94
  * properties:
@@ -211,6 +214,7 @@ const policySchema = new Schema(
211
214
  productStatus: { type: String, default: '' },
212
215
  returnMethod: { type: String, default: '' },
213
216
  refund: {
217
+ enabled: { type: Boolean, default: null },
214
218
  order: {
215
219
  fixe: { type: Number, default: null },
216
220
  percentage: { type: Number, default: null }
package/models/User.js CHANGED
@@ -33,6 +33,11 @@ const { policySchema } = require('database-connector/models/Policy');
33
33
  * type: boolean
34
34
  * default: false
35
35
  * description: Whether the user is an admin
36
+ * mobilePaymentManager:
37
+ * type: boolean
38
+ * nullable: true
39
+ * default: null
40
+ * description: Whether the payment manager goes to buyers to collect money (null if the user is not a paymentManager)
36
41
  * companyName:
37
42
  * type: string
38
43
  * description: Company name
@@ -189,6 +194,10 @@ const userSchema = new mongoose.Schema(
189
194
  default: null,
190
195
  },
191
196
  isAdmin: { type: Boolean, default: false },
197
+ mobilePaymentManager: {
198
+ type: Boolean,
199
+ default: null,
200
+ },
192
201
  companyName: {
193
202
  type: String,
194
203
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.5.8",
3
+ "version": "2.5.10",
4
4
  "description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
5
5
  "main": "models/index.js",
6
6
  "scripts": {