atg.commerce.promotion
Class PromotionUsed

java.lang.Object
  extended by atg.commerce.messaging.CommerceMessageImpl
      extended by atg.commerce.promotion.PromotionUsed
All Implemented Interfaces:
CommerceMessage, java.io.Serializable

public class PromotionUsed
extends CommerceMessageImpl

This message will be sent when an order is processed and contains promotions which were used. One message is sent for each promotion in the order.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String TYPE
          This is the JMS message type for the message that this class represents.
 
Constructor Summary
PromotionUsed()
           
 
Method Summary
 double getDiscount()
          The amount of the discount given by this promotion
 Order getOrder()
           
 RepositoryItem getProfile()
          Returns the profile
 java.lang.String getProfileId()
          Returns profileId from the Profile property.
 RepositoryItem getPromotion()
          Returns the promotion
 java.lang.String getType()
          return the JMS message TYPE of the message
 void setDiscount(double pDiscount)
           
 void setOrder(Order pOrder)
          This property is the Order that the promotion was used in.
 void setProfile(RepositoryItem pProfile)
          Sets the profile
 void setPromotion(RepositoryItem pPromotion)
          Sets the promotion
 java.lang.String toString()
          This method returns a readable string representing the contents of this message.
 
Methods inherited from class atg.commerce.messaging.CommerceMessageImpl
appendBaseToString, getId, getOriginalId, getOriginalSource, getOriginalUserId, getParentSessionId, getSessionId, getSource, getUserId, setId, setOriginalId, setOriginalSource, setOriginalUserId, setParentSessionId, setSessionId, setSource, setUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


TYPE

public static final java.lang.String TYPE
This is the JMS message type for the message that this class represents.

See Also:
Constant Field Values
Constructor Detail

PromotionUsed

public PromotionUsed()
Method Detail

getType

public java.lang.String getType()
return the JMS message TYPE of the message

Specified by:
getType in interface CommerceMessage
Overrides:
getType in class CommerceMessageImpl

getOrder

public Order getOrder()

setOrder

public void setOrder(Order pOrder)
This property is the Order that the promotion was used in.

See Also:
Order

getProfile

public RepositoryItem getProfile()
Returns the profile


setProfile

public void setProfile(RepositoryItem pProfile)
Sets the profile


getProfileId

public java.lang.String getProfileId()
Returns profileId from the Profile property. if Profile property is null then null is returned.


getPromotion

public RepositoryItem getPromotion()
Returns the promotion


setPromotion

public void setPromotion(RepositoryItem pPromotion)
Sets the promotion


setDiscount

public void setDiscount(double pDiscount)

getDiscount

public double getDiscount()
The amount of the discount given by this promotion


toString

public java.lang.String toString()
This method returns a readable string representing the contents of this message.

Overrides:
toString in class java.lang.Object