File size: 973 Bytes
317211f
 
 
 
 
 
 
 
d3c5780
 
 
23e5d8d
d3c5780
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel, Field


class InformationExtractedFromABillReceipt(BaseModel):
    
    # hotel_name: str = Field(..., title="The name of the hotel")
    # address: str = Field(..., title="The address of the hotel")
    uids: str = Field(..., title="The bill number/invoice number")
    # booking_id: str = Field(..., title="The booking ID/confirmation ID/booking number")
    # check_in_date_time: datetime = Field(..., title="The check-in date and time")
    # check_out_date_time: datetime = Field(..., title="The check-out date and time")
    total: float = Field(..., title="cost of journey ticket converted from the given currency to INR")
    # booking_platform: str = Field(..., title="The booking platform")
    issue_date: date = Field(..., title="The date the invoice was issued")
    summary: str = Field(..., title="5-6 words short summary of purchased good(s)")