from typing import Dict, Any class Generador502SCAII: @staticmethod def preparar_json(id_pedimento: int, datos_transporte: Dict[str, Any]) -> Dict[str, Any]: """ Lógica para Registro 502 (Transporte) - SCAII. """ # En WinDev: GTrailers.NUMEROPLACAS si existe, si no " " placas = datos_transporte.get("NUMEROPLACAS", " ") if datos_transporte else " " pais = datos_transporte.get("PAIS", " ") if datos_transporte else " " registro = { "id_pedimento": id_pedimento, "numero_placas_502": placas, "codigo_pais_transporte_502": pais } return registro