Files
remnawave-bedolaga-telegram…/app/handlers/subscription/__init__.py
gy9vin 90c3df6331 Добавлен функционал подключения модема к подписке
Изменения:
- Добавлены настройки модема в .env.example и config.py (MODEM_ENABLED, MODEM_PRICE_PER_MONTH, MODEM_PERIOD_DISCOUNTS)
- Добавлено поле modem_enabled в модель Subscription
- Реализован модуль handlers/subscription/modem.py с обработчиками подключения/отключения модема
- Добавлено управ
2025-12-25 14:26:15 +03:00

225 lines
5.7 KiB
Python

# Automatically generated module exports
from .autopay import (
handle_autopay_menu,
handle_subscription_cancel,
handle_subscription_config_back,
set_autopay_days,
show_autopay_days,
toggle_autopay,
)
from .common import (
build_redirect_link,
create_deep_link,
format_additional_section,
format_traffic_display,
get_apps_for_device,
get_confirm_switch_traffic_keyboard,
get_device_name,
get_localized_value,
get_reset_devices_confirm_keyboard,
get_step_description,
get_traffic_switch_keyboard,
load_app_config,
update_traffic_prices,
validate_traffic_price,
)
from .countries import (
apply_countries_changes,
confirm_add_countries_to_subscription,
countries_continue,
get_countries_price_by_uuids_fallback,
handle_add_countries,
handle_add_country_to_subscription,
handle_manage_country,
select_country,
)
from .devices import (
confirm_add_devices,
confirm_change_devices,
confirm_reset_devices,
execute_change_devices,
get_current_devices_count,
get_current_devices_detailed,
get_servers_display_names,
handle_all_devices_reset_from_management,
handle_app_selection,
handle_change_devices,
handle_device_guide,
handle_device_management,
handle_devices_page,
handle_reset_devices,
handle_single_device_reset,
handle_specific_app_guide,
show_device_connection_help,
show_devices_page,
)
from .happ import (
handle_happ_download_back,
handle_happ_download_close,
handle_happ_download_platform_choice,
handle_happ_download_request,
)
from .links import (
handle_connect_subscription,
handle_open_subscription_link,
)
from .notifications import (
send_extension_notification,
send_purchase_notification,
send_trial_notification,
)
from .pricing import (
get_subscription_cost,
get_subscription_info_text,
)
from .promo import (
claim_discount_offer,
handle_promo_offer_close,
)
from .purchase import (
activate_trial,
clear_saved_cart,
confirm_extend_subscription,
confirm_purchase,
create_paid_subscription_with_traffic_mode,
devices_continue,
handle_extend_subscription,
handle_subscription_settings,
register_handlers,
resume_subscription_checkout,
return_to_saved_cart,
save_cart_and_redirect_to_topup,
select_devices,
select_period,
show_subscription_info,
show_trial_offer,
start_subscription_purchase,
)
from .traffic import (
add_traffic,
confirm_reset_traffic,
confirm_switch_traffic,
execute_switch_traffic,
get_traffic_packages_info,
handle_add_traffic,
handle_no_traffic_packages,
handle_reset_traffic,
handle_switch_traffic,
refresh_traffic_config,
select_traffic,
)
from .modem import (
handle_modem_menu,
handle_modem_enable,
handle_modem_confirm,
handle_modem_disable,
register_modem_handlers,
)
__all__ = [
'activate_trial',
'add_traffic',
'apply_countries_changes',
'build_redirect_link',
'claim_discount_offer',
'clear_saved_cart',
'confirm_add_countries_to_subscription',
'confirm_add_devices',
'confirm_change_devices',
'confirm_extend_subscription',
'confirm_purchase',
'confirm_reset_devices',
'confirm_reset_traffic',
'confirm_switch_traffic',
'countries_continue',
'create_deep_link',
'create_paid_subscription_with_traffic_mode',
'devices_continue',
'execute_change_devices',
'execute_switch_traffic',
'format_additional_section',
'format_traffic_display',
'get_apps_for_device',
'get_confirm_switch_traffic_keyboard',
'get_countries_price_by_uuids_fallback',
'get_current_devices_count',
'get_current_devices_detailed',
'get_device_name',
'get_localized_value',
'get_reset_devices_confirm_keyboard',
'get_servers_display_names',
'get_step_description',
'get_subscription_cost',
'get_subscription_info_text',
'get_traffic_packages_info',
'get_traffic_switch_keyboard',
'handle_add_countries',
'handle_add_country_to_subscription',
'handle_add_traffic',
'handle_all_devices_reset_from_management',
'handle_app_selection',
'handle_autopay_menu',
'handle_change_devices',
'handle_connect_subscription',
'handle_device_guide',
'handle_device_management',
'handle_devices_page',
'handle_extend_subscription',
'handle_happ_download_back',
'handle_happ_download_close',
'handle_happ_download_platform_choice',
'handle_happ_download_request',
'handle_manage_country',
'handle_no_traffic_packages',
'handle_open_subscription_link',
'handle_promo_offer_close',
'handle_reset_devices',
'handle_reset_traffic',
'handle_single_device_reset',
'handle_specific_app_guide',
'handle_subscription_cancel',
'handle_subscription_config_back',
'handle_subscription_settings',
'handle_switch_traffic',
'handle_modem_menu',
'handle_modem_enable',
'handle_modem_confirm',
'handle_modem_disable',
'register_modem_handlers',
'load_app_config',
'refresh_traffic_config',
'register_handlers',
'resume_subscription_checkout',
'return_to_saved_cart',
'save_cart_and_redirect_to_topup',
'select_country',
'select_devices',
'select_period',
'select_traffic',
'send_extension_notification',
'send_purchase_notification',
'send_trial_notification',
'set_autopay_days',
'show_autopay_days',
'show_device_connection_help',
'show_devices_page',
'show_subscription_info',
'show_trial_offer',
'start_subscription_purchase',
'toggle_autopay',
'update_traffic_prices',
'validate_traffic_price',
]