com.ibm.commerce.marketing.commands

Interface AddOrderItemWithPromotionCodeOrCouponCmd

    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        Default implementation class name
    • Method Detail

      • setPromotionCode

        void setPromotionCode(java.lang.String pCode)
        Sets promotion code. Needed when a promotion code is to be added to the current order
        Parameters:
        pCode - the promotion code
      • setPromotionName

        void setPromotionName(java.lang.String pName)
        Sets promotion name. Needed when a coupon is to be issued to the customer and added to current order
        Parameters:
        pName - the name of the promotion
      • setPromotionVersion

        void setPromotionVersion(java.lang.Integer version)
        Sets promotion version. Needed when a coupon is to be issued to the customer and added to current order
        Parameters:
        version - set the version for promotion. Promotions with different version numbers are considered different promotions. Among all the promotions with same name in the same store, only one is active at any given time. This one is identified by promotion name, version or revision numbers, and store ID. The rest of them will be marked as obsolete.
      • setGuestToken

        void setGuestToken(java.lang.String aToken)
        Sets the string identifier of a guest customer. Needed when a coupon is to be issued to a guest customer.
        Parameters:
        aToken - the string identifier of the guest customer