UNPKG

emvco-qr-sdk

Version:

A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.

22 lines (21 loc) 711 B
import { TagMappingStrategy } from '../../types/tag-resolver.type'; /** * Mapping strategy for TLV tags that contain generic GUI-based subfields. * * This strategy is used for tags that follow the [GUI, value] pattern in their subtags, * such as tags 50, 51, 81–85, 90, 91, and 99. It uses the Colombian subtag dictionary * to resolve meaningful names for each subfield. * * Example output: * ```ts * { * gui: "CO.COM.CRB.RED", * vatCondition: "02", * vatValueOrPercentage: "10.00" * } * ``` * * @param tlv - The TLV entity to map. * @returns An object where subtag keys are replaced with named fields and mapped values. */ export declare const genericGuiStrategy: TagMappingStrategy;