feat: include receipt tax amount in match-specific endpoint response

This commit is contained in:
Iyeoluwa Akinrinola
2025-07-07 17:42:52 +01:00
parent 00b42f2c0f
commit 2e9afe5204
7 changed files with 32 additions and 2 deletions
+5
View File
@@ -11,6 +11,7 @@ class ReceiptRequest(BaseModel):
tax: float
vendor: str
category: str
description: str
class TransactionRequest(BaseModel):
id: str
@@ -49,6 +50,9 @@ class MatchResponse(BaseModel):
match_reason: str
receipt_vendor: str
receipt_amount: float
receipt_description: str
receipt_category: str
receipt_tax_amount: float
transaction_vendor: str
transaction_amount: float
@@ -83,6 +87,7 @@ class DocumentProcessResponse(BaseModel):
file_id: str
extraction_success: bool
vendor: Optional[str] = None
description: Optional[str] = None
total_amount: Optional[float] = None
tax_amount: Optional[float] = None
date: Optional[str] = None