public function updateCart($data, $user, $locale)
    {
        $cart = $this->getUserCart($user, $locale);
        $userId = $user ? $user->getId() : null;
        $this->orderManager->save($data, $locale, $userId, $cart->getId(), null, null, true);

        $this->removeItemAddressesThatAreEqualToOrderAddress($cart);

        return $cart;
    }