Sha256: c75e09ba38a6c85dc7f2721a2d9aca124f377355b6cf81639f6b0105c9036493

Contents?: true

Size: 927 Bytes

Versions: 19

Compression:

Stored size: 927 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/v1/shipping_rates/show"
end

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

child :shipping_methods => :shipping_methods do
  attributes :id, :code, :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/v1/adjustments/show"
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_api-3.1.14 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.13 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.12 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.11 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.10 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.9 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.8 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.7 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.6 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.5 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.4 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.3 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.2 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.1 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.0 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.0.rc4 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.0.rc3 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.0.rc2 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.1.0.rc1 app/views/spree/api/v1/shipments/small.v1.rabl