atg.commerce.csr.order.edit
Class ConsumablePromotion

java.lang.Object
  extended by atg.commerce.csr.order.edit.ConsumablePromotion

public class ConsumablePromotion
extends java.lang.Object

This class represents a promotion that was claimed while editing a submitted order.

When the order edits are reconciled, these promotions are consumed if the order count is still equals the order count when claimed. At that time it is marked as used so PromotionUsed events can be sent later in the reconcilation process.


Field Summary
static java.lang.String CLASS_VERSION
           
protected  int mOrderCountWhenClaimed
           
protected  atg.repository.RepositoryItem mPromotion
           
protected  boolean mPromotionUsed
           
 
Constructor Summary
ConsumablePromotion()
           
 
Method Summary
 int getOrderCountWhenClaimed()
          Returns the number of times the promotion appeared in the order after it was claimed.
 atg.repository.RepositoryItem getPromotion()
          Returns the promotion that was claimed.
 boolean isPromotionUsed()
          Returns true if the reconciliation process determines that the promotion was used for the order.
 void setOrderCountWhenClaimed(int pOrderCountWhenClaimed)
           
 void setPromotion(atg.repository.RepositoryItem pPromotion)
           
 void setPromotionUsed(boolean pPromotionUsed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

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

mPromotion

protected atg.repository.RepositoryItem mPromotion

mOrderCountWhenClaimed

protected int mOrderCountWhenClaimed

mPromotionUsed

protected boolean mPromotionUsed
Constructor Detail

ConsumablePromotion

public ConsumablePromotion()
Method Detail

getOrderCountWhenClaimed

public int getOrderCountWhenClaimed()
Returns the number of times the promotion appeared in the order after it was claimed.

Returns:

setOrderCountWhenClaimed

public void setOrderCountWhenClaimed(int pOrderCountWhenClaimed)

getPromotion

public atg.repository.RepositoryItem getPromotion()
Returns the promotion that was claimed.

Returns:

setPromotion

public void setPromotion(atg.repository.RepositoryItem pPromotion)

isPromotionUsed

public boolean isPromotionUsed()
Returns true if the reconciliation process determines that the promotion was used for the order.

Returns:

setPromotionUsed

public void setPromotionUsed(boolean pPromotionUsed)