Sha256: 7251f5c3a187a76eb130067d152c714998b33fb23b2e1f00b19c298a53bbdee1

Contents?: true

Size: 364 Bytes

Versions: 29

Compression:

Stored size: 364 Bytes

Contents

module Spree
  module Api
    module V2
      module Platform
        class StockItemSerializer < BaseSerializer
          include ResourceSerializerConcern

          attribute :is_available do |stock_item|
            stock_item.available?
          end

          belongs_to :stock_location
          belongs_to :variant
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.10.0 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.9.0 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.8.3 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.8.2 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.7.3 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.6 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.5.5 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.4.1 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.5.4 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.5 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.7.2 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.7.1 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.4 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.7.0 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.3 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.2 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.1 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.6.0 app/serializers/spree/api/v2/platform/stock_item_serializer.rb
spree_api-4.5.3 app/serializers/spree/api/v2/platform/stock_item_serializer.rb