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.

44 lines (42 loc) 2.09 kB
import { ApiClient } from '../api-client.js'; import { type Payment } from '../../../types/types.js'; import { PaymentQueryBuilder } from './payment-query-builder.js'; /** * API Client */ export declare class PaymentAPI { protected readonly apiClient: ApiClient; readonly getAllPayments: (options?: import("../../../app.js").PaymentOptions | undefined) => Promise<import("../../../app.js").SearchResponse<Payment>>; readonly getPaymentById: (id: string, options?: import("../../../app.js").PaymentOptions | undefined) => Promise<Payment | null>; readonly getPaymentsForDateRange: (startDate: Date, endDate: Date, options?: import("../../../app.js").PaymentOptions | undefined) => Promise<import("../../../app.js").SearchResponse<Payment>>; readonly getUpdatedPayments: (lastUpdatedDate: Date, options?: import("../../../app.js").PaymentOptions | undefined) => Promise<import("../../../app.js").SearchResponse<Payment>>; readonly getPaymentsByDueDate: (dueDate: Date, options?: import("../../../app.js").PaymentOptions | undefined) => Promise<import("../../../app.js").SearchResponse<Payment>>; readonly rawPaymentQuery: (queryBuilder: PaymentQueryBuilder) => Promise<import("../../../app.js").SearchResponse<Payment>>; /** * Constructor * @param apiClient - The API Client */ constructor(apiClient: ApiClient); /** * Get the Company Endpoint * @returns The Company Endpoint with the attached token realmId */ protected getCompanyEndpoint(): Promise<string>; /** * Format the Response * @param response - The Response * @returns The Payments */ protected formatResponse(response: any): Array<Payment>; /** * Get the Query Builder * @returns The Query Builder */ getQueryBuilder(): Promise<PaymentQueryBuilder>; /** * Checks if there is a next page * @param queryBuilder - The Query Builder * @returns {boolean} True if there is a next page, false otherwise */ protected hasNextPage(queryBuilder: PaymentQueryBuilder): Promise<boolean>; }