Class CartOperationPricingProperties

java.lang.Object
com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties<CartOperationPricingProperties>
com.broadleafcommerce.cartoperation.service.pricing.CartOperationPricingProperties

@Validated @ConfigurationProperties("broadleaf.cartoperation.service.pricing") public class CartOperationPricingProperties extends DiscriminatedProperties<CartOperationPricingProperties>
Properties to configure Pricing-related functionalities and behaviors.
Since:
Cart Operation Services 2.3.0, Release Train 2.3.0
Author:
Julia Lopez-Pozas (jlopezpozas)
  • Constructor Details

    • CartOperationPricingProperties

      public CartOperationPricingProperties()
  • Method Details

    • isFeeCalculationEnabled

      public boolean isFeeCalculationEnabled(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • isFeeCalculationEnabled

      public boolean isFeeCalculationEnabled(@Nullable String applicationId, @Nullable String tenantId)
    • setFeeCalculationEnabled

      public void setFeeCalculationEnabled(boolean feeCalculationEnabled)
      Determines if Fee calculation is enabled for the given context. This is disabled by default.

      This calculation is separate from those for fees applied for configured payment method options.