Fulfillment.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 Fulfillment 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 Benjamin Heuer <benjamin.heuer@netresearch.de>
  15. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link http://www.temando.com/
  17. */
  18. class Fulfillment extends DataObject implements FulfillmentInterface
  19. {
  20. /**
  21. * Get readable label for shipment method.
  22. *
  23. * @return string
  24. */
  25. public function getServiceName()
  26. {
  27. return $this->getData(FulfillmentInterface::SERVICE_NAME);
  28. }
  29. /**
  30. * Get Tracking Number for this shipment.
  31. *
  32. * @return string
  33. */
  34. public function getTrackingReference()
  35. {
  36. return $this->getData(FulfillmentInterface::TRACKING_REFERENCE);
  37. }
  38. /**
  39. * Get Tracking URL for this shipment.
  40. *
  41. * @return string
  42. */
  43. public function getTrackingUrl()
  44. {
  45. return $this->getData(FulfillmentInterface::TRACKING_URL);
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getCarrierName()
  51. {
  52. return $this->getData(FulfillmentInterface::CARRIER_NAME);
  53. }
  54. }