Repository
CartRepositoryInterface
Magento\GiftMessage\Api\CartRepositoryInterface
What it does
This interface defines the contract for managing gift messages at the shopping cart level.
Developers use this to retrieve existing gift messages for an entire cart or save new gift messages that apply to all items in the order, rather than individual items.
It's commonly used in checkout flows where customers want to add a greeting message to their entire purchase.
Public Methods
- get()
- save()