Interface OrderService
- All Known Implementing Classes:
DefaultOrderService
public interface OrderService
Service representation of an order and order history for SAP synchronous order management
-
Method Summary
Modifier and TypeMethodDescriptiongetItemFromOrder(String orderCode, String itemNumber) Return item from given order code and item number.getOrderForCode(String code) Fetches an order from the back endgetOrderHistoryForStatuses(OrderStatus... statuses) Perform an order search without pagination and sortinggetPagedOrderHistoryForStatuses(PageableData pageableData, OrderStatus... statuses) Perform an order search, taking pagination and sorting into account
-
Method Details
-
getOrderForCode
Fetches an order from the back end- Parameters:
code- Technical ID of the order- Returns:
- hybris order representation
-
getPagedOrderHistoryForStatuses
SearchPageData<OrderHistoryData> getPagedOrderHistoryForStatuses(PageableData pageableData, OrderStatus... statuses) Perform an order search, taking pagination and sorting into account- Parameters:
pageableData- Contains paging and sorting attributesstatuses- Order statuses the search should be performed for- Returns:
- Search result, including sorting and pagination
-
getOrderHistoryForStatuses
Perform an order search without pagination and sorting- Parameters:
statuses- Order statuses the search should be performed for- Returns:
- List of orders
-
getItemFromOrder
Return item from given order code and item number.- Parameters:
orderCode- Order codeitemNumber- ECC item number (corresponds to entry number in OrderEntry)- Returns:
- Item
-