const baseUrl = () => `/api/v1/pos/sales_invoices`;

export const POS_SALE_INVOICES_API_ROUTES = {
  list: () => baseUrl(),
  single: (invoiceId: string) => `${baseUrl()}/${invoiceId}`,
  tsp: {
    send: (invoiceId: string) => `${baseUrl()}/${invoiceId}/send`,
    getInquiry: (invoiceId: string) => `${baseUrl()}/${invoiceId}/inquiry`,
    revoke: (invoiceId: string) => `${baseUrl()}/${invoiceId}/revoke`,
    retry: (invoiceId: string) => `${baseUrl()}/${invoiceId}/retry`,
    status: (invoiceId: string) => `${baseUrl()}/${invoiceId}/fiscal/status`,
    attempts: (invoiceId: string) => `${baseUrl()}/${invoiceId}/fiscal/attempts`,
  },
};
