Class: GeoCerts::FraudScore

Inherits:
ApiObject show all
Defined in:
lib/geo_certs/fraud_score.rb

Instance Attribute Summary (collapse)

Attributes inherited from ApiObject

#response_parameters

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ApiObject

#errors, #errors=, #initialize, #warnings, #warnings=

Constructor Details

This class inherits a constructor from GeoCerts::ApiObject

Instance Attribute Details

- (Object) accept_language

Returns the value of attribute accept_language



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def accept_language
  @accept_language
end

- (Object) anonymous_proxy

Returns the value of attribute anonymous_proxy



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def anonymous_proxy
  @anonymous_proxy
end

- (Object) bin

Returns the value of attribute bin



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def bin
  @bin
end

- (Object) bin_country

Returns the value of attribute bin_country



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def bin_country
  @bin_country
end

- (Object) bin_match

Returns the value of attribute bin_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def bin_match
  @bin_match
end

- (Object) bin_name

Returns the value of attribute bin_name



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def bin_name
  @bin_name
end

- (Object) bin_name_match

Returns the value of attribute bin_name_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def bin_name_match
  @bin_name_match
end

- (Object) bin_phone

Returns the value of attribute bin_phone



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def bin_phone
  @bin_phone
end

- (Object) bin_phone_match

Returns the value of attribute bin_phone_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def bin_phone_match
  @bin_phone_match
end

- (Object) carder_email

Returns the value of attribute carder_email



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def carder_email
  @carder_email
end

- (Object) city

Returns the value of attribute city



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def city
  @city
end

- (Object) city_postal_match

Returns the value of attribute city_postal_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def city_postal_match
  @city_postal_match
end

- (Object) country

Returns the value of attribute country



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def country
  @country
end

- (Object) country_code

Returns the value of attribute country_code



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def country_code
  @country_code
end

- (Object) country_match

Returns the value of attribute country_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def country_match
  @country_match
end

- (Object) distance

Returns the value of attribute distance



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def distance
  @distance
end

- (Object) domain

Returns the value of attribute domain



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def domain
  @domain
end

- (Object) email

Returns the value of attribute email



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def email
  @email
end

- (Object) error

Returns the value of attribute error



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def error
  @error
end

- (Object) explanation

Returns the value of attribute explanation



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def explanation
  @explanation
end

- (Object) forwarded_ip

Returns the value of attribute forwarded_ip



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def forwarded_ip
  @forwarded_ip
end

- (Object) freemail

Returns the value of attribute freemail



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def freemail
  @freemail
end

- (Object) high_risk_country

Returns the value of attribute high_risk_country



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def high_risk_country
  @high_risk_country
end

- (Object) high_risk_password

Returns the value of attribute high_risk_password



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def high_risk_password
  @high_risk_password
end

- (Object) high_risk_username

Returns the value of attribute high_risk_username



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def high_risk_username
  @high_risk_username
end

- (Object) ip

Returns the value of attribute ip



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def ip
  @ip
end

- (Object) ip_city

Returns the value of attribute ip_city



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_city
  @ip_city
end

- (Object) ip_isp

Returns the value of attribute ip_isp



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_isp
  @ip_isp
end

- (Object) ip_latitude

Returns the value of attribute ip_latitude



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_latitude
  @ip_latitude
end

- (Object) ip_longitude

Returns the value of attribute ip_longitude



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_longitude
  @ip_longitude
end

- (Object) ip_org

Returns the value of attribute ip_org



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_org
  @ip_org
end

- (Object) ip_region

Returns the value of attribute ip_region



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ip_region
  @ip_region
end

- (Object) password

Returns the value of attribute password



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def password
  @password
end

- (Object) phone

Returns the value of attribute phone



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def phone
  @phone
end

- (Object) phone_in_billing_location

Returns the value of attribute phone_in_billing_location



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def phone_in_billing_location
  @phone_in_billing_location
end

- (Object) postal_code

Returns the value of attribute postal_code



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def postal_code
  @postal_code
end

- (Object) proxy_score

Returns the value of attribute proxy_score



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def proxy_score
  @proxy_score
end

- (Object) queries_remaining

Returns the value of attribute queries_remaining



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def queries_remaining
  @queries_remaining
end

- (Object) region

Returns the value of attribute region



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def region
  @region
end

- (Object) risk_score

Returns the value of attribute risk_score



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def risk_score
  @risk_score
end

- (Object) session_id

Returns the value of attribute session_id



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def session_id
  @session_id
end

- (Object) ship_city_postal_match

Returns the value of attribute ship_city_postal_match



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ship_city_postal_match
  @ship_city_postal_match
end

- (Object) ship_forward

Returns the value of attribute ship_forward



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def ship_forward
  @ship_forward
end

- (Object) shipping_address

Returns the value of attribute shipping_address



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def shipping_address
  @shipping_address
end

- (Object) shipping_city

Returns the value of attribute shipping_city



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def shipping_city
  @shipping_city
end

- (Object) shipping_country

Returns the value of attribute shipping_country



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def shipping_country
  @shipping_country
end

- (Object) shipping_postal_code

Returns the value of attribute shipping_postal_code



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def shipping_postal_code
  @shipping_postal_code
end

- (Object) shipping_region

Returns the value of attribute shipping_region



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def shipping_region
  @shipping_region
end

- (Object) transaction_id

Returns the value of attribute transaction_id



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def transaction_id
  @transaction_id
end

- (Object) transparent_proxy

Returns the value of attribute transparent_proxy



6
7
8
# File 'lib/geo_certs/fraud_score.rb', line 6

def transparent_proxy
  @transparent_proxy
end

- (Object) user_agent

Returns the value of attribute user_agent



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def user_agent
  @user_agent
end

- (Object) username

Returns the value of attribute username



5
6
7
# File 'lib/geo_certs/fraud_score.rb', line 5

def username
  @username
end

Class Method Details

+ (Object) query(attributes = {}, &block)



10
11
12
# File 'lib/geo_certs/fraud_score.rb', line 10

def self.query(attributes = {}, &block)
  new(attributes, &block).query
end

Instance Method Details

- (Object) query

Queries the GeoCerts FraudScore API for details about the payment being processed.



18
19
20
# File 'lib/geo_certs/fraud_score.rb', line 18

def query
  update_attributes(self.class.call_api {GeoCerts.api.query_fraud_score(api_attributes)['fraud-score']})
end