Class OrderReadService

Class OrderReadService

OrderReadService implements OrderReadServiceInterface
Package: Order
Category: System
Located at Services/Core/Order/OrderReadService.inc.php

Methods summary

public __construct( OrderRepositoryInterface $orderRepository, OrderItemRepositoryInterface $orderItemRepository, OrderListGeneratorInterface $orderListGenerator )

OrderReadService Constructor

public getOrderById( IdType $orderId ) : OrderInterface

Get Order by ID

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 filterOrderListCount( array $filterParameters ) : integer

Get the filtered orders count.

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

public getOrderListCount( void ) : integer

Get the total count of all orders

Properties summary