notarize-node-client
Version:
Node.js Client for Notarize.com Business API
32 lines (31 loc) • 775 B
TypeScript
import type { Notarize, NotarizeOptions } from './';
export declare class WebhookApi {
client: Notarize;
constructor(client: Notarize, options?: NotarizeOptions);
update(url: string, header?: string): Promise<{
success: boolean;
webhookUrl?: string;
header?: string;
error?: string;
}>;
retrieve(): Promise<{
success: boolean;
webhookUrl?: string;
header?: string;
error?: string;
}>;
delete(): Promise<{
success: boolean;
error?: string;
}>;
simulateResponses(msg: {
event: string;
data: {
transactionId: string;
status: string;
};
}): Promise<{
success: boolean;
error?: string;
}>;
}