<?php

namespace Autogedal\Retur\Api;

interface ReturStatusHistoryRepositoryInterface
{
    /**
     * Lists retur status history comments that match specified search criteria.
     *
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
     * @return \Autogedal\Retur\Api\Data\ReturStatusHistorySearchResultInterface retur status history
     * search result interface.
     */
    public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);

    /**
     * Loads a specified retur status comment.
     *
     * @param int $id The retur status comment ID.
     * @return \Autogedal\Retur\Api\Data\ReturStatusHistoryInterface Retur status history interface.
     */
    public function get($id);

    /**
     * Deletes a specified retur status comment.
     *
     * @param \Autogedal\Retur\Api\Data\ReturStatusHistoryInterface $entity The retur status comment.
     * @return bool
     * @throws \Magento\Framework\Exception\CouldNotDeleteException
     */
    public function delete(\Autogedal\Retur\Api\Data\ReturStatusHistoryInterface $entity);

    /**
     * Performs persist operations for a specified retur status comment.
     *
     * @param \Autogedal\Retur\Api\Data\ReturStatusHistoryInterface $entity The retur status comment.
     * @return \Autogedal\Retur\Api\Data\ReturStatusHistoryInterface retur status history interface.
     * @throws \Magento\Framework\Exception\CouldNotSaveException
     */
    public function save(\Autogedal\Retur\Api\Data\ReturStatusHistoryInterface $entity);
}
