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.
26 lines (25 loc) • 687 B
JavaScript
// Imports
import { CustomerFilters } from '../../../types/types.js';
import { BaseQueryBuilder } from '../common/base-query-builder.js';
/**
* The Invoice Query Builder
*/
export class CustomerQueryBuilder extends BaseQueryBuilder {
/**
* Constructor
* @param endpoint - The Endpoint
* @param baseQuery - The Base Query
*/
constructor(endpoint, baseQuery) {
super(endpoint, baseQuery);
}
/**
* Where Customer ID
* @param customerId - The customer ID
* @returns The Query Builder
*/
whereCustomerId(customerId) {
this.whereClauses.push(`${CustomerFilters.Id} = '${customerId}'`);
return this;
}
}