Class CartStalePricingValidationActivityProperties
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.checkout.workflow.activity.CartStalePricingValidationActivityProperties
-
@ConfigurationProperties("broadleaf.cartoperation.checkout.activity.validation.cart-stale-pricing") public class CartStalePricingValidationActivityProperties extends Object
Properties to configureCartStalePricingValidationActivity
.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description CartStalePricingValidationActivityProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldRejectLowerPrice()
Whether or not to reject the checkout attempt if it's determined that the latest price for the cart is lower than the cart's previously known price.CartStalePricingValidationActivityProperties
shouldRejectLowerPrice(boolean shouldRejectLowerPrice)
Whether or not to reject the checkout attempt if it's determined that the latest price for the cart is lower than the cart's previously known price.boolean
useRealTimeCartPricing()
Whether the cart should use real-time pricing every time or honor theCartOperationServiceProperties.getCartPricingTimeToLive()
based on the last catalog reprice.CartStalePricingValidationActivityProperties
useRealTimeCartPricing(boolean useRealTimeCartPricing)
Whether the cart should use real-time pricing every time or honor theCartOperationServiceProperties.getCartPricingTimeToLive()
based on the last catalog reprice.
-
-
-
Method Detail
-
shouldRejectLowerPrice
public CartStalePricingValidationActivityProperties shouldRejectLowerPrice(boolean shouldRejectLowerPrice)
Whether or not to reject the checkout attempt if it's determined that the latest price for the cart is lower than the cart's previously known price. By default, we'll allow the checkout attempt to proceed with the lower price.- Returns:
this
.
-
useRealTimeCartPricing
public CartStalePricingValidationActivityProperties useRealTimeCartPricing(boolean useRealTimeCartPricing)
Whether the cart should use real-time pricing every time or honor theCartOperationServiceProperties.getCartPricingTimeToLive()
based on the last catalog reprice.- Returns:
this
.
-
shouldRejectLowerPrice
public boolean shouldRejectLowerPrice()
Whether or not to reject the checkout attempt if it's determined that the latest price for the cart is lower than the cart's previously known price. By default, we'll allow the checkout attempt to proceed with the lower price.
-
useRealTimeCartPricing
public boolean useRealTimeCartPricing()
Whether the cart should use real-time pricing every time or honor theCartOperationServiceProperties.getCartPricingTimeToLive()
based on the last catalog reprice.
-
-