zohobooks-sdk
Version:
SDK for ZohoBooks integration
34 lines (33 loc) • 1.07 kB
TypeScript
import { ZohoBooksApi } from "../../api";
import { ZohoContact, ZohoContactResponse } from "./types";
import { ApiClient } from "common/api-client";
export declare class Contacts extends ApiClient {
constructor(baseApi: ZohoBooksApi);
create(contactData: Partial<ZohoContact>): Promise<ZohoContactResponse>;
list(): Promise<{
code: number;
contacts: ZohoContact[];
}>;
get(contactId: string): Promise<ZohoContactResponse>;
update(contactId: string, updates: Partial<ZohoContact>): Promise<ZohoContactResponse>;
delete(contactId: string): Promise<{
code: number;
message: string;
}>;
markAsActive(contactId: string): Promise<{
code: number;
message: string;
}>;
markAsInactive(contactId: string): Promise<{
code: number;
message: string;
}>;
enablePortalAccess(contactId: string): Promise<{
code: number;
message: string;
}>;
emailStatement(contactId: string): Promise<{
code: number;
message: string;
}>;
}