Batch.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 Batch 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 Rhodri Davies <rhodri.davies@temando.com>
  15. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link https://www.temando.com/
  17. */
  18. class Batch extends DataObject implements BatchInterface
  19. {
  20. /**
  21. * @return string
  22. */
  23. public function getBatchId()
  24. {
  25. return $this->getData(self::BATCH_ID);
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getStatus()
  31. {
  32. return $this->getData(self::STATUS);
  33. }
  34. /**
  35. * @return string
  36. */
  37. public function getCreatedAtDate()
  38. {
  39. return $this->getData(self::CREATED_AT_DATE);
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getUpdatedAtDate()
  45. {
  46. return $this->getData(self::UPDATED_AT_DATE);
  47. }
  48. /**
  49. * @return \Temando\Shipping\Model\Shipment\ShipmentSummaryInterface[]
  50. */
  51. public function getIncludedShipments()
  52. {
  53. return $this->getData(self::INCLUDED_SHIPMENTS);
  54. }
  55. /**
  56. * @return \Temando\Shipping\Model\Shipment\ShipmentSummaryInterface[]
  57. */
  58. public function getFailedShipments()
  59. {
  60. return $this->getData(self::FAILED_SHIPMENTS);
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getDocumentation()
  66. {
  67. return $this->getData(self::DOCUMENTATION);
  68. }
  69. }