Class OrderReadService
category |
System |
---|---|
package |
Order |
__construct(\OrderRepositoryInterface $orderRepository, \OrderItemRepositoryInterface $orderItemRepository, \OrderListGeneratorInterface $orderListGenerator)
\OrderRepositoryInterface
\OrderItemRepositoryInterface
\OrderListGeneratorInterface
filterOrderList(array $filterParameters, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
Provide the filtering values in the conditions array in order to fetch a filtered result set.
array
Contains an array of the GET parameters to be used for filtering the order records.
array
(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
filterOrderListCount(array $filterParameters) : integer
Throws |
|
---|
array
integer
getOrderById(\IdType $orderId) : \OrderInterface
getOrderItemById(\IdType $orderItemId) : \StoredOrderItemInterface
Returns a stored order item, depending on the provided order item ID.
\StoredOrderItemInterface
getOrderList(\Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
Returns an OrderListItemCollection depending on the provided arguments.
array
(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
Order list item collection.
getOrderListByCustomerId(\IdType $customerId, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
array
(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
Order list item collection.
getOrderListByKeyword(\StringType $keyword, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
array
(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
Order list item collection.
getOrderListByKeywordCount(\StringType $keyword) : integer
integer
getOrderListByOrderStatusId(\IntType $orderStatusId, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
array
(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
Order list item collection.
getOrderListCount() : integer
integer
searchOrders(\OrderSearchCondition $searchCondition, \Pager|null $pager = null, array $sorters = array()) : mixed
\OrderSearchCondition
array
(Optional) array of Sorter objects with data sorting information
mixed
orderItemRepository : \OrderItemRepositoryInterface