Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
OrderManagementInterface Interface Reference
Inheritance diagram for OrderManagementInterface:
OrderService

Public Member Functions

 cancel ($id)
 
 getCommentsList ($id)
 
 addComment ($id, \Magento\Sales\Api\Data\OrderStatusHistoryInterface $statusHistory)
 
 notify ($id)
 
 getStatus ($id)
 
 hold ($id)
 
 unHold ($id)
 
 place (\Magento\Sales\Api\Data\OrderInterface $order)
 

Detailed Description

Order management interface.

An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as a purchase order, is emailed to the customer. @api

Since
100.0.2

Definition at line 18 of file OrderManagementInterface.php.

Member Function Documentation

◆ addComment()

addComment (   $id,
\Magento\Sales\Api\Data\OrderStatusHistoryInterface  $statusHistory 
)

Adds a comment to a specified order.

Parameters
int$idThe order ID.
\Magento\Sales\Api\Data\OrderStatusHistoryInterface$statusHistoryStatus history comment.
Returns
bool

Implemented in OrderService.

◆ cancel()

cancel (   $id)

Cancels a specified order.

Parameters
int$idThe order ID.
Returns
bool

Implemented in OrderService.

◆ getCommentsList()

getCommentsList (   $id)

Lists comments for a specified order.

Parameters
int$idThe order ID.
Returns
\Magento\Sales\Api\Data\OrderStatusHistorySearchResultInterface Order status history search results interface.

Implemented in OrderService.

◆ getStatus()

getStatus (   $id)

Gets the status for a specified order.

Parameters
int$idThe order ID.
Returns
string Order status.

Implemented in OrderService.

◆ hold()

hold (   $id)

Holds a specified order.

Parameters
int$idThe order ID.
Returns
bool

Implemented in OrderService.

◆ notify()

notify (   $id)

Emails a user a specified order.

Parameters
int$idThe order ID.
Returns
bool

Implemented in OrderService.

◆ place()

Parameters
\Magento\Sales\Api\Data\OrderInterface$order
Returns
\Magento\Sales\Api\Data\OrderInterface

◆ unHold()

unHold (   $id)

Releases a specified order from hold status.

Parameters
int$idThe order ID.
Returns
bool

Implemented in OrderService.


The documentation for this interface was generated from the following file: