Spaces:
Sleeping
Sleeping
Update categories/accomodation/model.py
Browse files- categories/accomodation/model.py +13 -20
categories/accomodation/model.py
CHANGED
@@ -6,24 +6,17 @@ from pydantic import BaseModel, Field
|
|
6 |
|
7 |
|
8 |
class InformationExtractedFromABillReceipt(BaseModel):
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
3. Bill number/Invoice number: [Bill Number]
|
13 |
-
4. booking ID / Confirmation ID / Booking #: [Booking ID]
|
14 |
-
5. Check-in Date and Time: [Check-in Date Time]
|
15 |
-
6. Check-out Date and Time: [Check-out Date Time]
|
16 |
-
7. Total Amount: [Total Amount Charged]
|
17 |
-
8. Booking platform: [Booking Platform]
|
18 |
-
9. Bill date: [Bill Date]
|
19 |
-
"""
|
20 |
-
|
21 |
-
hotel_name: str = Field(..., title="The name of the hotel")
|
22 |
-
address: str = Field(..., title="The address of the hotel")
|
23 |
uids: str = Field(..., title="The bill number/invoice number")
|
24 |
-
booking_id: str = Field(..., title="The booking ID/confirmation ID/booking number")
|
25 |
-
check_in_date_time: datetime = Field(..., title="The check-in date and time")
|
26 |
-
check_out_date_time: datetime = Field(..., title="The check-out date and time")
|
27 |
-
total: float = Field(..., title="
|
28 |
-
booking_platform: str = Field(..., title="The booking platform")
|
29 |
-
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
|
8 |
class InformationExtractedFromABillReceipt(BaseModel):
|
9 |
+
|
10 |
+
# hotel_name: str = Field(..., title="The name of the hotel")
|
11 |
+
# address: str = Field(..., title="The address of the hotel")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
uids: str = Field(..., title="The bill number/invoice number")
|
13 |
+
# booking_id: str = Field(..., title="The booking ID/confirmation ID/booking number")
|
14 |
+
# check_in_date_time: datetime = Field(..., title="The check-in date and time")
|
15 |
+
# check_out_date_time: datetime = Field(..., title="The check-out date and time")
|
16 |
+
total: float = Field(..., title="cost of journey ticket converted from the given currency to INR")
|
17 |
+
# booking_platform: str = Field(..., title="The booking platform")
|
18 |
+
issue_date: date = Field(..., title="The date the invoice was issued")
|
19 |
+
summary: str = Field(..., title="5-6 words short summary of purchased good(s)")
|
20 |
+
|
21 |
+
|
22 |
+
|