feat: add demo device top-up flow

This commit is contained in:
3252a8
2026-05-28 15:54:35 +03:00
parent 9af49453f8
commit cd469ae2bb
5 changed files with 129 additions and 5 deletions
+11 -2
View File
@@ -778,31 +778,40 @@ export function applyPreviewMock(kind) {
};
DEV_MOCK.data.device_topup_options = {
ok: true,
enabled: true,
tariff_key: "standard",
tariff_name: "Стандарт",
current_limit: 5,
current_devices: 5,
max_devices: 5,
available_extra_devices: 3,
extra_hwid_devices: 0,
extra_hwid_devices_valid_until_text: "",
renewal_available: false,
renewal_recommended_count: 0,
plans: [
{
id: "standard:hwid:1",
tariff_key: "standard",
tariff_name: "Стандарт",
sale_mode: "hwid_device",
sale_mode: "hwid_devices",
purchased_hwid_devices: 1,
price: 120,
currency: "RUB",
title: "+1 устройство",
subtitle: "Стандарт",
device_count: 1,
},
{
id: "standard:hwid:3",
tariff_key: "standard",
tariff_name: "Стандарт",
sale_mode: "hwid_device",
sale_mode: "hwid_devices",
purchased_hwid_devices: 3,
price: 290,
currency: "RUB",
title: "+3 устройства",
subtitle: "Стандарт",
device_count: 3,
},
],