Class: Worldline::Connect::SDK::V1::Domain::MicrosoftFraudResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#clause_nameString

Returns the current value of clause_name.

Returns:

  • (String)

    the current value of clause_name



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def clause_name
  @clause_name
end

#device_country_codeString

Returns the current value of device_country_code.

Returns:

  • (String)

    the current value of device_country_code



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def device_country_code
  @device_country_code
end

#device_idString

Returns the current value of device_id.

Returns:

  • (String)

    the current value of device_id



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def device_id
  @device_id
end

#fraud_scoreInteger

Returns the current value of fraud_score.

Returns:

  • (Integer)

    the current value of fraud_score



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def fraud_score
  @fraud_score
end

#policy_appliedString

Returns the current value of policy_applied.

Returns:

  • (String)

    the current value of policy_applied



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def policy_applied
  @policy_applied
end

#true_ip_addressString

Returns the current value of true_ip_address.

Returns:

  • (String)

    the current value of true_ip_address



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def true_ip_address
  @true_ip_address
end

#user_device_typeString

Returns the current value of user_device_type.

Returns:

  • (String)

    the current value of user_device_type



19
20
21
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19

def user_device_type
  @user_device_type
end

Instance Method Details

#from_hash(hash) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 48

def from_hash(hash)
  super
  if hash.has_key? 'clauseName'
    @clause_name = hash['clauseName']
  end
  if hash.has_key? 'deviceCountryCode'
    @device_country_code = hash['deviceCountryCode']
  end
  if hash.has_key? 'deviceId'
    @device_id = hash['deviceId']
  end
  if hash.has_key? 'fraudScore'
    @fraud_score = hash['fraudScore']
  end
  if hash.has_key? 'policyApplied'
    @policy_applied = hash['policyApplied']
  end
  if hash.has_key? 'trueIpAddress'
    @true_ip_address = hash['trueIpAddress']
  end
  if hash.has_key? 'userDeviceType'
    @user_device_type = hash['userDeviceType']
  end
end

#to_hHash

Returns:

  • (Hash)


36
37
38
39
40
41
42
43
44
45
46
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 36

def to_h
  hash = super
  hash['clauseName'] = @clause_name unless @clause_name.nil?
  hash['deviceCountryCode'] = @device_country_code unless @device_country_code.nil?
  hash['deviceId'] = @device_id unless @device_id.nil?
  hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
  hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
  hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
  hash['userDeviceType'] = @user_device_type unless @user_device_type.nil?
  hash
end