1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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);
}