ExperienceRepositoryInterface.php 1.2 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 Temando\Shipping\Model\OrderInterface;
  7. /**
  8. * Temando Experience Repository Interface.
  9. *
  10. * Access shipping experiences as defined in the merchant's account.
  11. *
  12. * @package Temando\Shipping\Model
  13. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  14. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link https://www.temando.com/
  16. */
  17. interface ExperienceRepositoryInterface
  18. {
  19. /**
  20. * Fetch order qualifications from platform which match the given order.
  21. *
  22. * @param \Temando\Shipping\Model\OrderInterface $order
  23. * @return \Temando\Shipping\Webservice\Response\Type\QualificationResponseType
  24. * @throws \Magento\Framework\Exception\CouldNotSaveException
  25. */
  26. public function getExperiencesForOrder(OrderInterface $order);
  27. /**
  28. * Read all experiences from platform as configured by the merchant.
  29. *
  30. * @return \Temando\Shipping\Model\ExperienceInterface[]
  31. */
  32. public function getExperiences();
  33. }