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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PromotionUsed() |
Modifier and Type | Method and Description |
---|---|
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.
|
appendBaseToString, getAttribute, getAttributes, getId, getOriginalId, getOriginalSource, getOriginalUserId, getParentSessionId, getSessionId, getSiteId, getSource, getUserId, setAttribute, setId, setOriginalId, setOriginalSource, setOriginalUserId, setParentSessionId, setSessionId, setSiteId, setSource, setUserId
public static java.lang.String CLASS_VERSION
public static final java.lang.String TYPE
public java.lang.String getType()
getType
in interface atg.dms.forward.ForwardMessage
getType
in class atg.dms.forward.ForwardMessageImpl
public Order getOrder()
public void setOrder(Order pOrder)
Order
public 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