Class: Trulioo::API::Configuration

Inherits:
Base
  • Object
show all
Defined in:
lib/trulioo/api/configuration.rb

Overview

Trulioo::Configuration manages the “Configuration” API endpoints. This will tell you how your account is configured.

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Trulioo::API::Base

Instance Method Details

#consents(country) ⇒ Object



8
9
10
11
# File 'lib/trulioo/api/configuration.rb', line 8

def consents(country)
  configuration_namespace
  get("consents/#{configuration_name}/#{country}", auth: true)
end

#country_codesObject



13
14
15
16
# File 'lib/trulioo/api/configuration.rb', line 13

def country_codes
  configuration_namespace
  get("countrycodes/#{configuration_name}", auth: true)
end

#country_subdivisions(country) ⇒ Object



18
19
20
21
# File 'lib/trulioo/api/configuration.rb', line 18

def country_subdivisions(country)
  configuration_namespace
  get("countrysubdivisions/#{country}", auth: true)
end

#document_types(country) ⇒ Object



23
24
25
26
# File 'lib/trulioo/api/configuration.rb', line 23

def document_types(country)
  configuration_namespace
  get("documentTypes/#{country}", auth: true)
end

#fields(country) ⇒ Object



28
29
30
31
# File 'lib/trulioo/api/configuration.rb', line 28

def fields(country)
  configuration_namespace
  get("fields/#{configuration_name}/#{country}", auth: true)
end