UNPKG

n8n-nodes-lhdn-einvoice

Version:

n8n node untuk integrasi dengan LHDN e-Invoice API Malaysia

13 lines (12 loc) 1.11 kB
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow'; export declare function lhdnEInvoiceApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, method: string, resource: string, body?: any, qs?: any, accessToken?: string): Promise<any>; export declare function getAccessToken(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions): Promise<any>; export declare function calculateSHA256Hash(data: string): string; export declare function convertToBase64(data: string): string; export declare function generateDigitalSignature(document: string, privateKey: string, certificate: string): any; export declare function validateInvoiceDocument(document: any, format: string): boolean; export declare function buildInvoiceFromFormFields(formData: any): any; export declare function formatDateForAPI(date: Date): string; export declare function formatTimeForAPI(date: Date): string; export declare function generateUUID(): string; export declare function parseErrorResponse(error: any): string;