Class RuleOrderThresholdPerfectPartnerConditionTranslator

    • Field Detail

      • PARTNER_PRODUCT_PARAM

        public static final java.lang.String PARTNER_PRODUCT_PARAM
        See Also:
        Constant Field Values
      • CART_THRESHOLD_PARAM

        public static final java.lang.String CART_THRESHOLD_PARAM
        See Also:
        Constant Field Values
      • IS_DISCOUNTED_PRICE_INCLUDED_PARAM

        public static final java.lang.String IS_DISCOUNTED_PRICE_INCLUDED_PARAM
        See Also:
        Constant Field Values
    • Constructor Detail

      • RuleOrderThresholdPerfectPartnerConditionTranslator

        public RuleOrderThresholdPerfectPartnerConditionTranslator()
    • Method Detail

      • getConditions

        protected RuleIrCondition getConditions​(RuleCompilerContext context,
                                                java.lang.String partnerProduct,
                                                java.util.Map<java.lang.String,​java.math.BigDecimal> cartThreshold)
      • getOrderThresholdConditionAttribute

        protected java.lang.String getOrderThresholdConditionAttribute()
      • setOrderThresholdConditionAttribute

        public void setOrderThresholdConditionAttribute​(java.lang.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