database-connector 2.5.17 → 2.5.18

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/Payment.js CHANGED
@@ -38,6 +38,7 @@ const mongoose = require('mongoose');
38
38
  * - completed
39
39
  * - failed
40
40
  * - refunded
41
+ * - conflict
41
42
  * paymentAmount:
42
43
  * type: number
43
44
  * description: Payment amount
@@ -95,7 +96,7 @@ const paymentSchema = new mongoose.Schema(
95
96
  paymentStatus: {
96
97
  type: String,
97
98
  required: true,
98
- enum: ['requested', 'pending', 'processing', 'completed', 'failed', 'refunded'],
99
+ enum: ['requested', 'pending', 'processing', 'completed', 'failed', 'refunded', 'conflict'],
99
100
  default: 'pending',
100
101
  },
101
102
  paymentAmount: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.5.17",
3
+ "version": "2.5.18",
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": {