atg.commerce.order
Class ItemQuantityChanged

java.lang.Object
  extended by atg.commerce.fulfillment.scenario.ScenarioEvent
      extended by atg.commerce.order.ItemQuantityChanged
All Implemented Interfaces:
java.io.Serializable

public class ItemQuantityChanged
extends ScenarioEvent

This class is a message object which is sent when an item's quantity is changed in an Order.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class atg.commerce.fulfillment.scenario.ScenarioEvent
ScenarioEvent.ProfileToolsSingleton
 
Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String TYPE
           
 
Constructor Summary
ItemQuantityChanged()
           
 
Method Summary
 double getAmount()
          The price of the items added
 java.lang.Object getCatalogRef()
          The catalogRef that is associated with the item.
 CommerceItem getCommerceItem()
          The recently added item
 boolean getGiftWithPurchase()
          The boolean flag to indicate whether the item was a free gift from a gift with purchase promotion.
 java.lang.String getId()
          This is the Id of this message.
 long getNewQuantity()
          The new quantity of the item
 long getOldQuantity()
          The quantity of the item before the change
 Order getOrder()
          The order that the item quantity was changed in
 java.lang.Object getProduct()
          The product that is associated with the item.
 java.lang.String getType()
          the type of this event.
 void setAmount(double pAmount)
           
 void setCatalogRef(java.lang.Object pCatalogRef)
           
 void setCommerceItem(CommerceItem pCommerceItem)
           
 void setGiftWithPurchase(boolean pGiftWithPurchase)
           
 void setId(java.lang.String pId)
           
 void setNewQuantity(long pNewQuantity)
           
 void setOldQuantity(long pOldQuantity)
           
 void setOrder(Order pOrder)
           
 void setProduct(java.lang.Object pProduct)
           
 java.lang.String toString()
           
 
Methods inherited from class atg.commerce.fulfillment.scenario.ScenarioEvent
appendBaseToString, getParentSessionId, getProfile, getProfileId, getProfileTools, getSessionId, getSiteId, lookUpProfile, setParentSessionId, setProfile, setProfileId, setSessionId, setSiteId
 
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


TYPE

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

ItemQuantityChanged

public ItemQuantityChanged()
Method Detail

setId

public void setId(java.lang.String pId)
Overrides:
setId in class ScenarioEvent

getId

public java.lang.String getId()
This is the Id of this message.

Overrides:
getId in class ScenarioEvent

setOrder

public void setOrder(Order pOrder)

getOrder

public Order getOrder()
The order that the item quantity was changed in


setCatalogRef

public void setCatalogRef(java.lang.Object pCatalogRef)

getCatalogRef

public java.lang.Object getCatalogRef()
The catalogRef that is associated with the item.


setProduct

public void setProduct(java.lang.Object pProduct)

getProduct

public java.lang.Object getProduct()
The product that is associated with the item.


setCommerceItem

public void setCommerceItem(CommerceItem pCommerceItem)

getCommerceItem

public CommerceItem getCommerceItem()
The recently added item


setOldQuantity

public void setOldQuantity(long pOldQuantity)

getOldQuantity

public long getOldQuantity()
The quantity of the item before the change


setNewQuantity

public void setNewQuantity(long pNewQuantity)

getNewQuantity

public long getNewQuantity()
The new quantity of the item


setAmount

public void setAmount(double pAmount)

getAmount

public double getAmount()
The price of the items added


setGiftWithPurchase

public void setGiftWithPurchase(boolean pGiftWithPurchase)

getGiftWithPurchase

public boolean getGiftWithPurchase()
The boolean flag to indicate whether the item was a free gift from a gift with purchase promotion.


getType

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

Overrides:
getType in class ScenarioEvent

toString

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