|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.promotion.GiftWithPurchaseSelection
public class GiftWithPurchaseSelection
Class to represent a single gift selection available for a gift with purchase promotion. The GiftWithPurchaseSelectionsDroplet will output a collection of these for an order. It contains the various quantities associated with the promotion and gift in the order or item.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected long |
mAutomaticQuantity
Quantity automatically added |
protected long |
mFailedQuantity
Quantity failed to auto add (only applied for orders) |
protected java.lang.String |
mGiftDetail
|
protected int |
mGiftHashCode
|
protected java.lang.String |
mGiftType
|
protected java.lang.String |
mPromotionId
|
protected long |
mQuantity
Total quantity given away by this promotion for this gift |
protected long |
mRemovedQuantity
Quantity manually removed (only applied for orders) |
protected long |
mSelectedQuantity
Quantity already selected |
protected long |
mTargetedQuantity
Quantity targeted by pricing |
Constructor Summary | |
---|---|
GiftWithPurchaseSelection()
Default constructor |
|
GiftWithPurchaseSelection(atg.commerce.promotion.GWPMarkerManager pManager,
RepositoryItem pOrderMarker)
Constructor to create a selection object based on a given GWP order marker. |
Method Summary | |
---|---|
long |
getAutomaticQuantity()
Getter for the quantity already automatically added to the order |
long |
getFailedQuantity()
Getter for the quantity failed to auto add in the order |
java.lang.String |
getGiftDetail()
Getter for the gift detail |
int |
getGiftHashCode()
Getter for the gift hash code |
java.lang.String |
getGiftType()
Getter for the gift type |
java.lang.String |
getPromotionId()
Getter for the promotion id |
long |
getQuantity()
Getter for the total quantity given away by this promotion for this gift |
long |
getQuantityAvailableForSelection()
Getter for the quantity available still available to be selected |
long |
getQuantityMissingFromOrder()
Getter for the quantity missing from the order |
long |
getRemovedQuantity()
Getter for the quantity manually removed in the order |
long |
getSelectedQuantity()
Getter for the quantity already selected and added to the order |
long |
getTargetedQuantity()
Getter for the quantity already in the order that was targeted by pricing |
void |
setAutomaticQuantity(long pAutomaticQuantity)
Setter for the quantity already automatically added to the order |
void |
setFailedQuantity(long pFailedQuantity)
Setter for the quantity failed to auto add in the order |
void |
setGiftDetail(java.lang.String pGiftDetail)
Setter for the gift detail |
void |
setGiftHashCode(int pGiftHashCode)
Setter for the gift hash code |
void |
setGiftType(java.lang.String pGiftType)
Setter for the gift type |
void |
setPromotionId(java.lang.String pPromotionId)
Setter for the promotion id |
void |
setQuantity(long pQuantity)
Setter for the total quantity given away by this promotion for this gift |
void |
setRemovedQuantity(long pRemovedQuantity)
Setter for the quantity manually removed in the order |
void |
setSelectedQuantity(long pSelectedQuantity)
Setter for the quantity already selected and added to the order |
void |
setTargetedQuantity(long pTargetedQuantity)
Setter for the quantity already in the order that was targeted by pricing |
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
protected java.lang.String mPromotionId
protected int mGiftHashCode
protected java.lang.String mGiftType
protected java.lang.String mGiftDetail
protected long mQuantity
protected long mAutomaticQuantity
protected long mSelectedQuantity
protected long mTargetedQuantity
protected long mRemovedQuantity
protected long mFailedQuantity
Constructor Detail |
---|
public GiftWithPurchaseSelection()
public GiftWithPurchaseSelection(atg.commerce.promotion.GWPMarkerManager pManager, RepositoryItem pOrderMarker)
pManager
- GWPMarkerManager to get quantites from the given order markerpOrderMarker
- RepositoryItem GWP order markerMethod Detail |
---|
public java.lang.String getPromotionId()
public void setPromotionId(java.lang.String pPromotionId)
pPromotionId
- Stringpublic int getGiftHashCode()
public void setGiftHashCode(int pGiftHashCode)
pGiftHashCode
- intpublic java.lang.String getGiftType()
public void setGiftType(java.lang.String pGiftType)
pGiftType
- Stringpublic java.lang.String getGiftDetail()
public void setGiftDetail(java.lang.String pGiftDetail)
pGiftDetail
- Stringpublic long getQuantity()
public void setQuantity(long pQuantity)
pQuantity
- longpublic long getAutomaticQuantity()
public void setAutomaticQuantity(long pAutomaticQuantity)
pAutomaticQuantity
- public long getSelectedQuantity()
public void setSelectedQuantity(long pSelectedQuantity)
pSelectedQuantity
- public long getTargetedQuantity()
public void setTargetedQuantity(long pTargetedQuantity)
pTargetedQuantity
- public long getRemovedQuantity()
public void setRemovedQuantity(long pRemovedQuantity)
pRemovedQuantity
- public long getFailedQuantity()
public void setFailedQuantity(long pFailedQuantity)
pFailedQuantity
- public long getQuantityAvailableForSelection()
Note: manually removed and failed quantity are not included
public long getQuantityMissingFromOrder()
Note: manually removed and failed quantity are included
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 |