Class DefaultReturnRequestDao

    • Constructor Detail

      • DefaultReturnRequestDao

        public DefaultReturnRequestDao()
    • Method Detail

      • createReturnRequest

        public ReturnRequestModel createReturnRequest​(OrderModel order)
        Creates an "authorization" object (@link ReturnRequest} for the order to be returned, if there doesn't exists one for that order so far
        Specified by:
        createReturnRequest in interface ReturnRequestDao
        Parameters:
        order - the order which should be returned
        Returns:
        ReturnRequest instance, which will deliver among others the RMA code of every processed "return order".
      • getReturnRequests

        public java.util.List<ReturnRequestModel> getReturnRequests​(java.lang.String code)
        Description copied from interface: ReturnRequestDao
        Returns the "return request" for the specified order
        Specified by:
        getReturnRequests in interface ReturnRequestDao
        Parameters:
        code - code of the order we ask for the "return request"
        Returns:
        "return request" of the order
      • getOrderByCode

        protected OrderModel getOrderByCode​(java.lang.String code)
        Returns an order by its code
        Parameters:
        code - the code of the order
        Returns:
        the order