class SixSaferpay::Authentication

Attributes

exemption[RW]
message[RW]
result[RW]
three_ds_challenge[RW]
xid[RW]

Public Class Methods

new(result: nil, message: nil, xid: nil, exemption: nil, three_ds_challenge: nil) click to toggle source
# File lib/six_saferpay/models/authentication.rb, line 12
def initialize(result: nil, # ATTENTION: This is in some case mandatory
               message: nil, # ATTENTION: This is in some case mandatory
               xid: nil,
               exemption: nil,
               three_ds_challenge: nil)
  @result = result
  @message = message
  @xid = xid
  @exemption = exemption
  @three_ds_challenge = three_ds_challenge
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/models/authentication.rb, line 24
def to_hash
  hash = Hash.new
  hash.merge!(result: @result) if @result
  hash.merge!(message: @message) if @message
  hash.merge!(xid: @xid) if @xid
  hash.merge!(exemption: @exemption) if @exemption
  hash.merge!(three_ds_challenge: @three_ds_challenge) if @three_ds_challenge
  hash
end
Also aliased as: to_h