Sha256: bd4763dc240f383a899b50d87c082706e156f1511a4353932f1f811d90484c44

Contents?: true

Size: 362 Bytes

Versions: 57

Compression:

Stored size: 362 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, &:free?
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
spree_api-4.1.10 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.2.0.beta app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.9 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.8 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.7 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.6 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.5 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.4 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.0 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.0.rc3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.0.rc2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.1.0.rc1 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-3.7.10 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.0.3 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-3.7.9 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-4.0.2 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb
spree_api-3.7.8 app/serializers/spree/v2/storefront/shipping_rate_serializer.rb