fix: tune tariffs folder

This commit is contained in:
3252a8
2026-05-11 22:12:19 +03:00
parent ed6b214b29
commit 116b0a5c08
13 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ class Settings(BaseSettings):
default=None,
description="Comma-separated list of traffic packages priced in Stars, e.g. '5:500,20:1500'",
)
TARIFFS_CONFIG_PATH: str = Field(default="config/tariffs.json")
TARIFFS_CONFIG_PATH: str = Field(default="data/tariffs.json")
TARIFF_TRAFFIC_WARNING_LEVELS: str = Field(
default="85,90,95",
description="Comma-separated traffic usage warning levels for tariff traffic limits, e.g. '85,90,95'",
-72
View File
@@ -1,72 +0,0 @@
{
"default_tariff": "standard",
"tariffs": [
{
"key": "standard",
"names": { "ru": "Стандарт", "en": "Standard" },
"descriptions": { "ru": "Базовый набор серверов", "en": "Base server pool" },
"premium_names": { "ru": "Premium-серверы", "en": "Premium servers" },
"squad_uuids": ["uuid-1", "uuid-2"],
"premium_squad_uuids": ["premium-squad-uuid"],
"premium_monthly_gb": 50,
"premium_topup_packages": {
"rub": [
{ "gb": 10, "price": 99 },
{ "gb": 50, "price": 399 }
],
"stars": [
{ "gb": 10, "price": 2500 }
]
},
"billing_model": "period",
"monthly_gb": 500,
"topup_packages": {
"rub": [
{ "gb": 10, "price": 99 },
{ "gb": 50, "price": 399 },
{ "gb": 200, "price": 1299 }
],
"stars": [
{ "gb": 10, "price": 2500 }
]
},
"hwid_device_limit": 5,
"hwid_device_packages": {
"rub": [
{ "count": 1, "price": 99 },
{ "count": 3, "price": 249 }
],
"stars": [
{ "count": 1, "price": 2500 }
]
},
"prices_rub": { "1": 150, "3": 400, "6": 750, "12": 1400 },
"prices_stars": { "1": 0, "3": 0, "6": 0, "12": 0 },
"enabled_periods": [1, 3, 6, 12],
"enabled": true
},
{
"key": "traffic_basic",
"names": { "ru": "Гигабайты", "en": "Gigabytes" },
"descriptions": {
"ru": "Пакеты трафика без ограничения по времени",
"en": "Traffic packages with no time limit"
},
"squad_uuids": ["uuid-1", "uuid-2"],
"billing_model": "traffic",
"hwid_device_limit": 3,
"conversion_rate_rub_per_gb": 20,
"traffic_packages": {
"rub": [
{ "gb": 10, "price": 199 },
{ "gb": 50, "price": 799 },
{ "gb": 200, "price": 1999 }
],
"stars": [
{ "gb": 10, "price": 2500 }
]
},
"enabled": true
}
]
}