class SixSaferpay::ThreeDs

Attributes

authenticated[RW]
liability_shift[RW]
verification_value[RW]
xid[RW]

Public Class Methods

new(authenticated:, liability_shift:, xid:, verification_value: nil ) click to toggle source
# File lib/six_saferpay/models/three_ds.rb, line 6
def initialize(authenticated:,
               liability_shift:,
               xid:,
               verification_value: nil
              )

  @authenticated = authenticated
  @liability_shift = liability_shift
  @xid = xid
  @verification_value = verification_value
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/models/three_ds.rb, line 18
def to_hash
  hash = Hash.new
  hash.merge!(authenticated: @authenticated) if !@authenticated.nil?
  hash.merge!(liability_shift: @liability_shift) if !@liability_shift.nil?
  hash.merge!(xid: @xid) if @xid
  hash.merge!(verification_value: @verification_value) if @verification_value
  hash
end
Also aliased as: to_h