Interface ReturnGenerationService
-
- All Known Implementing Classes:
DefaultReturnGenerationService
public interface ReturnGenerationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
calculateEstimatedTotals(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization)
Calculate and set the estimated totals for theReturnAuthorization
based on its items.com.broadleafcommerce.order.client.domain.ReturnAuthorization
generateReturnAuthorization(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, List<com.broadleafcommerce.order.client.domain.ReturnAuthorization> existingReturns, ReturnRequest returnRequest)
Generates a newReturnAuthorization
for the givenOrder
andFulfillments
containing the items requested byreturnRequest
.
-
-
-
Method Detail
-
generateReturnAuthorization
com.broadleafcommerce.order.client.domain.ReturnAuthorization generateReturnAuthorization(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, List<com.broadleafcommerce.order.client.domain.ReturnAuthorization> existingReturns, ReturnRequest returnRequest)
Generates a newReturnAuthorization
for the givenOrder
andFulfillments
containing the items requested byreturnRequest
.- Parameters:
order
- the order with the items to returnfulfillments
- the fulfillments with the items to returnexistingReturns
- all existing returns belonging to this orderreturnRequest
- the request containing items to return- Returns:
- the generated
ReturnAuthorization
-
calculateEstimatedTotals
void calculateEstimatedTotals(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization)
Calculate and set the estimated totals for theReturnAuthorization
based on its items.- Parameters:
returnAuthorization
- the return authorization to calculate and set estimated totals on
-
-