emvco-qr-sdk
Version:
A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.
17 lines (16 loc) • 623 B
TypeScript
import { TlvEntity } from '../../domain/entities/tlv.entity';
/**
* Service to map TLV entities into raw key/value objects using original tag codes.
* No naming strategy is applied.
*/
export declare class RawObjectMapperService {
/**
* Converts a list of TLV entities into a plain object using raw tag values as keys.
*
* If subTags are found, it builds a nested object with raw subtag values as keys.
*
* @param tlvs - The TLV entities to convert.
* @returns A plain object representing the raw structure of the TLVs.
*/
static map(tlvs: TlvEntity[]): Record<string, any>;
}