ShipmentSummary.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Shipment;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Shipment Summary
  9. *
  10. * @package Temando\Shipping\Model
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @author Benjamin Heuer <benjamin.heuer@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 ShipmentSummary extends DataObject implements ShipmentSummaryInterface
  17. {
  18. /**
  19. * @return string
  20. */
  21. public function getOrderId()
  22. {
  23. return $this->getData(ShipmentSummaryInterface::ORDER_ID);
  24. }
  25. /**
  26. * @return string
  27. */
  28. public function getShipmentId()
  29. {
  30. return $this->getData(ShipmentSummaryInterface::SHIPMENT_ID);
  31. }
  32. /**
  33. * @return string
  34. */
  35. public function getStatus()
  36. {
  37. return $this->getData(ShipmentSummaryInterface::STATUS);
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getRecipientAddress()
  43. {
  44. return $this->getData(ShipmentSummaryInterface::RECIPIENT_ADDRESS);
  45. }
  46. /**
  47. * @return string
  48. */
  49. public function getRecipientName()
  50. {
  51. return $this->getData(ShipmentSummaryInterface::RECIPIENT_NAME);
  52. }
  53. /**
  54. * @return ShipmentErrorInterface[]
  55. */
  56. public function getErrors()
  57. {
  58. return $this->getData(ShipmentSummaryInterface::ERRORS);
  59. }
  60. }