sgf-gstin-validator
Version:
Module to validate GSTIN and verify Signed QR of GST eInvoice
11 lines (10 loc) • 630 B
TypeScript
declare var jwt: any;
declare var certs: any;
declare function calcCheckSum(gstin: any): string;
declare function validatePattern(gstin: any): boolean;
declare function isValidGSTNumber(gstin: any): boolean;
declare function getGSTINInfo(gstin: any): string;
declare function getCert(certname: any): string;
declare function validateEInvoiceSignedQR(qrText: any, publickey: any): any;
declare function validateSignedInvoice(signedInvoiceJWT: any, publickey: any): any;
declare function ValidateGSTIN(gstin: any): "Enter a valid 15 character GSTIN" | "Invalid GSTIN format" | "Invalid checksum character in GSTIN" | "Valid GSTIN";