November Happy Hour will be moved to Thursday December 5th.

Interface IOrderSearchService

Service to retrieve historical data for IOrderGroup.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public interface IOrderSearchService

Methods

Find<TOrderGroup>(OrderSearchFilter)

Finds orders with a specific OrderSearchFilter for a specific TOrderGroup.

Declaration
OrderSearchResults<TOrderGroup> Find<TOrderGroup>(OrderSearchFilter filter)
    where TOrderGroup : class, IOrderGroup
Parameters
Type Name Description
OrderSearchFilter filter

The search filter.

Returns
Type Description
OrderSearchResults<TOrderGroup>

The order search results.

Type Parameters
Name Description
TOrderGroup

The given order type for filter.

Search<TOrderGroup>(OrderSearchField, String, Int32, Int32)

Finds orders with search value for a specific TOrderGroup.

Declaration
OrderSearchResults<TOrderGroup> Search<TOrderGroup>(OrderSearchField searchField, string searchValue, int startIndex, int recordsToRetrieve)
    where TOrderGroup : class, IOrderGroup
Parameters
Type Name Description
OrderSearchField searchField

The search field use to search. For example: Email, CustomerName, TrackingNumber.

System.String searchValue

The search value.

System.Int32 startIndex

The starting index of record to retrieve.

System.Int32 recordsToRetrieve

The number of records to retrieve.

Returns
Type Description
OrderSearchResults<TOrderGroup>

The order search results.

Type Parameters
Name Description
TOrderGroup

The given order type for filter.

Extension Methods