class CrowdPay::Verification
Attributes
address[RW]
birthDay[RW]
birthMonth[RW]
birthYear[RW]
city[RW]
created_by_ip_address[RW]
firstName[RW]
id[RW]
key[RW]
lastName[RW]
message[RW]
qualifiers[RW]
questions[RW]
request_data[RW]
response_body[RW]
state[RW]
summary[RW]
taxpayerId[RW]
zip[RW]
Public Class Methods
verify(data, bypass_validation)
click to toggle source
# File lib/crowd_pay/verification.rb, line 12 def self.verify(data, bypass_validation) url = 'identification/api/v1/ops/verify-identity' response = post(url, data, bypass_validation) obj = parse(response) obj.response_body = response.body obj.request_data = data.to_s obj end
verify_answers(data)
click to toggle source
# File lib/crowd_pay/verification.rb, line 21 def self.verify_answers(data) url = 'identification/api/v1/ops/verify-answers' response = post(url, data) obj = parse(response) obj.response_body = response.body obj.request_data = data.to_s obj end
Public Instance Methods
fail?()
click to toggle source
# File lib/crowd_pay/verification.rb, line 34 def fail? !pass? end
pass?()
click to toggle source
# File lib/crowd_pay/verification.rb, line 30 def pass? message.downcase == 'pass' || summary.try(:downcase) == 'pass' end
soft_fail?()
click to toggle source
# File lib/crowd_pay/verification.rb, line 38 def soft_fail? !questions.nil? end