Refactor subscription handling and payment method management

- Updated the user router to import the subscription router directly, preparing for future package separation.
- Removed the outdated subscription handler file, streamlining the codebase and improving maintainability.
- Introduced a new method for deleting user payment methods by provider ID, enhancing flexibility in payment management.
- Improved error handling and clarity in payment method operations, ensuring a smoother user experience.
This commit is contained in:
machka-pasla
2025-09-04 19:21:14 +03:00
parent 72eaed991a
commit d83f64c5fe
7 changed files with 961 additions and 1085 deletions
@@ -0,0 +1,14 @@
from aiogram import Router
from . import core
from . import payments
from . import payment_methods
router = Router(name="user_subscription_router")
# Include sub-routers
router.include_router(core.router)
router.include_router(payments.router)
router.include_router(payment_methods.router)