Class OrderReadService
Class OrderReadService
- OrderReadService implements OrderReadServiceInterface
Methods summary
public
__construct( OrderRepositoryInterface $orderRepository, OrderItemRepositoryInterface $orderItemRepository, OrderListGeneratorInterface $orderListGenerator )
OrderReadService Constructor
public
getOrderItemById( IdType $orderItemId )
: StoredOrderItemInterface
Get a stored order item by ID.
public
getOrderList( IntType $startIndex = null, IntType $maxCount = null, StringType $orderBy = null )
: OrderListItemCollection
Get Order List
public
filterOrderList( array $filterParameters, IntType $startIndex = null, IntType $maxCount = null, StringType $orderBy = null )
: OrderListItemCollection
Filter the order records with specific conditions.
public
getOrderListByCustomerId( IdType $customerId, IntType $startIndex = null, IntType $maxCount = null, StringType $orderBy = null )
: OrderListItemCollection
Get Order List by Customer ID
public
getOrderListByOrderStatusId( IntType $orderStatusId, IntType $startIndex = null, IntType $maxCount = null, StringType $orderBy = null )
: OrderListItemCollection
Get Order List by Order Status ID
public
getOrderListByKeyword( StringType $keyword, IntType $startIndex = null, IntType $maxCount = null, StringType $orderBy = null )
: OrderListItemCollection
Filter the order list by a string keyword.
public
getOrderListByKeywordCount( StringType $keyword )
: integer
Get Count of orders filtered by keyword