ShippingExperienceInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Api\Data\Order;
  6. /**
  7. * Temando Shipping Experience Interface
  8. *
  9. * Local representation of a shipping rate in checkout. A set of shipping
  10. * experiences is the result of creating an order at the Temando platform.
  11. *
  12. * (!) Needs to reside in Api namespace because selected shipping experience is
  13. * exposed to public as a ShippingInterface extension attribute.
  14. * @see \Magento\Sales\Api\Data\ShippingExtension::getShippingExperience()
  15. *
  16. * @api
  17. * @package Temando\Shipping\Api
  18. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  19. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. * @link http://www.temando.com/
  21. */
  22. interface ShippingExperienceInterface
  23. {
  24. const LABEL = 'label';
  25. const CODE = 'code';
  26. const COST = 'cost';
  27. /**
  28. * @return string
  29. */
  30. public function getLabel();
  31. /**
  32. * @return string
  33. */
  34. public function getCode();
  35. /**
  36. * @return float
  37. */
  38. public function getCost();
  39. }