Sha256: 30fd1a274525fd4deeb89f1d0890d26be95052f01471f361e0341046b359cbc1

Contents?: true

Size: 444 Bytes

Versions: 28

Compression:

Stored size: 444 Bytes

Contents

module Spree
  module V2
    module Storefront
      class StoreCreditSerializer < BaseSerializer
        set_type :store_credit

        belongs_to :category, serializer: :store_credit_category
        has_many :store_credit_events
        belongs_to :credit_type,
                   id_method_name: :type_id,
                   serializer: :store_credit_type

        attributes :amount, :amount_used, :created_at
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_api-4.0.9 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.15 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.7 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.6 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.0 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.0.rc3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.0.rc2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.3.0.rc1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.5 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.14 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.8 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.4 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.3.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.13.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.7.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.2.2 app/serializers/spree/v2/storefront/store_credit_serializer.rb