Sha256: f1a7be31352d2c8149eb3af01e6ad1da0b669f3e4775aec57b32f71f547daebf

Contents?: true

Size: 1.15 KB

Versions: 101

Compression:

Stored size: 1.15 KB

Contents

object @shipment
cache @shipment
attributes *shipment_attributes

child selected_shipping_rate: :selected_shipping_rate do
  extends 'spree/api/v1/shipping_rates/show'
end

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

  child :variant do
    extends 'spree/api/v1/variants/small'
    attributes :product_id
    child(images: :images) { extends 'spree/api/v1/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, &:total)
  end
end

child order: :order do
  extends 'spree/api/v1/orders/order'

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

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

  child adjustments: :adjustments do
    extends 'spree/api/v1/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

101 entries across 101 versions & 2 rubygems

Version Path
spree_api-4.0.9 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.1.15 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.2.7 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.3 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.4.1 app/views/spree/api/v1/shipments/big.rabl
spree_api_v1-4.5.0 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.2.6 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.2 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.4.0 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.4.0.rc2 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.1 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.4.0.rc1 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.0 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.0.rc3 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.0.rc2 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.3.0.rc1 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.2.5 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.1.14 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.0.8 app/views/spree/api/v1/shipments/big.rabl
spree_api-4.2.4 app/views/spree/api/v1/shipments/big.rabl