From 2a7553267b322eca8c70492f192bea053a6cdc79 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 11 Jul 2026 08:31:33 -0500 Subject: [PATCH] Fix tipoDocumento PE/PT: map to single char 'E' for TNS API compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TNS API (C#) expects System.Char for tipoDocumento; "PE" and "PT" caused 400 validation errors. Mapped both to "E" (Cédula Extranjería). Co-Authored-By: Claude Sonnet 4.6 --- app/services/json_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/json_generator.py b/app/services/json_generator.py index cee2ba8..b5068ac 100644 --- a/app/services/json_generator.py +++ b/app/services/json_generator.py @@ -59,7 +59,7 @@ def _fmt_datetime(val) -> str: _TIPO_DOC_MAP = { "CC": "C", "TI": "T", "RC": "R", "CE": "E", "PA": "P", "AS": "A", "MS": "M", "NU": "U", - "SC": "S", "PE": "PE", "PT": "PT", "SI": "A", + "SC": "S", "PE": "E", "PT": "E", "SI": "A", "CN": "C", "DE": "E", "CD": "P", }