Sha256: 5934b7f75130b2e6e7671ce3edd5129a24ae0e85f25cccc83972d471165b7fb2

Contents?: true

Size: 911 Bytes

Versions: 9

Compression:

Stored size: 911 Bytes

Contents

object @shipment
cache [I18n.locale, 'small_shipment', root_object]

attributes *shipment_attributes
node(:order_id) { |shipment| shipment.order.number }
node(:stock_location_name) { |shipment| shipment.stock_location.name }

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

child :selected_shipping_rate => :selected_shipping_rate do
  extends "spree/api/shipping_rates/show"
end

child :shipping_methods => :shipping_methods do
  attributes :id, :name
  child :zones => :zones do
    attributes :id, :name, :description
  end

  child :shipping_categories => :shipping_categories do
    attributes :id, :name
  end
end

child :manifest => :manifest do
  glue(:variant) do
    attribute :id => :variant_id
  end
  node(:quantity) { |m| m.quantity }
  node(:states) { |m| m.states }
end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_api-2.3.13 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.12 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.11 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.10 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.9 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.8 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.7 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.6 app/views/spree/api/shipments/small.v1.rabl
spree_api-2.3.5 app/views/spree/api/shipments/small.v1.rabl