PickupLocationSearchRepositoryInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\ResourceModel\Repository;
  6. use Magento\Framework\Exception\CouldNotDeleteException;
  7. use Magento\Framework\Exception\CouldNotSaveException;
  8. use Magento\Framework\Exception\NoSuchEntityException;
  9. use Temando\Shipping\Api\Data\Delivery\PickupLocationSearchRequestInterface;
  10. /**
  11. * @package Temando\Shipping\Model
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. interface PickupLocationSearchRepositoryInterface
  17. {
  18. /**
  19. * @param int $quoteAddressId
  20. * @return PickupLocationSearchRequestInterface
  21. * @throws NoSuchEntityException
  22. */
  23. public function get($quoteAddressId);
  24. /**
  25. * @param PickupLocationSearchRequestInterface $searchRequest
  26. * @return PickupLocationSearchRequestInterface
  27. * @throws CouldNotSaveException
  28. */
  29. public function save($searchRequest);
  30. /**
  31. * @param int $quoteAddressId
  32. * @return bool
  33. * @throws CouldNotDeleteException
  34. */
  35. public function delete($quoteAddressId);
  36. }