LocationRepositoryInterface.php 971 B

1234567891011121314151617181920212223242526272829303132333435
  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. /**
  8. * Temando Location Repository Interface.
  9. *
  10. * Access the origin locations as defined for the merchant's account.
  11. *
  12. * @package Temando\Shipping\Model
  13. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  14. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link http://www.temando.com/
  16. */
  17. interface LocationRepositoryInterface
  18. {
  19. /**
  20. * @param int|null $offset
  21. * @param int|null $limit
  22. * @return \Temando\Shipping\Model\LocationInterface[]
  23. */
  24. public function getList($offset = null, $limit = null);
  25. /**
  26. * @param string $locationId
  27. *
  28. * @return void
  29. * @throws CouldNotDeleteException
  30. */
  31. public function delete($locationId);
  32. }