OrderPickupLocationRepositoryInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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\CouldNotSaveException;
  7. use Magento\Framework\Exception\NoSuchEntityException;
  8. use Temando\Shipping\Api\Data\Delivery\OrderPickupLocationInterface;
  9. /**
  10. * @package Temando\Shipping\Model
  11. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. interface OrderPickupLocationRepositoryInterface
  16. {
  17. /**
  18. * Load pickup location by shipping address id.
  19. *
  20. * @param int $addressId
  21. * @return OrderPickupLocationInterface
  22. * @throws NoSuchEntityException
  23. */
  24. public function get($addressId);
  25. /**
  26. * Save pickup location.
  27. *
  28. * @param OrderPickupLocationInterface $collectionPoint
  29. * @return OrderPickupLocationInterface
  30. * @throws CouldNotSaveException
  31. */
  32. public function save(OrderPickupLocationInterface $collectionPoint);
  33. }