zohobooks-sdk
Version:
SDK for ZohoBooks integration
31 lines (30 loc) • 987 B
TypeScript
import { ZohoBooksApi } from "../../api";
import { ApiClient } from "common/api-client";
import { Invoice, InvoiceResponse, InvoiceListResponse } from "./types";
export declare class Invoices extends ApiClient {
constructor(baseApi: ZohoBooksApi);
create(data: Partial<Invoice>): Promise<InvoiceResponse>;
list(): Promise<InvoiceListResponse>;
get(invoiceId: string): Promise<InvoiceResponse>;
update(invoiceId: string, data: Partial<Invoice>): Promise<InvoiceResponse>;
delete(invoiceId: string): Promise<{
code: number;
message: string;
}>;
markAsSent(invoiceId: string): Promise<{
code: number;
message: string;
}>;
void(invoiceId: string): Promise<{
code: number;
message: string;
}>;
submitForApproval(invoiceId: string): Promise<{
code: number;
message: string;
}>;
approve(invoiceId: string): Promise<{
code: number;
message: string;
}>;
}