DispatchInterface.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model;
  6. /**
  7. * Temando Dispatch Interface.
  8. *
  9. * The dispatch/completion data object represents one item in the dispatches
  10. * grid listing or on the dispatch details page.
  11. *
  12. * @package Temando\Shipping\Model
  13. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  14. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link http://www.temando.com/
  16. */
  17. interface DispatchInterface
  18. {
  19. const DISPATCH_ID = 'dispatch_id';
  20. const STATUS = 'status';
  21. const CARRIER_NAME = 'carrier_name';
  22. const CARRIER_MESSAGES = 'carrier_messages';
  23. const CREATED_AT_DATE = 'created_at_date';
  24. const READY_AT_DATE = 'ready_at_date';
  25. const PICKUP_NUMBERS = 'pickup_numbers';
  26. const PICKUP_CHARGES = 'pickup_charges';
  27. const INCLUDED_SHIPMENTS = 'included_shipments';
  28. const FAILED_SHIPMENTS = 'failed_shipments';
  29. const DOCUMENTATION = 'documentation';
  30. /**
  31. * @return string
  32. */
  33. public function getDispatchId();
  34. /**
  35. * @return string
  36. */
  37. public function getStatus();
  38. /**
  39. * @return string
  40. */
  41. public function getCarrierName();
  42. /**
  43. * @return string[]
  44. */
  45. public function getCarrierMessages();
  46. /**
  47. * @return string
  48. */
  49. public function getCreatedAtDate();
  50. /**
  51. * @return string
  52. */
  53. public function getReadyAtDate();
  54. /**
  55. * @return string[]
  56. */
  57. public function getPickupNumbers();
  58. /**
  59. * @return \Temando\Shipping\Model\Dispatch\PickupChargeInterface[]
  60. */
  61. public function getPickupCharges();
  62. /**
  63. * @return \Temando\Shipping\Model\Dispatch\ShipmentInterface[]
  64. */
  65. public function getIncludedShipments();
  66. /**
  67. * @return \Temando\Shipping\Model\Dispatch\ShipmentInterface[]
  68. */
  69. public function getFailedShipments();
  70. /**
  71. * @return \Temando\Shipping\Model\DocumentationInterface[]
  72. */
  73. public function getDocumentation();
  74. }