object @line_item
attributes *line_item_attributes
child :variant do
  extends "spree/api/variants/variant"
  attributes :product_id
  child(:images => :images) { extends "spree/api/images/show" }
end

object @line_item
attributes *line_item_attributes
node(:display_single_amount) { |li| li.single_display_amount.to_s }
node(:display_total_amount) { |li| li.display_amount.to_s }
child :variant do
  extends "spree/api/variants/variant"
  attributes :product_id
  child(:images => :images) { extends "spree/api/images/show" }
end

Return display_single_amount and display_total_amount in LineItems responses
[api] Return display_single_amount and display_total_amount in LineItems responses

This is useful if the API client wants to display a well-formatted version of the price
