Class: Worldline::Connect::SDK::V1::Domain::DeviceFingerprintDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#payment_idString

Returns the current value of payment_id.

Returns:

  • (String)

    the current value of payment_id



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 14

def payment_id
  @payment_id
end

#raw_device_fingerprint_outputString

Returns the current value of raw_device_fingerprint_output.

Returns:

  • (String)

    the current value of raw_device_fingerprint_output



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 14

def raw_device_fingerprint_output
  @raw_device_fingerprint_output
end

Instance Method Details

#from_hash(hash) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 28

def from_hash(hash)
  super
  if hash.has_key? 'paymentId'
    @payment_id = hash['paymentId']
  end
  if hash.has_key? 'rawDeviceFingerprintOutput'
    @raw_device_fingerprint_output = hash['rawDeviceFingerprintOutput']
  end
end

#to_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 21

def to_h
  hash = super
  hash['paymentId'] = @payment_id unless @payment_id.nil?
  hash['rawDeviceFingerprintOutput'] = @raw_device_fingerprint_output unless @raw_device_fingerprint_output.nil?
  hash
end