Interface OmsReturnFacade
-
- All Known Implementing Classes:
DefaultOmsReturnFacade
public interface OmsReturnFacadeAPI for return facade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapproveReturnRequest(java.lang.String code)API to approve theReturnRequestModelby its codevoidcancelReturnRequest(CancelReturnRequestData cancelReturnRequestData)API to cancel aReturnRequestModelReturnRequestDatacreateReturnRequest(ReturnRequestData returnRequestData)API to create aReturnRequestModeljava.util.List<CancelReason>getCancelReasons()API to get all return cancel reasonsSearchPageData<ReturnRequestData>getPagedReturnRequestsByCurrentUser(PageableData pageableData, ReturnStatus... returnStatuses)Returns the pagedReturnRequestDatafor the current user.java.util.List<RefundReason>getRefundReasons()API to get all return refund reasonsjava.util.List<ReturnAction>getReturnActions()API to get all return actionsSearchPageData<ReturnEntryData>getReturnEntriesForReturnCode(java.lang.String code, PageableData pageableData)API to get returnEntries for the givenReturnRequestModel.CODEReturnRequestDatagetReturnForReturnCode(java.lang.String code)API to get aReturnRequestDataby its codeSearchPageData<ReturnRequestData>getReturns(PageableData pageableData)API to get all returns in the systemSearchPageData<ReturnRequestData>getReturnsByStatuses(PageableData pageableData, java.util.Set<ReturnStatus> returnStatusSet)API to get all returns in the system that have certain status(s)java.util.List<ReturnStatus>getReturnStatuses()API to get all return statusesjava.lang.BooleanisCompleteReturn(OrderModel orderModel, ReturnRequestData returnRequestData)API to check if theReturnRequestDatacontains a complete order return.booleanisDeliveryCostRefundable(java.lang.String orderCode, java.lang.String returnRequestRMA)Verifies if the delivery cost is refundable for the given order and return request.voidrequestManualPaymentReversalForReturnRequest(java.lang.String code)API to reverse payment manually for the returnRequest by its codevoidrequestManualTaxReversalForReturnRequest(java.lang.String code)API to reverse tax manually for the returnRequest by its codeReturnRequestDataupdateReturnRequest(java.lang.String code, ReturnRequestModificationData returnRequestModificationData)API to update theReturnRequestModel
-
-
-
Method Detail
-
getReturns
SearchPageData<ReturnRequestData> getReturns(PageableData pageableData)
API to get all returns in the system- Parameters:
pageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting info- Returns:
- SearchPageData that contains a list of returns
-
getPagedReturnRequestsByCurrentUser
SearchPageData<ReturnRequestData> getPagedReturnRequestsByCurrentUser(PageableData pageableData, ReturnStatus... returnStatuses)
Returns the pagedReturnRequestDatafor the current user.- Parameters:
pageableData- paging informationreturnStatuses- the list ofReturnStatus. If null or empty, all statuses are included.- Returns:
- The
ReturnRequestDatafor the current user.
-
getReturnsByStatuses
SearchPageData<ReturnRequestData> getReturnsByStatuses(PageableData pageableData, java.util.Set<ReturnStatus> returnStatusSet)
API to get all returns in the system that have certain status(s)- Parameters:
pageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting inforeturnStatusSet- set of return status(s) in which we want to get list of returns for.- Returns:
- SearchPageData that contains a list of returns that complies with passed return status(es)
-
getReturnStatuses
java.util.List<ReturnStatus> getReturnStatuses()
API to get all return statuses- Returns:
- a list of
ReturnStatus
-
getReturnEntriesForReturnCode
SearchPageData<ReturnEntryData> getReturnEntriesForReturnCode(java.lang.String code, PageableData pageableData)
API to get returnEntries for the givenReturnRequestModel.CODE- Parameters:
code- the return's codepageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting info- Returns:
- SearchPageData that contains a list of the returnEntries for the given order
-
createReturnRequest
ReturnRequestData createReturnRequest(ReturnRequestData returnRequestData)
API to create aReturnRequestModel- Parameters:
returnRequestData- theReturnRequestDatato createReturnRequestModel- Returns:
- the
ReturnRequestDataconverted from the newly createdReturnRequestModel
-
getReturnForReturnCode
ReturnRequestData getReturnForReturnCode(java.lang.String code)
API to get aReturnRequestDataby its code- Parameters:
code- the returnRequest's code- Returns:
- the returnRequest
-
getCancelReasons
java.util.List<CancelReason> getCancelReasons()
API to get all return cancel reasons- Returns:
- a list of
CancelReason
-
getRefundReasons
java.util.List<RefundReason> getRefundReasons()
API to get all return refund reasons- Returns:
- a list of
RefundReason
-
getReturnActions
java.util.List<ReturnAction> getReturnActions()
API to get all return actions- Returns:
- a list of
ReturnAction
-
isCompleteReturn
java.lang.Boolean isCompleteReturn(OrderModel orderModel, ReturnRequestData returnRequestData)
API to check if theReturnRequestDatacontains a complete order return.- Parameters:
orderModel- theOrderModelrelated to the return requestreturnRequestData- the return form resultReturnRequestData- Returns:
- true if it's a complete return.
-
approveReturnRequest
void approveReturnRequest(java.lang.String code)
API to approve theReturnRequestModelby its code- Parameters:
code- the code for theReturnRequestModelto be approved
-
updateReturnRequest
ReturnRequestData updateReturnRequest(java.lang.String code, ReturnRequestModificationData returnRequestModificationData)
API to update theReturnRequestModel- Parameters:
code- the return request's codereturnRequestModificationData-ReturnRequestModificationData- Returns:
ReturnRequestData
-
cancelReturnRequest
void cancelReturnRequest(CancelReturnRequestData cancelReturnRequestData)
API to cancel aReturnRequestModel- Parameters:
cancelReturnRequestData- contains information about the cancellation of the return request.
-
requestManualPaymentReversalForReturnRequest
void requestManualPaymentReversalForReturnRequest(java.lang.String code)
API to reverse payment manually for the returnRequest by its code- Parameters:
code- the code for the returnRequest
-
requestManualTaxReversalForReturnRequest
void requestManualTaxReversalForReturnRequest(java.lang.String code)
API to reverse tax manually for the returnRequest by its code- Parameters:
code- the code for the returnRequest
-
isDeliveryCostRefundable
boolean isDeliveryCostRefundable(java.lang.String orderCode, java.lang.String returnRequestRMA)Verifies if the delivery cost is refundable for the given order and return request.- Parameters:
orderCode- order codereturnRequestRMA- the return request RMA- Returns:
- true if the delivery cost can be refunded
-
-