Sha256: 50ef756193b82d8e866900c33b1153df60460d3c520225a5a2f2d7b6d0f63407

Contents?: true

Size: 1.14 KB

Versions: 44

Compression:

Stored size: 1.14 KB

Contents

object @shipment
cache @shipment
attributes *shipment_attributes

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

child inventory_units: :inventory_units do
  object @inventory_unit
  attributes *inventory_unit_attributes

  child :variant do
    extends "spree/api/variants/small"
    attributes :product_id
    child(images: :images) { extends "spree/api/images/show" }
  end

  child :line_item do
    attributes *line_item_attributes
    node(:single_display_amount) { |li| li.single_display_amount.to_s }
    node(:display_amount) { |li| li.display_amount.to_s }
    node(:total) { |li| li.total }
  end
end

child order: :order do
  extends "spree/api/orders/order"

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

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

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

  child payments: :payments do
    attributes :id, :amount, :display_amount, :state
    child payment_method: :payment_method do
      attributes :id, :name
    end
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
solidus_api-1.0.7 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.10 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.9 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.6 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.8 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.7 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.5 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.6.1 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.6 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.5 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.4 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.3 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.1.0.pre1 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.1.0.beta1 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.2 app/views/spree/api/shipments/big.v1.rabl
spree_api-3.0.4 app/views/spree/api/shipments/big.v1.rabl
spree_api-2.4.10 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.1 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.0 app/views/spree/api/shipments/big.v1.rabl
solidus_api-1.0.0.rc2 app/views/spree/api/shipments/big.v1.rabl