integrated UIHParser
This commit is contained in:
1 parent
e01cf1346a
commit
45cff45e34
4 files changed
+362
-6
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user