ItemRepositoryInterface
Magento\GiftMessage\Api\ItemRepositoryInterface
What it does
This interface defines the contract for managing gift messages attached to individual items in a shopping cart.
Developers use this to retrieve existing gift messages for cart items or to save new gift messages, enabling customers to add personalized messages to specific products during checkout.
It handles validation to ensure gift messages are only added to valid, non-virtual items in active carts.
Public Methods
- get()
- save()