UNPKG

emvco-qr-sdk

Version:

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

16 lines (15 loc) 907 B
import { RegionCode, TagMappingStrategy } from '../../types/tag-resolver.type'; /** * Utility function to register a mapping strategy for a list of tags under the Colombian region. * * This helper automatically assigns the provided strategy to all specified tag codes, * while defaulting to a fallback strategy (`defaultStrategy`) for GLOBAL and DEFAULT regions. * * Used to reduce boilerplate and maintain consistent behavior across tags * that follow a shared generic structure (e.g., GUI-based subtags). * * @param registry - The tag strategy registry to update. * @param tags - An array of tag codes to associate with the strategy. * @param strategy - The mapping strategy to apply under the CO (Colombia) region. */ export declare function registerGenericStrategyForTags(registry: Record<string, Record<RegionCode, TagMappingStrategy>>, tags: string[], strategy: TagMappingStrategy): void;