Commit Graph

114 Commits

Author SHA1 Message Date
Egor
e3fb2ec854 Update purchase.py 2026-01-17 03:28:29 +03:00
Egor
0e4f9c1ce0 Update happ.py 2026-01-17 03:07:06 +03:00
Egor
94320d4217 Add files via upload 2026-01-17 03:02:28 +03:00
Egor
44592602dc Update links.py 2026-01-17 03:00:13 +03:00
Egor
35dc9cf3e2 Update purchase.py 2026-01-17 02:54:40 +03:00
Egor
c59b823df2 Add files via upload 2026-01-17 02:45:46 +03:00
Egor
39fed57876 Update pricing.py 2026-01-17 02:41:59 +03:00
Egor
a42a884eb6 Update purchase.py 2026-01-17 02:37:16 +03:00
Egor
31fbccca26 Update tariff_purchase.py 2026-01-16 06:12:36 +03:00
Egor
5b7fdff186 Update traffic.py 2026-01-16 00:50:59 +03:00
Egor
a80f6f8700 Add files via upload 2026-01-15 17:42:17 +03:00
Egor
26865059b8 Update traffic.py 2026-01-15 17:32:20 +03:00
PEDZEO
e82b6cd4c0 Merge pull request #2281 from BEDOLAGA-DEV/buttons
Add tariff period selection for custom traffic in subscription flow
2026-01-14 06:52:09 +03:00
PEDZEO
e1d3363122 Implement discount calculation for custom tariff periods in subscription flow
- Added logic to calculate and apply discounts based on the selected tariff period.
- Updated state management to store discount percentages for custom days and traffic changes.
- Enhanced the tariff price calculation to incorporate discounts when confirming selections.
- Modified the tariff preview to display applicable discounts for better user clarity.
2026-01-14 06:50:19 +03:00
PEDZEO
25623ea211 Add tariff period selection for custom traffic in subscription flow
- Introduced a new function to generate a keyboard for selecting tariff periods with custom traffic.
- Enhanced the tariff price calculation logic to separate period and traffic pricing.
- Updated the custom tariff preview formatting to reflect changes in pricing structure.
- Implemented a new handler for processing the selection of tariff periods with custom traffic.
2026-01-14 06:44:36 +03:00
PEDZEO
3557c8c285 Merge pull request #2280 from BEDOLAGA-DEV/buttons
Implement custom days and traffic handling in subscription purchase flow
2026-01-14 06:41:05 +03:00
PEDZEO
84abf529de Implement custom days and traffic handling in subscription purchase flow
- Added new states for selecting custom days and traffic in the subscription process.
- Enhanced the tariff purchase handler to support custom days and traffic adjustments.
- Introduced new functions for formatting and displaying custom tariff previews.
- Updated the ban notification service to include a new notification type for WiFi bans.
- Modified API routes and schemas to accommodate the new notification type and its parameters.
2026-01-14 06:37:59 +03:00
Egor
58eae42eee Add files via upload 2026-01-13 16:51:19 +03:00
Egor
fe4e261115 Merge pull request #2275 from BEDOLAGA-DEV/buttons
Buttons
2026-01-13 03:33:39 +03:00
PEDZEO
a686333603 Add support for custom days and traffic in tariffs
- Introduced fields for custom days and traffic in the tariff model, including enabling flags, pricing, and limits.
- Updated relevant routes and schemas to handle new tariff features.
- Implemented logic for purchasing and managing custom days and traffic in subscriptions.
- Added database migration scripts to accommodate new columns for tariffs and subscriptions.
2026-01-13 02:55:32 +03:00
Egor
1583511854 Update tariff_purchase.py 2026-01-13 00:22:04 +03:00
PEDZEO
ac5850746e Merge pull request #2271 from BEDOLAGA-DEV/main
merge main
2026-01-12 22:25:49 +03:00
Egor
26f3d4e052 Update purchase.py 2026-01-12 18:57:50 +03:00
Egor
0f8a367b24 Add files via upload 2026-01-12 17:26:16 +03:00
Egor
3839f6f709 Add files via upload 2026-01-12 17:20:13 +03:00
Egor
0759657185 Update purchase.py 2026-01-12 17:00:05 +03:00
Egor
030acf07a4 Update tariff_purchase.py 2026-01-12 16:47:52 +03:00
Egor
92a6231b6f Update tariff_purchase.py 2026-01-12 16:40:42 +03:00
Egor
7aac2fadf7 Update tariff_purchase.py 2026-01-12 16:33:47 +03:00
Egor
8c5a385f14 Update tariff_purchase.py 2026-01-12 16:29:31 +03:00
Egor
78c44a1e00 Update tariff_purchase.py 2026-01-12 16:19:17 +03:00
Egor
1c23538b71 Update tariff_purchase.py 2026-01-12 16:14:14 +03:00
Egor
2b1a20e373 Update purchase.py 2026-01-12 15:59:22 +03:00
Egor
6fc3dd0e35 Update purchase.py 2026-01-12 15:49:25 +03:00
Egor
22884b5cdd Update purchase.py 2026-01-12 15:27:05 +03:00
PEDZEO
15f6108674 feat(tariffs): добавлена поддержка докупки трафика и улучшения тарифов
- Реализована возможность докупки трафика для тарифов с новыми параметрами: traffic_topup_enabled, traffic_topup_packages и max_topup_traffic_gb.
- Обновлены схемы и маршруты для управления тарифами и трафиком.
- Добавлены новые эндпоинты для работы с докупкой трафика в мини-приложении.
- Обновлены настройки и логика для проверки доступности докупки трафика в зависимости от тарифа.
- Внедрены улучшения в обработку платежей через Freekassa.

Обновлён .env.example с новыми параметрами для режима тарифов.
2026-01-12 07:47:35 +03:00
PEDZEO
0e24a5505c feat(subscription): добавлены новые функции для управления тарифами и трафиком
- Обновлены схемы и маршруты для поддержки покупки тарифов и управления трафиком.
- Реализована синхронизация тарифов и серверов из RemnaWave при запуске.
- Добавлены новые параметры в тарифы: server_traffic_limits и allow_traffic_topup.
- Обновлены настройки и логика для проверки доступности докупки трафика в зависимости от тарифа.
- Внедрены новые эндпоинты для работы с колесом удачи и обработка платежей через Stars.

Обновлён .env.example с новыми параметрами для режима продаж подписок.
2026-01-12 07:41:10 +03:00
Egor
a18cfd0147 Update tariff_purchase.py 2026-01-11 05:57:01 +03:00
Egor
479a2b8344 Update tariff_purchase.py 2026-01-11 05:52:59 +03:00
Egor
752abfc6b5 Update tariff_purchase.py 2026-01-11 04:08:48 +03:00
Egor
83769df0ee Update tariff_purchase.py 2026-01-10 20:52:25 +03:00
Egor
7ea906bd1e Update tariff_purchase.py 2026-01-10 20:41:59 +03:00
Egor
8690d5fa8e Update traffic.py 2026-01-10 20:32:20 +03:00
Egor
5eae547cb2 Update tariff_purchase.py 2026-01-08 02:57:50 +03:00
Egor
7e8e0c1617 Update tariff_purchase.py 2026-01-08 02:54:31 +03:00
Egor
250b8d95fb Update tariff_purchase.py 2026-01-08 02:45:26 +03:00
Egor
528944f649 Update tariff_purchase.py 2026-01-07 05:06:25 +03:00
Egor
48fa739ca7 Update tariff_purchase.py 2026-01-07 04:48:27 +03:00
Egor
07e50f449f Update tariff_purchase.py 2026-01-07 04:40:09 +03:00
Egor
b096003683 Update tariff_purchase.py 2026-01-07 04:26:31 +03:00