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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanProperties related to offer rounding behaviors for order item typed offer.Properties related to offer rounding behaviors for order typed offer.inthashCode()booleanWhether or not to record every usage of offers in the audit details table.booleanWhether the rounded remainders should be distributed across givenMonetaryAmountsinMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit).booleanWhether or not fulfillment items will be included on theEnhancedOrderrequest into the offer engine.booleanWhether validations to ensure thatOffer.getCurrency()is specified if anyMonetaryAmountfields are defined, such asOffer.getCartSubtotal().voidsetAlwaysRecordCustomerDetailAudit(boolean alwaysRecordCustomerDetailAudit) Whether or not to record every usage of offers in the audit details table.voidsetDistributeRoundedRemainders(boolean distributeRoundedRemainders) Whether the rounded remainders should be distributed across givenMonetaryAmountsinMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit).voidsetFulfillmentItemsIncludedOnRequest(boolean fulfillmentItemsIncludedOnRequest) Whether or not fulfillment items will be included on theEnhancedOrderrequest into the offer engine.voidsetOrderItemOfferRounding(OfferRoundingProperties orderItemOfferRounding) Properties related to offer rounding behaviors for order item typed offer.voidsetOrderOfferRounding(OrderOfferRoundingProperties orderOfferRounding) Properties related to offer rounding behaviors for order typed offer.voidsetValidateOfferHasCurrency(boolean validateOfferHasCurrency) Whether validations to ensure thatOffer.getCurrency()is specified if anyMonetaryAmountfields 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 theEnhancedOrderrequest 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 givenMonetaryAmountsinMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit). -
isValidateOfferHasCurrency
public boolean isValidateOfferHasCurrency()Whether validations to ensure thatOffer.getCurrency()is specified if anyMonetaryAmountfields are defined, such asOffer.getCartSubtotal(). -
setFulfillmentItemsIncludedOnRequest
public void setFulfillmentItemsIncludedOnRequest(boolean fulfillmentItemsIncludedOnRequest) Whether or not fulfillment items will be included on theEnhancedOrderrequest 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 givenMonetaryAmountsinMoneyRoundingHelper.roundListOfMonetaryAmounts(Map, MonetaryAmount, CurrencyUnit). -
setValidateOfferHasCurrency
public void setValidateOfferHasCurrency(boolean validateOfferHasCurrency) Whether validations to ensure thatOffer.getCurrency()is specified if anyMonetaryAmountfields are defined, such asOffer.getCartSubtotal(). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-