<?php

namespace Autogedal\Retur\Api;

/**
 * @api
 */
interface ReturRepositoryInterface
{
    /**
     * Save
     *
     * @param \Autogedal\Retur\Api\Data\ReturInterface $retur
     * @return \Autogedal\Retur\Api\Data\ReturInterface
     * @throws \Magento\Framework\Exception\CouldNotSaveException
     */
    public function save(\Autogedal\Retur\Api\Data\ReturInterface $retur);

    /**
     * Get by id
     *
     * @param int $returId
     * @return \Autogedal\Retur\Api\Data\ReturInterface
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function getById($returId);

    /**
     * Delete
     *
     * @param \Autogedal\Retur\Api\Data\ReturInterface $retur
     * @return bool true on success
     * @throws \Magento\Framework\Exception\CouldNotDeleteException
     */
    public function delete(\Autogedal\Retur\Api\Data\ReturInterface $retur);

    /**
     * Delete by id
     *
     * @param int $returId
     * @return bool true on success
     * @throws \Magento\Framework\Exception\CouldNotDeleteException
     */
    public function deleteById($returId);
}
