feat(lava): покупка привязкой, продукт тарифа в админке, CTA

Фронтовые хвосты автопродления Lava (бэкенд: de3518b7).

- Поле «Продукт Lava» в форме создания/редактирования тарифа: раньше
  lava_product_id можно было задать только через API, из-за чего фичу нельзя
  было включить из интерфейса. Пустая строка отвязывает тариф от продукта.
- CTA «Оформить с автооплатой Lava» в форме покупки тарифа — рядом с
  СБП-кнопкой, в обеих ветках рендера; флаг lava_recurrent_enabled из
  purchase-options наконец получил потребителя.
- API-метод purchaseWithLavaRecurring + типы lava_product_id в списке,
  детали и запросах тарифа.
- Локали ru/en/zh/fa: подписи покупки и поля продукта (плейсхолдеры сверены).
This commit is contained in:
Fringg
2026-07-29 20:23:35 +03:00
parent 2dce539da2
commit a28f1167f7
10 changed files with 123 additions and 8 deletions

View File

@@ -724,7 +724,9 @@
"halfYear": "every six months",
"year": "yearly"
},
"autopayHint": "The subscription will renew automatically via Lava"
"autopayHint": "The subscription will renew automatically via Lava",
"purchaseButton": "⚡ Subscribe with Lava auto-renewal",
"purchaseHint": "The first invoice is paid via a Lava link; renewals are then charged automatically on the products schedule."
},
"backToList": "Back to subscriptions",
"confirmDelete": "Delete subscription?",
@@ -2765,7 +2767,9 @@
"periodsRequired": "Add at least one period",
"dailyPriceRequired": "Enter a price per day greater than 0",
"trafficPackagesRequired": "Add at least one traffic package (or disable traffic topup)"
}
},
"lavaProductLabel": "Lava product (auto-renewal)",
"lavaProductDesc": "Product UUID from the Lava dashboard: price and charge period are configured there. Empty — auto-renewal is unavailable for this tariff."
},
"servers": {
"title": "Squad Management",