Sha256: 4ac2aaaeee848ff34d3f015cd3a1e85d04b623235a800eef81fc1ce628428aa3

Contents?: true

Size: 448 Bytes

Versions: 89

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

json.cache! [I18n.locale, order] do
  json.(order, *order_attributes)
  json.display_item_total(order.display_item_total.to_s)
  json.total_quantity(order.line_items.to_a.sum(&:quantity))
  json.display_total(order.display_total.to_s)
  json.display_ship_total(order.display_ship_total)
  json.display_tax_total(order.display_tax_total)
  json.token(order.guest_token)
  json.checkout_steps(order.checkout_steps)
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
solidus_api-4.4.1 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.4.0 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.3.4 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.2.4 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.1.5 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.3.3 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.3.2 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.1.4 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.3.1 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.3.0 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.2.3 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.1.3 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.0.4 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-3.4.6 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.0.3 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.1.2 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.2.2 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-3.4.5 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.2.1 app/views/spree/api/orders/_order.json.jbuilder
solidus_api-4.2.0 app/views/spree/api/orders/_order.json.jbuilder