ItemCreation
Magento\Sales\Model\Order\Creditmemo\ItemCreation
What it does
This class is a data transfer object (DTO) used when creating credit memo items through the Magento 2 API.
Developers use this class to specify which order items should be refunded and in what quantity when programmatically creating credit memos.
It implements the CreditmemoItemCreationInterface and provides a simple way to pass credit memo item data between different layers of the application.
Public Methods
- getOrderItemId()
- setOrderItemId()
- getQty()
- setQty()
- getExtensionAttributes()
- setExtensionAttributes()