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