Model
CommentCreation
Magento\Sales\Model\Order\Invoice\CommentCreation
What it does
This class represents a data transfer object (DTO) for creating invoice comments in Magento 2.
Developers use this class when programmatically adding comments to invoices through the Sales API, allowing them to specify the comment text and whether it should be visible on the storefront.
It's primarily used in invoice creation workflows via service contracts.
Public Methods
- getComment()
- setComment()
- getIsVisibleOnFront()
- setIsVisibleOnFront()
- getExtensionAttributes()
- setExtensionAttributes()