UNPKG

quickbooks-api

Version:

A modular TypeScript SDK for seamless integration with Intuit QuickBooks APIs. Provides robust authentication handling and future-ready foundation for accounting, payments, and commerce operations.

22 lines (21 loc) 676 B
/** * Raw CreditMemo Query * @param this - The CreditMemo API * @param queryBuilder - The query builder to use * @returns Custom query results */ export async function rawCreditMemoQuery(queryBuilder) { // Build the URL const url = queryBuilder.build(); // Execute the custom query const response = await this.apiClient.runRequest(url, { method: 'GET' }); // Format the Response const creditmemos = this.formatResponse(response); // Setup the Search Response const searchResponse = { results: creditmemos, hasNextPage: await this.hasNextPage(queryBuilder), }; // Return the CreditMemos return searchResponse; }