Package de.hybris.platform.refund
Interface RefundService
-
- All Known Implementing Classes:
DefaultRefundService,WarehousingRefundService
public interface RefundServiceService for handling Refund's
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(OrderModel previewOrder, ReturnRequestModel request)Based on the assigned refund entries of the 'previewOrder'createRefundOrderPreview(OrderModel), the 'finalOrder' will be recalculated and modification entries will be written.voidapply(java.util.List<RefundEntryModel> refunds, OrderModel order)Based on the assigned refund entries the order will be recalculated.OrderModelcreateRefundOrderPreview(OrderModel original)Create a "refund order" , which will be a clone of the original one.java.util.List<RefundEntryModel>getRefunds(ReturnRequestModel request)Returns the refunds for the specified order
-
-
-
Method Detail
-
createRefundOrderPreview
OrderModel createRefundOrderPreview(OrderModel original)
Create a "refund order" , which will be a clone of the original one. The new instance should be used for applying the refund. (see: RefundService#calculate)- Parameters:
original- the original order- Returns:
- the refund order
-
apply
void apply(java.util.List<RefundEntryModel> refunds, OrderModel order)
Based on the assigned refund entries the order will be recalculated.- Parameters:
refunds- the refunds for which the amount will be calculatedorder- the refund order for which the refund will be calculated
-
apply
void apply(OrderModel previewOrder, ReturnRequestModel request) throws OrderReturnRecordsHandlerException
Based on the assigned refund entries of the 'previewOrder'createRefundOrderPreview(OrderModel), the 'finalOrder' will be recalculated and modification entries will be written.- Parameters:
previewOrder- the order which holds the "refund entries"request- the request which holds the order for which the refunds will be calculated.- Throws:
OrderReturnRecordsHandlerException- in the case of any service error
-
getRefunds
java.util.List<RefundEntryModel> getRefunds(ReturnRequestModel request)
Returns the refunds for the specified order- Parameters:
request- the request- Returns:
- the refunds
-
-