RatesProcessorInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Webservice\Processor\OrderOperation;
  6. use Magento\Framework\Exception\LocalizedException;
  7. use Magento\Quote\Model\Quote\Address\RateRequest;
  8. use Temando\Shipping\Api\Data\Order\ShippingExperienceInterface;
  9. use Temando\Shipping\Model\OrderInterface;
  10. use Temando\Shipping\Webservice\Response\Type\QualificationResponseType;
  11. /**
  12. * Temando Rates Response Processor Interface
  13. *
  14. * @package Temando\Shipping\Webservice
  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 RatesProcessorInterface
  20. {
  21. /**
  22. * @param RateRequest $rateRequest
  23. * @param OrderInterface $requestType
  24. * @param QualificationResponseType $responseType
  25. * @return ShippingExperienceInterface[]
  26. * @throws LocalizedException
  27. */
  28. public function postProcess(
  29. RateRequest $rateRequest,
  30. OrderInterface $requestType,
  31. QualificationResponseType $responseType
  32. );
  33. }