Log in
Model

Order

Magento\Sales\Model\Convert\Order

What it does

The Order Convert model handles the conversion of order objects and their items into related sales documents like invoices, shipments, and credit memos.

Developers use this class when programmatically creating invoices, shipments, or credit memos from an existing order, as it properly transfers data and maintains relationships between the order and the new document.

Public Methods

  • toInvoice()
  • itemToInvoiceItem()
  • toShipment()
  • itemToShipmentItem()
  • toCreditmemo()
  • itemToCreditmemoItem()