Refactor promo code handling in admin panel and clean up unused methods

- Replaced the promo_codes module with a new promo management structure, enhancing organization and clarity in the admin panel.
- Updated admin panel handlers to utilize the new promo management methods, improving the flow of promo code creation and management.
- Removed deprecated methods from payment and subscription data access layers, streamlining the codebase and improving maintainability.
- Ensured localization files are updated to reflect changes in promo management messaging, enhancing user experience.
This commit is contained in:
machka-pasla
2025-08-05 14:55:55 +03:00
parent c5f41a261b
commit 9cf5a93625
10 changed files with 1388 additions and 1790 deletions
+13
View File
@@ -0,0 +1,13 @@
from aiogram import Router
from . import create
from . import manage
from . import bulk
promo_router_aggregate = Router(name="promo_features_router")
promo_router_aggregate.include_router(create.router)
promo_router_aggregate.include_router(manage.router)
promo_router_aggregate.include_router(bulk.router)
__all__ = ("promo_router_aggregate",)