import { config, networkUtils } from '../../../utils';

const { request } = networkUtils;
const { api } = config;
const { order } = api;
const { invoices, invoiceDetails, invoiceItems } = order;

export async function query(params: object) {
  return request({
    url: invoiceItems,
    method: 'get',
    data: params,
  });
}

export async function getSingle(id: number) {
  return request({
    url: `${invoiceItems}/${id}`,
    method: 'get',
  });
}

