Sha256: d9c5dffeac89b6df9166e637ed82f2b5ead10f5e7130cae89102f645f6a90b1e

Contents?: true

Size: 408 Bytes

Versions: 47

Compression:

Stored size: 408 Bytes

Contents

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

        belongs_to :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

47 entries across 47 versions & 1 rubygems

Version Path
spree_api-4.1.2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.0 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.0.rc3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.0.rc2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.1.0.rc1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.10 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.9 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.8 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.7 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.0 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.0.rc3 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.6 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-3.7.5 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.0.rc2 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.0.rc1 app/serializers/spree/v2/storefront/store_credit_serializer.rb
spree_api-4.0.0.beta app/serializers/spree/v2/storefront/store_credit_serializer.rb