object @shipment
cache [I18n.locale, 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, :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
  child variant: :variant do
    extends 'spree/api/v1/variants/small'
  end
  node(:quantity, &:quantity)
  node(:states, &:states)
end

object @shipment
cache [I18n.locale, 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, :name, :tracking_url
  child zones: :zones do
    attributes :id, :name, :description
  end

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

child manifest: :manifest do
  child variant: :variant do
    extends 'spree/api/v1/variants/small'
  end
  node(:quantity, &:quantity)
  node(:states, &:states)
end

Include tracking url in shipping_method show template
Include tracking url in shipping_method show template
