BatchApiInterface.php 904 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Adapter;
  6. use Temando\Shipping\Rest\Exception\AdapterException;
  7. use Temando\Shipping\Rest\Request\ItemRequestInterface;
  8. use Temando\Shipping\Rest\Response\DataObject\Batch;
  9. /**
  10. * The Temando Batch API interface defines the supported subset of operations
  11. * as available at the Temando API.
  12. *
  13. * @package Temando\Shipping\Rest
  14. * @author Rhodri Davies <rhodri.davies@temando.com>
  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 BatchApiInterface
  19. {
  20. /**
  21. * Read a batch from the platform.
  22. *
  23. * @param ItemRequestInterface $request
  24. * @return Batch
  25. * @throws AdapterException
  26. */
  27. public function getBatch(ItemRequestInterface $request);
  28. }