mobile
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user