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 add custom validation logic that runs before an invoice is generated from an order, ensuring all business rules are met regarding capture settings, items to invoice, and notification preferences.

Public Methods

  • validate()