quoteIdMaskFactory = $quoteIdMaskFactory; $this->billingAddressManagement = $billingAddressManagement; } /** * {@inheritDoc} */ public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $address, $useForShipping = false) { /** @var $quoteIdMask QuoteIdMask */ $quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartId, 'masked_id'); return $this->billingAddressManagement->assign($quoteIdMask->getQuoteId(), $address, $useForShipping); } /** * {@inheritDoc} */ public function get($cartId) { /** @var $quoteIdMask QuoteIdMask */ $quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartId, 'masked_id'); return $this->billingAddressManagement->get($quoteIdMask->getQuoteId()); } }