feat: implement customer profile management and business application features

- Added customer profile controller with endpoints for retrieving, updating, and deactivating user profiles.
- Introduced address model and routes for managing user addresses.
- Created business application model and service for handling business applications, including approval and rejection processes.
- Developed business contact and credit account models to support business customer functionalities.
- Implemented settlement term model for managing payment terms.
- Added email templates for business application notifications (approved, rejected, received, and status changes).
- Enhanced validation schemas for customer and business inputs to ensure data integrity.
- Created unit tests for business application service and validation schemas to ensure functionality and correctness.
- Added migration scripts to set up new database tables and columns for customer and business features.
This commit is contained in:
Sathira Sri Sathara
2026-09-03 14:58:26 +05:30
parent b6b345f245
commit fd4e324571
36 changed files with 406 additions and 6 deletions
@@ -0,0 +1 @@
<!doctype html><html><body><p>Hello {{firstName}},</p><p>Your business account status is now {{status}}.</p></body></html>
@@ -0,0 +1 @@
<!doctype html><html><body><p>Hello {{firstName}},</p><p>Your business application for {{businessName}} was approved. Partner ID: {{partnerId}}.</p></body></html>
@@ -0,0 +1 @@
<!doctype html><html><body><p>Hello {{firstName}},</p><p>We received your business application for {{businessName}}. Reference: {{applicationId}}.</p></body></html>
@@ -0,0 +1 @@
<!doctype html><html><body><p>Hello {{firstName}},</p><p>Your business application for {{businessName}} was not approved. Reason: {{reason}}.</p></body></html>