OrderCollectionPointRepositoryInterface.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\OrderCollectionPointInterface;
  9. /**
  10. * @package Temando\Shipping\Model
  11. * @author Christoph Aßmann <christoph.assmann@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 OrderCollectionPointRepositoryInterface
  16. {
  17. /**
  18. * Load collection point by shipping address id.
  19. *
  20. * @param int $addressId
  21. * @return OrderCollectionPointInterface
  22. * @throws NoSuchEntityException
  23. */
  24. public function get($addressId);
  25. /**
  26. * Save collection point.
  27. *
  28. * @param OrderCollectionPointInterface $collectionPoint
  29. * @return OrderCollectionPointInterface
  30. * @throws CouldNotSaveException
  31. */
  32. public function save(OrderCollectionPointInterface $collectionPoint);
  33. }