Class MarketingMessageRequest
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.domain.MarketingMessageRequest
-
- All Implemented Interfaces:
Serializable
public class MarketingMessageRequest extends Object implements Serializable
A DTO used to make requests to theMarketingMessageResolver, which findsMarketingMessages.- Author:
- Jon Fleschler (jfleschler)
- See Also:
ItemMarketingMessageResolver,MarketingMessage, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MarketingMessageRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<String>getAppliedOfferIds()A list of currently applied offer idsList<String>getCartProductIds()The ids of any products currently in the customer's cartjavax.money.MonetaryAmountgetCartSubtotal()The subtotal of the customer's cartStringgetCategoryId()The current category's idcom.broadleafcommerce.data.tracking.core.context.ContextInfogetContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.com.broadleafcommerce.promotion.offer.client.web.context.CustomerContextgetCustomerContext()The customer context information that should be used in determiningwhich offers applyList<EnhancedLineItem>getLineItems()A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessagesIntegergetMaxMessageCount()The maximum number of messages for each location and location / product combinationList<String>getProductIds()The ids for all products to retrieve marketing messages forinthashCode()voidsetAppliedOfferIds(List<String> appliedOfferIds)A list of currently applied offer idsvoidsetCartProductIds(List<String> cartProductIds)The ids of any products currently in the customer's cartvoidsetCartSubtotal(javax.money.MonetaryAmount cartSubtotal)The subtotal of the customer's cartvoidsetCategoryId(String categoryId)The current category's idvoidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)TheContextInfoderived from the original request containing tenant and sandbox info.voidsetCustomerContext(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext)The customer context information that should be used in determiningwhich offers applyvoidsetLineItems(List<EnhancedLineItem> lineItems)A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessagesvoidsetMaxMessageCount(Integer maxMessageCount)The maximum number of messages for each location and location / product combinationvoidsetProductIds(List<String> productIds)The ids for all products to retrieve marketing messages forStringtoString()
-
-
-
Method Detail
-
getProductIds
public List<String> getProductIds()
The ids for all products to retrieve marketing messages for- Returns:
- product ids to retrieve messages for
-
getCategoryId
public String 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
public List<String> 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
public List<String> getAppliedOfferIds()
A list of currently applied offer ids- Returns:
- the list of currently applied offer ids
-
getMaxMessageCount
public Integer getMaxMessageCount()
The maximum number of messages for each location and location / product combination- Returns:
- the maximum number of messages
-
getLineItems
public List<EnhancedLineItem> getLineItems()
A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessages- Returns:
- a list of hydrated
EnhancedLineItems
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setProductIds
public void setProductIds(List<String> productIds)
The ids for all products to retrieve marketing messages for
-
setCategoryId
public void setCategoryId(String categoryId)
The current category's id
-
setCartSubtotal
public void setCartSubtotal(javax.money.MonetaryAmount cartSubtotal)
The subtotal of the customer's cart
-
setCartProductIds
public void setCartProductIds(List<String> cartProductIds)
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
public void setAppliedOfferIds(List<String> appliedOfferIds)
A list of currently applied offer ids
-
setMaxMessageCount
public void setMaxMessageCount(Integer maxMessageCount)
The maximum number of messages for each location and location / product combination
-
setLineItems
public void setLineItems(List<EnhancedLineItem> lineItems)
A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessages
-
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TheContextInfoderived from the original request containing tenant and sandbox info.
-
canEqual
protected boolean canEqual(Object other)
-
-