We are encountering an error for a store in production that is caused by receiving an unexpected object type when calling line_item.properties on a LineItem object returned using the REST API. For all other stores this call returns the expected type of Array, but for this store we are receiving an object type of ShopifyAPI::LineItem::Properties. We attempt to iterate over the properties on line items using .each, which is throwing an exception as that method is not implemented on ShopifyAPI::LineItem::Properties.
Does anyone know why we are getting this object type suddenly for one store? We cannot even find where this type is documented. We are on the 2020-10 version of the Shopify API.