Type Alias: GetCartItems()
GetCartItems: (
cartId
) =>Promise
<GetCartItemsResponse
>
Retrieves the items in the specified cart.
Parameters
• cartId: string
The unique identifier for the cart.
Returns
A promise that resolves to a GetCartItemsResponse
, which is either an array of CartItem
or an object indicating the cart is closed.
Throws
Error Will throw an error if cartId
is missing.
Example usage:
const cartItems = await window.mimeeqApp.actions.getCartItems('cart123');
console.log(cartItems);