Log in
Model

CreationArguments

Magento\Sales\Model\Order\Invoice\CreationArguments

What it does

This class serves as a data container for additional arguments used during invoice creation in Magento 2.

Developers use it to pass extension attributes when creating invoices through the API, allowing third-party modules to inject custom data into the invoice creation process without modifying core code.

It implements the InvoiceCreationArgumentsInterface to ensure consistency across the sales module.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()