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.2.3.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.0 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.0.rc5 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.0.rc4 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.0.rc3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb