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 the ReturnAuthorization 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 new ReturnAuthorization for the given Order and Fulfillments containing the items requested by returnRequest.
    • 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 new ReturnAuthorization for the given Order and Fulfillments containing the items requested by returnRequest.
        Parameters:
        order - the order with the items to return
        fulfillments - the fulfillments with the items to return
        existingReturns - all existing returns belonging to this order
        returnRequest - 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 the ReturnAuthorization based on its items.
        Parameters:
        returnAuthorization - the return authorization to calculate and set estimated totals on