Skip to content

Commit 831b6f1

Browse files
committed
MC-34298: Introduce separate POST and PUT API for carts/mine/items
1 parent a4f09a1 commit 831b6f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Quote/Api/AddCartItemInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ interface AddCartItemInterface
1818
/**
1919
* Add the specified cart item.
2020
*
21-
* @param CartItemInterface $cartItem The item.
22-
* @return CartItemInterface Item.
21+
* @param \Magento\Quote\Api\Data\CartItemInterface $cartItem The item.
22+
* @return \Magento\Quote\Api\Data\CartItemInterface Item.
2323
* @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist.
2424
* @throws \Magento\Framework\Exception\CouldNotSaveException The specified item could not be saved to the cart.
2525
* @throws \Magento\Framework\Exception\InputException The specified item or cart is not valid.

app/code/Magento/Quote/Api/UpdateCartItemInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
use Magento\Quote\Api\Data\CartItemInterface;
1111

1212
/**
13-
* Interface AddCartItemInterface
13+
* Interface UpdateCartItemInterface
1414
* @api
1515
*/
1616
interface UpdateCartItemInterface
1717
{
1818
/**
1919
* Update the specified cart item.
2020
*
21-
* @param CartItemInterface $cartItem The item.
22-
* @return CartItemInterface Item.
21+
* @param \Magento\Quote\Api\Data\CartItemInterface $cartItem The item.
22+
* @return \Magento\Quote\Api\Data\CartItemInterface Item.
2323
* @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist.
2424
* @throws \Magento\Framework\Exception\CouldNotSaveException The specified item could not be saved to the cart.
2525
* @throws \Magento\Framework\Exception\InputException The specified item or cart is not valid.

0 commit comments

Comments
 (0)