This commit is contained in:
Zakhar
2026-09-02 09:41:12 +03:00
parent 099755d516
commit 820f12d33a
24 changed files with 567 additions and 106 deletions
+7
View File
@@ -95,6 +95,13 @@ export function deleteProduct(productName: string): Promise<unknown> {
});
}
export function clearCart(): Promise<unknown> {
return requestWithRefresh(apiUrl('/api/promo/clear_cart'), {
method: 'POST',
headers: jsonHeaders,
});
}
export function setOption<TValue>(key: string, value: TValue): Promise<unknown> {
return requestWithRefresh(apiUrl('/api/promo/set_option'), {
method: 'POST',