public class PriceChanged
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COMMERCE_ITEM_CHANGE |
static java.lang.String |
EVENT_TYPE |
static java.lang.String |
ORDER_SHIPPING_CHANGE |
static java.lang.String |
ORDER_SUBTOTAL_CHANGE |
static java.lang.String |
ORDER_TAX_CHANGE |
static java.lang.String |
ORDER_TOTAL_CHANGE |
static java.lang.String |
OTHER_CHANGE |
static java.lang.String |
SHIPPING_GROUP_CHANGE |
Constructor and Description |
---|
PriceChanged() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
The id of this message
|
AmountInfo |
getNewPrice()
The previous price of the order
|
AmountInfo |
getOldPrice()
The previous price of the order
|
Order |
getOrder()
The order that has just completed.
|
java.lang.String |
getPriceChangeType()
The type of price change that occurred.
|
RepositoryItem |
getProfile()
The profile of the user owning the objects referred to by this event.
|
CommerceIdentifier |
getRepricedObject()
The commerce object whose price changed (either an order, a
shipping group, or a commerce item).
|
java.lang.String |
getType()
The JMS type of this event.
|
void |
setId(java.lang.String pId) |
void |
setNewPrice(AmountInfo pNewPrice) |
void |
setOldPrice(AmountInfo pOldPrice) |
void |
setOrder(Order pOrder) |
void |
setPriceChangeType(java.lang.String pPriceChangeType) |
void |
setProfile(RepositoryItem pProfile) |
void |
setRepricedObject(CommerceIdentifier pRepricedObject) |
void |
setType(java.lang.String pType) |
java.lang.String |
toString() |
public static java.lang.String CLASS_VERSION
public static final java.lang.String EVENT_TYPE
public static final java.lang.String ORDER_SUBTOTAL_CHANGE
public static final java.lang.String ORDER_TOTAL_CHANGE
public static final java.lang.String ORDER_TAX_CHANGE
public static final java.lang.String ORDER_SHIPPING_CHANGE
public static final java.lang.String SHIPPING_GROUP_CHANGE
public static final java.lang.String COMMERCE_ITEM_CHANGE
public static final java.lang.String OTHER_CHANGE
public void setId(java.lang.String pId)
public java.lang.String getId()
public void setType(java.lang.String pType)
public java.lang.String getType()
public void setPriceChangeType(java.lang.String pPriceChangeType)
public java.lang.String getPriceChangeType()
repricedObject
("ShippingGroup" for example)public void setProfile(RepositoryItem pProfile)
public RepositoryItem getProfile()
public void setOrder(Order pOrder)
public Order getOrder()
public void setRepricedObject(CommerceIdentifier pRepricedObject)
public CommerceIdentifier getRepricedObject()
newPrice
will
be the same as repricedObject.priceInfo
public void setOldPrice(AmountInfo pOldPrice)
public AmountInfo getOldPrice()
public void setNewPrice(AmountInfo pNewPrice)
public AmountInfo getNewPrice()
public java.lang.String toString()
toString
in class java.lang.Object