Package veryfi.models
Class UpdateLineItem
java.lang.Object
veryfi.models.SharedLineItem
veryfi.models.UpdateLineItem
Model class for updating line items in documents.
This class extends SharedLineItem
and provides the necessary fields
for updating existing line items in Veryfi documents. Unlike AddLineItem
,
all fields in this class are optional since updates may only modify specific fields.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe description or name of the line item.The order/position of the line item in the document.The total amount for this line item.Fields inherited from class veryfi.models.SharedLineItem
category, discountRate, endDate, hsn, price, quantity, section, sku, startDate, tax, taxRate, unitOfMeasure, upc, weight
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.json.JSONObject
Convert current object to a Json
-
Field Details
-
order
The order/position of the line item in the document. Optional field that can be null. -
description
The description or name of the line item. Optional field that can be null. -
total
The total amount for this line item. Optional field that can be null.
-
-
Constructor Details
-
UpdateLineItem
public UpdateLineItem()
-
-
Method Details
-
toJsonObject
Convert current object to a Json- Returns:
- Json object
- Throws:
NotValidModelException
- throws when the model is not valid.
-