com.ibm.commerce.tools.optools.order.commands

Class CSROrderAdjustmentUpdateCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • ERRTASK_NAME

        public static java.lang.String ERRTASK_NAME
        Error handling view name for this command.
    • Constructor Detail

      • CSROrderAdjustmentUpdateCmdImpl

        public CSROrderAdjustmentUpdateCmdImpl()
    • Method Detail

      • getFirstManuAdjust

        public java.math.BigDecimal getFirstManuAdjust()
        Returns manual adjustment for first order.
        Returns:
        The manual adjustment for first order
      • getFirstOrderCouponIds

        public java.lang.String getFirstOrderCouponIds()
        Returns the string of coupon IDs used in the first order.
        Returns:
        The coupon IDs used in the first order.
      • getFirstOrderId

        public java.lang.String getFirstOrderId()
        Returns first order ID.
        Returns:
        The first order ID
      • getFirstShip

        public java.math.BigDecimal getFirstShip()
        Returns the shipping charge for first order.
        Returns:
        The shipping charge for the first order
      • getNLS

        public java.util.Hashtable getNLS()
        Returns NLS properties.
        Returns:
        The NLS properties
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Returns original command context.
        Returns:
        The original command context
      • getOrgLangId

        public java.lang.Integer getOrgLangId()
        Returns original language ID.
        Returns:
        The original language ID
      • getOrgLocale

        public java.util.Locale getOrgLocale()
        Returns original Locale.
        Returns:
        The original Locale
      • getOrgReqProperties

        public TypedProperty getOrgReqProperties()
        Returns original request properties.
        Returns:
        The original request properties
      • getRedirectURL

        public java.lang.String getRedirectURL()
        Gets the URL to be redirected to.
        Returns:
        The redirect URL
      • getSecondManuAdjust

        public java.math.BigDecimal getSecondManuAdjust()
        Returns manual adjustment for second order.
        Returns:
        The manual adjustment for the second order
      • getSecondOrderCouponIds

        public java.lang.String getSecondOrderCouponIds()
        Returns the string of coupon IDs used in the second order.
        Returns:
        The coupon IDs used in the second order.
      • getSecondOrderId

        public java.lang.String getSecondOrderId()
        Returns second order ID.
        Returns:
        The second order ID
      • getSecondShip

        public java.math.BigDecimal getSecondShip()
        Returns the shipping charge for second order.
        Returns:
        The shipping charge for the second order
      • getShopperId

        public java.lang.String getShopperId()
        Returns shopper ID.
        Returns:
        The shopper ID
      • isFirstDirtyBit

        public boolean isFirstDirtyBit()
        Returns true if any adjustment field in first order has been changed.
        Returns:
        The flag indicating whether the first order is changed
      • isFirstShippingOverride

        public boolean isFirstShippingOverride()
        Returns true if shipping charge field in first order has been overridden.
        Returns:
        The flag indicating whether the shipping charge of first order is overridden.
      • isSecondDirtyBit

        public boolean isSecondDirtyBit()
        Returns true if any adjustment field in second order has been changed.
        Returns:
        The flag indicating whether the second order is changed
      • isSecondShippingOverride

        public boolean isSecondShippingOverride()
        Returns true if shipping charge field in second order has been overridden.
        Returns:
        The flag indicating whether the shipping charge of second order is overridden.
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the execution for updating the order level CSR adjustments, eCoupons, and overrides the shipping charges for the order(s)
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - If the order adjustments cannot be updated
      • setFirstOrderCouponIds

        public void setFirstOrderCouponIds(java.lang.String newFirstOrderCouponIds)
        Sets the list of coupons used in the first order
        Parameters:
        newFirstOrderCouponIds - IDs of coupons used in the first order
      • setRedirectURL

        public void setRedirectURL(java.lang.String newRedirectURL)
        Sets the redirect URL
        Parameters:
        newRedirectURL - The redirect URL
      • setSecondOrderCouponIds

        public void setSecondOrderCouponIds(java.lang.String newSecondOrderCouponIds)
        Sets the string having the coupon IDs of the coupons used in the second order
        Parameters:
        newSecondOrderCouponIds - IDs of coupons used in the second order