前往主控台

StartCheckoutEvent

public class StartCheckoutEvent extends PredefinedEvent<StartCheckoutEvent>

A start checkout event to be sent to Answers with optional attributes.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

StartCheckoutEvent
putCurrency(Currency currency)
Put currency used in cart.
StartCheckoutEvent
putItemCount(int itemCount)
Put count of items in cart.
StartCheckoutEvent
putTotalPrice(BigDecimal totalPrice)
Put total price of all items in cart.

Inherited Method Summary

Public Constructors

public StartCheckoutEvent ()

Public Methods

public StartCheckoutEvent putCurrency (Currency currency)

Put currency used in cart.

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

public StartCheckoutEvent putItemCount (int itemCount)

Put count of items in cart.

Parameters
itemCount count of items in cart
Returns
  • this

public StartCheckoutEvent putTotalPrice (BigDecimal totalPrice)

Put total price of all items in cart.

Parameters
totalPrice total price of items in cart, not null
Returns
  • this