PickupInterface.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. use Temando\Shipping\Model\Shipment\Location;
  7. /**
  8. * Temando Pickup Interface.
  9. *
  10. * The pickup data object represents one item in the pickup
  11. * grid listing or on the pickup details page.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Sebastian Ertner <sebastian.ertner@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 PickupInterface
  19. {
  20. const PICKUP_ID = 'pickup_id';
  21. const STATE = 'state';
  22. const ORDER_ID = 'order_id';
  23. const SALES_ORDER_ID = 'sales_order_id';
  24. const ORDER_REFERENCE = 'order_reference';
  25. const CREATED_AT = 'created_at';
  26. const READY_AT = 'ready_at';
  27. const PICKED_UP_AT = 'picked_up_at';
  28. const CANCELLED_AT = 'cancelled_at';
  29. const CUSTOMER_NAME = 'customer_name';
  30. const PICKUP_LOCATION = 'pickup_location';
  31. const LOCATION_ID = 'location_id';
  32. const ITEMS = 'items';
  33. const STATE_REQUESTED = 'pickup requested';
  34. const STATE_READY = 'ready for pickup';
  35. const STATE_PICKED_UP = 'picked up';
  36. const STATE_CANCELLED = 'cancelled';
  37. /**
  38. * @return string
  39. */
  40. public function getPickupId();
  41. /**
  42. * @return string
  43. */
  44. public function getState();
  45. /**
  46. * @return string
  47. */
  48. public function getOrderId();
  49. /**
  50. * @return string
  51. */
  52. public function getCreatedAt();
  53. /**
  54. * @return string
  55. */
  56. public function getReadyAt();
  57. /**
  58. * @return string
  59. */
  60. public function getPickedUpAt();
  61. /**
  62. * @return string
  63. */
  64. public function getCancelledAt();
  65. /**
  66. * @return string
  67. */
  68. public function getCustomerName();
  69. /**
  70. * @return Location
  71. */
  72. public function getPickupLocation();
  73. /**
  74. * @return string
  75. */
  76. public function getSalesOrderId();
  77. /**
  78. * @return string
  79. */
  80. public function getOrderReference();
  81. /**
  82. * @return string
  83. */
  84. public function getLocationId();
  85. /**
  86. * @return string[]
  87. */
  88. public function getItems();
  89. }