flykup_model_development 3.1.35 → 3.1.36

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.
@@ -61,16 +61,30 @@ const paymentSchema = new mongoose.Schema({
61
61
  },
62
62
  paymentMethod: String,
63
63
  transactionTime: Date,
64
- sellerPayments: [{
64
+ sellerPayments: [{
65
65
  sellerId: {
66
66
  type: mongoose.Schema.Types.ObjectId,
67
67
  ref: 'users',
68
68
  required: true
69
69
  },
70
- amount: Number,
70
+ payableAmount: { // Amount for products only
71
+ type: Number,
72
+ required: true,
73
+ default: 0
74
+ },
75
+ deliveryCharge: { // Delivery fee for this seller's shipment
76
+ type: Number,
77
+ required: true,
78
+ default: 0
79
+ },
80
+ totalAmount: { // The sum of payableAmount + deliveryCharge
81
+ type: Number,
82
+ required: true,
83
+ default: 0
84
+ },
71
85
  settlementStatus: {
72
86
  type: String,
73
- enum: ['PENDING', 'SETTLED','FAILED'],
87
+ enum: ['PENDING', 'SETTLED', 'FAILED'],
74
88
  default: 'PENDING'
75
89
  }
76
90
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.35",
3
+ "version": "3.1.36",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,