Class OfferMessagingProperties
java.lang.Object
com.broadleafcommerce.promotion.offer.service.messaging.autoconfigure.OfferMessagingProperties
@ConfigurationProperties("broadleaf.offer.messaging")
public class OfferMessagingProperties
extends Object
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
When recordingOfferAuditDetails
, the system will record an overage of an offer used when this property is set to false.boolean
When recordingOfferAuditDetails
, whether to use customer's email on the order as theUserTarget.getTargetValue()
.void
setErrorIfMaxExceeded
(boolean errorIfMaxExceeded) When recordingOfferAuditDetails
, the system will record an overage of an offer used when this property is set to false.void
setUseCustomerEmailAsUserTargetValue
(boolean useCustomerEmailAsUserTargetValue) When recordingOfferAuditDetails
, whether to use customer's email on the order as theUserTarget.getTargetValue()
.
-
Constructor Details
-
OfferMessagingProperties
public OfferMessagingProperties()
-
-
Method Details
-
isUseCustomerEmailAsUserTargetValue
public boolean isUseCustomerEmailAsUserTargetValue()When recordingOfferAuditDetails
, whether to use customer's email on the order as theUserTarget.getTargetValue()
. Default is to use the customer's ID, which would be null for guest customers. -
isErrorIfMaxExceeded
public boolean isErrorIfMaxExceeded()When recordingOfferAuditDetails
, the system will record an overage of an offer used when this property is set to false. This is recommended for highest performance at the expense of potential small windows of offers being used above the max thresholds -
setUseCustomerEmailAsUserTargetValue
public void setUseCustomerEmailAsUserTargetValue(boolean useCustomerEmailAsUserTargetValue) When recordingOfferAuditDetails
, whether to use customer's email on the order as theUserTarget.getTargetValue()
. Default is to use the customer's ID, which would be null for guest customers. -
setErrorIfMaxExceeded
public void setErrorIfMaxExceeded(boolean errorIfMaxExceeded) When recordingOfferAuditDetails
, the system will record an overage of an offer used when this property is set to false. This is recommended for highest performance at the expense of potential small windows of offers being used above the max thresholds
-