atg.commerce.pricing
Class PriceChanged

java.lang.Object
  extended by atg.commerce.pricing.PriceChanged
All Implemented Interfaces:
java.io.Serializable

public class PriceChanged
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


EVENT_TYPE

public static final java.lang.String EVENT_TYPE
See Also:
Constant Field Values

ORDER_SUBTOTAL_CHANGE

public static final java.lang.String ORDER_SUBTOTAL_CHANGE
See Also:
Constant Field Values

ORDER_TOTAL_CHANGE

public static final java.lang.String ORDER_TOTAL_CHANGE
See Also:
Constant Field Values

ORDER_TAX_CHANGE

public static final java.lang.String ORDER_TAX_CHANGE
See Also:
Constant Field Values

ORDER_SHIPPING_CHANGE

public static final java.lang.String ORDER_SHIPPING_CHANGE
See Also:
Constant Field Values

SHIPPING_GROUP_CHANGE

public static final java.lang.String SHIPPING_GROUP_CHANGE
See Also:
Constant Field Values

COMMERCE_ITEM_CHANGE

public static final java.lang.String COMMERCE_ITEM_CHANGE
See Also:
Constant Field Values

OTHER_CHANGE

public static final java.lang.String OTHER_CHANGE
See Also:
Constant Field Values
Constructor Detail

PriceChanged

public PriceChanged()
Method Detail

setId

public void setId(java.lang.String pId)

getId

public java.lang.String getId()
The id of this message


setType

public void setType(java.lang.String pType)

getType

public java.lang.String getType()
The JMS type of this event.


setPriceChangeType

public void setPriceChangeType(java.lang.String pPriceChangeType)

getPriceChangeType

public java.lang.String getPriceChangeType()
The type of price change that occurred. Currently this is set to "OrderSubtotal". If a new event is created for a different price (Shipping price changed for example) then this should reflect the type of repricedObject ("ShippingGroup" for example)


setProfile

public void setProfile(RepositoryItem pProfile)

getProfile

public RepositoryItem getProfile()
The profile of the user owning the objects referred to by this event.


setOrder

public void setOrder(Order pOrder)

getOrder

public Order getOrder()
The order that has just completed.


setRepricedObject

public void setRepricedObject(CommerceIdentifier pRepricedObject)

getRepricedObject

public CommerceIdentifier getRepricedObject()
The commerce object whose price changed (either an order, a shipping group, or a commerce item). newPrice will be the same as repricedObject.priceInfo


setOldPrice

public void setOldPrice(AmountInfo pOldPrice)

getOldPrice

public AmountInfo getOldPrice()
The previous price of the order


setNewPrice

public void setNewPrice(AmountInfo pNewPrice)

getNewPrice

public AmountInfo getNewPrice()
The previous price of the order


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object