ShipmentEstimationInterface.php 663 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api;
  7. use Magento\Quote\Api\Data\AddressInterface;
  8. /**
  9. * Interface ShipmentManagementInterface
  10. * @api
  11. * @since 100.0.7
  12. */
  13. interface ShipmentEstimationInterface
  14. {
  15. /**
  16. * Estimate shipping by address and return list of available shipping methods
  17. * @param mixed $cartId
  18. * @param AddressInterface $address
  19. * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods
  20. * @since 100.0.7
  21. */
  22. public function estimateByExtendedAddress($cartId, AddressInterface $address);
  23. }