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 Summary
Modifier and TypeMethodDescriptionList<? extends OrderHistoryItem> Returns the order records on this page.getLinks()Returns the response-level links (self,prev,next).Returns the zero-based number of this page.getSize()Returns the page size the service applied.Returns the total number of matching records.Returns the total number of pages.default booleanhasNext()Returns whether a later page exists: anextlink is present, or the page number is belowtotalPages - 1.
-
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
nullwhen the response carried no page block
-
getNumber
Integer getNumber()Returns the zero-based number of this page.- Returns:
- the page number, or
nullwhen the response carried no page block
-
getTotalElements
Long getTotalElements()Returns the total number of matching records.- Returns:
- the total, or
nullwhen the response carried no page block
-
getTotalPages
Integer getTotalPages()Returns the total number of pages.- Returns:
- the total, or
nullwhen the response carried no page block
-
hasNext
default boolean hasNext()Returns whether a later page exists: anextlink is present, or the page number is belowtotalPages - 1.- Returns:
truewhen another page can be requested
-