1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Quote\Api;
- /**
- * Interface ShippingMethodManagementInterface
- * @api
- * @since 100.0.2
- */
- interface ShippingMethodManagementInterface
- {
- /**
- * Estimate shipping
- *
- * @param int $cartId The shopping cart ID.
- * @param \Magento\Quote\Api\Data\EstimateAddressInterface $address The estimate address
- * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
- * @deprecated 100.0.7
- */
- public function estimateByAddress($cartId, \Magento\Quote\Api\Data\EstimateAddressInterface $address);
- /**
- * Estimate shipping
- *
- * @param int $cartId The shopping cart ID.
- * @param int $addressId The estimate address id
- * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
- */
- public function estimateByAddressId($cartId, $addressId);
- /**
- * Lists applicable shipping methods for a specified quote.
- *
- * @param int $cartId The shopping cart ID.
- * @return \Magento\Quote\Api\Data\ShippingMethodInterface[] An array of shipping methods.
- * @throws \Magento\Framework\Exception\NoSuchEntityException The specified quote does not exist.
- * @throws \Magento\Framework\Exception\StateException The shipping address is missing.
- */
- public function getList($cartId);
- }
|