Class: Worldline::Acquiring::SDK::V1::Domain::ThreeDSecure

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#authentication_valueString

Returns the current value of authentication_value.

Returns:

  • (String)

    the current value of authentication_value



16
17
18
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 16

def authentication_value
  @authentication_value
end

#directory_server_transaction_idString

Returns the current value of directory_server_transaction_id.

Returns:

  • (String)

    the current value of directory_server_transaction_id



16
17
18
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 16

def directory_server_transaction_id
  @directory_server_transaction_id
end

#eciString

Returns the current value of eci.

Returns:

  • (String)

    the current value of eci



16
17
18
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 16

def eci
  @eci
end

#three_d_secure_typeString

Returns the current value of three_d_secure_type.

Returns:

  • (String)

    the current value of three_d_secure_type



16
17
18
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 16

def three_d_secure_type
  @three_d_secure_type
end

#versionString

Returns the current value of version.

Returns:

  • (String)

    the current value of version



16
17
18
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 16

def version
  @version
end

Instance Method Details

#from_hash(hash) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 39

def from_hash(hash)
  super
  if hash.has_key? 'authenticationValue'
    @authentication_value = hash['authenticationValue']
  end
  if hash.has_key? 'directoryServerTransactionId'
    @directory_server_transaction_id = hash['directoryServerTransactionId']
  end
  if hash.has_key? 'eci'
    @eci = hash['eci']
  end
  if hash.has_key? 'threeDSecureType'
    @three_d_secure_type = hash['threeDSecureType']
  end
  if hash.has_key? 'version'
    @version = hash['version']
  end
end

#to_hHash

Returns:

  • (Hash)


29
30
31
32
33
34
35
36
37
# File 'lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb', line 29

def to_h
  hash = super
  hash['authenticationValue'] = @authentication_value unless @authentication_value.nil?
  hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
  hash['eci'] = @eci unless @eci.nil?
  hash['threeDSecureType'] = @three_d_secure_type unless @three_d_secure_type.nil?
  hash['version'] = @version unless @version.nil?
  hash
end