CartCollectionPointManagementInterface.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Api\CollectionPoint;
  6. use Magento\Framework\Exception\CouldNotDeleteException;
  7. use Magento\Framework\Exception\CouldNotSaveException;
  8. /**
  9. * Process Collection Point Search
  10. *
  11. * @api
  12. * @deprecated since 1.4.0
  13. * @see \Temando\Shipping\Api\Delivery\CartCollectionPointManagementInterface
  14. *
  15. * @package Temando\Shipping\Api
  16. * @author Benjamin Heuer <benjamin.heuer@netresearch.de>
  17. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  18. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  19. * @link http://www.temando.com/
  20. */
  21. interface CartCollectionPointManagementInterface
  22. {
  23. /**
  24. * @param int $cartId
  25. * @param string $countryId
  26. * @param string $postcode
  27. * @return \Temando\Shipping\Api\Data\CollectionPoint\SearchRequestInterface
  28. * @throws CouldNotSaveException
  29. */
  30. public function saveSearchRequest($cartId, $countryId, $postcode);
  31. /**
  32. * @param int $cartId
  33. * @return bool
  34. * @throws CouldNotDeleteException
  35. */
  36. public function deleteSearchRequest($cartId);
  37. /**
  38. * @param int $cartId
  39. * @return \Temando\Shipping\Api\Data\CollectionPoint\QuoteCollectionPointInterface[]
  40. */
  41. public function getCollectionPoints($cartId);
  42. /**
  43. * @param int $cartId
  44. * @param int $entityId
  45. * @return bool
  46. * @throws CouldNotSaveException
  47. */
  48. public function selectCollectionPoint($cartId, $entityId);
  49. }