✨ feat(order): add customer email and optional fields, update order creation flow
- Added `customerEmail` field to Order model. - Made `customerNote` optional in the Order model. - Updated order creation logic to send a tracking email. - Updated order validation to handle optional fields. - Refactored configurations import path from `errors/configs` to `configs`. - Minor modifications across account and order services for consistency.
This commit is contained in:
@@ -10,18 +10,16 @@ export const orderSwaggerDocs = {
|
||||
content: {
|
||||
"application/json": {
|
||||
example: JSON.stringify({
|
||||
|
||||
"shopAccountId": "",
|
||||
"productPrice": 1500,
|
||||
"productQuantity": 2,
|
||||
"productName": "Wireless Mouse",
|
||||
"customerName": "Rahim Uddin",
|
||||
"customerPhone": "+8801712345678",
|
||||
"customerEmail": "softvence.abumahid@gmail.com",
|
||||
"customerAddress": "Rangpur, Bangladesh",
|
||||
"customerNote": "Please deliver between 3-5 PM",
|
||||
"paymentType": "Cash on Delivery",
|
||||
"status": "Pending"
|
||||
|
||||
}), // put your request body
|
||||
"customerNote": "Please deliver between 3-5 PM"
|
||||
})
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user