Sha256: 5fdcf4f9ff33edcf7ed10f7208fda6c036bb4f784f6adc125d83e6b55828835d

Contents?: true

Size: 389 Bytes

Versions: 28

Compression:

Stored size: 389 Bytes

Contents

module Spree
  module V2
    module Storefront
      class PaymentSerializer < BaseSerializer
        set_type :payment

        has_one :source, polymorphic: true
        has_one :payment_method

        attributes :amount, :response_code, :number, :cvv_response_code, :cvv_response_message,
                   :payment_method_id, :payment_method_name, :state
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_api-4.2.1 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.0.7 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.2.0 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.2.0.rc5 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.2.0.rc4 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.2.0.rc3 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.1.13 app/serializers/spree/v2/storefront/payment_serializer.rb
spree_api-4.0.6 app/serializers/spree/v2/storefront/payment_serializer.rb