ShipmentInterface.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 Shipment Interface.
  8. *
  9. * The shipment data object represents one shipment as created at the Temando
  10. * platform. It contains only a subset of shipping attributes that might be
  11. * available at the API.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  15. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link https://www.temando.com/
  17. */
  18. interface ShipmentInterface
  19. {
  20. const SHIPMENT_ID = 'shipment_id';
  21. const ORDER_ID = 'order_id';
  22. const ORIGIN_ID = 'origin_id';
  23. const CUSTOMER_REFERENCE = 'customer_reference';
  24. const ORIGIN_LOCATION = 'origin_location';
  25. const DESTINATION_LOCATION = 'destination_location';
  26. const FINAL_RECIPIENT_LOCATION = 'final_recipient_location';
  27. const FULFILLMENT = 'fulfill';
  28. const ITEMS = 'items';
  29. const PACKAGES = 'packages';
  30. const DOCUMENTATION = 'documentation';
  31. const IS_PAPERLESS = 'is_paperless';
  32. const EXPORT_DECLARATION = 'export_declaration';
  33. const STATUS = 'status';
  34. const CAPABILITIES = 'capabilities';
  35. const CREATED_AT = 'created_at';
  36. const IS_CANCELABLE = 'is_cancelable';
  37. /**
  38. * @return string
  39. */
  40. public function getShipmentId();
  41. /**
  42. * @return string
  43. */
  44. public function getOrderId();
  45. /**
  46. * @return string
  47. */
  48. public function getOriginId();
  49. /**
  50. * @return string
  51. */
  52. public function getCustomerReference();
  53. /**
  54. * @return \Temando\Shipping\Model\Shipment\Location
  55. */
  56. public function getOriginLocation();
  57. /**
  58. * @return \Temando\Shipping\Model\Shipment\Location
  59. */
  60. public function getDestinationLocation();
  61. /**
  62. * @return \Temando\Shipping\Model\Shipment\Location
  63. */
  64. public function getFinalRecipientLocation();
  65. /**
  66. * @return \Temando\Shipping\Model\Shipment\FulfillmentInterface
  67. */
  68. public function getFulfillment();
  69. /**
  70. * @return \Temando\Shipping\Model\Shipment\ShipmentItemInterface[]
  71. */
  72. public function getItems();
  73. /**
  74. * @return \Temando\Shipping\Model\Shipment\PackageInterface[]
  75. */
  76. public function getPackages();
  77. /**
  78. * @return \Temando\Shipping\Model\DocumentationInterface[]
  79. */
  80. public function getDocumentation();
  81. /**
  82. * @return bool
  83. */
  84. public function isPaperless();
  85. /**
  86. * @return \Temando\Shipping\Model\Shipment\ExportDeclarationInterface
  87. */
  88. public function getExportDeclaration();
  89. /**
  90. * @return string
  91. */
  92. public function getStatus();
  93. /**
  94. * @return \Temando\Shipping\Model\Shipment\CapabilityInterface[]
  95. */
  96. public function getCapabilities();
  97. /**
  98. * @return string
  99. */
  100. public function getCreatedAt();
  101. /**
  102. * @return bool
  103. */
  104. public function isCancelable();
  105. }