public class AddToCartEvent extends PredefinedEvent<AddToCartEvent>
MAX_NUM_ATTRIBUTES, MAX_STRING_LENGTH| Constructor and Description |
|---|
AddToCartEvent() |
| Modifier and Type | Method and Description |
|---|---|
AddToCartEvent |
putCurrency(Currency currency)
Put currency used in cart.
|
AddToCartEvent |
putItemId(String itemId)
Put unique id for item added to cart.
|
AddToCartEvent |
putItemName(String itemName)
Put name for item added to cart.
|
AddToCartEvent |
putItemPrice(BigDecimal itemPrice)
Put price of item added to cart.
|
AddToCartEvent |
putItemType(String itemType)
Put type of item added to cart.
|
toStringputCustomAttribute, putCustomAttributepublic AddToCartEvent putItemId(String itemId)
itemId - unique id for item added to cart, not null, no more than AnswersEvent.MAX_STRING_LENGTH charspublic AddToCartEvent putItemName(String itemName)
itemName - name for item added to cart, not null, no more than AnswersEvent.MAX_STRING_LENGTH charspublic AddToCartEvent putItemType(String itemType)
itemType - type of item added to cart, not null, no more than AnswersEvent.MAX_STRING_LENGTH charspublic AddToCartEvent putItemPrice(BigDecimal itemPrice)
itemPrice - price of item added to cart, not nullpublic AddToCartEvent putCurrency(Currency currency)
currency - currency used in cart, not null