trulioo_sdk 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +155 -0
  3. data/docs/Address.md +44 -0
  4. data/docs/AppendedField.md +20 -0
  5. data/docs/Business.md +36 -0
  6. data/docs/BusinessApi.md +155 -0
  7. data/docs/BusinessRecord.md +24 -0
  8. data/docs/BusinessRegistrationNumber.md +30 -0
  9. data/docs/BusinessRegistrationNumberMask.md +22 -0
  10. data/docs/BusinessResult.md +22 -0
  11. data/docs/BusinessSearchRequest.md +28 -0
  12. data/docs/BusinessSearchRequestBusinessSearchModel.md +26 -0
  13. data/docs/BusinessSearchResponse.md +28 -0
  14. data/docs/BusinessSearchResponseIndustryCode.md +20 -0
  15. data/docs/Communication.md +24 -0
  16. data/docs/ConfigurationApi.md +761 -0
  17. data/docs/ConnectionApi.md +213 -0
  18. data/docs/Consent.md +22 -0
  19. data/docs/CountrySubdivision.md +22 -0
  20. data/docs/DataField.md +22 -0
  21. data/docs/DataFields.md +34 -0
  22. data/docs/DatasourceField.md +24 -0
  23. data/docs/DatasourceResult.md +28 -0
  24. data/docs/Document.md +28 -0
  25. data/docs/DriverLicence.md +26 -0
  26. data/docs/Location.md +42 -0
  27. data/docs/LocationAdditionalFields.md +18 -0
  28. data/docs/NationalId.md +28 -0
  29. data/docs/NormalizedDatasourceField.md +20 -0
  30. data/docs/NormalizedDatasourceGroupCountry.md +34 -0
  31. data/docs/Passport.md +28 -0
  32. data/docs/PersonInfo.md +38 -0
  33. data/docs/PersonInfoAdditionalFields.md +18 -0
  34. data/docs/Record.md +26 -0
  35. data/docs/RecordRule.md +20 -0
  36. data/docs/Result.md +62 -0
  37. data/docs/ServiceError.md +20 -0
  38. data/docs/TestEntityDataFields.md +36 -0
  39. data/docs/TransactionRecordResult.md +32 -0
  40. data/docs/TransactionRecordResultAllOf.md +18 -0
  41. data/docs/TransactionStatus.md +26 -0
  42. data/docs/VerificationsApi.md +529 -0
  43. data/docs/VerifyRequest.md +38 -0
  44. data/docs/VerifyResult.md +30 -0
  45. data/lib/trulioo_sdk.rb +77 -0
  46. data/lib/trulioo_sdk/api/business_api.rb +158 -0
  47. data/lib/trulioo_sdk/api/configuration_api.rb +750 -0
  48. data/lib/trulioo_sdk/api/connection_api.rb +221 -0
  49. data/lib/trulioo_sdk/api/verifications_api.rb +515 -0
  50. data/lib/trulioo_sdk/api_client.rb +391 -0
  51. data/lib/trulioo_sdk/api_error.rb +53 -0
  52. data/lib/trulioo_sdk/configuration.rb +268 -0
  53. data/lib/trulioo_sdk/models/address.rb +356 -0
  54. data/lib/trulioo_sdk/models/appended_field.rb +237 -0
  55. data/lib/trulioo_sdk/models/business.rb +318 -0
  56. data/lib/trulioo_sdk/models/business_record.rb +261 -0
  57. data/lib/trulioo_sdk/models/business_registration_number.rb +410 -0
  58. data/lib/trulioo_sdk/models/business_registration_number_mask.rb +272 -0
  59. data/lib/trulioo_sdk/models/business_result.rb +249 -0
  60. data/lib/trulioo_sdk/models/business_search_request.rb +306 -0
  61. data/lib/trulioo_sdk/models/business_search_request_business_search_model.rb +364 -0
  62. data/lib/trulioo_sdk/models/business_search_response.rb +279 -0
  63. data/lib/trulioo_sdk/models/business_search_response_industry_code.rb +236 -0
  64. data/lib/trulioo_sdk/models/communication.rb +354 -0
  65. data/lib/trulioo_sdk/models/consent.rb +249 -0
  66. data/lib/trulioo_sdk/models/country_subdivision.rb +320 -0
  67. data/lib/trulioo_sdk/models/data_field.rb +245 -0
  68. data/lib/trulioo_sdk/models/data_fields.rb +306 -0
  69. data/lib/trulioo_sdk/models/datasource_field.rb +254 -0
  70. data/lib/trulioo_sdk/models/datasource_result.rb +281 -0
  71. data/lib/trulioo_sdk/models/document.rb +278 -0
  72. data/lib/trulioo_sdk/models/driver_licence.rb +268 -0
  73. data/lib/trulioo_sdk/models/location.rb +347 -0
  74. data/lib/trulioo_sdk/models/location_additional_fields.rb +229 -0
  75. data/lib/trulioo_sdk/models/national_id.rb +277 -0
  76. data/lib/trulioo_sdk/models/normalized_datasource_field.rb +286 -0
  77. data/lib/trulioo_sdk/models/normalized_datasource_group_country.rb +437 -0
  78. data/lib/trulioo_sdk/models/passport.rb +326 -0
  79. data/lib/trulioo_sdk/models/person_info.rb +448 -0
  80. data/lib/trulioo_sdk/models/person_info_additional_fields.rb +228 -0
  81. data/lib/trulioo_sdk/models/record.rb +270 -0
  82. data/lib/trulioo_sdk/models/record_rule.rb +239 -0
  83. data/lib/trulioo_sdk/models/result.rb +440 -0
  84. data/lib/trulioo_sdk/models/service_error.rb +236 -0
  85. data/lib/trulioo_sdk/models/test_entity_data_fields.rb +315 -0
  86. data/lib/trulioo_sdk/models/transaction_record_result.rb +307 -0
  87. data/lib/trulioo_sdk/models/transaction_record_result_all_of.rb +229 -0
  88. data/lib/trulioo_sdk/models/transaction_status.rb +341 -0
  89. data/lib/trulioo_sdk/models/verify_request.rb +410 -0
  90. data/lib/trulioo_sdk/models/verify_result.rb +288 -0
  91. data/lib/trulioo_sdk/version.rb +11 -0
  92. metadata +223 -0
@@ -0,0 +1,30 @@
1
+ # Trulioo::BusinessRegistrationNumber
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The name of the business registration number | [optional] |
8
+ | **description** | **String** | Brief description of the business registration number | [optional] |
9
+ | **country** | **String** | Country to which the business registration number applies | [optional] |
10
+ | **jurisdiction** | **String** | Optional jurisdiction to which the business registration number applies | [optional] |
11
+ | **supported** | **Boolean** | Whether the business registration number is supported by Trulioo's systems | [optional] |
12
+ | **type** | **String** | The specified type of this business registration number | [optional] |
13
+ | **masks** | [**Array<BusinessRegistrationNumberMask>**](BusinessRegistrationNumberMask.md) | The mask(s) describing this business registration number | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'trulioo_sdk'
19
+
20
+ instance = Trulioo::BusinessRegistrationNumber.new(
21
+ name: null,
22
+ description: null,
23
+ country: null,
24
+ jurisdiction: null,
25
+ supported: null,
26
+ type: null,
27
+ masks: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # Trulioo::BusinessRegistrationNumberMask
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **mask** | **String** | The mask used to validate the format of the business registration number | [optional] |
8
+ | **ignore_whitespace** | **Boolean** | Flag showing whether we can ignore whitespace | [optional] |
9
+ | **ignore_special_character** | **Boolean** | Flag showing whether we can ignore special character | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trulioo_sdk'
15
+
16
+ instance = Trulioo::BusinessRegistrationNumberMask.new(
17
+ mask: null,
18
+ ignore_whitespace: null,
19
+ ignore_special_character: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Trulioo::BusinessResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **results** | [**Array<Result>**](Result.md) | | [optional] |
8
+ | **datasource_name** | **String** | | [optional] |
9
+ | **errors** | [**Array<ServiceError>**](ServiceError.md) | | [optional][readonly] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trulioo_sdk'
15
+
16
+ instance = Trulioo::BusinessResult.new(
17
+ results: null,
18
+ datasource_name: null,
19
+ errors: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # Trulioo::BusinessSearchRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **accept_trulioo_terms_and_conditions** | **Boolean** | Indicate that Trulioo terms and conditions are accepted | [optional] |
8
+ | **call_back_url** | **String** | | [optional] |
9
+ | **timeout** | **Integer** | | [optional] |
10
+ | **consent_for_data_sources** | **Array<String>** | Some datasources required your customer provide consent to access them. Set that the customer has provided consent for each datasource that requires one. If consent is not provided the datasource will not be queried. | [optional] |
11
+ | **business** | [**BusinessSearchRequestBusinessSearchModel**](BusinessSearchRequestBusinessSearchModel.md) | | [optional] |
12
+ | **country_code** | **String** | The country code for which the verification needs to be performed. | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trulioo_sdk'
18
+
19
+ instance = Trulioo::BusinessSearchRequest.new(
20
+ accept_trulioo_terms_and_conditions: null,
21
+ call_back_url: null,
22
+ timeout: null,
23
+ consent_for_data_sources: null,
24
+ business: null,
25
+ country_code: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,26 @@
1
+ # Trulioo::BusinessSearchRequestBusinessSearchModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **business_name** | **String** | Name of the business to be verified | [optional] |
8
+ | **website** | **String** | Website of the business | [optional] |
9
+ | **jurisdiction_of_incorporation** | **String** | Jurisdiction Of Incorporation of the business to be verified | [optional] |
10
+ | **duns_number** | **String** | DUNS number of the business to be verified | [optional] |
11
+ | **location** | [**Location**](Location.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'trulioo_sdk'
17
+
18
+ instance = Trulioo::BusinessSearchRequestBusinessSearchModel.new(
19
+ business_name: null,
20
+ website: null,
21
+ jurisdiction_of_incorporation: null,
22
+ duns_number: null,
23
+ location: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,28 @@
1
+ # Trulioo::BusinessSearchResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **transaction_id** | **String** | The id for the transaction it will be a GUID | [optional] |
8
+ | **uploaded_dt** | **Time** | Time in UTC | [optional] |
9
+ | **country_code** | **String** | The country code for which the verification was performed. | [optional] |
10
+ | **product_name** | **String** | Product Name | [optional] |
11
+ | **record** | [**BusinessRecord**](BusinessRecord.md) | | [optional] |
12
+ | **errors** | [**Array<ServiceError>**](ServiceError.md) | Collection of record errors | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trulioo_sdk'
18
+
19
+ instance = Trulioo::BusinessSearchResponse.new(
20
+ transaction_id: null,
21
+ uploaded_dt: null,
22
+ country_code: null,
23
+ product_name: null,
24
+ record: null,
25
+ errors: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # Trulioo::BusinessSearchResponseIndustryCode
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trulioo_sdk'
14
+
15
+ instance = Trulioo::BusinessSearchResponseIndustryCode.new(
16
+ code: null,
17
+ description: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Trulioo::Communication
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **mobile_number** | **String** | Mobile phone number | [optional] |
8
+ | **telephone** | **String** | Telephone number of the individual to be verified | [optional] |
9
+ | **telephone2** | **String** | Additional Phone/Mobile Number of the individual to be verified | [optional] |
10
+ | **email_address** | **String** | Email address of the individual to be verified | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'trulioo_sdk'
16
+
17
+ instance = Trulioo::Communication.new(
18
+ mobile_number: null,
19
+ telephone: null,
20
+ telephone2: null,
21
+ email_address: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,761 @@
1
+ # Trulioo::ConfigurationApi
2
+
3
+ All URIs are relative to *https://gateway.trulioo.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_business_registration_numbers**](ConfigurationApi.md#get_business_registration_numbers) | **GET** /{mode}/configuration/v1/businessregistrationnumbers/{countryCode}/{jurisdictionCode} | Get Business Registration Numbers |
8
+ | [**get_consents**](ConfigurationApi.md#get_consents) | **GET** /{mode}/configuration/v1/consents/{configurationName}/{countryCode} | Get Consents |
9
+ | [**get_country_codes**](ConfigurationApi.md#get_country_codes) | **GET** /{mode}/configuration/v1/countrycodes/{configurationName} | Get Country Codes |
10
+ | [**get_country_subdivisions**](ConfigurationApi.md#get_country_subdivisions) | **GET** /{mode}/configuration/v1/countrysubdivisions/{countryCode} | Get Country Subdivisions |
11
+ | [**get_datasources**](ConfigurationApi.md#get_datasources) | **GET** /{mode}/configuration/v1/datasources/{configurationName}/{countryCode} | Get Datasources |
12
+ | [**get_detailed_consents**](ConfigurationApi.md#get_detailed_consents) | **GET** /{mode}/configuration/v1/detailedConsents/{configurationName}/{countryCode} | Get Detailed Consents |
13
+ | [**get_document_types**](ConfigurationApi.md#get_document_types) | **GET** /{mode}/configuration/v1/documentTypes/{countryCode} | Get Document Types |
14
+ | [**get_fields**](ConfigurationApi.md#get_fields) | **GET** /{mode}/configuration/v1/fields/{configurationName}/{countryCode} | Get Fields |
15
+ | [**get_recommended_fields**](ConfigurationApi.md#get_recommended_fields) | **GET** /{mode}/configuration/v1/recommendedfields/{configurationName}/{countryCode} | Get Recommended Fields |
16
+ | [**get_test_entities**](ConfigurationApi.md#get_test_entities) | **GET** /{mode}/configuration/v1/testentities/{configurationName}/{countryCode} | Get Test Entities |
17
+
18
+
19
+ ## get_business_registration_numbers
20
+
21
+ > <Array<BusinessRegistrationNumber>> get_business_registration_numbers(mode, country_code, jurisdiction_code)
22
+
23
+ Get Business Registration Numbers
24
+
25
+ Gets the currently configured business registration numbers, for country and an optionally supplied jurisdiction
26
+
27
+ ### Examples
28
+
29
+ ```ruby
30
+ require 'time'
31
+ require 'trulioo_sdk'
32
+ # setup authorization
33
+ Trulioo.configure do |config|
34
+ # Configure API key authorization: ApiKeyAuth
35
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
36
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
38
+ end
39
+
40
+ api_instance = Trulioo::ConfigurationApi.new
41
+ mode = 'mode_example' # String | trial or live
42
+ country_code = 'country_code_example' # String | Country alpha2 code, get via the call to https://developer.trulioo.com/reference#getcountrycodes
43
+ jurisdiction_code = 'jurisdiction_code_example' # String | Optional jurisdiction code, get via the call to https://developer.trulioo.com/reference#getcountrysubdivisions
44
+
45
+ begin
46
+ # Get Business Registration Numbers
47
+ result = api_instance.get_business_registration_numbers(mode, country_code, jurisdiction_code)
48
+ p result
49
+ rescue Trulioo::ApiError => e
50
+ puts "Error when calling ConfigurationApi->get_business_registration_numbers: #{e}"
51
+ end
52
+ ```
53
+
54
+ #### Using the get_business_registration_numbers_with_http_info variant
55
+
56
+ This returns an Array which contains the response data, status code and headers.
57
+
58
+ > <Array(<Array<BusinessRegistrationNumber>>, Integer, Hash)> get_business_registration_numbers_with_http_info(mode, country_code, jurisdiction_code)
59
+
60
+ ```ruby
61
+ begin
62
+ # Get Business Registration Numbers
63
+ data, status_code, headers = api_instance.get_business_registration_numbers_with_http_info(mode, country_code, jurisdiction_code)
64
+ p status_code # => 2xx
65
+ p headers # => { ... }
66
+ p data # => <Array<BusinessRegistrationNumber>>
67
+ rescue Trulioo::ApiError => e
68
+ puts "Error when calling ConfigurationApi->get_business_registration_numbers_with_http_info: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ | Name | Type | Description | Notes |
75
+ | ---- | ---- | ----------- | ----- |
76
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
77
+ | **country_code** | **String** | Country alpha2 code, get via the call to https://developer.trulioo.com/reference#getcountrycodes | |
78
+ | **jurisdiction_code** | **String** | Optional jurisdiction code, get via the call to https://developer.trulioo.com/reference#getcountrysubdivisions | |
79
+
80
+ ### Return type
81
+
82
+ [**Array&lt;BusinessRegistrationNumber&gt;**](BusinessRegistrationNumber.md)
83
+
84
+ ### Authorization
85
+
86
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: Not defined
91
+ - **Accept**: application/json, text/json
92
+
93
+
94
+ ## get_consents
95
+
96
+ > Array&lt;String&gt; get_consents(mode, configuration_name, country_code)
97
+
98
+ Get Consents
99
+
100
+ This method retrieves the consents required for data sources currently configured in your account configuration. The response for this method contains a collection of strings that Verify method's ConsentForDataSources field expects to perform a verification using those data sources. A failure to provide an element from the string collection will lead to a <a class=\"link-to-api\" href=\"#errors\">1005</a> service error.
101
+
102
+ ### Examples
103
+
104
+ ```ruby
105
+ require 'time'
106
+ require 'trulioo_sdk'
107
+ # setup authorization
108
+ Trulioo.configure do |config|
109
+ # Configure API key authorization: ApiKeyAuth
110
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
111
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
112
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
113
+ end
114
+
115
+ api_instance = Trulioo::ConfigurationApi.new
116
+ mode = 'mode_example' # String | trial or live
117
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
118
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
119
+
120
+ begin
121
+ # Get Consents
122
+ result = api_instance.get_consents(mode, configuration_name, country_code)
123
+ p result
124
+ rescue Trulioo::ApiError => e
125
+ puts "Error when calling ConfigurationApi->get_consents: #{e}"
126
+ end
127
+ ```
128
+
129
+ #### Using the get_consents_with_http_info variant
130
+
131
+ This returns an Array which contains the response data, status code and headers.
132
+
133
+ > <Array(Array&lt;String&gt;, Integer, Hash)> get_consents_with_http_info(mode, configuration_name, country_code)
134
+
135
+ ```ruby
136
+ begin
137
+ # Get Consents
138
+ data, status_code, headers = api_instance.get_consents_with_http_info(mode, configuration_name, country_code)
139
+ p status_code # => 2xx
140
+ p headers # => { ... }
141
+ p data # => Array&lt;String&gt;
142
+ rescue Trulioo::ApiError => e
143
+ puts "Error when calling ConfigurationApi->get_consents_with_http_info: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ | Name | Type | Description | Notes |
150
+ | ---- | ---- | ----------- | ----- |
151
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
152
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
153
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
154
+
155
+ ### Return type
156
+
157
+ **Array&lt;String&gt;**
158
+
159
+ ### Authorization
160
+
161
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json, text/json
167
+
168
+
169
+ ## get_country_codes
170
+
171
+ > Array&lt;String&gt; get_country_codes(mode, configuration_name)
172
+
173
+ Get Country Codes
174
+
175
+ This method retrieves all the countries that are available to perform a verification.
176
+
177
+ ### Examples
178
+
179
+ ```ruby
180
+ require 'time'
181
+ require 'trulioo_sdk'
182
+ # setup authorization
183
+ Trulioo.configure do |config|
184
+ # Configure API key authorization: ApiKeyAuth
185
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
186
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
187
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
188
+ end
189
+
190
+ api_instance = Trulioo::ConfigurationApi.new
191
+ mode = 'mode_example' # String | trial or live
192
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
193
+
194
+ begin
195
+ # Get Country Codes
196
+ result = api_instance.get_country_codes(mode, configuration_name)
197
+ p result
198
+ rescue Trulioo::ApiError => e
199
+ puts "Error when calling ConfigurationApi->get_country_codes: #{e}"
200
+ end
201
+ ```
202
+
203
+ #### Using the get_country_codes_with_http_info variant
204
+
205
+ This returns an Array which contains the response data, status code and headers.
206
+
207
+ > <Array(Array&lt;String&gt;, Integer, Hash)> get_country_codes_with_http_info(mode, configuration_name)
208
+
209
+ ```ruby
210
+ begin
211
+ # Get Country Codes
212
+ data, status_code, headers = api_instance.get_country_codes_with_http_info(mode, configuration_name)
213
+ p status_code # => 2xx
214
+ p headers # => { ... }
215
+ p data # => Array&lt;String&gt;
216
+ rescue Trulioo::ApiError => e
217
+ puts "Error when calling ConfigurationApi->get_country_codes_with_http_info: #{e}"
218
+ end
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ | Name | Type | Description | Notes |
224
+ | ---- | ---- | ----------- | ----- |
225
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
226
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
227
+
228
+ ### Return type
229
+
230
+ **Array&lt;String&gt;**
231
+
232
+ ### Authorization
233
+
234
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: application/json, text/json
240
+
241
+
242
+ ## get_country_subdivisions
243
+
244
+ > <Array<CountrySubdivision>> get_country_subdivisions(mode, country_code)
245
+
246
+ Get Country Subdivisions
247
+
248
+ Gets the provinces states or other subdivisions for a country, mostly matches ISO 3166-2
249
+
250
+ ### Examples
251
+
252
+ ```ruby
253
+ require 'time'
254
+ require 'trulioo_sdk'
255
+ # setup authorization
256
+ Trulioo.configure do |config|
257
+ # Configure API key authorization: ApiKeyAuth
258
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
259
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
260
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
261
+ end
262
+
263
+ api_instance = Trulioo::ConfigurationApi.new
264
+ mode = 'mode_example' # String | trial or live
265
+ country_code = 'country_code_example' # String | Country alpha2 code, get the the call to countrycodes
266
+
267
+ begin
268
+ # Get Country Subdivisions
269
+ result = api_instance.get_country_subdivisions(mode, country_code)
270
+ p result
271
+ rescue Trulioo::ApiError => e
272
+ puts "Error when calling ConfigurationApi->get_country_subdivisions: #{e}"
273
+ end
274
+ ```
275
+
276
+ #### Using the get_country_subdivisions_with_http_info variant
277
+
278
+ This returns an Array which contains the response data, status code and headers.
279
+
280
+ > <Array(<Array<CountrySubdivision>>, Integer, Hash)> get_country_subdivisions_with_http_info(mode, country_code)
281
+
282
+ ```ruby
283
+ begin
284
+ # Get Country Subdivisions
285
+ data, status_code, headers = api_instance.get_country_subdivisions_with_http_info(mode, country_code)
286
+ p status_code # => 2xx
287
+ p headers # => { ... }
288
+ p data # => <Array<CountrySubdivision>>
289
+ rescue Trulioo::ApiError => e
290
+ puts "Error when calling ConfigurationApi->get_country_subdivisions_with_http_info: #{e}"
291
+ end
292
+ ```
293
+
294
+ ### Parameters
295
+
296
+ | Name | Type | Description | Notes |
297
+ | ---- | ---- | ----------- | ----- |
298
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
299
+ | **country_code** | **String** | Country alpha2 code, get the the call to countrycodes | |
300
+
301
+ ### Return type
302
+
303
+ [**Array&lt;CountrySubdivision&gt;**](CountrySubdivision.md)
304
+
305
+ ### Authorization
306
+
307
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
308
+
309
+ ### HTTP request headers
310
+
311
+ - **Content-Type**: Not defined
312
+ - **Accept**: application/json, text/json
313
+
314
+
315
+ ## get_datasources
316
+
317
+ > <Array<NormalizedDatasourceGroupCountry>> get_datasources(mode, configuration_name, country_code)
318
+
319
+ Get Datasources
320
+
321
+ Gets datasource groups configured for your product and country.
322
+
323
+ ### Examples
324
+
325
+ ```ruby
326
+ require 'time'
327
+ require 'trulioo_sdk'
328
+ # setup authorization
329
+ Trulioo.configure do |config|
330
+ # Configure API key authorization: ApiKeyAuth
331
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
332
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
333
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
334
+ end
335
+
336
+ api_instance = Trulioo::ConfigurationApi.new
337
+ mode = 'mode_example' # String | trial or live
338
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
339
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
340
+
341
+ begin
342
+ # Get Datasources
343
+ result = api_instance.get_datasources(mode, configuration_name, country_code)
344
+ p result
345
+ rescue Trulioo::ApiError => e
346
+ puts "Error when calling ConfigurationApi->get_datasources: #{e}"
347
+ end
348
+ ```
349
+
350
+ #### Using the get_datasources_with_http_info variant
351
+
352
+ This returns an Array which contains the response data, status code and headers.
353
+
354
+ > <Array(<Array<NormalizedDatasourceGroupCountry>>, Integer, Hash)> get_datasources_with_http_info(mode, configuration_name, country_code)
355
+
356
+ ```ruby
357
+ begin
358
+ # Get Datasources
359
+ data, status_code, headers = api_instance.get_datasources_with_http_info(mode, configuration_name, country_code)
360
+ p status_code # => 2xx
361
+ p headers # => { ... }
362
+ p data # => <Array<NormalizedDatasourceGroupCountry>>
363
+ rescue Trulioo::ApiError => e
364
+ puts "Error when calling ConfigurationApi->get_datasources_with_http_info: #{e}"
365
+ end
366
+ ```
367
+
368
+ ### Parameters
369
+
370
+ | Name | Type | Description | Notes |
371
+ | ---- | ---- | ----------- | ----- |
372
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
373
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
374
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
375
+
376
+ ### Return type
377
+
378
+ [**Array&lt;NormalizedDatasourceGroupCountry&gt;**](NormalizedDatasourceGroupCountry.md)
379
+
380
+ ### Authorization
381
+
382
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
383
+
384
+ ### HTTP request headers
385
+
386
+ - **Content-Type**: Not defined
387
+ - **Accept**: application/json, text/json
388
+
389
+
390
+ ## get_detailed_consents
391
+
392
+ > <Array<Consent>> get_detailed_consents(mode, configuration_name, country_code)
393
+
394
+ Get Detailed Consents
395
+
396
+ This method retrieves details about consents required for data sources currently configured in your account configuration. The response for this method contains a collection of objects. Each object contains the Name of the data source, Text outlining what the user is consenting to, and optionally a Url where the user can find more information about how their data will be used. Failure to provide a Name from the object collection will lead to a <a class=\"link-to-api\" href=\"#errors\">1005</a> service error.
397
+
398
+ ### Examples
399
+
400
+ ```ruby
401
+ require 'time'
402
+ require 'trulioo_sdk'
403
+ # setup authorization
404
+ Trulioo.configure do |config|
405
+ # Configure API key authorization: ApiKeyAuth
406
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
407
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
408
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
409
+ end
410
+
411
+ api_instance = Trulioo::ConfigurationApi.new
412
+ mode = 'mode_example' # String | trial or live
413
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
414
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
415
+
416
+ begin
417
+ # Get Detailed Consents
418
+ result = api_instance.get_detailed_consents(mode, configuration_name, country_code)
419
+ p result
420
+ rescue Trulioo::ApiError => e
421
+ puts "Error when calling ConfigurationApi->get_detailed_consents: #{e}"
422
+ end
423
+ ```
424
+
425
+ #### Using the get_detailed_consents_with_http_info variant
426
+
427
+ This returns an Array which contains the response data, status code and headers.
428
+
429
+ > <Array(<Array<Consent>>, Integer, Hash)> get_detailed_consents_with_http_info(mode, configuration_name, country_code)
430
+
431
+ ```ruby
432
+ begin
433
+ # Get Detailed Consents
434
+ data, status_code, headers = api_instance.get_detailed_consents_with_http_info(mode, configuration_name, country_code)
435
+ p status_code # => 2xx
436
+ p headers # => { ... }
437
+ p data # => <Array<Consent>>
438
+ rescue Trulioo::ApiError => e
439
+ puts "Error when calling ConfigurationApi->get_detailed_consents_with_http_info: #{e}"
440
+ end
441
+ ```
442
+
443
+ ### Parameters
444
+
445
+ | Name | Type | Description | Notes |
446
+ | ---- | ---- | ----------- | ----- |
447
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
448
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
449
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
450
+
451
+ ### Return type
452
+
453
+ [**Array&lt;Consent&gt;**](Consent.md)
454
+
455
+ ### Authorization
456
+
457
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
458
+
459
+ ### HTTP request headers
460
+
461
+ - **Content-Type**: Not defined
462
+ - **Accept**: application/json, text/json
463
+
464
+
465
+ ## get_document_types
466
+
467
+ > Hash&lt;String, Array&lt;String&gt;&gt; get_document_types(mode, country_code)
468
+
469
+ Get Document Types
470
+
471
+ Gets the document types available for a country.
472
+
473
+ ### Examples
474
+
475
+ ```ruby
476
+ require 'time'
477
+ require 'trulioo_sdk'
478
+ # setup authorization
479
+ Trulioo.configure do |config|
480
+ # Configure API key authorization: ApiKeyAuth
481
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
482
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
483
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
484
+ end
485
+
486
+ api_instance = Trulioo::ConfigurationApi.new
487
+ mode = 'mode_example' # String | trial or live
488
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
489
+
490
+ begin
491
+ # Get Document Types
492
+ result = api_instance.get_document_types(mode, country_code)
493
+ p result
494
+ rescue Trulioo::ApiError => e
495
+ puts "Error when calling ConfigurationApi->get_document_types: #{e}"
496
+ end
497
+ ```
498
+
499
+ #### Using the get_document_types_with_http_info variant
500
+
501
+ This returns an Array which contains the response data, status code and headers.
502
+
503
+ > <Array(Hash&lt;String, Array&lt;String&gt;&gt;, Integer, Hash)> get_document_types_with_http_info(mode, country_code)
504
+
505
+ ```ruby
506
+ begin
507
+ # Get Document Types
508
+ data, status_code, headers = api_instance.get_document_types_with_http_info(mode, country_code)
509
+ p status_code # => 2xx
510
+ p headers # => { ... }
511
+ p data # => Hash&lt;String, Array&lt;String&gt;&gt;
512
+ rescue Trulioo::ApiError => e
513
+ puts "Error when calling ConfigurationApi->get_document_types_with_http_info: #{e}"
514
+ end
515
+ ```
516
+
517
+ ### Parameters
518
+
519
+ | Name | Type | Description | Notes |
520
+ | ---- | ---- | ----------- | ----- |
521
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
522
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
523
+
524
+ ### Return type
525
+
526
+ **Hash&lt;String, Array&lt;String&gt;&gt;**
527
+
528
+ ### Authorization
529
+
530
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
531
+
532
+ ### HTTP request headers
533
+
534
+ - **Content-Type**: Not defined
535
+ - **Accept**: application/json, text/json
536
+
537
+
538
+ ## get_fields
539
+
540
+ > Object get_fields(mode, configuration_name, country_code)
541
+
542
+ Get Fields
543
+
544
+ Generates json schema for the API, the schema is dynamic based on the country and configuration you are using. http://json-schema.org/documentation.html
545
+
546
+ ### Examples
547
+
548
+ ```ruby
549
+ require 'time'
550
+ require 'trulioo_sdk'
551
+ # setup authorization
552
+ Trulioo.configure do |config|
553
+ # Configure API key authorization: ApiKeyAuth
554
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
555
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
556
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
557
+ end
558
+
559
+ api_instance = Trulioo::ConfigurationApi.new
560
+ mode = 'mode_example' # String | trial or live
561
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
562
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
563
+
564
+ begin
565
+ # Get Fields
566
+ result = api_instance.get_fields(mode, configuration_name, country_code)
567
+ p result
568
+ rescue Trulioo::ApiError => e
569
+ puts "Error when calling ConfigurationApi->get_fields: #{e}"
570
+ end
571
+ ```
572
+
573
+ #### Using the get_fields_with_http_info variant
574
+
575
+ This returns an Array which contains the response data, status code and headers.
576
+
577
+ > <Array(Object, Integer, Hash)> get_fields_with_http_info(mode, configuration_name, country_code)
578
+
579
+ ```ruby
580
+ begin
581
+ # Get Fields
582
+ data, status_code, headers = api_instance.get_fields_with_http_info(mode, configuration_name, country_code)
583
+ p status_code # => 2xx
584
+ p headers # => { ... }
585
+ p data # => Object
586
+ rescue Trulioo::ApiError => e
587
+ puts "Error when calling ConfigurationApi->get_fields_with_http_info: #{e}"
588
+ end
589
+ ```
590
+
591
+ ### Parameters
592
+
593
+ | Name | Type | Description | Notes |
594
+ | ---- | ---- | ----------- | ----- |
595
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
596
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
597
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
598
+
599
+ ### Return type
600
+
601
+ **Object**
602
+
603
+ ### Authorization
604
+
605
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
606
+
607
+ ### HTTP request headers
608
+
609
+ - **Content-Type**: Not defined
610
+ - **Accept**: application/json, text/json
611
+
612
+
613
+ ## get_recommended_fields
614
+
615
+ > Object get_recommended_fields(mode, configuration_name, country_code)
616
+
617
+ Get Recommended Fields
618
+
619
+ Generates json schema for the API, the schema is dynamic based on the recommendedFields country and account you are using. http://json-schema.org/documentation.html
620
+
621
+ ### Examples
622
+
623
+ ```ruby
624
+ require 'time'
625
+ require 'trulioo_sdk'
626
+ # setup authorization
627
+ Trulioo.configure do |config|
628
+ # Configure API key authorization: ApiKeyAuth
629
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
630
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
631
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
632
+ end
633
+
634
+ api_instance = Trulioo::ConfigurationApi.new
635
+ mode = 'mode_example' # String | trial or live
636
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
637
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
638
+
639
+ begin
640
+ # Get Recommended Fields
641
+ result = api_instance.get_recommended_fields(mode, configuration_name, country_code)
642
+ p result
643
+ rescue Trulioo::ApiError => e
644
+ puts "Error when calling ConfigurationApi->get_recommended_fields: #{e}"
645
+ end
646
+ ```
647
+
648
+ #### Using the get_recommended_fields_with_http_info variant
649
+
650
+ This returns an Array which contains the response data, status code and headers.
651
+
652
+ > <Array(Object, Integer, Hash)> get_recommended_fields_with_http_info(mode, configuration_name, country_code)
653
+
654
+ ```ruby
655
+ begin
656
+ # Get Recommended Fields
657
+ data, status_code, headers = api_instance.get_recommended_fields_with_http_info(mode, configuration_name, country_code)
658
+ p status_code # => 2xx
659
+ p headers # => { ... }
660
+ p data # => Object
661
+ rescue Trulioo::ApiError => e
662
+ puts "Error when calling ConfigurationApi->get_recommended_fields_with_http_info: #{e}"
663
+ end
664
+ ```
665
+
666
+ ### Parameters
667
+
668
+ | Name | Type | Description | Notes |
669
+ | ---- | ---- | ----------- | ----- |
670
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
671
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
672
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
673
+
674
+ ### Return type
675
+
676
+ **Object**
677
+
678
+ ### Authorization
679
+
680
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
681
+
682
+ ### HTTP request headers
683
+
684
+ - **Content-Type**: Not defined
685
+ - **Accept**: application/json, text/json
686
+
687
+
688
+ ## get_test_entities
689
+
690
+ > <Array<TestEntityDataFields>> get_test_entities(mode, configuration_name, country_code)
691
+
692
+ Get Test Entities
693
+
694
+ Gets the test entities configured for your product and country.
695
+
696
+ ### Examples
697
+
698
+ ```ruby
699
+ require 'time'
700
+ require 'trulioo_sdk'
701
+ # setup authorization
702
+ Trulioo.configure do |config|
703
+ # Configure API key authorization: ApiKeyAuth
704
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
705
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
706
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
707
+ end
708
+
709
+ api_instance = Trulioo::ConfigurationApi.new
710
+ mode = 'mode_example' # String | trial or live
711
+ configuration_name = 'configuration_name_example' # String | The product configuration. Currently \"Identity Verification\" for all products.
712
+ country_code = 'country_code_example' # String | Call CountryCodes to get the countries available to you.
713
+
714
+ begin
715
+ # Get Test Entities
716
+ result = api_instance.get_test_entities(mode, configuration_name, country_code)
717
+ p result
718
+ rescue Trulioo::ApiError => e
719
+ puts "Error when calling ConfigurationApi->get_test_entities: #{e}"
720
+ end
721
+ ```
722
+
723
+ #### Using the get_test_entities_with_http_info variant
724
+
725
+ This returns an Array which contains the response data, status code and headers.
726
+
727
+ > <Array(<Array<TestEntityDataFields>>, Integer, Hash)> get_test_entities_with_http_info(mode, configuration_name, country_code)
728
+
729
+ ```ruby
730
+ begin
731
+ # Get Test Entities
732
+ data, status_code, headers = api_instance.get_test_entities_with_http_info(mode, configuration_name, country_code)
733
+ p status_code # => 2xx
734
+ p headers # => { ... }
735
+ p data # => <Array<TestEntityDataFields>>
736
+ rescue Trulioo::ApiError => e
737
+ puts "Error when calling ConfigurationApi->get_test_entities_with_http_info: #{e}"
738
+ end
739
+ ```
740
+
741
+ ### Parameters
742
+
743
+ | Name | Type | Description | Notes |
744
+ | ---- | ---- | ----------- | ----- |
745
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
746
+ | **configuration_name** | **String** | The product configuration. Currently \&quot;Identity Verification\&quot; for all products. | [default to &#39;Identity Verification&#39;] |
747
+ | **country_code** | **String** | Call CountryCodes to get the countries available to you. | |
748
+
749
+ ### Return type
750
+
751
+ [**Array&lt;TestEntityDataFields&gt;**](TestEntityDataFields.md)
752
+
753
+ ### Authorization
754
+
755
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
756
+
757
+ ### HTTP request headers
758
+
759
+ - **Content-Type**: Not defined
760
+ - **Accept**: application/json, text/json
761
+