database-connector 2.5.3 → 2.5.4
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 +8 -0
- package/package.json +1 -1
package/models/Order.js
CHANGED
|
@@ -241,6 +241,10 @@ const { policySchema } = require('./Policy');
|
|
|
241
241
|
* type: string
|
|
242
242
|
* nullable: true
|
|
243
243
|
* description: Link to the invoice document
|
|
244
|
+
* currency:
|
|
245
|
+
* type: string
|
|
246
|
+
* nullable: true
|
|
247
|
+
* description: Currency code for the order (e.g. USD, EUR, DZD)
|
|
244
248
|
* status:
|
|
245
249
|
* type: string
|
|
246
250
|
* enum: [Pending, Payed, InPreparation, LoadingDelivery, OnTheWay, Delivered, AwaitingRecovery, Recovered, Reserved, WaitingForReturn, Returned, UnderRefund, Refunded, succeeded]
|
|
@@ -468,6 +472,10 @@ const orderSchema = new mongoose.Schema(
|
|
|
468
472
|
type: String,
|
|
469
473
|
default: null,
|
|
470
474
|
},
|
|
475
|
+
currency: {
|
|
476
|
+
type: String,
|
|
477
|
+
default: null,
|
|
478
|
+
},
|
|
471
479
|
status: {
|
|
472
480
|
type: String, required: true, enum: [
|
|
473
481
|
'Pending',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
|
|
5
5
|
"main": "models/index.js",
|
|
6
6
|
"scripts": {
|