Files
malenia/schemas/di.py
hexdev 049f31118d feat: Implement payment notification system and API structure
- Added notifications for successful payments in `api/core/notifications.py`.
- Created main API entry point in `api/main.py` with FastAPI integration.
- Established routing structure in `api/routes/__init__.py` and `api/routes/pally.py` for handling payment callbacks.
- Developed billing handlers in `bot/handlers/billing.py` and `bot/handlers/buy.py` for subscription management.
- Introduced state management for user interactions in `bot/states/`.
- Created user interface elements in `bot/keyboards/` for navigation and payment processing.
- Set up middleware for dependency injection in `bot/middlewares/di.py`.
- Added support for user commands and interactions in `bot/handlers/common.py` and `bot/handlers/support.py`.
- Implemented logging and error handling throughout the bot's functionality.
- Created entry point script for API server in `entrypoints/api.sh`.
2026-04-24 17:41:42 +07:00

28 lines
707 B
Python

from dataclasses import dataclass
from remnawave import RemnawaveSDK
from misc.pally import PallyClient
from repositories.bills import BillsRepository
from repositories.users import UserRepository
from services.billing_service import BillingService
from services.user_service import UserService
@dataclass
class DependenciesDTO:
user_repository: UserRepository
user_service: UserService
rw_sdk: RemnawaveSDK
bills_repository: BillsRepository
billing_service: BillingService
pally_client: PallyClient
@dataclass
class APIDependenciesDTO:
user_repository: UserRepository
user_service: UserService
bills_repository: BillsRepository
billing_service: BillingService