Dispatch.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. /**
  8. * Temando Dispatch Entity
  9. *
  10. * This model contains the data used in the shipping module, not necessarily all
  11. * data available in its webservice representation.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  15. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  16. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  17. * @link http://www.temando.com/
  18. */
  19. class Dispatch extends DataObject implements DispatchInterface
  20. {
  21. /**
  22. * @return string
  23. */
  24. public function getDispatchId()
  25. {
  26. return $this->getData(self::DISPATCH_ID);
  27. }
  28. /**
  29. * @return string
  30. */
  31. public function getStatus()
  32. {
  33. return $this->getData(self::STATUS);
  34. }
  35. /**
  36. * @return string
  37. */
  38. public function getCarrierName()
  39. {
  40. return $this->getData(self::CARRIER_NAME);
  41. }
  42. /**
  43. * @return string[]
  44. */
  45. public function getCarrierMessages()
  46. {
  47. return $this->getData(self::CARRIER_MESSAGES);
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getCreatedAtDate()
  53. {
  54. return $this->getData(self::CREATED_AT_DATE);
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getReadyAtDate()
  60. {
  61. return $this->getData(self::READY_AT_DATE);
  62. }
  63. /**
  64. * @return string[]
  65. */
  66. public function getPickupNumbers()
  67. {
  68. return $this->getData(self::PICKUP_NUMBERS);
  69. }
  70. /**
  71. * @return \Temando\Shipping\Model\Dispatch\PickupChargeInterface[]
  72. */
  73. public function getPickupCharges()
  74. {
  75. return $this->getData(self::PICKUP_CHARGES);
  76. }
  77. /**
  78. * @return \Temando\Shipping\Model\Dispatch\ShipmentInterface[]
  79. */
  80. public function getIncludedShipments()
  81. {
  82. return $this->getData(self::INCLUDED_SHIPMENTS);
  83. }
  84. /**
  85. * @return \Temando\Shipping\Model\Dispatch\ShipmentInterface[]
  86. */
  87. public function getFailedShipments()
  88. {
  89. return $this->getData(self::FAILED_SHIPMENTS);
  90. }
  91. /**
  92. * @return DocumentationInterface[]
  93. */
  94. public function getDocumentation()
  95. {
  96. return $this->getData(self::DOCUMENTATION);
  97. }
  98. }