module SixSaferpay::SixTransaction

Public Instance Methods

response_class() click to toggle source
# File lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb, line 62
def response_class
  SixSaferpay::SixTransaction::AlternativePaymentResponse
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb, line 39
def to_hash
  hash = Hash.new
  hash.merge!(request_header: @request_header.to_h) if @request_header
  hash.merge!(terminal_id: @terminal_id)
  hash.merge!(payment: @payment.to_h)
  hash.merge!(payment_method: @payment_method)
  hash.merge!(payment_method_options: @payment_method_options.to_h) if @payment_method_options
  hash.merge!(payer: @payer.to_h) if @payer
  hash.merge!(notification: @notification.to_h)
  hash.merge!(order: @order.to_h) if @order
  hash.merge!(risk_factors: @risk_factors.to_h) if @risk_factors
  hash
end
Also aliased as: to_h, to_h, to_h
to_json() click to toggle source
# File lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb, line 54
def to_json
  to_hash.to_json
end
url() click to toggle source
# File lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb, line 58
def url
  '/Payment/v1/Transaction/AlternativePayment'
end