com.ibm.commerce.promotion.uniquecode

Class PromotionCode

  • java.lang.Object
    • com.ibm.commerce.promotion.uniquecode.PromotionCode


  • public class PromotionCode
    extends java.lang.Object
    This class defines promotion code object.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PromotionCode(java.lang.String localCode, java.lang.String localPin, java.util.Map localAttributes) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getAttributes()
      Gets the value of the 'attributes' attribute.
      java.lang.String getCode()
      Gets the value of the 'code' attribute.
      java.lang.String getPin()
      Gets the value of the 'pin' attribute.
      void setAttributes(java.util.Map newAttributes)
      Sets the value of the 'attributes' attribute.
      void setCode(java.lang.String newCode)
      Sets the value of the 'code' attribute.
      void setPin(java.lang.String newPin)
      Sets the value of the 'pin' attribute.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PromotionCode

        public PromotionCode(java.lang.String localCode,
                             java.lang.String localPin,
                             java.util.Map localAttributes)
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Gets the value of the 'code' attribute.
        Returns:
        the code
      • setCode

        public void setCode(java.lang.String newCode)
        Sets the value of the 'code' attribute.
        Parameters:
        newCode - the code to set
      • getPin

        public java.lang.String getPin()
        Gets the value of the 'pin' attribute.
        Returns:
        the pin
      • setPin

        public void setPin(java.lang.String newPin)
        Sets the value of the 'pin' attribute.
        Parameters:
        newPin - the pin to set
      • getAttributes

        public java.util.Map getAttributes()
        Gets the value of the 'attributes' attribute.
        Returns:
        the attributes
      • setAttributes

        public void setAttributes(java.util.Map newAttributes)
        Sets the value of the 'attributes' attribute.
        Parameters:
        newAttributes - the attributes to set