15 use Magento\Quote\Model\QuoteIdMaskFactory;
28 private $shippingMethodManagement;
33 private $quoteIdMaskFactory;
38 private $shipmentEstimationManagement;
48 QuoteIdMaskFactory $quoteIdMaskFactory
50 $this->shippingMethodManagement = $shippingMethodManagement;
51 $this->quoteIdMaskFactory = $quoteIdMaskFactory;
61 return $this->shippingMethodManagement->get(
$quoteIdMask->getQuoteId());
71 return $this->shippingMethodManagement->getList(
$quoteIdMask->getQuoteId());
102 return $this->getShipmentEstimationManagement()
111 private function getShipmentEstimationManagement()
113 if ($this->shipmentEstimationManagement ===
null) {
115 ->get(ShipmentEstimationInterface::class);
117 return $this->shipmentEstimationManagement;
__construct(ShippingMethodManagementInterface $shippingMethodManagement, QuoteIdMaskFactory $quoteIdMaskFactory)
estimateByAddress($cartId, \Magento\Quote\Api\Data\EstimateAddressInterface $address)
estimateByExtendedAddress($cartId, AddressInterface $address)