Commit Graph

491 Commits

Author SHA1 Message Date
mahyargdz aa487809ee feat: add new route to get service single guide 2025-08-19 15:24:36 +03:30
mahyargdz 0764c2689f feat: enhance danak services with feedback system and improved metadata tracking
- Add service feedback system with CRUD operations
- Add service guide functionality
- Enhance metadata tracking with comprehensive headers (user-agent, referer, language, etc.)
- Add new DTOs for feedback and guide management
- Add repositories for feedback and guide entities
- Update controller with new endpoints for feedback management
- Improve service organization and method structure
- Add payment and user entity enhancements
2025-08-19 13:15:13 +03:30
mahyargdz 43a3714284 feat: update subscription and service entities with enhancements
- Update message enum for better error handling
- Enhance service creation DTO with new fields
- Modify danak-service entity structure
- Update subscription DTOs and entities
- Improve user subscription entity model
2025-08-19 09:32:25 +03:30
mahyargdz 72b1edbe25 feat: implement recurring invoice system for subscription renewals
- Add SUBSCRIPTION_RENEWAL_JOB_NAME and related constants for renewal jobs
- Implement createSubscriptionRenewalInvoice in invoice processor
- Add automatic renewal invoice creation 7 days before subscription expiry
- Handle subscription renewals in payInvoice method with period extension
- Add scheduleNextRenewalJob method for continuous renewal scheduling
- Prevent duplicate renewal invoices and jobs
- Skip renewal jobs for free plans
- Send notifications for renewal opportunities
- Fix duplicate job scheduling issue by removing from subscribeToPlan

Features:
- Automatic renewal invoice creation before expiry
- Subscription period extension on renewal payment
- Continuous renewal cycle scheduling
- Comprehensive error handling and validation
- Integration with existing notification system
2025-08-17 10:00:12 +03:30
mahyargdz ca0510f2c2 feat: add validation to prevent multiple free plan purchases within a month
- Add FREE_PLAN_LIMIT_EXCEEDED error message in Persian
- Implement validation logic in subscribeToPlan method to check for existing free plan subscriptions
- Users can only purchase free plans once per month
- Added MoreThan import from TypeORM for date comparison
2025-08-17 09:35:12 +03:30
mahyargdz d8e91231b3 update: add is free to the subs plan 2025-08-17 09:01:37 +03:30
mahyargdz 840654b3f0 feat: add new field for the danak services 2025-08-16 12:56:08 +03:30
mahyargdz ef57dc7107 chore: change the login and regitster flow to single route 2025-08-16 12:50:58 +03:30
mahyargdz 629b8dbdd5 update: the blog list get for admin 2025-08-04 09:48:39 +03:30
mahyargdz 9262c5b569 update: remove birthday and national code 2025-08-02 09:57:16 +03:30
mahyargdz 1e21988d9d update: package json 2025-07-28 15:49:18 +03:30
mahyargdz b7dcc994f6 chore: implenet the external invoice 2 2025-07-14 12:28:40 +03:30
mahyargdz 11b8164c28 chore: implenet the external invoice 2025-07-14 10:37:44 +03:30
mahyargdz 5fe82bb661 feat: fix 2025-07-12 14:58:43 +03:30
mahyargdz 633b23cf73 chore: change the token expiration to minutes 2025-07-03 18:29:21 +03:30
mahyargdz ef0f7b3eb5 update: subscription service 2025-06-11 15:56:09 +03:30
mahyargdz 4a7003a532 chore: parsian 2025-06-07 15:50:37 +03:30
mahyargdz f4ce67c00c chore: notif service 2025-06-07 00:10:02 +03:30
mahyargdz dba7cec544 chore: change the payment logic 2025-06-05 15:27:04 +03:30
mahyargdz bd40f349bf chore: change the refresh token service 2025-06-01 12:04:02 +03:30
mahyargdz 8d335429e2 chore: fix auth problem 2025-06-01 11:11:33 +03:30
mahyargdz 3f3d4d976a chore: add notification count to user get all notification 2025-05-31 16:08:54 +03:30
mahyargdz 74eede394e fix: the enum of recuuring period for invoice 2025-05-31 11:26:49 +03:30
mahyargdz f7cd91d67f fix: the invoice date instead of the invoice due date for admin nitify 2025-05-31 11:20:13 +03:30
mahyargdz cfaac752d4 update: the invoice update by admin logic 2025-05-31 11:17:30 +03:30
mahyargdz aa695cc17c fix: permisson 2025-05-27 11:06:26 +03:30
Mahyargdz ae8df599f1 update: remove the limit of ticket message in ticket creation 2025-05-25 10:33:51 +03:30
Mahyargdz 56ead7c57b fix: the problem in the invoice pay 2025-05-25 10:13:21 +03:30
Mahyargdz 15c7b841fe fix: the discount code bug in apply for invoice 2025-05-25 09:23:29 +03:30
Mahyargdz 8b467cb832 chore: fix the sms length bug 2025-05-24 16:20:56 +03:30
Mahyargdz d5ae216784 update: user me data 2025-05-24 15:26:48 +03:30
Mahyargdz 8bbe821dc8 fix: bug 2025-05-24 14:23:02 +03:30
mahyargdz e03f95a17a update: add telegram logger 2025-05-23 19:06:44 +03:30
Mahyargdz b5c90e8c2e chore: add business logic 2025-05-18 11:17:30 +03:30
mahyargdz 1bc8b23452 chore: add logic for remove completed payment 2025-05-15 15:36:44 +03:30
Mahyargdz 2ac29d1a91 chore: add direct payment for invoice 2025-05-14 16:31:05 +03:30
Mahyargdz eae5981ea1 fix: big 2025-05-14 15:33:09 +03:30
Mahyargdz 22ba9e52dc chore: fix the send email problem 2025-05-14 14:59:58 +03:30
Mahyargdz 9bd662f872 chore: add send announce sms 2025-05-14 10:05:17 +03:30
Mahyargdz d2af460de3 chore: add ticket queue 2025-05-14 09:49:12 +03:30
Mahyargdz 1d8e8ec07f update: change the invoice status 2025-05-13 11:46:15 +03:30
Mahyargdz e3a75f16a0 update: add no paginate to the user get 2025-05-13 10:49:15 +03:30
Mahyargdz e8402b673f chore: add wallet deduct notification 2025-05-11 16:06:14 +03:30
Mahyargdz e7c3d8105f chore: update the processor of the notification 2025-05-11 15:10:23 +03:30
Mahyargdz 78d143fa85 feat: round the price 2025-05-11 10:11:15 +03:30
Mahyargdz ad4bf79afb update: fix invoice proccessor 2025-05-10 12:30:39 +03:30
Mahyargdz 24bc359c3f feat: update the announcement update process 2025-05-10 08:52:00 +03:30
Mahyargdz c5b2b156b9 feat: update the feature key of support plan to have numeric prefix 2025-05-08 12:30:53 +03:30
Mahyargdz 3d915930a7 chore: add user to the invoice 2025-05-08 10:39:19 +03:30
mahyargdz 9faa75b049 feat: implement invoice processing and discount management 2025-05-07 15:34:17 +03:30