Class: Callcredit::Checks::IDEnhanced

Inherits:
Object
  • Object
show all
Defined in:
lib/callcredit/checks/id_enhanced.rb

Constant Summary collapse

REQUIRED_INPUTS =
[:date_of_birth, :first_name, :last_name, :postcode]

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ IDEnhanced

Returns a new instance of IDEnhanced.



6
7
8
# File 'lib/callcredit/checks/id_enhanced.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#perform(data = {}) ⇒ Object



10
11
12
13
14
# File 'lib/callcredit/checks/id_enhanced.rb', line 10

def perform(data = {})
  check_params(data)
  response = @client.perform_check(:id_enhanced, personal_data: data)
  @client.config[:raw] ? response : Response.new(response)
end