CommentCreation
Magento\Sales\Model\Order\Creditmemo\CommentCreation
What it does
This class serves as a data transfer object (DTO) for creating comments on credit memos in Magento 2.
Developers use this class when programmatically adding comments to credit memos through the API, allowing them to set the comment text and control whether it's visible on the storefront.
It's primarily used in credit memo creation workflows where administrative notes or customer-facing comments need to be attached.
Public Methods
- getExtensionAttributes()
- setExtensionAttributes()
- getComment()
- setComment()
- getIsVisibleOnFront()
- setIsVisibleOnFront()