Sha256: 154d365d9ee64d623313bd5413c3df4f666841370f532611043c8e7d942189d2

Contents?: true

Size: 414 Bytes

Versions: 48

Compression:

Stored size: 414 Bytes

Contents

module Spree
  module V2
    module Storefront
      class ShippingRateSerializer < BaseSerializer
        set_type :shipping_rate

        attributes :name, :selected, :final_price, :display_final_price, :cost,
                   :display_cost, :tax_amount, :display_tax_amount, :shipping_method_id

        attribute :free do |shipping_rate|
          shipping_rate.free?
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.10.0 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.9.0 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.8.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.8.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.7.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.6 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.5.5 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.7 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.3.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.4.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.5.4 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.5 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.7.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.7.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.4 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.7.0 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.6.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb