SaveProcessorInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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\Sales\Api\Data\OrderInterface as SalesOrderInterface;
  8. use Temando\Shipping\Model\OrderInterface;
  9. use Temando\Shipping\Webservice\Response\Type\OrderResponseType;
  10. /**
  11. * Temando Order Save Response Processor Interface
  12. *
  13. * @package Temando\Shipping\Webservice
  14. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  15. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link http://www.temando.com/
  17. */
  18. interface SaveProcessorInterface
  19. {
  20. /**
  21. * @param SalesOrderInterface $salesOrder
  22. * @param OrderInterface $requestType
  23. * @param OrderResponseType $responseType
  24. * @return void
  25. * @throws LocalizedException
  26. */
  27. public function postProcess(
  28. SalesOrderInterface $salesOrder,
  29. OrderInterface $requestType,
  30. OrderResponseType $responseType
  31. );
  32. }