Pickup.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 Magento\Framework\DataObject;
  7. use Temando\Shipping\Model\Shipment\Location;
  8. /**
  9. * Temando Pickup Entity
  10. *
  11. * @package Temando\Shipping\Model
  12. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. class Pickup extends DataObject implements PickupInterface
  17. {
  18. /**
  19. * @return string
  20. */
  21. public function getPickupId()
  22. {
  23. return $this->getData(self::PICKUP_ID);
  24. }
  25. /**
  26. * @return string
  27. */
  28. public function getState()
  29. {
  30. return $this->getData(self::STATE);
  31. }
  32. /**
  33. * @return string
  34. */
  35. public function getOrderId()
  36. {
  37. return $this->getData(self::ORDER_ID);
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getCreatedAt()
  43. {
  44. return $this->getData(self::CREATED_AT);
  45. }
  46. /**
  47. * @return string
  48. */
  49. public function getReadyAt()
  50. {
  51. return $this->getData(self::READY_AT);
  52. }
  53. /**
  54. * @return string
  55. */
  56. public function getPickedUpAt()
  57. {
  58. return $this->getData(self::PICKED_UP_AT);
  59. }
  60. /**
  61. * @return string
  62. */
  63. public function getCancelledAt()
  64. {
  65. return $this->getData(self::CANCELLED_AT);
  66. }
  67. /**
  68. * @return string
  69. */
  70. public function getCustomerName()
  71. {
  72. return $this->getData(self::CUSTOMER_NAME);
  73. }
  74. /**
  75. * @return Location
  76. */
  77. public function getPickupLocation()
  78. {
  79. return $this->getData(self::PICKUP_LOCATION);
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getSalesOrderId()
  85. {
  86. return $this->getData(self::SALES_ORDER_ID);
  87. }
  88. /**
  89. * @return string
  90. */
  91. public function getOrderReference()
  92. {
  93. return $this->getData(self::ORDER_REFERENCE);
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getLocationId()
  99. {
  100. return $this->getData(self::LOCATION_ID);
  101. }
  102. /**
  103. * format: [ <sku> => <qty>, <sku> => <qty> ]
  104. * @return string[]
  105. */
  106. public function getItems()
  107. {
  108. return $this->getData(self::ITEMS);
  109. }
  110. }