ShippingInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api\Data;
  7. /**
  8. * Interface ShippingInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface ShippingInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get shipping Address
  16. *
  17. * @return \Magento\Quote\Api\Data\AddressInterface
  18. */
  19. public function getAddress();
  20. /**
  21. * Set shipping address
  22. *
  23. * @param \Magento\Quote\Api\Data\AddressInterface $value
  24. * @return void
  25. */
  26. public function setAddress(\Magento\Quote\Api\Data\AddressInterface $value);
  27. /**
  28. * Get shipping method
  29. *
  30. * @return string
  31. */
  32. public function getMethod();
  33. /**
  34. * Set shipping method
  35. *
  36. * @param string $value
  37. * @return void
  38. */
  39. public function setMethod($value);
  40. /**
  41. * Retrieve existing extension attributes object or create a new one.
  42. *
  43. * @return \Magento\Quote\Api\Data\ShippingExtensionInterface|null
  44. */
  45. public function getExtensionAttributes();
  46. /**
  47. * Set an extension attributes object.
  48. *
  49. * @param \Magento\Quote\Api\Data\ShippingExtensionInterface $extensionAttributes
  50. * @return $this
  51. */
  52. public function setExtensionAttributes(\Magento\Quote\Api\Data\ShippingExtensionInterface $extensionAttributes);
  53. }