1- from typing import *
1+ from typing import Dict
22
33from veryfi .client_base import Client
44
@@ -7,7 +7,7 @@ class LineItems:
77 def __init__ (self , client : Client ):
88 self .client = client
99
10- def get_line_items (self , document_id ):
10+ def get_line_items (self , document_id : int ):
1111 """
1212 Retrieve all line items for a document.
1313 https://docs.veryfi.com/api/receipts-invoices/get-document-line-items/
@@ -17,7 +17,7 @@ def get_line_items(self, document_id):
1717 """
1818 return self .client ._request ("GET" , f"/documents/{ document_id } /line-items/" )
1919
20- def get_line_item (self , document_id , line_item_id ):
20+ def get_line_item (self , document_id : int , line_item_id : int ):
2121 """
2222 Retrieve a line item for existing document by ID.
2323 https://docs.veryfi.com/api/receipts-invoices/get-a-line-item/
@@ -53,7 +53,7 @@ def update_line_item(self, document_id: int, line_item_id: int, payload: Dict) -
5353 "PUT" , f"/documents/{ document_id } /line-items/{ line_item_id } " , payload
5454 )
5555
56- def delete_line_items (self , document_id ):
56+ def delete_line_items (self , document_id : int ):
5757 """
5858 Delete all line items on an existing document.
5959 https://docs.veryfi.com/api/receipts-invoices/delete-all-document-line-items/
@@ -62,7 +62,7 @@ def delete_line_items(self, document_id):
6262 """
6363 self .client ._request ("DELETE" , f"/documents/{ document_id } /line-items/" )
6464
65- def delete_line_item (self , document_id , line_item_id ):
65+ def delete_line_item (self , document_id : int , line_item_id : int ):
6666 """
6767 Delete an existing line item on an existing document.
6868 https://docs.veryfi.com/api/receipts-invoices/delete-a-line-item/
0 commit comments