Sha256: 93ae8e213f76863ea8f61f21615ede7c007e8f6e8c4247ee9a4a9e36ed28cae5

Contents?: true

Size: 684 Bytes

Versions: 25

Compression:

Stored size: 684 Bytes

Contents

module Spree
  module V2
    module Storefront
      class StoreSerializer < BaseSerializer
        include Spree::Api::V2::StoreMediaSerializerImagesConcern

        set_type :store

        attributes :name, :url, :meta_description, :meta_keywords, :seo_title, :default_currency,
                   :default, :supported_currencies, :facebook, :twitter, :instagram, :default_locale,
                   :customer_support_email, :description, :address, :contact_phone, :supported_locales

        has_many :menus
        has_many :cms_pages

        has_one :default_country, serializer: :country, record_type: :country, id_method_name: :default_country_id
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.10.0 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.9.0 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.8.3 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.8.2 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.7.3 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.6 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.5.5 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.5.4 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.5 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.7.2 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.7.1 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.4 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.7.0 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.3 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.2 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.1 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.6.0 app/serializers/spree/v2/storefront/store_serializer.rb
spree_api-4.5.3 app/serializers/spree/v2/storefront/store_serializer.rb
atkhayar-dev-spree-api-0.0.1 app/serializers/spree/v2/storefront/store_serializer.rb