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:
2026-04-13 00:13:52 +06:00
parent ee5eb0f0f5
commit 78a9b99aae
18 changed files with 103 additions and 83 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { fileURLToPath } from "node:url";
import path from "path";
import { configs } from "./app/errors/configs";
import { configs } from "./app/configs";
import { accountSwaggerDocs } from "./app/modules/account/account.swagger";
import { orderSwaggerDocs } from "./app/modules/order/order.swagger";
import { planSwaggerDocs } from "./app/modules/plan/plan.swagger";