Class ECommerceProduct
java.lang.Object
io.appmetrica.analytics.ecommerce.ECommerceProduct
Describes a product.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getSku()
setActualPrice
(ECommercePrice actualPrice) Sets actual price of the product - price after all discounts and promocodes are applied.setCategoriesPath
(List<String> categoriesPath) Sets product categories path.Sets product name.setOriginalPrice
(ECommercePrice originalPrice) Sets original price of the product.setPayload
(Map<String, String> payload) Sets payload.setPromocodes
(List<String> promocodes) Sets promocodes.toString()
-
Constructor Details
-
ECommerceProduct
Creates a product.- Parameters:
sku
- product SKU (Stock Keeping Unit).
-
-
Method Details
-
getSku
- Returns:
- sku
- See Also:
-
getName
- Returns:
- name
- See Also:
-
setName
Sets product name.- Parameters:
name
- Name of the product.- Returns:
- same
ECommerceProduct
object
-
getCategoriesPath
- Returns:
- categories path
- See Also:
-
setCategoriesPath
Sets product categories path.- Parameters:
categoriesPath
- Categories-wise path to the product.- Returns:
- same
ECommerceProduct
object
-
getPayload
- Returns:
- payload
- See Also:
-
setPayload
Sets payload.- Parameters:
payload
- Payload - additional key-value structured data with various content.- Returns:
- same
ECommerceProduct
object
-
getActualPrice
- Returns:
- actual price
- See Also:
-
setActualPrice
Sets actual price of the product - price after all discounts and promocodes are applied.- Parameters:
actualPrice
- Actual price of the product.- Returns:
- same
ECommerceProduct
object - See Also:
-
getOriginalPrice
- Returns:
- original price
- See Also:
-
setOriginalPrice
Sets original price of the product.- Parameters:
originalPrice
- Original price of the product.- Returns:
- same
ECommerceProduct
object - See Also:
-
getPromocodes
- Returns:
- promocodes
- See Also:
-
setPromocodes
Sets promocodes.- Parameters:
promocodes
- List of promocodes applied to the product.- Returns:
- same
ECommerceProduct
object
-
toString
-