File tree Expand file tree Collapse file tree 3 files changed +14
-24
lines changed Expand file tree Collapse file tree 3 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Quote \Api ;
9
9
10
- use Magento \Framework \Exception \CouldNotSaveException ;
11
- use Magento \Framework \Exception \InputException ;
12
- use Magento \Framework \Exception \NoSuchEntityException ;
13
- use Magento \Quote \Api \Data \CartItemInterface ;
14
-
15
10
/**
16
11
* Interface AddCartItemInterface
17
12
* @api
@@ -21,11 +16,11 @@ interface AddCartItemInterface
21
16
/**
22
17
* Add the specified cart item.
23
18
*
24
- * @param CartItemInterface $cartItem The item.
25
- * @return CartItemInterface
26
- * @throws NoSuchEntityException The specified cart does not exist.
27
- * @throws CouldNotSaveException The specified item could not be saved to the cart.
28
- * @throws InputException The specified item or cart is not valid.
19
+ * @param \Magento\Quote\Api\Data\ CartItemInterface $cartItem The item.
20
+ * @return \Magento\Quote\Api\Data\ CartItemInterface Item.
21
+ * @throws \Magento\Framework\Exception\ NoSuchEntityException The specified cart does not exist.
22
+ * @throws \Magento\Framework\Exception\ CouldNotSaveException The specified item could not be saved to the cart.
23
+ * @throws \Magento\Framework\Exception\ InputException The specified item or cart is not valid.
29
24
*/
30
- public function execute (CartItemInterface $ cartItem );
25
+ public function execute (\ Magento \ Quote \ Api \ Data \ CartItemInterface $ cartItem );
31
26
}
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Quote \Api ;
9
9
10
- use Magento \Framework \Exception \CouldNotSaveException ;
11
- use Magento \Framework \Exception \InputException ;
12
- use Magento \Framework \Exception \NoSuchEntityException ;
13
- use Magento \Quote \Api \Data \CartItemInterface ;
14
-
15
10
/**
16
11
* Interface AddCartItemInterface
17
12
* @api
@@ -21,11 +16,11 @@ interface UpdateCartItemInterface
21
16
/**
22
17
* Update the specified cart item.
23
18
*
24
- * @param CartItemInterface $cartItem The item.
25
- * @return CartItemInterface Item.
26
- * @throws NoSuchEntityException The specified cart does not exist.
27
- * @throws CouldNotSaveException The specified item could not be saved to the cart.
28
- * @throws InputException The specified item or cart is not valid.
19
+ * @param \Magento\Quote\Api\Data\ CartItemInterface $cartItem The item.
20
+ * @return \Magento\Quote\Api\Data\ CartItemInterface Item.
21
+ * @throws \Magento\Framework\Exception\ NoSuchEntityException The specified cart does not exist.
22
+ * @throws \Magento\Framework\Exception\ CouldNotSaveException The specified item could not be saved to the cart.
23
+ * @throws \Magento\Framework\Exception\ InputException The specified item or cart is not valid.
29
24
*/
30
- public function execute (CartItemInterface $ cartItem );
25
+ public function execute (\ Magento \ Quote \ Api \ Data \ CartItemInterface $ cartItem );
31
26
}
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Quote \Model \Quote \Item ;
9
9
10
- use Magento \Quote \Api \AddCartItemInterface ;
11
10
use Magento \Quote \Api \Data \CartItemInterface ;
11
+ use Magento \Quote \Api \UpdateCartItemInterface ;
12
12
13
13
/**
14
14
* Update the specified cart item
15
15
*/
16
- class UpdateCartItem implements AddCartItemInterface
16
+ class UpdateCartItem implements UpdateCartItemInterface
17
17
{
18
18
/**
19
19
* @var Repository
You can’t perform that action at this time.
0 commit comments