import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/invoices'; /** * Invoices Service * Documentation for invoice API */ export declare class Invoices { private client; constructor(httpClient: AxiosInstance); /** * Create template * API to create a template */ createInvoiceTemplate(requestBody: Models.CreateInvoiceTemplateDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * List templates * API to get list of templates */ listInvoiceTemplates(params: { altId: string; altType: string; status?: string; startAt?: string; endAt?: string; search?: string; paymentMode?: string; limit: string; offset: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Get an template * API to get an template by template id */ getInvoiceTemplate(params: { templateId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update template * API to update an template by template id */ updateInvoiceTemplate(params: { templateId: string; }, requestBody: Models.UpdateInvoiceTemplateDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Delete template * API to update an template by template id */ deleteInvoiceTemplate(params: { templateId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update template late fees configuration * API to update template late fees configuration by template id */ updateInvoiceTemplateLateFeesConfiguration(params: { templateId: string; }, requestBody: Models.UpdateInvoiceLateFeesConfigurationDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update template late fees configuration * API to update template late fees configuration by template id */ updateInvoicePaymentMethodsConfiguration(params: { templateId: string; }, requestBody: Models.UpdatePaymentMethodsConfigurationDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create Invoice Schedule * API to create an invoice Schedule */ createInvoiceSchedule(requestBody: Models.CreateInvoiceScheduleDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * List schedules * API to get list of schedules */ listInvoiceSchedules(params: { altId: string; altType: string; status?: string; startAt?: string; endAt?: string; search?: string; paymentMode?: string; limit: string; offset: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Get an schedule * API to get an schedule by schedule id */ getInvoiceSchedule(params: { scheduleId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update schedule * API to update an schedule by schedule id */ updateInvoiceSchedule(params: { scheduleId: string; }, requestBody: Models.UpdateInvoiceScheduleDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Delete schedule * API to delete an schedule by schedule id */ deleteInvoiceSchedule(params: { scheduleId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update scheduled recurring invoice * API to update scheduled recurring invoice */ updateAndScheduleInvoiceSchedule(params: { scheduleId: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Schedule an schedule invoice * API to schedule an schedule invoice to start sending to the customer */ scheduleInvoiceSchedule(params: { scheduleId: string; }, requestBody: Models.ScheduleInvoiceScheduleDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Manage Auto payment for an schedule invoice * API to manage auto payment for a schedule */ autoPaymentInvoiceSchedule(params: { scheduleId: string; }, requestBody: Models.AutoPaymentScheduleDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Cancel an scheduled invoice * API to cancel a scheduled invoice by schedule id */ cancelInvoiceSchedule(params: { scheduleId: string; }, requestBody: Models.CancelInvoiceScheduleDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create & Send * API to create or update a text2pay invoice */ text2payInvoice(requestBody: Models.Text2PayDto, options?: AxiosRequestConfig): Promise; /** * Generate Invoice Number * Get the next invoice number for the given location */ generateInvoiceNumber(params: { altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Get Invoice Settings * Get the invoice settings for the given location */ getInvoiceSettings(params: { altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Get invoice * API to get invoice by invoice id */ getInvoice(params: { invoiceId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update invoice * API to update invoice by invoice id */ updateInvoice(params: { invoiceId: string; }, requestBody: Models.UpdateInvoiceDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Delete invoice * API to delete invoice by invoice id */ deleteInvoice(params: { invoiceId: string; altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update invoice late fees configuration * API to update invoice late fees configuration by invoice id */ updateInvoiceLateFeesConfiguration(params: { invoiceId: string; }, requestBody: Models.UpdateInvoiceLateFeesConfigurationDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Void invoice * API to delete invoice by invoice id */ voidInvoice(params: { invoiceId: string; }, requestBody: Models.VoidInvoiceDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Send invoice * API to send invoice by invoice id */ sendInvoice(params: { invoiceId: string; }, requestBody: Models.SendInvoiceDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Record a manual payment for an invoice * API to record manual payment for an invoice by invoice id */ recordInvoice(params: { invoiceId: string; }, requestBody: Models.RecordPaymentDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update invoice last visited at * API to update invoice last visited at by invoice id */ updateInvoiceLastVisitedAt(requestBody: Models.PatchInvoiceStatsLastViewedDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create New Estimate * Create a new estimate with the provided details */ createNewEstimate(requestBody: Models.CreateEstimatesDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update Estimate * Update an existing estimate with new details */ updateEstimate(params: { estimateId: string; }, requestBody: Models.UpdateEstimateDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Delete Estimate * Delete an existing estimate */ deleteEstimate(params: { estimateId: string; }, requestBody: Models.AltDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Generate Estimate Number * Get the next estimate number for the given location */ generateEstimateNumber(params: { altId: string; altType: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Send Estimate * API to send estimate by estimate id */ sendEstimate(params: { estimateId: string; }, requestBody: Models.SendEstimateDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create Invoice from Estimate * Create a new invoice from an existing estimate */ createInvoiceFromEstimate(params: { estimateId: string; }, requestBody: Models.CreateInvoiceFromEstimateDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * List Estimates * Get a paginated list of estimates */ listEstimates(params: { altId: string; altType: string; startAt?: string; endAt?: string; search?: string; status?: string; contactId?: string; limit: string; offset: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update estimate last visited at * API to update estimate last visited at by estimate id */ updateEstimateLastVisitedAt(requestBody: Models.EstimateIdParam, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * List Estimate Templates * Get a list of estimate templates or a specific template by ID */ listEstimateTemplates(params: { altId: string; altType: string; search?: string; limit: string; offset: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create Estimate Template * Create a new estimate template */ createEstimateTemplate(requestBody: Models.EstimateTemplatesDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Update Estimate Template * Update an existing estimate template */ updateEstimateTemplate(params: { templateId: string; }, requestBody: Models.EstimateTemplatesDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Delete Estimate Template * Delete an existing estimate template */ deleteEstimateTemplate(params: { templateId: string; }, requestBody: Models.AltDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Preview Estimate Template * Get a preview of an estimate template */ previewEstimateTemplate(params: { altId: string; altType: string; templateId: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * Create Invoice * API to create an invoice */ createInvoice(requestBody: Models.CreateInvoiceDto, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; /** * List invoices * API to get list of invoices */ listInvoices(params: { altId: string; altType: string; status?: string; startAt?: string; endAt?: string; search?: string; paymentMode?: string; contactId?: string; limit: string; offset: string; sortField?: string; sortOrder?: string; }, options?: AxiosRequestConfig & { preferredTokenType?: 'company' | 'location'; }): Promise; } export default Invoices; //# sourceMappingURL=invoices.d.ts.map