Interface
CreditmemoValidatorInterface
Magento\Sales\Model\Order\Creditmemo\CreditmemoValidatorInterface
What it does
This interface defines a contract for validating credit memo entities in Magento 2 before they are processed or saved.
Developers would implement or use this interface when they need to add custom validation rules for credit memos, ensuring data integrity and business logic compliance during the credit memo creation or refund process.
Public Methods
- validate()