LineItem

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

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

quantity

The quantity of the item being ordered.

item

The item being ordered, must be a concrete subclass of Item such as Product

attributedTerm

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

LineItem

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

toJSONObject

Methods inherited from class java.lang.Object:

  • equals
  • getClass
  • hashCode
  • notify
  • notifyAll
  • toString
  • wait
  • wait
  • wait