public interface RefundService
| Modifier and Type | Method and Description |
|---|---|
void |
apply(java.util.List<RefundEntryModel> refunds,
OrderModel order)
Based on the assigned refund entries the order will be recalculated.
|
void |
apply(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. |
OrderModel |
createRefundOrderPreview(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
|
OrderModel createRefundOrderPreview(OrderModel original)
original - the original ordervoid apply(java.util.List<RefundEntryModel> refunds, OrderModel order)
refunds - the refunds for which the amount will be calculatedorder - the refund order for which the refund will be calculatedvoid apply(OrderModel previewOrder, ReturnRequestModel request) throws OrderReturnRecordsHandlerException
createRefundOrderPreview(OrderModel) , the 'finalOrder' will be recalculated and
modification entries will be written.previewOrder - the order which holds the "refund entries"request - the request which holds the order for which the refunds will be calculated.OrderReturnRecordsHandlerException - in the case of any service errorjava.util.List<RefundEntryModel> getRefunds(ReturnRequestModel request)
request - the requestCopyright © 2018 SAP SE. All Rights Reserved.