|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.pricing.PriceChanged
public class PriceChanged
This event gets generated everytime an order is repriced and the price changed. It contains the order, the profile (owner of the order), the object whose price changed (currently this will be the order since other price change events are not implemented out of the boc), the old price, and the new price. Created: Fri Jan 04 15:58:26 2002
Field Summary | |
---|---|
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 Summary | |
---|---|
PriceChanged()
|
Method Summary | |
---|---|
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()
|
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 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
Constructor Detail |
---|
public PriceChanged()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |