@positivegrid/pg-mongoose-schema 27.4.4 → 27.5.0

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
@@ -74,6 +74,7 @@ module.exports = function (mongoose) {
74
74
  has: { type: ObjectId },
75
75
  to: { type: ObjectId }
76
76
  }],
77
+ remap_product_sku: { type: String },
77
78
  extra_payment_fields: { type: Schema.Types.Mixed },
78
79
  created_on: { type: Date, default: Date.now },
79
80
  updated_on: { type: Date, default: Date.now }
@@ -92,6 +93,7 @@ module.exports = function (mongoose) {
92
93
  from_hardware: { type: ObjectId, ref: 'hardware_activation_record', default: null },
93
94
  from_gift: { type: ObjectId, ref: 'License', default: null },
94
95
  from_guest: { type: ObjectId, ref: 'GuestCheckout', default: null },
96
+ from_remap: { type: ObjectId, ref: 'Product' },
95
97
  upgrade_to: { type: ObjectId, ref: 'License', default: null }, // Upgrade from which license
96
98
  price_amount: { type: Number, default: null },
97
99
  due_date: { type: Date, default: null },
package/models/user.js CHANGED
@@ -63,6 +63,7 @@ module.exports = function (mongoose) {
63
63
  is_email_verified: { type: Boolean, default: false },
64
64
  is_registered: { type: Boolean, default: true },
65
65
  stripe_customer_id: { type: String, default: null },
66
+ selected_country: { type: String, default: null },
66
67
  date_joined: { type: Date, default: Date.now },
67
68
  search_mark: { type: Number, default: 0 } // control the order of search
68
69
  }, { collection: 'jamup_userprofile' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.4.4",
3
+ "version": "27.5.0",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",