phpDocumentor

OrderReadServiceInterface

Interface OrderReadServiceInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

filterOrderList()  : OrderListItemCollection
Filter the order records with specific conditions.
filterOrderListCount()  : int
Get the filtered orders count.
getOrderById()  : Order
Returns an order, depending on the provided order ID.
getOrderItemById()  : StoredOrderItemInterface
Returns a stored order item, depending on the provided order item ID.
getOrderList()  : OrderListItemCollection
Returns an OrderListItemCollection depending on the provided arguments.
getOrderListByCustomerId()  : OrderListItemCollection
Returns an OrderListItemCollection depending on the provided customer ID.
getOrderListByKeyword()  : OrderListItemCollection
Filter the order list by a string keyword.
getOrderListByKeywordCount()  : int
Get Count of orders filtered by keyword
getOrderListByOrderStatusId()  : OrderListItemCollection
Returns an OrderListItemCollection depending on the provided order status ID.
getOrderListCount()  : int
Get the total count of all orders
searchOrders()  : mixed

Methods

filterOrderList()

Filter the order records with specific conditions.

public filterOrderList(array<string|int, mixed> $filterParameters[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : OrderListItemCollection

Provide the filtering values in the conditions array in order to fetch a filtered result set.

Parameters
$filterParameters : array<string|int, mixed>

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

$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
OrderListItemCollection

filterOrderListCount()

Get the filtered orders count.

public filterOrderListCount(array<string|int, mixed> $filterParameters) : int
Parameters
$filterParameters : array<string|int, mixed>
Tags
throws
BadMethodCallException
Return values
int

getOrderById()

Returns an order, depending on the provided order ID.

public getOrderById(IdType $orderId) : Order
Parameters
$orderId : IdType

Order ID.

Return values
Order

Found order.

getOrderList()

Returns an OrderListItemCollection depending on the provided arguments.

public getOrderList([Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : OrderListItemCollection
Parameters
$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
OrderListItemCollection

Order list item collection.

getOrderListByCustomerId()

Returns an OrderListItemCollection depending on the provided customer ID.

public getOrderListByCustomerId(IdType $customerId[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : OrderListItemCollection
Parameters
$customerId : IdType

Customer ID

$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
OrderListItemCollection

Order list item collection.

getOrderListByKeyword()

Filter the order list by a string keyword.

public getOrderListByKeyword(StringType $keyword[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : OrderListItemCollection
Parameters
$keyword : StringType

Keyword to be used for searching the order list items.

$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
OrderListItemCollection

Order list item collection.

getOrderListByKeywordCount()

Get Count of orders filtered by keyword

public getOrderListByKeywordCount(StringType $keyword) : int
Parameters
$keyword : StringType

Keyword to be used for searching in orders list items.

Return values
int

getOrderListByOrderStatusId()

Returns an OrderListItemCollection depending on the provided order status ID.

public getOrderListByOrderStatusId(IntType $orderStatusId[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : OrderListItemCollection
Parameters
$orderStatusId : IntType

Order status ID

$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
OrderListItemCollection

Order list item collection.

searchOrders()

public searchOrders(OrderSearchCondition $searchCondition[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : mixed
Parameters
$searchCondition : OrderSearchCondition
$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
mixed

Search results