| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.messaging.CommerceMessageImpl
atg.commerce.promotion.PromotionUsed
public class PromotionUsed
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.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| static java.lang.String | TYPEThis 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 Profileproperty. | 
|  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 | 
|---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String TYPE
| Constructor Detail | 
|---|
public PromotionUsed()
| Method Detail | 
|---|
public java.lang.String getType()
getType in interface CommerceMessagegetType in class CommerceMessageImplpublic Order getOrder()
public void setOrder(Order pOrder)
Orderpublic RepositoryItem getProfile()
public void setProfile(RepositoryItem pProfile)
public java.lang.String getProfileId()
Profile property. if
 Profile property is null then null is returned.
public RepositoryItem getPromotion()
public void setPromotion(RepositoryItem pPromotion)
public void setDiscount(double pDiscount)
public double getDiscount()
public java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||