flykup_model_production 1.0.24 → 1.0.26

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.
@@ -245,7 +245,8 @@ const orderSchema = new mongoose.Schema(
245
245
  'RETURN_RECEIVED',
246
246
  'REFUNDED',
247
247
  'REPLACEMENT_SHIPPED',
248
- 'REPLACEMENT_DELIVERED'
248
+ 'REPLACEMENT_DELIVERED',
249
+ 'PAYMENT_FAILED'
249
250
  ],
250
251
  // default: 'ORDERED', // Default should be the initial state
251
252
  required: true
@@ -256,6 +257,12 @@ const orderSchema = new mongoose.Schema(
256
257
  required: true
257
258
  },
258
259
  sourceRefId: String,
260
+ showId: {
261
+ type: mongoose.Schema.Types.ObjectId,
262
+ ref: 'shows',
263
+ default: null,
264
+ index: true
265
+ },
259
266
  deliveryCharge: {
260
267
  type: Number,
261
268
  default: 40
@@ -163,6 +163,11 @@ const UserSchema = new mongoose.Schema(
163
163
  type: String,
164
164
  enum: ["pending","profile_setup", "completed"],
165
165
  default: "completed" // Default to completed for existing users
166
+ },
167
+ preferredPayment: {
168
+ type: String,
169
+ enum: ["flykup_balance", "payment_gateway", null],
170
+ default: null,
166
171
  },
167
172
  deviceInfo: {
168
173
  deviceId: { type: String, default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_production",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,