PackagingRepositoryInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 Packaging Repository Interface.
  9. *
  10. * Access packaging/container presets as defined for the merchant's account.
  11. * Presets can be used when creating a shipment instead of defining the
  12. * dimensions manually.
  13. *
  14. * @package Temando\Shipping\Model
  15. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  16. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  17. * @link http://www.temando.com/
  18. */
  19. interface PackagingRepositoryInterface
  20. {
  21. /**
  22. * @param int|null $offset
  23. * @param int|null $limit
  24. * @return \Temando\Shipping\Model\PackagingInterface[]
  25. */
  26. public function getList($offset = null, $limit = null);
  27. /**
  28. * @param string $packagingId
  29. *
  30. * @return void
  31. * @throws CouldNotDeleteException
  32. */
  33. public function delete($packagingId);
  34. }