Class OrderHistoryImpl

java.lang.Object
com.eqixiac.equinix.customerportal.client.implementation.OrderHistoryImpl
All Implemented Interfaces:
OrderHistory

public class OrderHistoryImpl extends Object implements OrderHistory
  • Constructor Details

    • OrderHistoryImpl

      public OrderHistoryImpl()
  • Method Details

    • search

      public List<? extends OrderHistoryItem> search(OrderHistorySearchRequest request)
      Description copied from interface: OrderHistory
      Searches order history and returns the records of the requested page.

      Maps to POST /v1/retrieve-orders (POST_orders-history). Same as searchPage(request).getContent(); use OrderHistory.searchPage(OrderHistorySearchRequest) for the paging metadata.

      Specified by:
      search in interface OrderHistory
      Parameters:
      request - the search request body
      Returns:
      the matching order history records on the requested page
    • searchPage

      public OrderHistoryPage searchPage(OrderHistorySearchRequest request)
      Description copied from interface: OrderHistory
      Searches order history and returns one page with its paging metadata.

      Maps to POST /v1/retrieve-orders (POST_orders-history); the response envelope is {links, content, page{size, totalElements, totalPages, number}}.

      Specified by:
      searchPage in interface OrderHistory
      Parameters:
      request - the search request body
      Returns:
      the page of records with links and page metadata
    • listLocations

      public List<? extends PermissibleLocation> listLocations()
      Description copied from interface: OrderHistory
      Lists the IBX/cage locations the current user may filter order history by.

      Maps to GET /v1/retrieve-orders/locations (GET_retrieve-orders-locations).

      Specified by:
      listLocations in interface OrderHistory
      Returns:
      the list of permissible locations