text: export default {
    /**
     * List all store invoices
     *
     * @param {*} queryParams
     * @returns
     * @see https://docs.knawat.io/#tag/Invoices/paths/~1invoices/get
     * @memberof MP
     */
    getInvoices(queryParams) {
      return this.$fetch('GET', '/invoices', {
        auth: 'token',
        queryParams,
      });
    },
  
    /**
     * Apply credits to invoice
     *
     * @param {*} id
     * @param {*} data
     * @param {*} options
     * @returns
     * @see https://docs.knawat.io/#tag/Invoices/paths/~1invoices~1{id}~1credits/post
     * @memberof MP
     */
    applyCreditsToInvoice(id, data, options) {
      return this.$fetch('POST', `/invoices/${id}/credits`, {
        auth: 'token',
        body: JSON.stringify(data),
        ...options,
      });
    },
  };
  