Class OfferServiceProperties
java.lang.Object
com.broadleafcommerce.promotion.offer.service.autoconfigure.OfferServiceProperties
@ConfigurationProperties("broadleaf.offer.service")
public class OfferServiceProperties
extends Object
Configuration properties for Offer Services.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Properties related to offer rounding behaviors for order item typed offer.Properties related to offer rounding behaviors for order typed offer.int
hashCode()
boolean
Whether or not to record every usage of offers in the audit details table.boolean
Whether the rounded remainders should be distributed across givenMonetaryAmounts
inMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit)
.boolean
Whether or not fulfillment items will be included on theEnhancedOrder
request into the offer engine.boolean
Whether validations to ensure thatOffer.getCurrency()
is specified if anyMonetaryAmount
fields are defined, such asOffer.getCartSubtotal()
.void
setAlwaysRecordCustomerDetailAudit
(boolean alwaysRecordCustomerDetailAudit) Whether or not to record every usage of offers in the audit details table.void
setDistributeRoundedRemainders
(boolean distributeRoundedRemainders) Whether the rounded remainders should be distributed across givenMonetaryAmounts
inMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit)
.void
setFulfillmentItemsIncludedOnRequest
(boolean fulfillmentItemsIncludedOnRequest) Whether or not fulfillment items will be included on theEnhancedOrder
request into the offer engine.void
setOrderItemOfferRounding
(OfferRoundingProperties orderItemOfferRounding) Properties related to offer rounding behaviors for order item typed offer.void
setOrderOfferRounding
(OrderOfferRoundingProperties orderOfferRounding) Properties related to offer rounding behaviors for order typed offer.void
setValidateOfferHasCurrency
(boolean validateOfferHasCurrency) Whether validations to ensure thatOffer.getCurrency()
is specified if anyMonetaryAmount
fields are defined, such asOffer.getCartSubtotal()
.toString()
-
Constructor Details
-
OfferServiceProperties
public OfferServiceProperties()
-
-
Method Details
-
isFulfillmentItemsIncludedOnRequest
public boolean isFulfillmentItemsIncludedOnRequest()Whether or not fulfillment items will be included on theEnhancedOrder
request into the offer engine. -
isAlwaysRecordCustomerDetailAudit
public boolean isAlwaysRecordCustomerDetailAudit()Whether or not to record every usage of offers in the audit details table. -
getOrderOfferRounding
Properties related to offer rounding behaviors for order typed offer. -
getOrderItemOfferRounding
Properties related to offer rounding behaviors for order item typed offer. -
isDistributeRoundedRemainders
public boolean isDistributeRoundedRemainders()Whether the rounded remainders should be distributed across givenMonetaryAmounts
inMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit)
. -
isValidateOfferHasCurrency
public boolean isValidateOfferHasCurrency()Whether validations to ensure thatOffer.getCurrency()
is specified if anyMonetaryAmount
fields are defined, such asOffer.getCartSubtotal()
. -
setFulfillmentItemsIncludedOnRequest
public void setFulfillmentItemsIncludedOnRequest(boolean fulfillmentItemsIncludedOnRequest) Whether or not fulfillment items will be included on theEnhancedOrder
request into the offer engine. -
setAlwaysRecordCustomerDetailAudit
public void setAlwaysRecordCustomerDetailAudit(boolean alwaysRecordCustomerDetailAudit) Whether or not to record every usage of offers in the audit details table. -
setOrderOfferRounding
Properties related to offer rounding behaviors for order typed offer. -
setOrderItemOfferRounding
Properties related to offer rounding behaviors for order item typed offer. -
setDistributeRoundedRemainders
public void setDistributeRoundedRemainders(boolean distributeRoundedRemainders) Whether the rounded remainders should be distributed across givenMonetaryAmounts
inMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit)
. -
setValidateOfferHasCurrency
public void setValidateOfferHasCurrency(boolean validateOfferHasCurrency) Whether validations to ensure thatOffer.getCurrency()
is specified if anyMonetaryAmount
fields are defined, such asOffer.getCartSubtotal()
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-