Class MarketingMessageRequest
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.MarketingMessageRequest
- All Implemented Interfaces:
Serializable
A DTO used to make requests to the
MarketingMessageResolver
, which finds
MarketingMessages
.- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A list of currently applied offer idsThe ids of any products currently in the customer's cartjavax.money.MonetaryAmount
The subtotal of the customer's cartThe current category's idcom.broadleafcommerce.data.tracking.core.context.ContextInfo
TheContextInfo
derived from the original request containing tenant and sandbox info.com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext
The customer context information that should be used in determiningwhich offers applyA list of hydratedEnhancedLineItem
s used by theMarketingMessageResolver
to retrieveMarketingMessage
sThe maximum number of messages for each location and location / product combinationThe ids for all products to retrieve marketing messages forint
hashCode()
void
setAppliedOfferIds
(List<String> appliedOfferIds) A list of currently applied offer idsvoid
setCartProductIds
(List<String> cartProductIds) The ids of any products currently in the customer's cartvoid
setCartSubtotal
(javax.money.MonetaryAmount cartSubtotal) The subtotal of the customer's cartvoid
setCategoryId
(String categoryId) The current category's idvoid
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
setCustomerContext
(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext) The customer context information that should be used in determiningwhich offers applyvoid
setLineItems
(List<EnhancedLineItem> lineItems) A list of hydratedEnhancedLineItem
s used by theMarketingMessageResolver
to retrieveMarketingMessage
svoid
setMaxMessageCount
(Integer maxMessageCount) The maximum number of messages for each location and location / product combinationvoid
setProductIds
(List<String> productIds) The ids for all products to retrieve marketing messages fortoString()
-
Constructor Details
-
MarketingMessageRequest
public MarketingMessageRequest()
-
-
Method Details
-
getProductIds
The ids for all products to retrieve marketing messages for- Returns:
- product ids to retrieve messages for
-
getCategoryId
The current category's id- Returns:
- the current category's id
-
getCartSubtotal
public javax.money.MonetaryAmount getCartSubtotal()The subtotal of the customer's cart- Returns:
- the cart's subtotal
-
getCartProductIds
The ids of any products currently in the customer's cart- Returns:
- product ids currently in the customer's cart
-
getCustomerContext
public com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext getCustomerContext()The customer context information that should be used in determiningwhich offers apply- Returns:
- the customer context information that should be used in determining which offers apply
-
getAppliedOfferIds
A list of currently applied offer ids- Returns:
- the list of currently applied offer ids
-
getMaxMessageCount
The maximum number of messages for each location and location / product combination- Returns:
- the maximum number of messages
-
getLineItems
A list of hydratedEnhancedLineItem
s used by theMarketingMessageResolver
to retrieveMarketingMessage
s- Returns:
- a list of hydrated
EnhancedLineItem
s
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfo
derived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfo
derived from the original request
-
setProductIds
The ids for all products to retrieve marketing messages for -
setCategoryId
The current category's id -
setCartSubtotal
public void setCartSubtotal(javax.money.MonetaryAmount cartSubtotal) The subtotal of the customer's cart -
setCartProductIds
The ids of any products currently in the customer's cart -
setCustomerContext
public void setCustomerContext(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext) The customer context information that should be used in determiningwhich offers apply -
setAppliedOfferIds
A list of currently applied offer ids -
setMaxMessageCount
The maximum number of messages for each location and location / product combination -
setLineItems
A list of hydratedEnhancedLineItem
s used by theMarketingMessageResolver
to retrieveMarketingMessage
s -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-