GuestShippingMethodManagementInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api;
  7. /**
  8. * Shipping method management interface for guest carts.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface GuestShippingMethodManagementInterface
  13. {
  14. /**
  15. * List applicable shipping methods for a specified quote.
  16. *
  17. * @param string $cartId The shopping cart ID.
  18. * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
  19. * @throws \Magento\Framework\Exception\NoSuchEntityException The specified quote does not exist.
  20. * @throws \Magento\Framework\Exception\StateException The shipping address is missing.
  21. */
  22. public function getList($cartId);
  23. /**
  24. * Estimate shipping
  25. *
  26. * @param string $cartId The shopping cart ID.
  27. * @param \Magento\Quote\Api\Data\EstimateAddressInterface $address The estimate address
  28. * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
  29. * @deprecated 100.0.7
  30. */
  31. public function estimateByAddress($cartId, \Magento\Quote\Api\Data\EstimateAddressInterface $address);
  32. }