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?