Log in
Interface

ItemCreationValidatorInterface

Magento\Sales\Model\Order\Creditmemo\ItemCreationValidatorInterface

What it does

This interface defines a contract for validating credit memo items during creation in Magento 2.

Developers implement this interface to create custom validators that check if credit memo items meet specific business rules before the credit memo is saved.

It's used during the credit memo creation workflow to ensure data integrity and enforce refund policies.

Public Methods

  • validate()