Sha256: 9e082b6c67d2af82ba5c15aad20979af2230f60a0c2d2a0aa0ec8b8a874327e4

Contents?: true

Size: 610 Bytes

Versions: 7

Compression:

Stored size: 610 Bytes

Contents

object @order
attributes *order_attributes
extends "spree/api/v1/orders/#{@order.state}"

child :billing_address => :bill_address do
  extends "spree/api/v1/addresses/show"
end

child :shipping_address => :ship_address do
  extends "spree/api/v1/addresses/show"
end

child :line_items => :line_items do
  extends "spree/api/v1/line_items/show"
end

child :payments => :payments do
  attributes :id, :amount, :state, :payment_method_id
  child :payment_method => :payment_method do
    attributes :id, :name, :environment
  end
end

child :shipments => :shipments do
  extends "spree/api/v1/shipments/show"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_api-1.2.0 app/views/spree/api/v1/orders/show.rabl
spree_api-1.2.0.rc2 app/views/spree/api/v1/orders/show.rabl
spree_api-1.2.0.rc1 app/views/spree/api/v1/orders/show.rabl
spree_api-1.1.3 app/views/spree/api/v1/orders/show.rabl
spree_api-1.1.2 app/views/spree/api/v1/orders/show.rabl
spree_api-1.1.2.rc1 app/views/spree/api/v1/orders/show.rabl
spree_api-1.1.1 app/views/spree/api/v1/orders/show.rabl