Interface ICartSearchService
This interface is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Namespace: EPiServer.Commerce.Order.Internal
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public interface ICartSearchService
Methods
FindCarts(OrderSearchFilter, out Int32)
Finds ICart by a set of parameters.
Declaration
IEnumerable<ICart> FindCarts(OrderSearchFilter filter, out int totalRecords)
Parameters
Type | Name | Description |
---|---|---|
OrderSearchFilter | filter | The filter options when finding cart. |
System.Int32 | totalRecords | The total records returned. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ICart> | A collection of ICart. |
FindCarts(OrderSearchField, String, IEnumerable<String>, Int32, Int32, Boolean, out Int32)
Finds ICart by search field and search value.
Declaration
IEnumerable<ICart> FindCarts(OrderSearchField searchField, string searchValue, IEnumerable<string> excludedCartNames, int startIndex, int recordsToRetrieve, bool returnTotalCount, out int totalRecords)
Parameters
Type | Name | Description |
---|---|---|
OrderSearchField | searchField | The search field use to search. For example: Email, CustomerName. |
System.String | searchValue | The search value. |
System.Collections.Generic.IEnumerable<System.String> | excludedCartNames | The cart names that will be excluded when finding carts. |
System.Int32 | startIndex | The starting index of record to retrieve. |
System.Int32 | recordsToRetrieve | The number of records to retrieve. |
System.Boolean | returnTotalCount | The flag to indicate if the search should return the total count of matched carts. |
System.Int32 | totalRecords | The total records returned. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ICart> | A collection of ICart. |