AddToCartEvent

public class AddToCartEvent extends PredefinedEvent<AddToCartEvent>

An add to cart event to be sent to Answers with optional attributes.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

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.

Inherited Method Summary

Public Constructors

public AddToCartEvent ()

Public Methods

public AddToCartEvent putCurrency (Currency currency)

Put currency used in cart.

Parameters
currency currency used in cart, not null
Returns
  • this

public AddToCartEvent putItemId (String itemId)

Put unique id for item added to cart.

Parameters
itemId unique id for item added to cart, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public AddToCartEvent putItemName (String itemName)

Put name for item added to cart. Answers uses item names for display purposes on the dashboard.

Parameters
itemName name for item added to cart, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public AddToCartEvent putItemPrice (BigDecimal itemPrice)

Put price of item added to cart.

Parameters
itemPrice price of item added to cart, not null
Returns
  • this

public AddToCartEvent putItemType (String itemType)

Put type of item added to cart. Answers uses item types to group items.

Parameters
itemType type of item added to cart, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面