com.ibm.commerce.tools.epromotion.implementations

Class OrderLevelShippingDiscount

  • All Implemented Interfaces:
    RLConstants


    public class OrderLevelShippingDiscount
    extends RLOrderLevelPromotion
    This class presents specific details of an Order Level promotion of type OrderLevelShippingDiscount. This type represents a shipping discount based on order purchase amount and shipping mode selected. The XML will be generated in the generatePromotionSpecificRuleXML() method and the fields in this class will be populated in the #populatePromotionSpecificDataFrom() methods.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The copyright information.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderLevelShippingDiscount

        public OrderLevelShippingDiscount()
        OrderLevelShippingDiscount Constructor.
    • Method Detail

      • generatePromotionSpecificRuleXML

        public java.lang.String generatePromotionSpecificRuleXML()
        Generates the OrderLevelShippingDiscount type specific rule XML.
        Returns:
        java.lang.String
      • getShippingMode

        public java.lang.String getShippingMode()
        Gets the shipping mode.
        Returns:
        java.lang.String
      • getAdjustmentType

        public int getAdjustmentType()
        AdjustmentType is used for shipping adjustment base: 0: whole order 1: AllAffectedItems 2: IndividualAffectedItems
        Returns:
        int.
      • populatePromotionSpecificDataFrom

        public void populatePromotionSpecificDataFrom(java.lang.String xmlString)
        Populate the specific data from XML String.
        Parameters:
        xmlString - java.lang.String containing promotion data.
      • setShippingMode

        public void setShippingMode(java.lang.String newShippingMode)
        Sets the shipping mode.
        Parameters:
        newShippingMode - java.lang.String the shipping mode.
      • setAdjustmentType

        public void setAdjustmentType(int customerAdjustmentType)
        Sets the adjustment type.
        Parameters:
        customerAdjustmentType - the adjustment type.