Class RuleOrderThresholdPerfectPartnerConditionTranslator

java.lang.Object
de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
de.hybris.platform.ruledefinitions.conditions.RuleOrderThresholdPerfectPartnerConditionTranslator
All Implemented Interfaces:
RuleConditionTranslator

public class RuleOrderThresholdPerfectPartnerConditionTranslator extends AbstractRuleConditionTranslator
Creates the intermediate representation of Order Threshold Perfect Partner condition.
  • Field Details

  • Constructor Details

    • RuleOrderThresholdPerfectPartnerConditionTranslator

      public RuleOrderThresholdPerfectPartnerConditionTranslator()
  • Method Details

    • translate

      public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition)
      Description copied from interface: RuleConditionTranslator
      Translates a rule condition to the intermediate representation.
      Parameters:
      context - - the compiler context
      condition - - the condition
      conditionDefinition - - the condition definition
      Returns:
      the intermediate representation for the condition
    • getConditions

      protected RuleIrCondition getConditions(RuleCompilerContext context, String partnerProduct, Map<String,BigDecimal> cartThreshold)
    • getOrderThresholdConditionAttribute

      protected String getOrderThresholdConditionAttribute()
    • setOrderThresholdConditionAttribute

      public void setOrderThresholdConditionAttribute(String orderThresholdConditionAttribute)
      attribute name used for the order threshold condition ("total" by default, you can redeclare this property to use e.g. "totalIncludingCharges" or "subTotal" instead)
      Parameters:
      orderThresholdConditionAttribute - attribute name used for the order threshold condition