Order API returnEntires response and types

I have a question regarding the response object from SquareClient.Orders.search({ returnEntires: true}). The interface in the docs shows a OrderEntry return that contains an order_id, version, and location_id but I’m getting an object that looks like this:
{
“orderId”: “string”,
“version”: 4,
“locationId”: “string”,
“created_at”: “2025-01-08T04:06:53.3Z”,
“updated_at”: “2025-01-08T04:06:55Z”,
“closed_at”: “2025-01-08T04:06:54.814Z”,
“line_items”: [
{
“name”: “product name”,
“quantity”: “quantity sold”
}
]
}

I’ve tried to get access to the line_items which would make what I’m trying to build a lot easier but because its not in the type I’m having trouble accessing it. Any ideas on how to access it and why this is happening?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Orders API
Refunds and Exchanges
Create Orders

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

This did not answer my question

According to the team this is the expected response. While these fields are undocumented the team is looking to add them. :slight_smile:

Got it, I’m looking forward to the implementation of it. It’ll make it a lot easier for my use case when they do. Thank you! :smile: