UNPKG

emvco-qr-sdk

Version:

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

23 lines (22 loc) 706 B
import { TagMappingStrategy } from '../../types/tag-resolver.type'; /** * Mapping strategy for TLV tags that contain a `gui` and a typed value. * * This is used for structures like tag 26 (merchantAccountInfo) or tag 80 (channel), * which include a GUI (Globally Unique Identifier) subtag ("00"), and a typed value * with a subtag code ("01", "02", etc.). * * Example output: * ```ts * { * gui: "CO.COM.CRB.RED", * rawType: "01", * type: "MOBILE_NUMBER", * value: "3123456789" * } * ``` * * @param tlv - The TLV entity to transform. * @returns An object with `gui`, `rawType`, `type` (resolved name), and `value`. */ export declare const guiAndTypedStrategy: TagMappingStrategy;