integrated UIHParser

This commit is contained in:
2026-02-27 15:32:33 +05:30
parent e01cf1346a
commit 45cff45e34
4 changed files with 362 additions and 6 deletions

View File

@@ -72,7 +72,18 @@ class FileProcessor:
raise Exception(f"Failed to download file: {remote_path}")
# Step 3: Parse file
parser = ACHParser(local_path)
#parser = ACHParser(local_path)
# Choose parser by filename prefix
parser = None
if filename.startswith('ACH_'):
parser = ACHParser(local_path)
elif filename.startswith('UIH_'):
parser = UIHParser(local_path)
else:
logger.warning(f"Unknown file type for parser: {filename}")
return False
transactions, metadata, summary = parser.parse()
if not transactions: