RajanMalaviya commited on
Commit
53c989f
·
verified ·
1 Parent(s): fd67127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -30,6 +30,8 @@ class MatchedTransaction(BaseModel):
30
  credit_card_id: str
31
  match_score: float
32
  match_reason: str
 
 
33
 
34
  class UnmatchedTransaction(BaseModel):
35
  id: str
@@ -191,7 +193,9 @@ class ReconciliationService:
191
  bank_id=bank_txn.id,
192
  credit_card_id=best_match.id,
193
  match_score=round(best_score, 2),
194
- match_reason=best_reason
 
 
195
  ))
196
 
197
  # Remove matched transactions from unmatched lists
 
30
  credit_card_id: str
31
  match_score: float
32
  match_reason: str
33
+ description: str
34
+ amount: float
35
 
36
  class UnmatchedTransaction(BaseModel):
37
  id: str
 
193
  bank_id=bank_txn.id,
194
  credit_card_id=best_match.id,
195
  match_score=round(best_score, 2),
196
+ match_reason=best_reason,
197
+ description=bank_txn.description,
198
+ amount=bank_txn.amount
199
  ))
200
 
201
  # Remove matched transactions from unmatched lists