Log in
Interface

InvoiceOrderInterface

Magento\Sales\Model\Order\Validation\InvoiceOrderInterface

What it does

This interface defines a contract for validating invoice creation in Magento 2.

Developers implement this interface to create custom validation logic that checks whether an order can be invoiced based on various parameters like capture method, items, and notification settings.

It returns a ValidatorResultInterface containing validation results that determine if the invoice operation should proceed.

Public Methods

  • validate()