itd-api / ShopFeatureApi
Interface: ShopFeatureApi
Defined in: shop/feature.ts:30
API гостевого доступа к заказам по коду из письма.
Methods
clear()
clear(): Promise<void>;Defined in: shop/feature.ts:38
Удаляет сохранённый доступ.
Returns
Promise<void>
get()
get(orderNumber, options?): Promise<ShopOrder | null>;Defined in: shop/feature.ts:42
Загружает гостевой заказ.
Parameters
orderNumber
string
options?
Returns
Promise<ShopOrder | null>
list()
list(options?): Promise<{
items: ShopOrderSummary[];
}>;Defined in: shop/feature.ts:40
Загружает гостевые заказы сохранённого адреса.
Parameters
options?
Returns
Promise<{ items: ShopOrderSummary[]; }>
pay()
pay(
orderNumber,
returnUrl,
options?): Promise<ShopPayment>;Defined in: shop/feature.ts:44
Создаёт ссылку на оплату гостевого заказа.
Parameters
orderNumber
string
returnUrl
string
options?
Returns
Promise<ShopPayment>
requestCode()
requestCode(email, options?): Promise<void>;Defined in: shop/feature.ts:32
Отправляет код и запоминает адрес до проверки.
Parameters
email
string
options?
Returns
Promise<void>
session()
session(): Promise<ShopOrderAccessSession | null>;Defined in: shop/feature.ts:36
Возвращает действующий доступ или null.
Returns
Promise<ShopOrderAccessSession | null>
verifyCode()
verifyCode(code, options?): Promise<ShopOrderAccessSession>;Defined in: shop/feature.ts:34
Проверяет код для адреса, переданного в requestCode.
Parameters
code
string
options?
Returns
Promise<ShopOrderAccessSession>