Model
ItemCreation
Magento\Sales\Model\Order\Invoice\ItemCreation
What it does
This class serves as a data transfer object (DTO) for creating invoice items in Magento 2.
Developers use it when programmatically creating invoices through the API, specifying which order item to invoice and the quantity to invoice.
It's primarily used in invoice creation workflows where you need to control which items and quantities are included in a new invoice.
Public Methods
- getOrderItemId()
- setOrderItemId()
- getQty()
- setQty()
- getExtensionAttributes()
- setExtensionAttributes()