|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.csr.returns.ReturnItem
public class ReturnItem
This component encapsulates data related to a returned item
The loadReturnItem(RepositoryItem)
is used to load return item properties from repository item.
if you add additional properties to return item and it needs to be loaded to the return item object, you need
to extend this method.
The #loadReturnItem(MutableRepositoryItem)
is used to save return item properties to repository item.
if you add additional properties to return item and it needs to be saved in the repository, you need
to extend this method.
loadReturnItem(RepositoryItem)
,
saveReturnItem(MutableRepositoryItem)
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.util.Collection |
mItemCostAdjustments
|
Constructor Summary | |
---|---|
ReturnItem(CommerceItem pCommerceItem)
Initialize a ReturnItem based on the given commerce item |
Method Summary | |
---|---|
void |
addItemCostAdjustment(ItemCostAdjustment pItemCostAdjustment)
Adds a new ItemCostAdjustment to the return. |
void |
addItemCostAdjustments(java.util.Collection pItemCostAdjustments)
Adds a collection of ItemCostAdjustment objects to the return. |
void |
clearItemCostAdjustments()
Clears all the ItemCostAdjustment objects from the return |
double |
getActualShippingRefundShare()
|
double |
getActualTaxRefundShare()
|
CommerceItem |
getCommerceItem()
|
java.lang.String |
getDisposition()
Returns the disposition for this item |
java.lang.String |
getId()
Returns the id of this return item |
static ReturnItem |
getInstance(CommerceItem pCommerceItem)
Deprecated. |
java.util.Collection |
getItemCostAdjustments()
Returns the collection of ItemCostAdjustment objects
that are used to determine the suggested refund amounts for the
return. |
long |
getQuantityAvailable()
|
long |
getQuantityReceived()
Returns the quantity that has been received |
long |
getQuantityReturned()
|
long |
getQuantityShipped()
|
long |
getQuantityToExchange()
|
long |
getQuantityToProcess()
|
long |
getQuantityToReturn()
Returns the quantity that should be returned |
double |
getRefundAmount()
|
java.lang.String |
getReturnReason()
Returns the reason that this item was returned |
java.lang.String |
getShippingGroupId()
Returns the id of the shipping group that this record is related to |
java.lang.String |
getState()
Returns the state of this return item |
java.lang.String |
getStateAsUserResource()
returns the ReturnItem state as a user resource |
java.lang.String |
getStateDetailAsUserResource()
returns the ReturnItem state detail as a user resource |
double |
getSuggestedRefundAmount()
|
double |
getSuggestedShippingRefundShare()
|
double |
getSuggestedTaxRefundShare()
|
boolean |
isEditable()
Can this item be edited? |
boolean |
isReturnShipmentRequired()
Returns the switch that indicates if the item must be returned |
void |
loadReturnItem(RepositoryItem pSource)
This method is used to copy the information from the source return item repository item to return item instance. |
void |
saveReturnItem(MutableRepositoryItem pDestination)
This method is used to copy the information from return item instance to repository item. |
void |
setActualShippingRefundShare(double pActualShippingRefundShare)
|
void |
setActualTaxRefundShare(double pActualTaxRefundShare)
|
void |
setDisposition(java.lang.String pDisposition)
Sets the disposition for this item |
protected void |
setId(java.lang.String pId)
Sets the id of this return item |
void |
setQuantityReceived(long pQuantityReceived)
Sets the quantity that has been received |
void |
setQuantityReturned(long pQuantityReturned)
Sets the quantity of this item that has previously been returned |
void |
setQuantityShipped(long pQuantityShipped)
Sets the quantity of this item that was originally shipped |
void |
setQuantityToExchange(long pQuantityToExchange)
Sets the quantity that should be exchanged |
void |
setQuantityToReturn(long pQuantityToReturn)
Sets the quantity that should be returned |
void |
setRefundAmount(double pRefundAmount)
Sets the refund amount for this item |
void |
setReturnReason(java.lang.String pReturnReason)
Sets the reason that this item was returned |
void |
setReturnShipmentRequired(boolean pReturnShipmentRequired)
Sets the switch that indicates if the item must be returned |
protected void |
setShippingGroupId(java.lang.String pShippingGroupId)
Sets the id of the shipping group that this record is related to |
protected void |
setState(java.lang.String pState)
Sets the state of this return item |
void |
setSuggestedRefundAmount(double pSuggestedRefundAmount)
Sets the suggested refund amount |
void |
setSuggestedShippingRefundShare(double pSuggestedShippingRefundShare)
|
void |
setSuggestedTaxRefundShare(double pSuggestedTaxRefundShare)
|
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 final java.lang.String CLASS_VERSION
protected java.util.Collection mItemCostAdjustments
Constructor Detail |
---|
public ReturnItem(CommerceItem pCommerceItem)
setCommerceItem(CommerceItem)
Method Detail |
---|
public CommerceItem getCommerceItem()
public void setDisposition(java.lang.String pDisposition)
pDisposition
- the disposition for this itempublic java.lang.String getDisposition()
protected void setId(java.lang.String pId)
pId
- the id of this return itempublic java.lang.String getId()
public void setQuantityReceived(long pQuantityReceived)
pQuantityReceived
- the quantity that has been receivedpublic long getQuantityReceived()
public void setQuantityReturned(long pQuantityReturned)
pQuantityReturned
- the quantity of this item that has previously been returnedpublic long getQuantityReturned()
public void setQuantityShipped(long pQuantityShipped)
pQuantityShipped
- the quantity of this item that was originally shippedpublic long getQuantityShipped()
public void setQuantityToExchange(long pQuantityToExchange)
pQuantityToExchange
- the quantity that should be exchangedpublic long getQuantityToExchange()
public void setQuantityToReturn(long pQuantityToReturn)
pQuantityToReturn
- the quantity that should be returnedpublic long getQuantityToReturn()
public void setRefundAmount(double pRefundAmount)
pRefundAmount
- the refund amount for this itempublic double getRefundAmount()
public void setReturnReason(java.lang.String pReturnReason)
pReturnReason
- the reason that this item was returnedpublic java.lang.String getReturnReason()
public void setReturnShipmentRequired(boolean pReturnShipmentRequired)
pReturnShipmentRequired
- boolean indicating if the item must be returnedpublic boolean isReturnShipmentRequired()
protected void setShippingGroupId(java.lang.String pShippingGroupId)
pShippingGroupId
- the id of the shipping group that this record is related topublic java.lang.String getShippingGroupId()
protected void setState(java.lang.String pState)
pState
- the state of this return itempublic java.lang.String getState()
public java.lang.String getStateAsUserResource()
public java.lang.String getStateDetailAsUserResource()
public void setSuggestedRefundAmount(double pSuggestedRefundAmount)
pSuggestedRefundAmount
- the suggested refund amount based on the original price of the itempublic double getSuggestedRefundAmount()
public double getSuggestedShippingRefundShare()
public void setSuggestedShippingRefundShare(double pSuggestedShippingRefundShare)
public double getSuggestedTaxRefundShare()
public void setSuggestedTaxRefundShare(double pSuggestedTaxRefundShare)
public double getActualShippingRefundShare()
public void setActualShippingRefundShare(double pActualShippingRefundShare)
public double getActualTaxRefundShare()
public void setActualTaxRefundShare(double pActualTaxRefundShare)
public long getQuantityAvailable()
public long getQuantityToProcess()
public boolean isEditable()
public java.util.Collection getItemCostAdjustments()
ItemCostAdjustment
objects
that are used to determine the suggested refund amounts for the
return.
public void addItemCostAdjustment(ItemCostAdjustment pItemCostAdjustment)
ItemCostAdjustment
to the return.
pItemCostAdjustment
- public void addItemCostAdjustments(java.util.Collection pItemCostAdjustments)
ItemCostAdjustment
objects to the return.
pItemCostAdjustments
- public void clearItemCostAdjustments()
ItemCostAdjustment
objects from the return
public java.lang.String toString()
toString
in class java.lang.Object
public static ReturnItem getInstance(CommerceItem pCommerceItem)
ReturnItem(CommerceItem)
to create ReturnItem
.
public void loadReturnItem(RepositoryItem pSource) throws ReturnException
pSource
- The information to be copied from.
ReturnException
public void saveReturnItem(MutableRepositoryItem pDestination) throws ReturnException
pDestination
- The information to be copied
ReturnException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |