com.ibm.commerce.tools.ecoupon

Interface CreateCouponDiscountCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CreateCouponDiscountCmdImpl

    Deprecated. 
    The WC54 coupon feature will be replaced by the WC56 promotion engine coupon feature.

    public interface CreateCouponDiscountCmd
    extends TaskCommand
    This interface defines a task command for creating calculation code related entries for coupon discounts.

    The input to this command is :

    • AdminDescription:String
    • AllShoppers:Boolean: true if applicable for all shoppers
    • AssignedShopperGroups:Vector
    • Code:String
    • Currency:String
    • Description:String
    • DiscountValueVector:Vector
    • DiscountSubType:Integer
    • DiscountType:Integer
    • EndTimestamp:Timestamp
    • GroupoBy:Integer
    • HasDateTimeRange:Boolean
    • Product:Vector
    • RangeFromVector:Vector
    • RangeType:Integer
    • StartTimestamp:Timestamp
    • CalCodeId:Integer
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        Deprecated. 
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        Deprecated. 
        Default implementation for the interface.
      • Name

        static final java.lang.String Name
        Deprecated. 
        Name of the interface.
    • Method Detail

      • setAdminDescription

        void setAdminDescription(java.lang.String newDescription)
        Deprecated. 
        Sets the AdminsDescription.
        Parameters:
        newDescription - The new description to be assigned
      • setAllShoppers

        void setAllShoppers(boolean newAllShoppers)
        Deprecated. 
        Sets whether all customer can avail this discount.
        Parameters:
        newAllShoppers - true if all customer can avail this discount
      • setAssignedShopperGroups

        void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
        Deprecated. 
        Sets AssignedShopperGroups if all shoppers can not avail the discount.
        Parameters:
        newAssignedShopperGroups - The customer group that can avail this discount.
      • setCode

        void setCode(java.lang.String code)
        Deprecated. 
        Sets the Discount Name.
        Parameters:
        newCode - The name of this calculation code.
      • setCurrency

        void setCurrency(java.lang.String newCurrency)
        Deprecated. 
        Sets Currency for this calculation code.
        Parameters:
        newCurrency - Name of the currency for this calculation code.
      • setDescription

        void setDescription(java.lang.String newDescription)
        Deprecated. 
        Sets Description.
        Parameters:
        newDescription - description of the calculation code
      • setDiscountValueVector

        void setDiscountValueVector(java.util.Vector newDiscountValueVector)
        Deprecated. 
        Sets DiscountValueVector.
        Parameters:
        newDiscountValueVector - represents the discounts to be given
      • setDiscSubType

        void setDiscSubType(java.lang.Integer newDiscSubType)
        Deprecated. 
        Sets the type of discount given.
        Parameters:
        newDiscSubType - 0 - percentage discount, 1 - fixed amount discount.
      • setDiscType

        void setDiscType(java.lang.Integer newDiscType)
        Deprecated. 
        Sets DiscountType.
        Parameters:
        newDiscType - 0 - order level discount, 1 - order item level discount.
      • setEndTimestamp

        void setEndTimestamp(java.sql.Timestamp newEndTimestamp)
        Deprecated. 
        Sets the end of validity period.
        Parameters:
        newEndTimestamp - The time when the discount becomes invalid.
      • setGroupBy

        void setGroupBy(java.lang.Integer newGroupBy)
        Deprecated. 
        Sets GroupBy.
        Parameters:
        newGroupBy - Indicate whether to group or not.
      • setHasDateTimeRange

        void setHasDateTimeRange(boolean newHasDateTimeRange)
        Deprecated. 
        Indicates whether this calculation code has a date time range.
        Parameters:
        new_hasDateTimeRange - true if there is a dateTimeRange.
      • setProduct

        void setProduct(java.util.Vector paramProduct)
        Deprecated. 
        Sets the product for the product purchase condition.
      • setRangeFromVector

        void setRangeFromVector(java.util.Vector newRangeFromVector)
        Deprecated. 
        Sets RangeFromVector.
        Parameters:
        newRangeFromVector - Useful for range claculation code.
      • setRangeType

        void setRangeType(java.lang.Integer newRangeType)
        Deprecated. 
        Sets RangeType.
        Parameters:
        newRangeType - Indicates the range type.
      • setStartTimestamp

        void setStartTimestamp(java.sql.Timestamp newStartTimestamp)
        Deprecated. 
        Sets the start time of the calculcation code.
        Parameters:
        newStartTimestamp - The time when the calculation code becomes effective.
      • getCalCodeId

        java.lang.Integer getCalCodeId()
        Deprecated. 
        Gets CalCodeId.
        Returns:
        The ID of the created calculation code.
      • setCategory

        void setCategory(java.util.Vector paramCategory)
        Deprecated. 
        Sets the categories to be included in catgpcalcd table
        Parameters:
        paramCategory - The categories to be included in the catgpcalcd table.