OrderReadServiceInterface

Extends

Interface OrderReadServiceInterface

category

System

package

Order

subpackage

Interfaces

Methods

Filter the order records with specific conditions.

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.

Arguments

$filterParameters

array

Contains an array of the GET parameters to be used for filtering the order records.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\OrderListItemCollection

Get the filtered orders count.

filterOrderListCount(array $filterParameters) : integer
Throws
\BadMethodCallException

Arguments

$filterParameters

array

Response

integer

Returns an order, depending on the provided order ID.

getOrderById(\IdType $orderId) : \Order

Arguments

$orderId

\IdType

Order ID.

Response

\Order

Found order.

Returns a stored order item, depending on the provided order item ID.

getOrderItemById(\IdType $orderItemId) : \StoredOrderItemInterface

Arguments

$orderItemId

\IdType

Order item ID.

Response

\StoredOrderItemInterface

Found stored order item interface.

Returns an OrderListItemCollection depending on the provided arguments.

getOrderList(\Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\OrderListItemCollection

Order list item collection.

Returns an OrderListItemCollection depending on the provided customer ID.

getOrderListByCustomerId(\IdType $customerId, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection

Arguments

$customerId

\IdType

Customer ID

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\OrderListItemCollection

Order list item collection.

Filter the order list by a string keyword.

getOrderListByKeyword(\StringType $keyword, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection

Arguments

$keyword

\StringType

Keyword to be used for searching the order list items.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\OrderListItemCollection

Order list item collection.

Get Count of orders filtered by keyword

getOrderListByKeywordCount(\StringType $keyword) : integer

Arguments

$keyword

\StringType

Keyword to be used for searching in orders list items.

Response

integer

Returns an OrderListItemCollection depending on the provided order status ID.

getOrderListByOrderStatusId(\IntType $orderStatusId, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection

Arguments

$orderStatusId

\IntType

Order status ID

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\OrderListItemCollection

Order list item collection.

Get the total count of all orders

getOrderListCount() : integer

Response

integer

searchOrders

searchOrders(\OrderSearchCondition $searchCondition, \Pager|null $pager = null, array $sorters = array()) : mixed

Arguments

$searchCondition

\OrderSearchCondition

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

mixed