const baseUrl = '/api/v1/pos';

export const POS_API_ROUTES = {
  info: (posId: number) => `${baseUrl}/${posId}`,
  stock: (posId: number) => `${baseUrl}/${posId}/stock`,
  productCategories: (posId: number) => `${baseUrl}/${posId}/product-categories`,
  submitOrder: (posId: number) => `${baseUrl}/${posId}/orders`,
  heldOrders: (posId: number) => `${baseUrl}/${posId}/orders/held`,
  order: (posId: number, orderId: number) => `${baseUrl}/${posId}/orders/${orderId}`,
  cancelOrder: (posId: number, orderId: number) => `${baseUrl}/${posId}/orders/${orderId}/cancel`,
  rejectOrder: (posId: number, orderId: number) => `${baseUrl}/${posId}/orders/${orderId}/reject`,
  confirmOrder: (posId: number, orderId: number) => `${baseUrl}/${posId}/orders/${orderId}/confirm`,
};
