Log in
Model

CommentRepository

Magento\Sales\Model\Order\Invoice\CommentRepository

What it does

This repository manages CRUD operations for invoice comments in Magento 2.

Developers use this class to retrieve, save, or delete comments associated with invoices, and it automatically handles sending email notifications to customers when comments are saved.

It's the primary interface for working with invoice comment data programmatically.

Public Methods

  • getList()
  • get()
  • delete()
  • save()