basklee-svelte 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/bin/basklee-svelte.mjs +4 -4
- package/package.json +2 -2
- package/src/install.mjs +4 -4
- package/src/project-readme.mjs +7 -7
- package/templates/basklee/COMPONENTS.md +7 -7
- package/templates/src/lib/components/basklee/cart/CartDeliverySelector.README.md +1 -1
- package/templates/src/lib/components/basklee/cart/CartItemOptions.README.md +1 -1
- package/templates/src/lib/components/basklee/cart/CartLineItem.README.md +1 -1
- package/templates/src/lib/components/basklee/orders/OrderPaymentForm.README.md +1 -1
- package/templates/src/lib/components/basklee/payments/PaymentPanel.README.md +1 -1
- package/templates/src/lib/components/basklee/subscriptions/StorefrontSubscriptions.README.md +1 -1
- package/templates/src/lib/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +1 -1
- package/templates/src/lib/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +1 -1
- package/templates/src/lib/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +1 -1
- package/templates/src/lib/components/basklee/wallet/StorefrontWallet.README.md +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ leaves the app on the first page. With `@capacitor/filesystem` and
|
|
|
44
44
|
`@capacitor/share`, a purchased file is saved in the app and opened from the
|
|
45
45
|
Android share sheet. Without the variable the website build is
|
|
46
46
|
unchanged. Setup, build and release steps:
|
|
47
|
-
[Android app guide](https://
|
|
47
|
+
[Android app guide](https://basklee.com/en/sandbox/android-app?framework=svelte).
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
npm install -D @sveltejs/adapter-static
|
|
@@ -70,7 +70,7 @@ checks this rule for every maintained Svelte template.
|
|
|
70
70
|
## Quick start from zero
|
|
71
71
|
|
|
72
72
|
Your personal backend domain is already provided in your account at
|
|
73
|
-
[
|
|
73
|
+
[basklee.com](https://basklee.com). You can change it there.
|
|
74
74
|
Replace `your-project.orionplace.app` below with that domain and
|
|
75
75
|
`shop.example.com` with the public domain of your own storefront.
|
|
76
76
|
With Node.js 20.19+ and npm installed, run this from the parent folder;
|
|
@@ -361,10 +361,10 @@ storefront on your server; see [Install on your server](#install-on-your-server)
|
|
|
361
361
|
|
|
362
362
|
Prepare a Linux server once with the Basklee server script: it installs
|
|
363
363
|
Node.js, nginx and certbot and adds the `basklee` command
|
|
364
|
-
([server guide](https://
|
|
364
|
+
([server guide](https://basklee.com/en/sandbox/install)).
|
|
365
365
|
|
|
366
366
|
```bash
|
|
367
|
-
curl -fsSLo basklee.sh https://
|
|
367
|
+
curl -fsSLo basklee.sh https://basklee.com/downloads/basklee.sh
|
|
368
368
|
sudo sh basklee.sh setup
|
|
369
369
|
```
|
|
370
370
|
|
|
@@ -385,7 +385,7 @@ certificate. Run it again after code or package updates; the service keeps its
|
|
|
385
385
|
port. Options: `--name <service>`, `--port <port>`, `--user <user>`,
|
|
386
386
|
`--no-build` (install the build already in the folder), `--no-domains`, `--yes`,
|
|
387
387
|
`--dry-run`. Full guide:
|
|
388
|
-
[Install a storefront](https://
|
|
388
|
+
[Install a storefront](https://basklee.com/en/sandbox/install/storefront?framework=svelte).
|
|
389
389
|
|
|
390
390
|
### Manage the service
|
|
391
391
|
|
|
@@ -622,8 +622,8 @@ renames without changing anything. A server set up before the rename keeps its
|
|
|
622
622
|
|
|
623
623
|
## Documentation
|
|
624
624
|
|
|
625
|
-
- [Create a SvelteKit frontend](https://
|
|
626
|
-
- [Marketplace API documentation](https://
|
|
625
|
+
- [Create a SvelteKit frontend](https://basklee.com/en/sandbox/new-project/svelte)
|
|
626
|
+
- [Marketplace API documentation](https://basklee.com/en/sandbox/)
|
|
627
627
|
|
|
628
628
|
## Development
|
|
629
629
|
|
package/bin/basklee-svelte.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { setupProject } from '../src/setup.mjs';
|
|
3
3
|
import { updateProject } from '../src/update.mjs';
|
|
4
|
-
import { installService } from '../src/install.mjs';
|
|
4
|
+
import { installService, serverName } from '../src/install.mjs';
|
|
5
5
|
import { SERVICE_ACTIONS, SERVICE_ALIASES, controlService, findApp, printService } from '../src/service.mjs';
|
|
6
6
|
import { sitemapCommand } from '../src/sitemap.mjs';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
@@ -18,7 +18,7 @@ From zero (Node.js 20.19+ with npm; run from the parent folder):
|
|
|
18
18
|
npx basklee-svelte add frontend shop.example.com
|
|
19
19
|
npm run dev
|
|
20
20
|
|
|
21
|
-
Replace the backend with the domain from your
|
|
21
|
+
Replace the backend with the domain from your basklee.com profile,
|
|
22
22
|
and the frontend with your storefront domain. Open the local URL printed by Vite;
|
|
23
23
|
the storefront opens after Application Load succeeds.
|
|
24
24
|
|
|
@@ -40,7 +40,7 @@ On your Linux server (run from the project root):
|
|
|
40
40
|
Builds the storefront, installs it as a system service (systemd or OpenRC)
|
|
41
41
|
and, when the basklee server tool is set up, connects its domains with
|
|
42
42
|
nginx and HTTPS. Run it again after changes or an update to rebuild and restart.
|
|
43
|
-
Server tool: https://
|
|
43
|
+
Server tool: https://basklee.com/downloads/basklee.sh
|
|
44
44
|
|
|
45
45
|
Manage the installed service (from the project root, or name it with --name):
|
|
46
46
|
npx basklee-svelte status service, autostart, port and home page answer
|
|
@@ -113,7 +113,7 @@ try {
|
|
|
113
113
|
console.log(`Domains: ${done.frontends.join(', ') || 'none yet'} -> ${done.backend || 'no backend yet'}`);
|
|
114
114
|
console.log(`\n${done.unitPath}:\n${done.unit}`);
|
|
115
115
|
} else {
|
|
116
|
-
console.log(`\nInstalled
|
|
116
|
+
console.log(`\nInstalled ${serverName}-${done.name} (port ${done.port}, user ${done.user}).`);
|
|
117
117
|
for (const domain of done.frontends) {
|
|
118
118
|
if (!install.domains) console.log(` - ${domain}: not connected (--no-domains)`);
|
|
119
119
|
else if (!done.connected) console.log(` - ${domain}: not connected to nginx (see above)`);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basklee-svelte",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "SvelteKit 2 storefront for your Basklee marketplace: setup CLI, server API gateway, typed store and ready-made catalog, cart, checkout and account components in English, Russian and Spanish, plus an Android app build.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Basklee",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://basklee.com/en/sandbox/new-project/svelte",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"svelte",
|
|
11
11
|
"svelte5",
|
package/src/install.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Installs the built storefront as a system service on a Linux server and
|
|
2
2
|
// connects its domains through the "basklee" server tool
|
|
3
|
-
// (https://
|
|
3
|
+
// (https://basklee.com/downloads/basklee.sh) when that tool is set up.
|
|
4
4
|
import { spawn } from 'node:child_process';
|
|
5
5
|
import { mkdir, readFile, readdir, rename, stat, writeFile } from 'node:fs/promises';
|
|
6
6
|
import { existsSync } from 'node:fs';
|
|
@@ -221,7 +221,7 @@ async function ensureDomains(root, { yes }) {
|
|
|
221
221
|
const ask = process.stdin.isTTY && !yes;
|
|
222
222
|
if (!settings.backend) {
|
|
223
223
|
if (!ask) throw new Error(`Set the personal backend first: npx basklee-${framework.id} set backend my-shop.orionplace.app`);
|
|
224
|
-
log('Your personal backend is shown in your
|
|
224
|
+
log('Your personal backend is shown in your basklee.com profile, for example my-shop.orionplace.app.');
|
|
225
225
|
await setupProject({ cwd: root, field: 'backend', value: await prompt('Personal backend domain: ') });
|
|
226
226
|
settings = await read();
|
|
227
227
|
}
|
|
@@ -331,7 +331,7 @@ export async function installService({
|
|
|
331
331
|
const owned = await run('chown', ['-R', `${account.uid}:${account.gid}`, root], { capture: true });
|
|
332
332
|
if (owned.code) throw new Error(`Could not give ${root} to ${account.name}:\n${owned.output}`);
|
|
333
333
|
|
|
334
|
-
log(`\n==> Installing the service
|
|
334
|
+
log(`\n==> Installing the service ${serverName}-${service} on port ${chosen}`);
|
|
335
335
|
await writeAtomic(unitPath, unit, systemd ? 0o644 : 0o755);
|
|
336
336
|
await writeAtomic(join(paths.etc, 'apps', `${service}.conf`), conf);
|
|
337
337
|
const steps = systemd
|
|
@@ -361,7 +361,7 @@ export async function installService({
|
|
|
361
361
|
}
|
|
362
362
|
} else if (domains) {
|
|
363
363
|
log('\nThe basklee server tool is not set up, so nginx and HTTPS were not configured. Prepare the server:');
|
|
364
|
-
log(' curl -fsSLo basklee.sh https://
|
|
364
|
+
log(' curl -fsSLo basklee.sh https://basklee.com/downloads/basklee.sh && sudo sh basklee.sh setup');
|
|
365
365
|
log(`Then run this install again. Or proxy your HTTPS site to http://127.0.0.1:${chosen} as basklee/README.md describes.`);
|
|
366
366
|
}
|
|
367
367
|
return { name: service, port: chosen, user: account.name, unitPath, frontends: settings.frontends, failed, connected: domains && Boolean(tool) };
|
package/src/project-readme.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export function projectReadme(settings) {
|
|
|
4
4
|
return `# Your Basklee SvelteKit integration
|
|
5
5
|
|
|
6
6
|
This folder contains the integration source for your SvelteKit storefront.
|
|
7
|
-
Your personal backend API is provided in your account at https://
|
|
7
|
+
Your personal backend API is provided in your account at https://basklee.com.
|
|
8
8
|
You can change that backend domain in your account, then update this project.
|
|
9
9
|
|
|
10
10
|
## Quick start from zero
|
|
@@ -22,7 +22,7 @@ npm run dev
|
|
|
22
22
|
\`\`\`
|
|
23
23
|
|
|
24
24
|
Replace \`your-project.orionplace.app\` with the personal backend domain shown in
|
|
25
|
-
your profile at [
|
|
25
|
+
your profile at [basklee.com](https://basklee.com), and
|
|
26
26
|
\`shop.example.com\` with your storefront domain. The first frontend also becomes
|
|
27
27
|
the local MIMIC domain.
|
|
28
28
|
|
|
@@ -295,7 +295,7 @@ The shared client renews the token for the next action and returns the failed
|
|
|
295
295
|
request; the customer retries explicitly. After confirmed login/logout, reset and refresh Application Load; these actions
|
|
296
296
|
change application data and do not log in/out or delete cookies.
|
|
297
297
|
|
|
298
|
-
[Cookie lifecycle and browser request example](https://
|
|
298
|
+
[Cookie lifecycle and browser request example](https://basklee.com/en/sandbox/appload/svelte#session-cookies)
|
|
299
299
|
|
|
300
300
|
### Rendering, navigation and failures
|
|
301
301
|
|
|
@@ -342,7 +342,7 @@ If installation fails after source generation, run \`npm install\` and retry.
|
|
|
342
342
|
The quickest way: prepare the server with the Basklee server script,
|
|
343
343
|
then run \`sudo npx basklee-svelte install\` in this folder. It builds the
|
|
344
344
|
project, runs it as a system service and connects your domains with nginx and
|
|
345
|
-
HTTPS. Steps: [Install a storefront](https://
|
|
345
|
+
HTTPS. Steps: [Install a storefront](https://basklee.com/en/sandbox/install/storefront?framework=svelte).
|
|
346
346
|
Then manage it from this folder: \`npx basklee-svelte status\`, \`sudo npx basklee-svelte restart\`,
|
|
347
347
|
\`sudo npx basklee-svelte stop\`, \`sudo npx basklee-svelte start\` and \`sudo npx basklee-svelte logs\`.
|
|
348
348
|
\`sudo npx basklee-svelte uninstall\` (or \`cleanup\`) stops and removes the service; this folder stays.
|
|
@@ -419,7 +419,7 @@ Deploy the website first, then build the app with Capacitor 8. With
|
|
|
419
419
|
client-only and sends every API request to that storefront through Capacitor's
|
|
420
420
|
native HTTP (\`src/lib/utils/basklee/nativeApp.ts\`). Without the variable the
|
|
421
421
|
website build is unchanged. Steps:
|
|
422
|
-
[Android app guide](https://
|
|
422
|
+
[Android app guide](https://basklee.com/en/sandbox/android-app?framework=svelte).
|
|
423
423
|
|
|
424
424
|
\`\`\`bash
|
|
425
425
|
npm install -D @sveltejs/adapter-static
|
|
@@ -429,7 +429,7 @@ npx cap sync android
|
|
|
429
429
|
|
|
430
430
|
## More documentation
|
|
431
431
|
|
|
432
|
-
- [SvelteKit package installation and domain setup](https://
|
|
433
|
-
- [Application Load](https://
|
|
432
|
+
- [SvelteKit package installation and domain setup](https://basklee.com/en/sandbox/new-project/svelte)
|
|
433
|
+
- [Application Load](https://basklee.com/en/sandbox)
|
|
434
434
|
`;
|
|
435
435
|
}
|
|
@@ -157,13 +157,13 @@ The API response tables also explain the following contracts / Таблицы о
|
|
|
157
157
|
|
|
158
158
|
| API | Contract / Контракт |
|
|
159
159
|
| --- | --- |
|
|
160
|
-
| [cart_guest_get](https://
|
|
161
|
-
| [invoices_get](https://
|
|
162
|
-
| [subscriptions_get](https://
|
|
163
|
-
| [profile_promocodes_get](https://
|
|
164
|
-
| [orders_create](https://
|
|
165
|
-
| [profile_orders_get](https://
|
|
166
|
-
| [subscriptions_guest_search](https://
|
|
160
|
+
| [cart_guest_get](https://basklee.com/en/sandbox/api/cart_guest_get) · [RU](https://basklee.com/ru/sandbox/api/cart_guest_get) | Checkout options and saved choices / Опции оформления и сохранённый выбор |
|
|
161
|
+
| [invoices_get](https://basklee.com/en/sandbox/api/invoices_get) · [RU](https://basklee.com/ru/sandbox/api/invoices_get) | Transaction direction and refunds / Направление платежей и возвраты |
|
|
162
|
+
| [subscriptions_get](https://basklee.com/en/sandbox/api/subscriptions_get) · [RU](https://basklee.com/ru/sandbox/api/subscriptions_get) | Subscription state, renewal and service data / Состояние подписки, продление и данные сервиса |
|
|
163
|
+
| [profile_promocodes_get](https://basklee.com/en/sandbox/api/profile_promocodes_get) · [RU](https://basklee.com/ru/sandbox/api/profile_promocodes_get) | Issued codes and promotion conditions / Выданные коды и условия акций |
|
|
164
|
+
| [orders_create](https://basklee.com/en/sandbox/api/orders_create) · [RU](https://basklee.com/ru/sandbox/api/orders_create) | Failure fields and recovery / Поля ошибок и исправление |
|
|
165
|
+
| [profile_orders_get](https://basklee.com/en/sandbox/api/profile_orders_get) · [RU](https://basklee.com/ru/sandbox/api/profile_orders_get) | Ordered options, returns and downloads / Купленные опции, возвраты и загрузки |
|
|
166
|
+
| [subscriptions_guest_search](https://basklee.com/en/sandbox/api/subscriptions_guest_search) · [RU](https://basklee.com/ru/sandbox/api/subscriptions_guest_search) | Plan parameters, units and headings / Параметры тарифа, единицы и подписи |
|
|
167
167
|
|
|
168
168
|
## Cart loading / Загрузка корзины
|
|
169
169
|
|
|
@@ -61,7 +61,7 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
61
61
|
| Выбрать пункт выдачи | Запрос `cart_customer_delivery_points_get` получает те же ID отправления и типа, возвращая `page_data.items`. Передайте выбранный объект `point`, включая код, код города и адрес, вместе с этими ID в `cart_customer_delivery_pickup_set`. |
|
|
62
62
|
| После успешного сохранения | Ответ содержит `page_data.delivery_price_is_estimate`, без обновлённого отправления. Контроллер корзины закрывает выбор и вызывает `cart_guest_get`, чтобы получить подтверждённые способ, адрес, даты и итоги. При отказе показывается ошибка. Если не удалась только повторная загрузка, обновите корзину без повторения успешного сохранения. |
|
|
63
63
|
|
|
64
|
-
[English guide](https://
|
|
64
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/cart-delivery-selector) · [Русский](https://basklee.com/ru/sandbox/components/svelte/cart-delivery-selector)
|
|
65
65
|
|
|
66
66
|
## Parent cart loading / Загрузка корзины
|
|
67
67
|
|
|
@@ -71,4 +71,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
71
71
|
| `option_group_required` | True помечает группу обязательной. Для текста нужен непустой сохранённый текст, для файла — сохранённое имя, для товарной группы — опция с положительным количеством. |
|
|
72
72
|
| Очистка | `cart_customer_option_cleanup_additional` получает `option_group_id: group.id` и очищает сохранённые текст/файл. Ошибка сохранения сохраняет локальный ввод; подтверждённое сохранение обновляет корзину. |
|
|
73
73
|
|
|
74
|
-
[English guide](https://
|
|
74
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/cart-item-options) · [Русский](https://basklee.com/ru/sandbox/components/svelte/cart-item-options)
|
|
@@ -51,4 +51,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
51
51
|
| Удаление в CHECKOUT | Передайте `product.dlf_id` как `dlf_item_id` в `cart_customer_remove_by_dlf_item`. После подтверждения загрузите все отправки и суммы корзины заново. |
|
|
52
52
|
| Недоступные или неполные данные | `unavailable` скрывает редактирование количества. Если суммы позиции отправки/корзины отсутствуют, выводится `product.product_price_dict`; эта цена не подтверждает итог оформления. |
|
|
53
53
|
|
|
54
|
-
[English guide](https://
|
|
54
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/cart-line-item) · [Русский](https://basklee.com/ru/sandbox/components/svelte/cart-line-item)
|
|
@@ -51,4 +51,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
51
51
|
| Полученные `link` и `link_type` | Описывают следующую страницу оплаты. Родитель при необходимости передаёт их в `PaymentPanel` и загружает `profile_orders_get`. Пустая ссылка может означать, что внешняя страница не нужна; результат подтверждает обновлённое состояние платежа/заказа. |
|
|
52
52
|
| `onCancel` / `pending` | Cancel без данных просит родителя закрыть форму. Pending блокирует выбор и обе кнопки. Ошибка сохранения оставляет форму и выбранный способ для исправления. |
|
|
53
53
|
|
|
54
|
-
[English guide](https://
|
|
54
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/order-payment-form) · [Русский](https://basklee.com/ru/sandbox/components/svelte/order-payment-form)
|
|
@@ -67,4 +67,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
67
67
|
| `onRefresh` | Событие без данных при проверке состояния. Кошелёк обновляет платежи и баланс профиля; страница заказов загружает `profile_orders_get`. |
|
|
68
68
|
| `onClose` | Событие без данных. Готовый родитель скрывает панель и обновляет те же данные кошелька или заказа. Закрытие меняет видимость панели, а завершение оплаты определяется полученным состоянием платежа/заказа. |
|
|
69
69
|
|
|
70
|
-
[English guide](https://
|
|
70
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/payment-panel) · [Русский](https://basklee.com/ru/sandbox/components/svelte/payment-panel)
|
package/templates/src/lib/components/basklee/subscriptions/StorefrontSubscriptions.README.md
CHANGED
|
@@ -62,4 +62,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
62
62
|
| Отмена продления | Подписка активна, `cancelled_date` отсутствует, у тарифа есть периоды или уже настроено продление. |
|
|
63
63
|
| После подтверждённого изменения | Загрузите `subscriptions_get` и `profile_get`: используйте полученные тариф, даты, продление, признак ожидания и баланс. Если обновление не удалось, повторите его до следующего действия с оплатой. |
|
|
64
64
|
|
|
65
|
-
[English guide](https://
|
|
65
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/subscriptions) · [Русский](https://basklee.com/ru/sandbox/components/svelte/subscriptions)
|
package/templates/src/lib/components/basklee/subscriptions/SubscriptionPlanSummary.README.md
CHANGED
|
@@ -70,4 +70,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
70
70
|
| `sales_module`, `blog_module`, `qr_module` | Логические признаки модулей продаж, блога и QR-маркировки остатков. Справочник встроенных параметров находится в `subscriptions_guest_search`. |
|
|
71
71
|
| Параметр уже показан рядом с использованием | Его предел исключается из отдельного списка параметров тарифа, чтобы выводиться один раз. |
|
|
72
72
|
|
|
73
|
-
[English guide](https://
|
|
73
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/subscription-plan) · [Русский](https://basklee.com/ru/sandbox/components/svelte/subscription-plan)
|
package/templates/src/lib/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md
CHANGED
|
@@ -71,7 +71,7 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
71
71
|
| Пример пакета | `host: shop.example` и `enabled: false` дают две строки. Вложенный объект `settings` по умолчанию не выводится. Явный список fields только с `host` оставляет лишь это сведение. |
|
|
72
72
|
| Собственные сведения | Snippet `details` получает исходные `data` и отфильтрованные `entries`. Выберите поля для отображения. |
|
|
73
73
|
|
|
74
|
-
[English guide](https://
|
|
74
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/subscription-remote) · [Русский](https://basklee.com/ru/sandbox/components/svelte/subscription-remote)
|
|
75
75
|
|
|
76
76
|
## Initial service setup / Первичная настройка сервиса
|
|
77
77
|
|
package/templates/src/lib/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md
CHANGED
|
@@ -68,4 +68,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
68
68
|
| Нет доступного оплаченного периода; средств недостаточно | Настройка продления успешно сохраняется, но период не покупается. Покажите текущую дату окончания и баланс; для оплаты продления покупателю нужно пополнить баланс. |
|
|
69
69
|
| После `onSubmit` | Родитель отправляет запрос и загружает `subscriptions_get` и `profile_get`. `renew_period` подтверждает настройку; `active_until` и признак синхронизации определяют состояние доступа. Успех сам по себе подтверждает сохранение настройки, но не новый оплаченный доступ. |
|
|
70
70
|
|
|
71
|
-
[English guide](https://
|
|
71
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/subscription-renewal) · [Русский](https://basklee.com/ru/sandbox/components/svelte/subscription-renewal)
|
|
@@ -67,4 +67,4 @@ The following tables describe the response and the supplied composition’s foll
|
|
|
67
67
|
| `refunds[].status.int` | Позиция возврата описывает операцию возврата. Завершение подтверждает только `EInvoiceStatus.COMPLETED`; `to_balance` указывает возврат на баланс или исходный способ оплаты. |
|
|
68
68
|
| Проверка состояния или закрытие | Готовый кошелёк загружает `invoices_get` и `profile_get`, затем берёт баланс из `wallet` текущего профиля. Оплату подтверждает полученное состояние; открытие или закрытие `PaymentPanel` само по себе её не подтверждает. |
|
|
69
69
|
|
|
70
|
-
[English guide](https://
|
|
70
|
+
[English guide](https://basklee.com/en/sandbox/components/svelte/wallet) · [Русский](https://basklee.com/ru/sandbox/components/svelte/wallet)
|