ShippingAssignmentInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ShippingAssignmentInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface ShippingAssignmentInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * @return \Magento\Quote\Api\Data\ShippingInterface
  16. */
  17. public function getShipping();
  18. /**
  19. * @param ShippingInterface $value
  20. * @return \Magento\Quote\Api\Data\ShippingInterface
  21. */
  22. public function setShipping(\Magento\Quote\Api\Data\ShippingInterface $value);
  23. /**
  24. * @return \Magento\Quote\Api\Data\CartItemInterface[]
  25. */
  26. public function getItems();
  27. /**
  28. * @param \Magento\Quote\Api\Data\CartItemInterface[] $value
  29. * @return mixed
  30. */
  31. public function setItems($value);
  32. /**
  33. * Retrieve existing extension attributes object or create a new one.
  34. *
  35. * @return \Magento\Quote\Api\Data\ShippingAssignmentExtensionInterface|null
  36. */
  37. public function getExtensionAttributes();
  38. /**
  39. * Set an extension attributes object.
  40. *
  41. * @param \Magento\Quote\Api\Data\ShippingAssignmentExtensionInterface $extensionAttributes
  42. * @return $this
  43. */
  44. public function setExtensionAttributes(
  45. \Magento\Quote\Api\Data\ShippingAssignmentExtensionInterface $extensionAttributes
  46. );
  47. }