LineItem

A line item contains a single Item and the quantity that was ordered.

FieldDescriptionModifier and Type
attributedTermWord to associate with this item that is then used in SmartSearch.java.lang.String
itemThe item being ordered. It must be an instance of a concrete subclass of Item, such as Product.Item
quantityThe quantity of the item being ordered.java.lang.Integer

The quantity of the item being ordered.

The item being ordered. It must be an instance of a concrete subclass of Item, such as Product.

Word to associate with this item that is then used in SmartSearch.

Builds a line item which contains the specified number of units of a product in an order. This method only builds a data object. To use it, pass it to one of the tracking methods like Context.addToCart(com.evergage.android.promote.LineItem).

Parameters:

ParameterDescriptionRequired?
itemThe Item (such as Product) being orderedYes
quantityThe number of units of the product this line item representsNo

All cart and order interactions involving LineItem requires each LineItem to have a price. For more information, see price.