Interface RefundService

    • Method Detail

      • createRefundOrderPreview

        OrderModel createRefundOrderPreview​(OrderModel original)
        Create a "refund order" , which will be a clone of the original one. The new instance should be used for applying the refund. (see: RefundService#calculate)
        Parameters:
        original - the original order
        Returns:
        the refund order
      • apply

        void apply​(java.util.List<RefundEntryModel> refunds,
                   OrderModel order)
        Based on the assigned refund entries the order will be recalculated.
        Parameters:
        refunds - the refunds for which the amount will be calculated
        order - the refund order for which the refund will be calculated
      • getRefunds

        java.util.List<RefundEntryModel> getRefunds​(ReturnRequestModel request)
        Returns the refunds for the specified order
        Parameters:
        request - the request
        Returns:
        the refunds