Package de.hybris.platform.returns
Class ReturnActionEntry
java.lang.Object
de.hybris.platform.returns.ReturnActionEntry
Represents an action entry in a ReturnRequest Action Request or ReturnRequest Action Response. A single action entry
refers to a ReturnEntry and has an actionQuantity value. actionQuantity value must be greater than zero and less than
or equal to ReturnEntry.getExpectedQuantity(). if actionQuantity value is equal to the ReturnEntry quantity, the
ReturnEntry is subject to complete action operation, , otherwise it is subject to partial action.
In case of ReturnRequest Action Request the actionQuantity value means how many items should be taking care of from
the actual ReturnEntry. In case of ReturnRequest Action Response the actionQuantity value means how many items were
successfully taking care of from the actual ReturnEntry.
-
Constructor Summary
ConstructorsConstructorDescriptionReturnActionEntry(ReturnEntryModel returnEntry) Creates an entry that represents action of the whole Return EntryReturnActionEntry(ReturnEntryModel returnEntry, long actionQuantity) Creates an entry that represents action of a part of the Return Entry (i.e.ReturnActionEntry(ReturnEntryModel returnEntry, long actionQuantity, String notes) Creates an entry that represents action of a part of the Return Entry (i.e.ReturnActionEntry(ReturnEntryModel returnEntry, long actionQuantity, String notes, HybrisEnumValue actionReason) Creates an entry that represents action of a part of the Return Entry partially.ReturnActionEntry(ReturnEntryModel returnEntry, String notes, HybrisEnumValue actionReason) Creates an entry that represents action of a part of the Return Entry completely. -
Method Summary
Modifier and TypeMethodDescriptionlonggetNotes()voidsetActionReason(HybrisEnumValue actionReason) void
-
Constructor Details
-
ReturnActionEntry
Creates an entry that represents action of the whole Return Entry- Parameters:
returnEntry-
-
ReturnActionEntry
Creates an entry that represents action of a part of the Return Entry (i.e. reducing Return Entry quantity). Reducing Return Entry quantity to zero is the same as cancelling it completely.- Parameters:
returnEntry- - return entryactionQuantity- - how much of the entry's quantity should be taking care of
-
ReturnActionEntry
Creates an entry that represents action of a part of the Return Entry (i.e. reducing Return Entry quantity). Reducing Return Entry quantity to zero is the same as canceling it completely.- Parameters:
returnEntry- - return entryactionQuantity- - how much of the entry's quantity should be taking care ofnotes- - additional notes (I.E from CSAdmin)
-
ReturnActionEntry
Creates an entry that represents action of a part of the Return Entry completely.- Parameters:
returnEntry- - return entryactionReason- - reason of this return entry actionnotes- - additional notes (I.E from CSAdmin)
-
ReturnActionEntry
public ReturnActionEntry(ReturnEntryModel returnEntry, long actionQuantity, String notes, HybrisEnumValue actionReason) Creates an entry that represents action of a part of the Return Entry partially.- Parameters:
returnEntry- - return entryactionQuantity- - how much of the entry's quantity should be taking care ofactionReason- - reason of this return entry actionnotes- - additional notes (I.E from CSAdmin)
-
-
Method Details
-
getReturnEntry
-
getActionQuantity
public long getActionQuantity() -
getNotes
-
setNotes
-
getActionReason
-
setActionReason
-