UNPKG

emvco-qr-sdk

Version:

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

30 lines (29 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QRParseMode = void 0; /** * Enumeration of the available QR parsing modes supported by the library. * Each mode affects how the TLV entities are interpreted and mapped. */ var QRParseMode; (function (QRParseMode) { /** * Returns the raw TLV entities as-is, without transformation. */ QRParseMode["TLV"] = "TLV"; /** * Returns a flat object with raw tag keys and direct values. * If sub-tags exist, they are also mapped as raw keys. */ QRParseMode["RAW_OBJECT"] = "RAW_OBJECT"; /** * Returns an object with human-readable field names based on * the EMVCo specification (default international mapping). */ QRParseMode["GLOBAL"] = "GLOBAL"; /** * Returns a named object with Colombia-specific field names, * following local naming and custom subtag mapping conventions. */ QRParseMode["CO"] = "CO"; })(QRParseMode || (exports.QRParseMode = QRParseMode = {}));