com.elasticpath.cmweb.ajaxservice
Interface OrderAjaxService

All Superinterfaces:
EpService
All Known Implementing Classes:
OrderAjaxServiceImpl

public interface OrderAjaxService
extends EpService

This service provides access to functionality and data (beans) for manipulating order on the Javascript client.


Method Summary
 Order addOrderNote(long orderUid, OrderNote newOrderNote)
          Add an orderNote.
 java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria, int maxResults)
          Retrieve the list of OrderInfoAjaxBeans, whose specified property contain the given criteria value.
 Order updateOrderBillingAddress(long orderUid, OrderAddress billingAddress)
          Update the billing address of the order with the given orderUid.
 Order updateOrderStatus(long orderUid, OrderStatus newOrderStatus)
          Update the status of the order with the given orderUid.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

addOrderNote

Order addOrderNote(long orderUid,
                   OrderNote newOrderNote)
Add an orderNote.

Parameters:
orderUid - the orderUid.
newOrderNote - the new order note.
Returns:
the update order.

findOrderByCriteria

java.util.List findOrderByCriteria(OrderSearchCriteria orderSearchCriteria,
                                   int maxResults)
Retrieve the list of OrderInfoAjaxBeans, whose specified property contain the given criteria value. Set maxResults to -1 where use the global maxCmSearchResultCount setting in elasticpath.xml.

Parameters:
orderSearchCriteria - criteria for order search.
maxResults - the max number of orders to return on search.
Returns:
list of orders matching the given criteria.

updateOrderBillingAddress

Order updateOrderBillingAddress(long orderUid,
                                OrderAddress billingAddress)
Update the billing address of the order with the given orderUid.

Parameters:
orderUid - the orderUid.
billingAddress - the update billing address.
Returns:
the update order.

updateOrderStatus

Order updateOrderStatus(long orderUid,
                        OrderStatus newOrderStatus)
Update the status of the order with the given orderUid.

Parameters:
orderUid - the orderUid.
newOrderStatus - the new order status.
Returns:
the update order.