Sha256: 59fa8462edbe6a7a18d1b2c3a5d63b1b395ecb563aa005efd5657aee2425b7d8

Contents?: true

Size: 373 Bytes

Versions: 13

Compression:

Stored size: 373 Bytes

Contents

module Spree
  module V2
    module Storefront
      class ShipmentSerializer < BaseSerializer
        set_type :shipment

        attributes :number, :final_price, :display_final_price,
                   :state, :shipped_at, :tracking_url

        attribute :free, &:free?

        has_many :shipping_rates

        belongs_to :stock_location
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_api-4.0.9 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.15 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.14 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.0.8 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.13.1 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.0.7.1 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.0.7 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.13 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.0.6 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.2.0.rc2 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.12 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.2.0.rc1 app/serializers/spree/v2/storefront/shipment_serializer.rb
spree_api-4.1.11 app/serializers/spree/v2/storefront/shipment_serializer.rb