Spaces:
Sleeping
Sleeping
Update categories/vendor/model.py
Browse files- categories/vendor/model.py +21 -17
categories/vendor/model.py
CHANGED
@@ -27,20 +27,24 @@ class InformationExtractedFromABillReceipt(BaseModel):
|
|
27 |
code), recipient, registration id, registration fee, registration date/time
|
28 |
"""
|
29 |
|
30 |
-
gstin: constr(min_length=15) = Field(
|
31 |
-
|
32 |
-
)
|
33 |
-
billing_address: str = Field(..., title="The billing address")
|
34 |
-
uids: str = Field(..., title="The invoice number")
|
35 |
-
invoice_date: datetime = Field(..., title="The date-time the invoice was issued")
|
36 |
-
due_date: datetime = Field(..., title="The date-time the invoice is due")
|
37 |
-
total: float = Field(..., title="Total amount or price")
|
38 |
-
balance_due: float = Field(..., title="The amount due")
|
39 |
-
bank_details: BankDetails = Field(..., title="Bank details")
|
40 |
-
recipient: str = Field(
|
41 |
-
|
42 |
-
|
43 |
-
)
|
44 |
-
registration_id: str = Field(..., title="The registration ID")
|
45 |
-
registration_fee: float = Field(..., title="The registration fee")
|
46 |
-
registration_date_time: datetime = Field(..., title="The registration date-time")
|
|
|
|
|
|
|
|
|
|
27 |
code), recipient, registration id, registration fee, registration date/time
|
28 |
"""
|
29 |
|
30 |
+
# gstin: constr(min_length=15) = Field(
|
31 |
+
# ..., title="The alphanumeric GSTIN/GST number code"
|
32 |
+
# )
|
33 |
+
# billing_address: str = Field(..., title="The billing address")
|
34 |
+
# uids: str = Field(..., title="The invoice number")
|
35 |
+
# invoice_date: datetime = Field(..., title="The date-time the invoice was issued")
|
36 |
+
# due_date: datetime = Field(..., title="The date-time the invoice is due")
|
37 |
+
# total: float = Field(..., title="Total amount or price")
|
38 |
+
# balance_due: float = Field(..., title="The amount due")
|
39 |
+
# bank_details: BankDetails = Field(..., title="Bank details")
|
40 |
+
# recipient: str = Field(
|
41 |
+
# ...,
|
42 |
+
# title="Name of the person/entity that the invoice item was charged or delivered to",
|
43 |
+
# )
|
44 |
+
# registration_id: str = Field(..., title="The registration ID")
|
45 |
+
# registration_fee: float = Field(..., title="The registration fee")
|
46 |
+
# registration_date_time: datetime = Field(..., title="The registration date-time")
|
47 |
+
uids: str = Field(..., title="The bill number/invoice number")
|
48 |
+
total: float = Field(..., title="cost of journey ticket converted from given currency to INR")
|
49 |
+
issue_date: date = Field(..., title="The date the invoice was issued")
|
50 |
+
summary: str = Field(..., title="5-6 words short summary of purchased good(s)")
|