Repository
OrderRepositoryInterface
Magento\Sales\Api\OrderRepositoryInterface
What it does
This interface defines the contract for managing Magento 2 sales orders in the system.
Developers use this repository to perform CRUD operations on orders - retrieving single orders, searching for orders with filters, creating/updating orders, and deleting orders.
It's the primary API for programmatically working with order data in a service-oriented way.
Public Methods
- getList()
- get()
- delete()
- save()