Commit Graph

19 Commits

Author SHA1 Message Date
morteza 0ba027d4e3 fix : extend and upgrade user subscription 2026-02-01 11:54:51 +03:30
mahyargdz 5e0bd3dce7 update: remove the blog from the response of the update or create blog 2025-09-03 10:03:02 +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 f7cd91d67f fix: the invoice date instead of the invoice due date for admin nitify 2025-05-31 11:20:13 +03:30
mahyargdz e03f95a17a update: add telegram logger 2025-05-23 19:06:44 +03:30
Mahyargdz 1d8e8ec07f update: change the invoice status 2025-05-13 11:46:15 +03:30
mahyargdz 9faa75b049 feat: implement invoice processing and discount management 2025-05-07 15:34:17 +03:30
mahyargdz c3ad2a1733 chore: add all notification sewrvice to the queue 2025-05-04 16:19:59 +03:30
mahyargdz d50b18b8aa fix: remove check length for the notif settings 2025-05-04 15:11:08 +03:30
mahyargdz 170bb867d0 chore: add notif service for new criticisms ticket and subscribtion 2025-05-04 14:48:39 +03:30
mahyargdz 10a7653451 update: the invoice service 2025-04-23 14:29:48 +03:30
mahyargdz 5ef5edc44b chore: add crude for admin 2025-04-22 12:28:11 +03:30
mahyargdz e7d547f19b refactor: the invoice queue logic 2025-04-21 14:52:38 +03:30
mahyargdz d198800362 update: commit for the new file 2025-04-19 09:46:10 +03:30
mahyargdz 0b62341908 chore: add loger for the telegram sender 2025-03-28 16:10:12 +03:30
mahyargdz 4503721b90 chore: add recurring invoice proccesor logic 2025-03-11 11:52:46 +03:30
mahyargdz dff944ef90 update: invoice processor and fix bug 2025-03-09 23:16:00 +03:30
mahyargdz 65535af4f7 fix: bug in the send reminder send 2025-03-08 22:00:48 +03:30
mahyargdz 15187680ce chore: add queue for invoice reminder logic but not tested 2025-03-07 19:03:45 +03:30