atg.commerce.csr.events
Class PriceOverride

java.lang.Object
  extended by atg.agent.events.AgentEvent
      extended by atg.commerce.csr.events.PriceOverride
All Implemented Interfaces:
atg.service.datacollection.TypedEvent, java.io.Serializable

public class PriceOverride
extends atg.agent.events.AgentEvent

The message class to be used to notify listeners when a CSR overrides the price of an element in an order

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.agent.events.AgentEvent
AGENT_TOOLS_COMPONENT, mCurrentSiteId
 
Constructor Summary
PriceOverride()
           
 
Method Summary
 java.lang.String getComponentId()
           
 java.lang.String getComponentType()
           
 double getNewPrice()
           
 double getOldPrice()
           
 java.lang.String getOrderId()
           
 void setComponentId(java.lang.String pComponentId)
          Sets the ID of the order component (commerceItem, shippingGroup) whose price was changed
 void setComponentType(java.lang.String pComponentType)
          Sets the type of the order component (commerceItem, shippingGroup) whose price was changed
 void setNewPrice(double pNewPrice)
          Sets the new price of the item
 void setOldPrice(double pOldPrice)
          Sets the old price of the item
 void setOrderId(java.lang.String pOrderId)
          Sets the ID of the order
 
Methods inherited from class atg.agent.events.AgentEvent
getAgentProfile, getCurrentSiteId, getCustomerProfile, getCustomerProfileId, getEventDate, getIPAddress, getOrganizationId, getParentSessionId, getProfileId, getSessionId, getTicketId, getType, initializeBaseProperties, setCurrentSiteId, setCustomerProfile, setCustomerProfileId, setEventDate, setIPAddress, setOrganizationId, setParentSessionId, setProfileId, setSessionId, setTicketId, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

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

PriceOverride

public PriceOverride()
Method Detail

setComponentId

public void setComponentId(java.lang.String pComponentId)
Sets the ID of the order component (commerceItem, shippingGroup) whose price was changed

Parameters:
pComponentId - the ID of the order component (commerceItem, shippingGroup) whose price was changed

getComponentId

public java.lang.String getComponentId()
Returns:
the ID of the order component (commerceItem, shippingGroup) whose price was changed

setComponentType

public void setComponentType(java.lang.String pComponentType)
Sets the type of the order component (commerceItem, shippingGroup) whose price was changed

Parameters:
pComponentType - the type of order component (commerceItem, shippingGroup) whose price was changed

getComponentType

public java.lang.String getComponentType()
Returns:
the type of order component (commerceItem, shippingGroup) whose price was changed

setNewPrice

public void setNewPrice(double pNewPrice)
Sets the new price of the item

Parameters:
pNewPrice - the new price of the item

getNewPrice

public double getNewPrice()
Returns:
the new price of the item

setOldPrice

public void setOldPrice(double pOldPrice)
Sets the old price of the item

Parameters:
pOldPrice - the old price of the item

getOldPrice

public double getOldPrice()
Returns:
the old price of the item

setOrderId

public void setOrderId(java.lang.String pOrderId)
Sets the ID of the order

Parameters:
pOrderId - the ID of the order

getOrderId

public java.lang.String getOrderId()
Returns:
the ID of the order