Product

A product is a CategorizedItem that can be sold to users. You can add products to LineItem objects when a user orders them.

FieldDescriptionModifier and Type
alternateIdAn identifier for a product other than the one stored in Item.id.java.lang.String
currencyAn ISO 4217 currency code for the currency of this item's price such as USD, EUR, GBP.java.lang.String
inventoryCountA count of available units.java.lang.Integer
listPriceOptional field for capturing another price, such as MSRP, in order to illustrate a discount.java.lang.Double
priceThe unit price of the product.java.lang.Double
priceDescriptionOptional field for descriptive text for the price, such as the Sale Price.java.lang.String

Fields inherited from class CategorizedItem:

Fields inherited from class Item:

The unit price of the product. The unit price is required when the product is being ordered but optional otherwise. For instance, if the product has variable pricing, a specific price may not be available for Context.viewItem(com.evergage.android.promote.Item) events.

All cart and order interactions involving LineItem requires each LineItem to have a price.

Optional field for descriptive text for the price, such as the Sale Price.

Optional field for capturing another price, such as MSRP, in order to illustrate a discount.

An ISO 4217 currency code for the currency of this item's price, such as USD, EUR, GBP. If absent, the currency is assumed to be the dataset default currency.

A count of available units. Alternatively, the value can simply be 1 or 0 to indicate that the product is available or unavailable, respectively.

An identifier for a product other than the one stored in Item.id.

Builds a Product with the required ID only. The product can then be further modified.

Parameters

ParameterDescriptionRequired?
idSee Item.id.Yes
MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Product
getItemType()String

Methods inherited from class Item:

Specified by getItemType in class Item.