Sha256: d4fd5413521302aa6ab9444cd8a7c2c8dabf0eb8e26a23290e63ed7f8a0f1eb4

Contents?: true

Size: 903 Bytes

Versions: 24

Compression:

Stored size: 903 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

24 entries across 24 versions & 1 rubygems

Version Path
spree_api-3.2.0 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.2.0.rc3 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.2.0.rc2 app/views/spree/api/v1/shipments/small.v1.rabl
spree_api-3.2.0.rc1 app/views/spree/api/v1/shipments/small.v1.rabl