TrackInterface.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Shipment Track Creation interface.
  9. *
  10. * @api
  11. * @since 100.1.2
  12. */
  13. interface TrackInterface
  14. {
  15. /**
  16. * Sets the track number for the shipment package.
  17. *
  18. * @param string $trackNumber
  19. * @return $this
  20. * @since 100.1.2
  21. */
  22. public function setTrackNumber($trackNumber);
  23. /**
  24. * Gets the track number for the shipment package.
  25. *
  26. * @return string Track number.
  27. * @since 100.1.2
  28. */
  29. public function getTrackNumber();
  30. /**
  31. * Sets the title for the shipment package.
  32. *
  33. * @param string $title
  34. * @return $this
  35. * @since 100.1.2
  36. */
  37. public function setTitle($title);
  38. /**
  39. * Gets the title for the shipment package.
  40. *
  41. * @return string Title.
  42. * @since 100.1.2
  43. */
  44. public function getTitle();
  45. /**
  46. * Sets the carrier code for the shipment package.
  47. *
  48. * @param string $code
  49. * @return $this
  50. * @since 100.1.2
  51. */
  52. public function setCarrierCode($code);
  53. /**
  54. * Gets the carrier code for the shipment package.
  55. *
  56. * @return string Carrier code.
  57. * @since 100.1.2
  58. */
  59. public function getCarrierCode();
  60. }