Model
InvoiceService
Magento\Sales\Model\Service\InvoiceService
What it does
InvoiceService handles the creation and management of invoices in Magento 2.
Developers use this service to prepare invoices from orders, capture payments, send invoice notifications to customers, void invoices, and manage invoice comments.
It's the primary service class for programmatically working with invoices throughout the sales workflow.
Public Methods
- setCapture()
- getCommentsList()
- notify()
- setVoid()
- prepareInvoice()