public class GiftPurchased extends CommerceMessageImpl
This message will be sent to the Dynamo Scenario Server when a gift is purchased off someone's giftlist. This can be used to trigger an event such as sending an email notification to the customer. The message will contain the order, the profile of the customer the gift is for and the commerce item itself.
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 |
---|
GiftPurchased() |
Modifier and Type | Method and Description |
---|---|
CommerceItem |
getItem()
return the gift.
|
Order |
getOrder()
return the order in which the gift was purchased.
|
RepositoryItem |
getProfile()
return the profile of the recipient
|
java.lang.String |
getProfileId()
Returns profileId from the
Profile property. |
java.lang.String |
getType()
return the JMS message TYPE of the message
|
void |
setItem(CommerceItem pItem)
This property is the CommerceItem of the Gift
|
void |
setOrder(Order pOrder)
Sets the property of the order.
|
void |
setProfile(RepositoryItem pProfile)
Sets the profile of the recipient
|
java.lang.String |
toString()
This method returns a readable string representing the contents of this message.
|
appendBaseToString, getId, getOriginalId, getOriginalSource, getOriginalUserId, getParentSessionId, getSessionId, getSiteId, getSource, getUserId, 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 CommerceMessage
getType
in class CommerceMessageImpl
public Order getOrder()
public void setOrder(Order pOrder)
pOrder
- the order in which the gift was purchased.Order
public RepositoryItem getProfile()
public void setProfile(RepositoryItem pProfile)
pProfile
- the profile of the recipient of the gift.Profile
public java.lang.String getProfileId()
Profile
property. if
Profile
property is null then null is returned.public CommerceItem getItem()
public void setItem(CommerceItem pItem)
pItem
- the commerceItem which represents the giftCommerceItem
public java.lang.String toString()
toString
in class java.lang.Object