@francesco_ksh/app-ksh-mgd-schemas 2.6.0 → 2.6.2

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/Order.js CHANGED
@@ -127,6 +127,9 @@ const orderSchema = new Schema(
127
127
  carrierNotes: {
128
128
  type: String,
129
129
  },
130
+ wasBeingPromoted: {
131
+ type: Boolean,
132
+ },
130
133
  automatedDiscount: {
131
134
  discountTitle: {
132
135
  type: String,
@@ -39,7 +39,7 @@ const promotionSchema = new Schema(
39
39
  {
40
40
  paymentMethod: {
41
41
  type: String,
42
- enum: ['accountBalance', 'paymentMethod'],
42
+ enum: ['accountBalance', 'paymentMethod', 'promotionCredits'],
43
43
  required: true,
44
44
  },
45
45
  stripePaymentId: {
package/models/User.js CHANGED
@@ -482,6 +482,9 @@ const userSchema = new Schema(
482
482
  },
483
483
  },
484
484
 
485
+ promotionCredits: {
486
+ type: Number,
487
+ },
485
488
  isTestUser: {
486
489
  type: Boolean,
487
490
  default: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@francesco_ksh/app-ksh-mgd-schemas",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Mongoose schema definitions",
5
5
  "main": "index.js",
6
6
  "repository": {