FulfillmentInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /**
  7. * Temando Order Fulfillment Interface.
  8. *
  9. * When we import external. When shipment details are requested from the API the
  10. * response also contains this shipment origin data object.
  11. *
  12. * @package Temando\Shipping\Model
  13. * @author Benjamin Heuer <benjamin.heuer@netresearch.de>
  14. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link http://www.temando.com/
  16. */
  17. interface FulfillmentInterface
  18. {
  19. const SERVICE_NAME = 'service_name';
  20. const TRACKING_REFERENCE = 'tracking_reference';
  21. const TRACKING_URL = 'tracking_url';
  22. const CARRIER_NAME = 'carrier_name';
  23. /**
  24. * Get readable label for shipment method.
  25. *
  26. * @return string
  27. */
  28. public function getServiceName();
  29. /**
  30. * Get Tracking Number for this shipment.
  31. *
  32. * @return string
  33. */
  34. public function getTrackingReference();
  35. /**
  36. * Get Tracking URL for this shipment.
  37. *
  38. * @return string
  39. */
  40. public function getTrackingUrl();
  41. /**
  42. * Get carrier name.
  43. *
  44. * @return string
  45. */
  46. public function getCarrierName();
  47. }