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,529 @@
1
+ # Trulioo::VerificationsApi
2
+
3
+ All URIs are relative to *https://gateway.trulioo.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**document_download**](VerificationsApi.md#document_download) | **GET** /{mode}/verifications/v1/documentdownload/{transactionRecordId}/{fieldName} | Document Download |
8
+ | [**get_transaction_record**](VerificationsApi.md#get_transaction_record) | **GET** /{mode}/verifications/v1/transactionrecord/{id} | Get Transaction Record |
9
+ | [**get_transaction_record_address**](VerificationsApi.md#get_transaction_record_address) | **GET** /{mode}/verifications/v1/transactionrecord/{id}/withaddress | Get Transaction Record Address |
10
+ | [**get_transaction_record_document**](VerificationsApi.md#get_transaction_record_document) | **GET** /{mode}/verifications/v1/transactionrecord/{transactionRecordID}/{documentField} | Get Transaction Record Document |
11
+ | [**get_transaction_record_verbose**](VerificationsApi.md#get_transaction_record_verbose) | **GET** /{mode}/verifications/v1/transactionrecord/{id}/verbose | Get Transaction Record Verbose |
12
+ | [**get_transaction_status**](VerificationsApi.md#get_transaction_status) | **GET** /{mode}/verifications/v1/transaction/{id}/status | Get Transaction Status |
13
+ | [**verify**](VerificationsApi.md#verify) | **POST** /{mode}/verifications/v1/verify | Verify |
14
+
15
+
16
+ ## document_download
17
+
18
+ > Object document_download(mode, transaction_record_id, field_name)
19
+
20
+ Document Download
21
+
22
+ Download Document
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'trulioo_sdk'
29
+ # setup authorization
30
+ Trulioo.configure do |config|
31
+ # Configure API key authorization: ApiKeyAuth
32
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
33
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
35
+ end
36
+
37
+ api_instance = Trulioo::VerificationsApi.new
38
+ mode = 'mode_example' # String | trial or live
39
+ transaction_record_id = 'transaction_record_id_example' # String | id of the transactionrecord, this will be a GUID
40
+ field_name = 'field_name_example' # String | document field name
41
+
42
+ begin
43
+ # Document Download
44
+ result = api_instance.document_download(mode, transaction_record_id, field_name)
45
+ p result
46
+ rescue Trulioo::ApiError => e
47
+ puts "Error when calling VerificationsApi->document_download: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the document_download_with_http_info variant
52
+
53
+ This returns an Array which contains the response data, status code and headers.
54
+
55
+ > <Array(Object, Integer, Hash)> document_download_with_http_info(mode, transaction_record_id, field_name)
56
+
57
+ ```ruby
58
+ begin
59
+ # Document Download
60
+ data, status_code, headers = api_instance.document_download_with_http_info(mode, transaction_record_id, field_name)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => Object
64
+ rescue Trulioo::ApiError => e
65
+ puts "Error when calling VerificationsApi->document_download_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
74
+ | **transaction_record_id** | **String** | id of the transactionrecord, this will be a GUID | |
75
+ | **field_name** | **String** | document field name | |
76
+
77
+ ### Return type
78
+
79
+ **Object**
80
+
81
+ ### Authorization
82
+
83
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: Not defined
88
+ - **Accept**: application/json, text/json
89
+
90
+
91
+ ## get_transaction_record
92
+
93
+ > <TransactionRecordResult> get_transaction_record(mode, id)
94
+
95
+ Get Transaction Record
96
+
97
+ This method is used to retrieve the request and results of a verification performed using the verify method. The response for this method includes the same information as verify method's response, along with data present in the input fields of the verify request.
98
+
99
+ ### Examples
100
+
101
+ ```ruby
102
+ require 'time'
103
+ require 'trulioo_sdk'
104
+ # setup authorization
105
+ Trulioo.configure do |config|
106
+ # Configure API key authorization: ApiKeyAuth
107
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
108
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
110
+ end
111
+
112
+ api_instance = Trulioo::VerificationsApi.new
113
+ mode = 'mode_example' # String | trial or live
114
+ id = 'id_example' # String | id of the transactionrecord, this will be a GUID
115
+
116
+ begin
117
+ # Get Transaction Record
118
+ result = api_instance.get_transaction_record(mode, id)
119
+ p result
120
+ rescue Trulioo::ApiError => e
121
+ puts "Error when calling VerificationsApi->get_transaction_record: #{e}"
122
+ end
123
+ ```
124
+
125
+ #### Using the get_transaction_record_with_http_info variant
126
+
127
+ This returns an Array which contains the response data, status code and headers.
128
+
129
+ > <Array(<TransactionRecordResult>, Integer, Hash)> get_transaction_record_with_http_info(mode, id)
130
+
131
+ ```ruby
132
+ begin
133
+ # Get Transaction Record
134
+ data, status_code, headers = api_instance.get_transaction_record_with_http_info(mode, id)
135
+ p status_code # => 2xx
136
+ p headers # => { ... }
137
+ p data # => <TransactionRecordResult>
138
+ rescue Trulioo::ApiError => e
139
+ puts "Error when calling VerificationsApi->get_transaction_record_with_http_info: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ | Name | Type | Description | Notes |
146
+ | ---- | ---- | ----------- | ----- |
147
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
148
+ | **id** | **String** | id of the transactionrecord, this will be a GUID | |
149
+
150
+ ### Return type
151
+
152
+ [**TransactionRecordResult**](TransactionRecordResult.md)
153
+
154
+ ### Authorization
155
+
156
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json, text/json
162
+
163
+
164
+ ## get_transaction_record_address
165
+
166
+ > <TransactionRecordResult> get_transaction_record_address(mode, id)
167
+
168
+ Get Transaction Record Address
169
+
170
+ Fetch the results of a verification with the TransactionRecordId for the transaction this will include additional information if your account includes address cleansing.
171
+
172
+ ### Examples
173
+
174
+ ```ruby
175
+ require 'time'
176
+ require 'trulioo_sdk'
177
+ # setup authorization
178
+ Trulioo.configure do |config|
179
+ # Configure API key authorization: ApiKeyAuth
180
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
181
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
182
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
183
+ end
184
+
185
+ api_instance = Trulioo::VerificationsApi.new
186
+ mode = 'mode_example' # String | trial or live
187
+ id = 'id_example' # String | id of the transactionrecord, this will be a GUID
188
+
189
+ begin
190
+ # Get Transaction Record Address
191
+ result = api_instance.get_transaction_record_address(mode, id)
192
+ p result
193
+ rescue Trulioo::ApiError => e
194
+ puts "Error when calling VerificationsApi->get_transaction_record_address: #{e}"
195
+ end
196
+ ```
197
+
198
+ #### Using the get_transaction_record_address_with_http_info variant
199
+
200
+ This returns an Array which contains the response data, status code and headers.
201
+
202
+ > <Array(<TransactionRecordResult>, Integer, Hash)> get_transaction_record_address_with_http_info(mode, id)
203
+
204
+ ```ruby
205
+ begin
206
+ # Get Transaction Record Address
207
+ data, status_code, headers = api_instance.get_transaction_record_address_with_http_info(mode, id)
208
+ p status_code # => 2xx
209
+ p headers # => { ... }
210
+ p data # => <TransactionRecordResult>
211
+ rescue Trulioo::ApiError => e
212
+ puts "Error when calling VerificationsApi->get_transaction_record_address_with_http_info: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ | Name | Type | Description | Notes |
219
+ | ---- | ---- | ----------- | ----- |
220
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
221
+ | **id** | **String** | id of the transactionrecord, this will be a GUID | |
222
+
223
+ ### Return type
224
+
225
+ [**TransactionRecordResult**](TransactionRecordResult.md)
226
+
227
+ ### Authorization
228
+
229
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: Not defined
234
+ - **Accept**: application/json, text/json
235
+
236
+
237
+ ## get_transaction_record_document
238
+
239
+ > String get_transaction_record_document(mode, transaction_record_id, document_field)
240
+
241
+ Get Transaction Record Document
242
+
243
+ This method is used to retrieve the document of a verification performed using the verify method. The response for this method includes the processed base64 JPEG formatted string
244
+
245
+ ### Examples
246
+
247
+ ```ruby
248
+ require 'time'
249
+ require 'trulioo_sdk'
250
+ # setup authorization
251
+ Trulioo.configure do |config|
252
+ # Configure API key authorization: ApiKeyAuth
253
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
254
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
255
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
256
+ end
257
+
258
+ api_instance = Trulioo::VerificationsApi.new
259
+ mode = 'mode_example' # String | trial or live
260
+ transaction_record_id = 'transaction_record_id_example' # String | id of the transactionrecord, this will be a GUID
261
+ document_field = 'document_field_example' # String | FieldName of the Document, this will be a string
262
+
263
+ begin
264
+ # Get Transaction Record Document
265
+ result = api_instance.get_transaction_record_document(mode, transaction_record_id, document_field)
266
+ p result
267
+ rescue Trulioo::ApiError => e
268
+ puts "Error when calling VerificationsApi->get_transaction_record_document: #{e}"
269
+ end
270
+ ```
271
+
272
+ #### Using the get_transaction_record_document_with_http_info variant
273
+
274
+ This returns an Array which contains the response data, status code and headers.
275
+
276
+ > <Array(String, Integer, Hash)> get_transaction_record_document_with_http_info(mode, transaction_record_id, document_field)
277
+
278
+ ```ruby
279
+ begin
280
+ # Get Transaction Record Document
281
+ data, status_code, headers = api_instance.get_transaction_record_document_with_http_info(mode, transaction_record_id, document_field)
282
+ p status_code # => 2xx
283
+ p headers # => { ... }
284
+ p data # => String
285
+ rescue Trulioo::ApiError => e
286
+ puts "Error when calling VerificationsApi->get_transaction_record_document_with_http_info: #{e}"
287
+ end
288
+ ```
289
+
290
+ ### Parameters
291
+
292
+ | Name | Type | Description | Notes |
293
+ | ---- | ---- | ----------- | ----- |
294
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
295
+ | **transaction_record_id** | **String** | id of the transactionrecord, this will be a GUID | |
296
+ | **document_field** | **String** | FieldName of the Document, this will be a string | |
297
+
298
+ ### Return type
299
+
300
+ **String**
301
+
302
+ ### Authorization
303
+
304
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: Not defined
309
+ - **Accept**: application/json, text/json
310
+
311
+
312
+ ## get_transaction_record_verbose
313
+
314
+ > <TransactionRecordResult> get_transaction_record_verbose(mode, id)
315
+
316
+ Get Transaction Record Verbose
317
+
318
+ Fetch the results of a verification with the TransactionRecordId for the transaction this will include additional information if your account includes address cleansing and watchlist details.
319
+
320
+ ### Examples
321
+
322
+ ```ruby
323
+ require 'time'
324
+ require 'trulioo_sdk'
325
+ # setup authorization
326
+ Trulioo.configure do |config|
327
+ # Configure API key authorization: ApiKeyAuth
328
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
329
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
330
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
331
+ end
332
+
333
+ api_instance = Trulioo::VerificationsApi.new
334
+ mode = 'mode_example' # String | trial or live
335
+ id = 'id_example' # String | id of the transactionrecord, this will be a GUID
336
+
337
+ begin
338
+ # Get Transaction Record Verbose
339
+ result = api_instance.get_transaction_record_verbose(mode, id)
340
+ p result
341
+ rescue Trulioo::ApiError => e
342
+ puts "Error when calling VerificationsApi->get_transaction_record_verbose: #{e}"
343
+ end
344
+ ```
345
+
346
+ #### Using the get_transaction_record_verbose_with_http_info variant
347
+
348
+ This returns an Array which contains the response data, status code and headers.
349
+
350
+ > <Array(<TransactionRecordResult>, Integer, Hash)> get_transaction_record_verbose_with_http_info(mode, id)
351
+
352
+ ```ruby
353
+ begin
354
+ # Get Transaction Record Verbose
355
+ data, status_code, headers = api_instance.get_transaction_record_verbose_with_http_info(mode, id)
356
+ p status_code # => 2xx
357
+ p headers # => { ... }
358
+ p data # => <TransactionRecordResult>
359
+ rescue Trulioo::ApiError => e
360
+ puts "Error when calling VerificationsApi->get_transaction_record_verbose_with_http_info: #{e}"
361
+ end
362
+ ```
363
+
364
+ ### Parameters
365
+
366
+ | Name | Type | Description | Notes |
367
+ | ---- | ---- | ----------- | ----- |
368
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
369
+ | **id** | **String** | id of the transactionrecord, this will be a GUID | |
370
+
371
+ ### Return type
372
+
373
+ [**TransactionRecordResult**](TransactionRecordResult.md)
374
+
375
+ ### Authorization
376
+
377
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
378
+
379
+ ### HTTP request headers
380
+
381
+ - **Content-Type**: Not defined
382
+ - **Accept**: application/json, text/json
383
+
384
+
385
+ ## get_transaction_status
386
+
387
+ > <TransactionStatus> get_transaction_status(mode, id)
388
+
389
+ Get Transaction Status
390
+
391
+ This method is used to retrieve the processing status of an asynchronous transaction. The response for this method includes the processing status of the verification, the TransactionID, the TransactionRecordID as well as whether the verification request has timed out.
392
+
393
+ ### Examples
394
+
395
+ ```ruby
396
+ require 'time'
397
+ require 'trulioo_sdk'
398
+ # setup authorization
399
+ Trulioo.configure do |config|
400
+ # Configure API key authorization: ApiKeyAuth
401
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
402
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
403
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
404
+ end
405
+
406
+ api_instance = Trulioo::VerificationsApi.new
407
+ mode = 'mode_example' # String | trial or live
408
+ id = 'id_example' # String | id of the asynchronous transaction, this will be a GUID
409
+
410
+ begin
411
+ # Get Transaction Status
412
+ result = api_instance.get_transaction_status(mode, id)
413
+ p result
414
+ rescue Trulioo::ApiError => e
415
+ puts "Error when calling VerificationsApi->get_transaction_status: #{e}"
416
+ end
417
+ ```
418
+
419
+ #### Using the get_transaction_status_with_http_info variant
420
+
421
+ This returns an Array which contains the response data, status code and headers.
422
+
423
+ > <Array(<TransactionStatus>, Integer, Hash)> get_transaction_status_with_http_info(mode, id)
424
+
425
+ ```ruby
426
+ begin
427
+ # Get Transaction Status
428
+ data, status_code, headers = api_instance.get_transaction_status_with_http_info(mode, id)
429
+ p status_code # => 2xx
430
+ p headers # => { ... }
431
+ p data # => <TransactionStatus>
432
+ rescue Trulioo::ApiError => e
433
+ puts "Error when calling VerificationsApi->get_transaction_status_with_http_info: #{e}"
434
+ end
435
+ ```
436
+
437
+ ### Parameters
438
+
439
+ | Name | Type | Description | Notes |
440
+ | ---- | ---- | ----------- | ----- |
441
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
442
+ | **id** | **String** | id of the asynchronous transaction, this will be a GUID | |
443
+
444
+ ### Return type
445
+
446
+ [**TransactionStatus**](TransactionStatus.md)
447
+
448
+ ### Authorization
449
+
450
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
451
+
452
+ ### HTTP request headers
453
+
454
+ - **Content-Type**: Not defined
455
+ - **Accept**: application/json, text/json
456
+
457
+
458
+ ## verify
459
+
460
+ > <VerifyResult> verify(mode, verify_request)
461
+
462
+ Verify
463
+
464
+ Calling this method will perform a verification. If your account includes address cleansing set the CleansedAddress flag to get additional address information in the result. You can query configuration to get what fields are available to you in each each country. It is also possible to get sample requests from the customer portal.
465
+
466
+ ### Examples
467
+
468
+ ```ruby
469
+ require 'time'
470
+ require 'trulioo_sdk'
471
+ # setup authorization
472
+ Trulioo.configure do |config|
473
+ # Configure API key authorization: ApiKeyAuth
474
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
475
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
476
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
477
+ end
478
+
479
+ api_instance = Trulioo::VerificationsApi.new
480
+ mode = 'mode_example' # String | trial or live
481
+ verify_request = Trulioo::VerifyRequest.new({country_code: 'country_code_example', data_fields: Trulioo::DataFields.new}) # VerifyRequest |
482
+
483
+ begin
484
+ # Verify
485
+ result = api_instance.verify(mode, verify_request)
486
+ p result
487
+ rescue Trulioo::ApiError => e
488
+ puts "Error when calling VerificationsApi->verify: #{e}"
489
+ end
490
+ ```
491
+
492
+ #### Using the verify_with_http_info variant
493
+
494
+ This returns an Array which contains the response data, status code and headers.
495
+
496
+ > <Array(<VerifyResult>, Integer, Hash)> verify_with_http_info(mode, verify_request)
497
+
498
+ ```ruby
499
+ begin
500
+ # Verify
501
+ data, status_code, headers = api_instance.verify_with_http_info(mode, verify_request)
502
+ p status_code # => 2xx
503
+ p headers # => { ... }
504
+ p data # => <VerifyResult>
505
+ rescue Trulioo::ApiError => e
506
+ puts "Error when calling VerificationsApi->verify_with_http_info: #{e}"
507
+ end
508
+ ```
509
+
510
+ ### Parameters
511
+
512
+ | Name | Type | Description | Notes |
513
+ | ---- | ---- | ----------- | ----- |
514
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
515
+ | **verify_request** | [**VerifyRequest**](VerifyRequest.md) | | |
516
+
517
+ ### Return type
518
+
519
+ [**VerifyResult**](VerifyResult.md)
520
+
521
+ ### Authorization
522
+
523
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
524
+
525
+ ### HTTP request headers
526
+
527
+ - **Content-Type**: application/json, text/json
528
+ - **Accept**: application/json, text/json
529
+