emvco-qr-sdk
Version:
A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.
31 lines (30 loc) • 1.14 kB
TypeScript
/**
* Utility class for resolving tag and subtag names based on region.
*
* This resolver provides name translations for TLV tag identifiers,
* supporting both the EMVCo standard set and Colombian QR extensions.
*/
export declare class TagNameResolverUtil {
/**
* Resolves a tag to its EMVCo standard field name.
*
* @param tag - A 2-character TLV tag.
* @returns A human-readable name for the tag, or the raw tag if not found.
*/
static getStandardName(tag: string): string;
/**
* Resolves a tag to its Colombian-specific field name.
*
* @param tag - A 2-character TLV tag.
* @returns A mapped field name for the Colombian format, or the raw tag if not found.
*/
static getColombianName(tag: string): string;
/**
* Resolves a subtag within a parent tag according to the Colombian QR spec.
*
* @param tag - The parent tag (e.g., "26", "49").
* @param subtag - The subfield tag (e.g., "00", "01").
* @returns The subfield name, or the raw subtag if not mapped.
*/
static getColombianSubtagName(tag: string, subtag: string): string;
}