@francesco_ksh/app-ksh-mgd-schemas 2.4.9 → 2.5.1
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/Claim.js +10 -0
- package/models/Order.js +8 -0
- package/package.json +1 -1
package/models/Claim.js
CHANGED
|
@@ -103,6 +103,16 @@ const claimSchema = new Schema(
|
|
|
103
103
|
evidence: [{ type: String }],
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
|
+
acceptedResolution: {
|
|
107
|
+
type: {
|
|
108
|
+
type: String,
|
|
109
|
+
enum: ['partial_refund', 'full_refund', 'schedule_return'],
|
|
110
|
+
},
|
|
111
|
+
acceptedAt: { type: Date },
|
|
112
|
+
refundAmount: { type: Number },
|
|
113
|
+
refundId: { type: String },
|
|
114
|
+
sellerWithdrawalAmount: { type: Number },
|
|
115
|
+
},
|
|
106
116
|
},
|
|
107
117
|
{ timestamps: true }
|
|
108
118
|
);
|
package/models/Order.js
CHANGED
|
@@ -573,6 +573,14 @@ const orderSchema = new Schema(
|
|
|
573
573
|
type: Object,
|
|
574
574
|
},
|
|
575
575
|
],
|
|
576
|
+
paymentDeclined: {
|
|
577
|
+
isCustomerNotified: {
|
|
578
|
+
type: Boolean,
|
|
579
|
+
},
|
|
580
|
+
latAttemptedAt: {
|
|
581
|
+
type: Date,
|
|
582
|
+
},
|
|
583
|
+
},
|
|
576
584
|
},
|
|
577
585
|
sellerAlreadyPaidOut: {
|
|
578
586
|
type: Boolean,
|