Model
OrderCustomerExtractor
Magento\Sales\Model\Order\OrderCustomerExtractor
What it does
This class extracts customer data from a sales order, either retrieving an existing customer from the database or building a new customer object from order information.
Developers use this when they need to convert guest order data into a customer account or retrieve customer details associated with an order, including properly formatted addresses with billing/shipping flags.
Public Methods
- extract()