Interface OrderAndItemOfferHelper

    • Method Detail

      • orderMeetsQualifyingTotalRequirements

        boolean orderMeetsQualifyingTotalRequirements​(@NonNull
                                                      BaseCandidateOffer candidateOffer)
        As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the total of item qualifier prices.
        Parameters:
        candidateOffer - candidate offer to verify that it can be applied based on the total of item qualifier prices.
        Returns:
        whether the offer can be applied based on the total of item qualifier prices.
      • orderMeetsTargetTotalRequirements

        boolean orderMeetsTargetTotalRequirements​(@NonNull
                                                  CandidateItemOffer itemOffer)
        As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the total of target item prices.
        Parameters:
        itemOffer - candidate offer to verify that it can be applied based on the total of target item prices.
        Returns:
        whether the offer can be applied based on the total of target item prices.
      • orderMeetsSubtotalRequirements

        boolean orderMeetsSubtotalRequirements​(@NonNull
                                               EnhancedOrder order,
                                               @NonNull
                                               BaseCandidateOffer candidateOffer)
        As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the order subtotal.
        Parameters:
        order - EnhancedOrder against whose subtotal to verify the candidate offer's applicability
        candidateOffer - candidate offer to verify that it can be applied based on the order subtotal.
        Returns:
        whether the offer can be applied based on the order subtotal.
      • getRuleEvaluationService

        com.broadleafcommerce.rulesengine.expression.service.RuleEvaluationService getRuleEvaluationService()
        Returns:
        an instance of RuleEvaluationService.
      • getOfferFactory

        com.broadleafcommerce.common.extension.TypeFactory getOfferFactory()
        Returns:
        an instance of TypeFactory that creates offer domain objects