module SixSaferpay::SixPaymentPage
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/api/six_payment_page/responses/assert_response.rb, line 40 def to_hash hash = Hash.new hash.merge!(response_header: @response_header.to_h) if @response_header hash.merge!(transaction: @transaction.to_h) if @transaction hash.merge!(payment_means: @payment_means.to_h) if @payment_means hash.merge!(payer: @payer.to_h) if @payer hash.merge!(registration_result: @registration_result.to_h) if @registration_result hash.merge!(liability: @liability.to_h) if @liability hash.merge!(dcc: @dcc.to_h) if @dcc if @mastercard_issuer_installments hash.merge!(mastercard_issuer_installments: mastercard_issuer_installments.to_h) end if @fraud_prevention hash.merge!(fraud_prevention: fraud_prevention.to_h) end hash end
Also aliased as: to_h