Log in
Model

ItemCreationValidator

Magento\Sales\Model\Order\Creditmemo\ItemCreationValidator

What it does

This class validates credit memo items during the credit memo creation process in Magento 2.

Developers use it to ensure that items being added to a credit memo meet all required business rules and validation constraints before the credit memo is saved.

It acts as a wrapper around the generic validator, specifically tailored for credit memo item validation.

Public Methods

  • validate()