public interface ReturnService
| Modifier and Type | Method and Description |
|---|---|
void |
addReplacementOrderEntries(ReplacementOrderModel order,
List<ReplacementEntryModel> replacements)
Adds
ReplacementOrderEntryModel entries from the specified ReplacementEntryModel. |
RefundEntryModel |
createRefund(ReturnRequestModel request,
AbstractOrderEntryModel entry,
String notes,
Long expectedQuantity,
ReturnAction action,
RefundReason reason)
Creates a Refund based on the assigned OrderEntry instance
|
ReplacementEntryModel |
createReplacement(ReturnRequestModel request,
AbstractOrderEntryModel entry,
String notes,
Long expectedQuantity,
ReturnAction action,
ReplacementReason reason)
Creates a Replacement based on the assigned OrderEntry instance
|
ReplacementOrderModel |
createReplacementOrder(ReturnRequestModel request)
Creates a
ReplacementOrderModel |
ReturnRequestModel |
createReturnRequest(OrderModel order)
Creates an "return request" object (@link ReturnRequest} for the order to be returned.
|
String |
createRMA(ReturnRequestModel request)
creates "Return Merchandise Authorization" aka "Return Material Authorization" (RMA) and assigns it to the
assigned
ReturnRequestModel |
Map<AbstractOrderEntryModel,Long> |
getAllReturnableEntries(OrderModel order)
Returns all returnable
OrderEntry's |
OrderReturnRecordModel |
getOrderReturnRecordForOrder(OrderModel order)
Gets order return record for a given order.
|
ReplacementOrderModel |
getReplacementOrder(String rma)
Returns the
ReplacementOrderModel by the specified 'RMA value' |
List<ReplacementEntryModel> |
getReplacements(ReturnRequestModel request)
Returns all Replacements for the specified return request
|
List<ReturnEntryModel> |
getReturnEntries(ProductModel product)
Returns the ReturnEntries for the specified product
|
List<ReturnEntryModel> |
getReturnEntry(AbstractOrderEntryModel entry)
Returns the ReturnEntries for the specified order entry
|
List<ReturnRequestModel> |
getReturnRequests(String orderCode)
Returns the "return request" for the specified order
|
String |
getRMA(ReturnRequestModel request)
returns a "Return Merchandise Authorization" aka "Return Material Authorization" (RMA).
|
boolean |
isReturnable(OrderModel order,
AbstractOrderEntryModel entry,
long returnQuantity)
Determines if the product is 'returnable' by using the injected
ReturnableCheck impl. |
void |
processRefundOrder(OrderModel order)
Here you have the chance to 'inject' your final Refund order processing.
|
void |
processReplacementOrder(ReplacementOrderModel order)
Here you have the chance to 'inject' your final Replacement order processing.
|
void |
processReturnEntries(List<ReturnEntryModel> entries)
Here you have the chance to 'inject' your final Return Entry processing.
|
void |
requestManualPaymentReversalForReturnRequest(ReturnRequestModel returnRequest)
Request manual payment reversal for the (@link ReturnRequest}.
|
void |
requestManualTaxReversalForReturnRequest(ReturnRequestModel returnRequest)
Request manual tax reversal for the (@link ReturnRequest}.
|
ReturnRequestModel createReturnRequest(OrderModel order)
order - the order which should be returnedList<ReturnRequestModel> getReturnRequests(String orderCode)
orderCode - code of the order we ask for the "return request"String getRMA(ReturnRequestModel request)
request - reference of the related ReturnRequestString createRMA(ReturnRequestModel request)
ReturnRequestModelrequest - reference of the related "ReturnRequest" for which this RMA will be createdReplacementOrderModel getReplacementOrder(String rma)
ReplacementOrderModel by the specified 'RMA value'rma - valueReplacementOrderModel createReplacementOrder(ReturnRequestModel request)
ReplacementOrderModelrequest - the return request to which the order will be assignedvoid addReplacementOrderEntries(ReplacementOrderModel order, List<ReplacementEntryModel> replacements)
ReplacementOrderEntryModel entries from the specified ReplacementEntryModel.order - the replacement orderreplacements - the 'replacement' entries (instances which are on HOLD will be ignored)ReplacementEntryModel createReplacement(ReturnRequestModel request, AbstractOrderEntryModel entry, String notes, Long expectedQuantity, ReturnAction action, ReplacementReason reason)
request - we use this for the verification process (order)entry - the original OrderEntrynotes - some notesexpectedQuantity - the amount of products which the customer wants to return.action - action which indicates if the 'returns process' will be executed immediately or is still on hold
(waiting for the article to be send back)reason - reason for the replacementRefundEntryModel createRefund(ReturnRequestModel request, AbstractOrderEntryModel entry, String notes, Long expectedQuantity, ReturnAction action, RefundReason reason)
request - we use this for the verification process (order)entry - the original OrderEntrynotes - some notesexpectedQuantity - the amount of products which the customer wants to refund.action - action which indicates if the 'return process' will be executed immediately or is still on hold (waiting
for the article to be send back)reason - reason for the refundList<ReturnEntryModel> getReturnEntries(ProductModel product)
product - the productList<ReturnEntryModel> getReturnEntry(AbstractOrderEntryModel entry)
entry - the OrderEntryList<ReplacementEntryModel> getReplacements(ReturnRequestModel request)
request - the ReturnRequestModelboolean isReturnable(OrderModel order, AbstractOrderEntryModel entry, long returnQuantity)
ReturnableCheck impl.order - the related original orderentry - the ordered product which will be returnedreturnQuantity - the quantity of entries to be returnedvoid processReturnEntries(List<ReturnEntryModel> entries)
entries - the entries to be processvoid processReplacementOrder(ReplacementOrderModel order)
order - the order to be processvoid processRefundOrder(OrderModel order)
order - the order to be processMap<AbstractOrderEntryModel,Long> getAllReturnableEntries(OrderModel order)
OrderEntry'sorder - the related orderOrderEntry and their returnable quantityOrderReturnRecordModel getOrderReturnRecordForOrder(OrderModel order) throws OrderReturnException
order - OrderOrderReturnExceptionvoid requestManualPaymentReversalForReturnRequest(ReturnRequestModel returnRequest) throws OrderReturnException
returnRequest - the return request for which payment should be manually reversedOrderReturnExceptionvoid requestManualTaxReversalForReturnRequest(ReturnRequestModel returnRequest) throws OrderReturnException
returnRequest - the return request for which tax should be manually reversedOrderReturnExceptionCopyright © 2017 SAP SE. All Rights Reserved.