Class: Minfraud::Model::Subscores

Inherits:
Abstract
  • Object
show all
Defined in:
lib/minfraud/model/subscores.rb

Overview

Subscores for components that are used in calculating the riskScore.

Instance Attribute Summary collapse

Instance Attribute Details

#avs_resultFloat? (readonly)

The risk associated with the AVS result. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


13
14
15
# File 'lib/minfraud/model/subscores.rb', line 13

def avs_result
  @avs_result
end

#billing_addressFloat? (readonly)

The risk associated with the billing address. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


19
20
21
# File 'lib/minfraud/model/subscores.rb', line 19

def billing_address
  @billing_address
end

#billing_address_distance_to_ip_locationFloat? (readonly)

The risk associated with the distance between the billing address and the location for the given IP address. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


26
27
28
# File 'lib/minfraud/model/subscores.rb', line 26

def billing_address_distance_to_ip_location
  @billing_address_distance_to_ip_location
end

#browserFloat? (readonly)

The risk associated with the browser attributes such as the User-Agent and Accept-Language. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


33
34
35
# File 'lib/minfraud/model/subscores.rb', line 33

def browser
  @browser
end

#chargebackFloat? (readonly)

Individualized risk of chargeback for the given IP address given for your account and any shop ID passed. This is only available to users sending chargeback data to MaxMind. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


41
42
43
# File 'lib/minfraud/model/subscores.rb', line 41

def chargeback
  @chargeback
end

#countryFloat? (readonly)

The risk associated with the country the transaction originated from. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


47
48
49
# File 'lib/minfraud/model/subscores.rb', line 47

def country
  @country
end

#country_mismatchFloat? (readonly)

The risk associated with the combination of IP country, card issuer country, billing country, and shipping country. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


54
55
56
# File 'lib/minfraud/model/subscores.rb', line 54

def country_mismatch
  @country_mismatch
end

#cvv_resultFloat? (readonly)

The risk associated with the CVV result. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


60
61
62
# File 'lib/minfraud/model/subscores.rb', line 60

def cvv_result
  @cvv_result
end

#deviceFloat? (readonly)

The risk associated with the device. If present, this is a value in the range of 0.01 to 99.

Returns:

  • (Float, nil)


66
67
68
# File 'lib/minfraud/model/subscores.rb', line 66

def device
  @device
end

#email_addressFloat? (readonly)

The risk associated with the particular email address. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


72
73
74
# File 'lib/minfraud/model/subscores.rb', line 72

def email_address
  @email_address
end

#email_domainFloat? (readonly)

The general risk associated with the email domain. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


78
79
80
# File 'lib/minfraud/model/subscores.rb', line 78

def email_domain
  @email_domain
end

#email_local_partFloat? (readonly)

The risk associated with the email address local part (the part of the email address before the @ symbol). If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


85
86
87
# File 'lib/minfraud/model/subscores.rb', line 85

def email_local_part
  @email_local_part
end

#email_tenureFloat? (readonly)

The risk associated with the issuer ID number on the email domain. If present, this is a value in the range 0.01 to 99.

Deprecated effective August 29, 2019. This subscore will default to 1 and will be removed in a future release. The user tenure on email is reflected in the /subscores/email_address output.

Returns:

  • (Float, nil)


95
96
97
# File 'lib/minfraud/model/subscores.rb', line 95

def email_tenure
  @email_tenure
end

#ip_tenureFloat? (readonly)

The risk associated with the issuer ID number on the IP address. If present, this is a value in the range 0.01 to 99.

Deprecated effective August 29, 2019. This subscore will default to 1 and will be removed in a future release. The IP tenure is reflected in the overall risk score.

Returns:

  • (Float, nil)


105
106
107
# File 'lib/minfraud/model/subscores.rb', line 105

def ip_tenure
  @ip_tenure
end

#issuer_id_numberFloat? (readonly)

The risk associated with the particular issuer ID number (IIN) given the billing location and the history of usage of the IIN on your account and shop ID. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


113
114
115
# File 'lib/minfraud/model/subscores.rb', line 113

def issuer_id_number
  @issuer_id_number
end

#order_amountFloat? (readonly)

The risk associated with the particular order amount for your account and shop ID. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


119
120
121
# File 'lib/minfraud/model/subscores.rb', line 119

def order_amount
  @order_amount
end

#phone_numberFloat? (readonly)

The risk associated with the particular phone number. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


125
126
127
# File 'lib/minfraud/model/subscores.rb', line 125

def phone_number
  @phone_number
end

#shipping_addressFloat? (readonly)

The risk associated with the shipping address. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


131
132
133
# File 'lib/minfraud/model/subscores.rb', line 131

def shipping_address
  @shipping_address
end

#shipping_address_distance_to_ip_locationFloat? (readonly)

The risk associated with the distance between the shipping address and the IP location for the given IP address. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


138
139
140
# File 'lib/minfraud/model/subscores.rb', line 138

def shipping_address_distance_to_ip_location
  @shipping_address_distance_to_ip_location
end

#time_of_dayFloat? (readonly)

The risk associated with the local time of day of the transaction in the IP address location. If present, this is a value in the range 0.01 to 99.

Returns:

  • (Float, nil)


145
146
147
# File 'lib/minfraud/model/subscores.rb', line 145

def time_of_day
  @time_of_day
end