com.ibm.commerce.couponwallet.databeans

Class ViewWalletDataBean

  • java.lang.Object
    • com.ibm.commerce.couponwallet.databeans.ViewWalletDataBean
  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, ViewWalletInputDataBean, java.io.Serializable

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

    public class ViewWalletDataBean
    extends java.lang.Object
    implements ViewWalletInputDataBean, SmartDataBean
    This data bean is used to view the eCoupon in the customer's wallet. It provides the list of coupons for which the status and storeId are as specified by the parameters and the product specified by the productId is part of the purchase condition. If the productId is -1 then all the eCoupon for this store in the specified state for this user are shown.

    The input parameter for this data bean are :

    • shopperId: Long
    • storeId: Integer
    • productId: Long
    • state: String

    This can be queried for number of eCoupons and the information relating to eCoupons can be obtained by calling the function getCouponInfo. This function return a CouponInfo object. This object contain the following fields :

    • thumbNailPath: String
    • fullImagePath: String
    • storeName: String
    • shortDescription: String
    • longDescription: String
    • expiryDate: String
    • bcId: long
    • promoId: Integer
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.Long categoryId
      Deprecated. 
      The category for which the applicable coupons are being returned.
      CommandContext commandContext
      Deprecated. 
      The command context.
      java.util.Vector couponInfo
      Deprecated. 
      The information for each coupon is stored in this object.
      int numCoupons
      Deprecated. 
      The number of coupons being returned.
      java.lang.Long productId
      Deprecated. 
      The product for which the applicable coupons are being returned.
      java.lang.Long shopperId
      Deprecated. 
      The customer who's coupons are being displayed.
      java.lang.String state
      Deprecated. 
      The desired state of the coupons to be shown.
      java.lang.Integer storeId
      Deprecated. 
      The store for which the coupons are being shown.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ViewWalletDataBean()
      Deprecated. 
      ViewWalletDatabean constructor call super.
    • Field Detail

      • state

        public java.lang.String state
        Deprecated. 
        The desired state of the coupons to be shown.
      • couponInfo

        public java.util.Vector couponInfo
        Deprecated. 
        The information for each coupon is stored in this object.
      • numCoupons

        public int numCoupons
        Deprecated. 
        The number of coupons being returned.
      • productId

        public java.lang.Long productId
        Deprecated. 
        The product for which the applicable coupons are being returned.
      • storeId

        public java.lang.Integer storeId
        Deprecated. 
        The store for which the coupons are being shown.
      • commandContext

        public CommandContext commandContext
        Deprecated. 
        The command context.
      • shopperId

        public java.lang.Long shopperId
        Deprecated. 
        The customer who's coupons are being displayed.
      • categoryId

        public java.lang.Long categoryId
        Deprecated. 
        The category for which the applicable coupons are being returned.
    • Constructor Detail

      • ViewWalletDataBean

        public ViewWalletDataBean()
        Deprecated. 
        ViewWalletDatabean constructor call super.
    • Method Detail

      • forThisStore

        public boolean forThisStore(CouponPromotionAccessBean newpAB,
                                    java.lang.Integer newStoreId)
        Deprecated. 
        This method identifies the eCoupon for the store applied for.
        Parameters:
        newcwAB - com.ibm.commerce.couponwallet.objects.CouponWalletAccessBean
        newStoreId - java.lang.Integer
        Returns:
        java.lang.Boolean
      • getBcId

        public java.lang.Long getBcId(int i)
        Deprecated. 
        Gets the ID of the eCoupon.
        Returns:
        java.lang.String[]
      • getCategoryId

        public java.lang.Long getCategoryId()
        Deprecated. 
        Gets the category for which the applicable coupons are being found out.
        Returns:
        long
      • getCommandContext

        public CommandContext getCommandContext()
        Deprecated. 
        Gets the context of the command.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        com.ibm.commerce.command.CommandContext
      • getCouponInfo

        public CouponInfo getCouponInfo(int i)
        Deprecated. 
        Gets the information about the eCoupon.
        Parameters:
        int -
        Returns:
        com.ibm.commerce.couponwallet.databeans.CouponInfo
      • getNumCoupons

        public int getNumCoupons()
        Deprecated. 
        Gets the number of eCoupons applicable for the products.
        Returns:
        int
      • getRequestProperties

        public TypedProperty getRequestProperties()
        Deprecated. 
        Gets the properties of the request.
        Specified by:
        getRequestProperties in interface InputDataBean
        Returns:
        com.ibm.commerce.datatype.TypedProperty
      • getShopperId

        public java.lang.Long getShopperId()
        Deprecated. 
        Gets ID of the customer.
        Returns:
        java.lang.Long
      • populate

        public void populate()
        Deprecated. 
        This method populates the data bean that is used to view the eCoupon in the customer's wallet.
        Specified by:
        populate in interface SmartDataBean
      • setCategoryId

        public void setCategoryId(java.lang.Long newCategoryId)
        Deprecated. 
        Sets the category for which the applicable coupons are being found out.
        Parameters:
        newCategoryId - long
      • setCommandContext

        public void setCommandContext(CommandContext newCommandContext)
        Deprecated. 
        Sets the context of the command.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        newCommandContext - com.ibm.commerce.command.CommandContext
      • setNumCoupons

        public void setNumCoupons(int newNumCoupons)
        Deprecated. 
        Sets the number of eCoupons applied for the products.
        Parameters:
        newNumCoupons - int
      • setProductId

        public void setProductId(java.lang.Long newProductId)
        Deprecated. 
        Sets the ID of the product.
        Parameters:
        newProductId - int
      • setRequestProperties

        public void setRequestProperties(TypedProperty typeProp)
        Deprecated. 
        Sets the properties of the request.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        typeProp - com.ibm.commerce.datatype.TypedProperty
      • setShopperId

        public void setShopperId(java.lang.Long newShopperId)
        Deprecated. 
        Sets the ID of the customer.
        Parameters:
        newShopperId - java.lang.Long
      • setState

        public void setState(java.lang.String newState)
        Deprecated. 
        Sets the state of the eCoupon.
        Parameters:
        newState - java.lang.String
      • setStoreId

        public void setStoreId(java.lang.Integer newStoreId)
        Deprecated. 
        Sets the ID of the store.
        Parameters:
        newStoreId - java.lang.Integer
      • setValues

        public void setValues(CouponWalletAccessBean tempcwAB,
                              CouponPromotionAccessBean temppAB)
                       throws java.lang.Exception
        Deprecated. 
        Sets the values.
        Parameters:
        index - int
        cwAB - com.ibm.commerce.couponwallet.objects.CouponWalletAccessBean
        pAB - com.ibm.commerce.couponpromotion.objects.PromotionAccessBean
        Throws:
        java.lang.Exception