import { apiFetch } from '@/api/client' import type { Order, OrderUpdate } from '@/features/orders/types' export function getOrders(hasReceipt: boolean): Promise { return apiFetch(`/orders?has_receipt=${hasReceipt}`) } export function deleteOrder(orderId: string): Promise { return apiFetch(`/orders/${orderId}`, { method: 'DELETE' }) } export function updateOrder(orderId: string, data: OrderUpdate): Promise { return apiFetch(`/orders/${orderId}`, { method: 'PATCH', body: data }) }