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,213 @@
1
+ # Trulioo::ConnectionApi
2
+
3
+ All URIs are relative to *https://gateway.trulioo.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**connection_async_callback_url**](ConnectionApi.md#connection_async_callback_url) | **POST** /{mode}/connection/v1/async-callback | Connection Async Callback Url |
8
+ | [**say_hello**](ConnectionApi.md#say_hello) | **GET** /{mode}/connection/v1/sayhello/{name} | Say Hello |
9
+ | [**test_authentication**](ConnectionApi.md#test_authentication) | **GET** /{mode}/connection/v1/testauthentication | Test Authentication |
10
+
11
+
12
+ ## connection_async_callback_url
13
+
14
+ > Object connection_async_callback_url(mode, transaction_status)
15
+
16
+ Connection Async Callback Url
17
+
18
+ If set, the transaction will run asynchronously and Trulioo will try to update the client with transaction state updates until completed. If callback is not desired but the client wants to initiate an asynchronous transaction, provide https://api.globaldatacompany.com/connection/v1/async-callback as the Callback URL.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'trulioo_sdk'
25
+
26
+ api_instance = Trulioo::ConnectionApi.new
27
+ mode = 'mode_example' # String | trial or live
28
+ transaction_status = Trulioo::TransactionStatus.new # TransactionStatus | transactionStatus
29
+
30
+ begin
31
+ # Connection Async Callback Url
32
+ result = api_instance.connection_async_callback_url(mode, transaction_status)
33
+ p result
34
+ rescue Trulioo::ApiError => e
35
+ puts "Error when calling ConnectionApi->connection_async_callback_url: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the connection_async_callback_url_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(Object, Integer, Hash)> connection_async_callback_url_with_http_info(mode, transaction_status)
44
+
45
+ ```ruby
46
+ begin
47
+ # Connection Async Callback Url
48
+ data, status_code, headers = api_instance.connection_async_callback_url_with_http_info(mode, transaction_status)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => Object
52
+ rescue Trulioo::ApiError => e
53
+ puts "Error when calling ConnectionApi->connection_async_callback_url_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
62
+ | **transaction_status** | [**TransactionStatus**](TransactionStatus.md) | transactionStatus | |
63
+
64
+ ### Return type
65
+
66
+ **Object**
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: application/json, text/json
75
+ - **Accept**: application/json, text/json
76
+
77
+
78
+ ## say_hello
79
+
80
+ > String say_hello(mode, name)
81
+
82
+ Say Hello
83
+
84
+ This method enables you to check if your system can connect to our system. You can even use a web browser to verify a connection to our system. Applied a maximum length for the name parameter of 100 via a route constraint
85
+
86
+ ### Examples
87
+
88
+ ```ruby
89
+ require 'time'
90
+ require 'trulioo_sdk'
91
+
92
+ api_instance = Trulioo::ConnectionApi.new
93
+ mode = 'mode_example' # String | trial or live
94
+ name = 'name_example' # String | Name to be returned in the response
95
+
96
+ begin
97
+ # Say Hello
98
+ result = api_instance.say_hello(mode, name)
99
+ p result
100
+ rescue Trulioo::ApiError => e
101
+ puts "Error when calling ConnectionApi->say_hello: #{e}"
102
+ end
103
+ ```
104
+
105
+ #### Using the say_hello_with_http_info variant
106
+
107
+ This returns an Array which contains the response data, status code and headers.
108
+
109
+ > <Array(String, Integer, Hash)> say_hello_with_http_info(mode, name)
110
+
111
+ ```ruby
112
+ begin
113
+ # Say Hello
114
+ data, status_code, headers = api_instance.say_hello_with_http_info(mode, name)
115
+ p status_code # => 2xx
116
+ p headers # => { ... }
117
+ p data # => String
118
+ rescue Trulioo::ApiError => e
119
+ puts "Error when calling ConnectionApi->say_hello_with_http_info: #{e}"
120
+ end
121
+ ```
122
+
123
+ ### Parameters
124
+
125
+ | Name | Type | Description | Notes |
126
+ | ---- | ---- | ----------- | ----- |
127
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
128
+ | **name** | **String** | Name to be returned in the response | |
129
+
130
+ ### Return type
131
+
132
+ **String**
133
+
134
+ ### Authorization
135
+
136
+ No authorization required
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: application/json, text/json
142
+
143
+
144
+ ## test_authentication
145
+
146
+ > String test_authentication(mode)
147
+
148
+ Test Authentication
149
+
150
+ This method enables you to check if your credentials are valid. You will need to use basic authentication to ensure a successful response.
151
+
152
+ ### Examples
153
+
154
+ ```ruby
155
+ require 'time'
156
+ require 'trulioo_sdk'
157
+ # setup authorization
158
+ Trulioo.configure do |config|
159
+ # Configure API key authorization: ApiKeyAuth
160
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
161
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
162
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
163
+ end
164
+
165
+ api_instance = Trulioo::ConnectionApi.new
166
+ mode = 'mode_example' # String | trial or live
167
+
168
+ begin
169
+ # Test Authentication
170
+ result = api_instance.test_authentication(mode)
171
+ p result
172
+ rescue Trulioo::ApiError => e
173
+ puts "Error when calling ConnectionApi->test_authentication: #{e}"
174
+ end
175
+ ```
176
+
177
+ #### Using the test_authentication_with_http_info variant
178
+
179
+ This returns an Array which contains the response data, status code and headers.
180
+
181
+ > <Array(String, Integer, Hash)> test_authentication_with_http_info(mode)
182
+
183
+ ```ruby
184
+ begin
185
+ # Test Authentication
186
+ data, status_code, headers = api_instance.test_authentication_with_http_info(mode)
187
+ p status_code # => 2xx
188
+ p headers # => { ... }
189
+ p data # => String
190
+ rescue Trulioo::ApiError => e
191
+ puts "Error when calling ConnectionApi->test_authentication_with_http_info: #{e}"
192
+ end
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+ | Name | Type | Description | Notes |
198
+ | ---- | ---- | ----------- | ----- |
199
+ | **mode** | **String** | trial or live | [default to &#39;trial&#39;] |
200
+
201
+ ### Return type
202
+
203
+ **String**
204
+
205
+ ### Authorization
206
+
207
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: Not defined
212
+ - **Accept**: application/json, text/json
213
+
data/docs/Consent.md ADDED
@@ -0,0 +1,22 @@
1
+ # Trulioo::Consent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of the datasource requiring consent | [optional] |
8
+ | **text** | **String** | Text outlining how the user is consenting for their data to be used | [optional] |
9
+ | **url** | **String** | URL where the user can find more information about how the datasource will use their data | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trulioo_sdk'
15
+
16
+ instance = Trulioo::Consent.new(
17
+ name: null,
18
+ text: null,
19
+ url: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Trulioo::CountrySubdivision
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of the area, in english or one of the languages of the country | [optional] |
8
+ | **code** | **String** | Code for the area | [optional] |
9
+ | **parent_code** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trulioo_sdk'
15
+
16
+ instance = Trulioo::CountrySubdivision.new(
17
+ name: null,
18
+ code: null,
19
+ parent_code: null
20
+ )
21
+ ```
22
+
data/docs/DataField.md ADDED
@@ -0,0 +1,22 @@
1
+ # Trulioo::DataField
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field_name** | **String** | | [optional] |
8
+ | **value** | **String** | | [optional] |
9
+ | **field_group** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trulioo_sdk'
15
+
16
+ instance = Trulioo::DataField.new(
17
+ field_name: null,
18
+ value: null,
19
+ field_group: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,34 @@
1
+ # Trulioo::DataFields
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **person_info** | [**PersonInfo**](PersonInfo.md) | | [optional] |
8
+ | **location** | [**Location**](Location.md) | | [optional] |
9
+ | **communication** | [**Communication**](Communication.md) | | [optional] |
10
+ | **driver_licence** | [**DriverLicence**](DriverLicence.md) | | [optional] |
11
+ | **national_ids** | [**Array&lt;NationalId&gt;**](NationalId.md) | National Identification Information | [optional] |
12
+ | **passport** | [**Passport**](Passport.md) | | [optional] |
13
+ | **document** | [**Document**](Document.md) | | [optional] |
14
+ | **business** | [**Business**](Business.md) | | [optional] |
15
+ | **country_specific** | **Hash&lt;String, Hash&lt;String, String&gt;&gt;** | CountrySpecific fields {\&quot;CountryCode\&quot; : {\&quot;Field1\&quot; : \&quot;Value\&quot;, \&quot;Field2\&quot; : \&quot;Value\&quot; }} | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'trulioo_sdk'
21
+
22
+ instance = Trulioo::DataFields.new(
23
+ person_info: null,
24
+ location: null,
25
+ communication: null,
26
+ driver_licence: null,
27
+ national_ids: null,
28
+ passport: null,
29
+ document: null,
30
+ business: null,
31
+ country_specific: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,24 @@
1
+ # Trulioo::DatasourceField
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field_name** | **String** | | [optional] |
8
+ | **status** | **String** | | [optional] |
9
+ | **match_precision** | **String** | | [optional] |
10
+ | **field_group** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'trulioo_sdk'
16
+
17
+ instance = Trulioo::DatasourceField.new(
18
+ field_name: null,
19
+ status: null,
20
+ match_precision: null,
21
+ field_group: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,28 @@
1
+ # Trulioo::DatasourceResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **datasource_status** | **String** | | [optional] |
8
+ | **datasource_name** | **String** | | [optional] |
9
+ | **datasource_fields** | [**Array&lt;DatasourceField&gt;**](DatasourceField.md) | | [optional] |
10
+ | **appended_fields** | [**Array&lt;AppendedField&gt;**](AppendedField.md) | | [optional] |
11
+ | **errors** | [**Array&lt;ServiceError&gt;**](ServiceError.md) | | [optional] |
12
+ | **field_groups** | **Array&lt;String&gt;** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trulioo_sdk'
18
+
19
+ instance = Trulioo::DatasourceResult.new(
20
+ datasource_status: null,
21
+ datasource_name: null,
22
+ datasource_fields: null,
23
+ appended_fields: null,
24
+ errors: null,
25
+ field_groups: null
26
+ )
27
+ ```
28
+
data/docs/Document.md ADDED
@@ -0,0 +1,28 @@
1
+ # Trulioo::Document
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **document_front_image** | **String** | Front of the document | [optional] |
8
+ | **document_back_image** | **String** | Back of the document | [optional] |
9
+ | **live_photo** | **String** | Selfie image | [optional] |
10
+ | **document_type** | **String** | Document type | [optional] |
11
+ | **accept_incomplete_document** | **Boolean** | Accept Incomplete Document | [optional] |
12
+ | **validate_document_image_quality** | **Boolean** | Validate Document Image Quality | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trulioo_sdk'
18
+
19
+ instance = Trulioo::Document.new(
20
+ document_front_image: null,
21
+ document_back_image: null,
22
+ live_photo: null,
23
+ document_type: null,
24
+ accept_incomplete_document: null,
25
+ validate_document_image_quality: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,26 @@
1
+ # Trulioo::DriverLicence
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **number** | **String** | Driver&#39;s Licence Number of the individual to be verified | [optional] |
8
+ | **state** | **String** | State of issue for Driver&#39;s Licence | [optional] |
9
+ | **day_of_expiry** | **Integer** | Driver&#39;s Licence day of expiry of the individual to be verified | [optional] |
10
+ | **month_of_expiry** | **Integer** | Driver&#39;s Licence month of expiry of the individual to be verified | [optional] |
11
+ | **year_of_expiry** | **Integer** | Driver&#39;s Licence year of expiry of the individual to be verified | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'trulioo_sdk'
17
+
18
+ instance = Trulioo::DriverLicence.new(
19
+ number: null,
20
+ state: null,
21
+ day_of_expiry: null,
22
+ month_of_expiry: null,
23
+ year_of_expiry: null
24
+ )
25
+ ```
26
+
data/docs/Location.md ADDED
@@ -0,0 +1,42 @@
1
+ # Trulioo::Location
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **building_number** | **String** | House / Civic / Building number of home address | [optional] |
8
+ | **building_name** | **String** | Name of building of home address | [optional] |
9
+ | **unit_number** | **String** | Flat/Unit/Apartment number of home address | [optional] |
10
+ | **street_name** | **String** | Street name of primary residence | [optional] |
11
+ | **street_type** | **String** | Street type of primary residence (e.g. St, Rd etc) | [optional] |
12
+ | **city** | **String** | City of home address | [optional] |
13
+ | **suburb** | **String** | Suburb / Subdivision / Municipality of home address | [optional] |
14
+ | **county** | **String** | County / District of home address | [optional] |
15
+ | **state_province_code** | **String** | State of primary residence. US sources expect 2 characters. Australian sources expect 2 or 3 characters. | [optional] |
16
+ | **country** | **String** | Country of physical address (ISO 3166-1 alpha-2) | [optional] |
17
+ | **postal_code** | **String** | ZIP Code or Postal Code of home address | [optional] |
18
+ | **po_box** | **String** | Post Office Box | [optional] |
19
+ | **additional_fields** | [**LocationAdditionalFields**](LocationAdditionalFields.md) | | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'trulioo_sdk'
25
+
26
+ instance = Trulioo::Location.new(
27
+ building_number: null,
28
+ building_name: null,
29
+ unit_number: null,
30
+ street_name: null,
31
+ street_type: null,
32
+ city: null,
33
+ suburb: null,
34
+ county: null,
35
+ state_province_code: null,
36
+ country: null,
37
+ postal_code: null,
38
+ po_box: null,
39
+ additional_fields: null
40
+ )
41
+ ```
42
+