Package veryfi.models
Class AddLineItem
java.lang.Object
veryfi.models.SharedLineItem
veryfi.models.AddLineItem
Model class for adding line items to documents.
This class extends SharedLineItem
and provides the necessary fields
for creating new line items in Veryfi documents. The required fields are
order, description, and total, while all other fields are optional.
-
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
ConstructorsConstructorDescriptionAddLineItem
(Integer order, String description, Float total) Creates a new AddLineItem with the required fields. -
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. This field is required and cannot be null. -
description
The description or name of the line item. This field is required and cannot be null. -
total
The total amount for this line item. This field is required and cannot be null.
-
-
Constructor Details
-
AddLineItem
Creates a new AddLineItem with the required fields.- Parameters:
order
- The order/position of the line itemdescription
- The description or name of the line itemtotal
- The total amount for this line item
-
-
Method Details
-
toJsonObject
Convert current object to a Json- Returns:
- Json object
- Throws:
NotValidModelException
- throws when the model is not valid.
-