Interface OrderHistoryPage

All Known Implementing Classes:
OrderHistorySearchResponseJson

public interface OrderHistoryPage
One page of an order history search (order-history-response): the content records, the response-level links and the page metadata.

The envelope {links, content, page{size, totalElements, totalPages, number}} is the spec shape and the live shape (observed 2026-11-11). To read the next page, repeat the search with PageRequest(getNumber() + 1, getSize()) while hasNext() is true.

  • Method Details

    • getContent

      List<? extends OrderHistoryItem> getContent()
      Returns the order records on this page.
      Returns:
      the records, never null
    • getLinks

      List<OrderHistoryLink> getLinks()
      Returns the response-level links (self, prev, next).
      Returns:
      the links, never null
    • getSize

      Integer getSize()
      Returns the page size the service applied.
      Returns:
      the page size, or null when the response carried no page block
    • getNumber

      Integer getNumber()
      Returns the zero-based number of this page.
      Returns:
      the page number, or null when the response carried no page block
    • getTotalElements

      Long getTotalElements()
      Returns the total number of matching records.
      Returns:
      the total, or null when the response carried no page block
    • getTotalPages

      Integer getTotalPages()
      Returns the total number of pages.
      Returns:
      the total, or null when the response carried no page block
    • hasNext

      default boolean hasNext()
      Returns whether a later page exists: a next link is present, or the page number is below totalPages - 1.
      Returns:
      true when another page can be requested