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.
- checksums.yaml +7 -0
- data/README.md +155 -0
- data/docs/Address.md +44 -0
- data/docs/AppendedField.md +20 -0
- data/docs/Business.md +36 -0
- data/docs/BusinessApi.md +155 -0
- data/docs/BusinessRecord.md +24 -0
- data/docs/BusinessRegistrationNumber.md +30 -0
- data/docs/BusinessRegistrationNumberMask.md +22 -0
- data/docs/BusinessResult.md +22 -0
- data/docs/BusinessSearchRequest.md +28 -0
- data/docs/BusinessSearchRequestBusinessSearchModel.md +26 -0
- data/docs/BusinessSearchResponse.md +28 -0
- data/docs/BusinessSearchResponseIndustryCode.md +20 -0
- data/docs/Communication.md +24 -0
- data/docs/ConfigurationApi.md +761 -0
- data/docs/ConnectionApi.md +213 -0
- data/docs/Consent.md +22 -0
- data/docs/CountrySubdivision.md +22 -0
- data/docs/DataField.md +22 -0
- data/docs/DataFields.md +34 -0
- data/docs/DatasourceField.md +24 -0
- data/docs/DatasourceResult.md +28 -0
- data/docs/Document.md +28 -0
- data/docs/DriverLicence.md +26 -0
- data/docs/Location.md +42 -0
- data/docs/LocationAdditionalFields.md +18 -0
- data/docs/NationalId.md +28 -0
- data/docs/NormalizedDatasourceField.md +20 -0
- data/docs/NormalizedDatasourceGroupCountry.md +34 -0
- data/docs/Passport.md +28 -0
- data/docs/PersonInfo.md +38 -0
- data/docs/PersonInfoAdditionalFields.md +18 -0
- data/docs/Record.md +26 -0
- data/docs/RecordRule.md +20 -0
- data/docs/Result.md +62 -0
- data/docs/ServiceError.md +20 -0
- data/docs/TestEntityDataFields.md +36 -0
- data/docs/TransactionRecordResult.md +32 -0
- data/docs/TransactionRecordResultAllOf.md +18 -0
- data/docs/TransactionStatus.md +26 -0
- data/docs/VerificationsApi.md +529 -0
- data/docs/VerifyRequest.md +38 -0
- data/docs/VerifyResult.md +30 -0
- data/lib/trulioo_sdk.rb +77 -0
- data/lib/trulioo_sdk/api/business_api.rb +158 -0
- data/lib/trulioo_sdk/api/configuration_api.rb +750 -0
- data/lib/trulioo_sdk/api/connection_api.rb +221 -0
- data/lib/trulioo_sdk/api/verifications_api.rb +515 -0
- data/lib/trulioo_sdk/api_client.rb +391 -0
- data/lib/trulioo_sdk/api_error.rb +53 -0
- data/lib/trulioo_sdk/configuration.rb +268 -0
- data/lib/trulioo_sdk/models/address.rb +356 -0
- data/lib/trulioo_sdk/models/appended_field.rb +237 -0
- data/lib/trulioo_sdk/models/business.rb +318 -0
- data/lib/trulioo_sdk/models/business_record.rb +261 -0
- data/lib/trulioo_sdk/models/business_registration_number.rb +410 -0
- data/lib/trulioo_sdk/models/business_registration_number_mask.rb +272 -0
- data/lib/trulioo_sdk/models/business_result.rb +249 -0
- data/lib/trulioo_sdk/models/business_search_request.rb +306 -0
- data/lib/trulioo_sdk/models/business_search_request_business_search_model.rb +364 -0
- data/lib/trulioo_sdk/models/business_search_response.rb +279 -0
- data/lib/trulioo_sdk/models/business_search_response_industry_code.rb +236 -0
- data/lib/trulioo_sdk/models/communication.rb +354 -0
- data/lib/trulioo_sdk/models/consent.rb +249 -0
- data/lib/trulioo_sdk/models/country_subdivision.rb +320 -0
- data/lib/trulioo_sdk/models/data_field.rb +245 -0
- data/lib/trulioo_sdk/models/data_fields.rb +306 -0
- data/lib/trulioo_sdk/models/datasource_field.rb +254 -0
- data/lib/trulioo_sdk/models/datasource_result.rb +281 -0
- data/lib/trulioo_sdk/models/document.rb +278 -0
- data/lib/trulioo_sdk/models/driver_licence.rb +268 -0
- data/lib/trulioo_sdk/models/location.rb +347 -0
- data/lib/trulioo_sdk/models/location_additional_fields.rb +229 -0
- data/lib/trulioo_sdk/models/national_id.rb +277 -0
- data/lib/trulioo_sdk/models/normalized_datasource_field.rb +286 -0
- data/lib/trulioo_sdk/models/normalized_datasource_group_country.rb +437 -0
- data/lib/trulioo_sdk/models/passport.rb +326 -0
- data/lib/trulioo_sdk/models/person_info.rb +448 -0
- data/lib/trulioo_sdk/models/person_info_additional_fields.rb +228 -0
- data/lib/trulioo_sdk/models/record.rb +270 -0
- data/lib/trulioo_sdk/models/record_rule.rb +239 -0
- data/lib/trulioo_sdk/models/result.rb +440 -0
- data/lib/trulioo_sdk/models/service_error.rb +236 -0
- data/lib/trulioo_sdk/models/test_entity_data_fields.rb +315 -0
- data/lib/trulioo_sdk/models/transaction_record_result.rb +307 -0
- data/lib/trulioo_sdk/models/transaction_record_result_all_of.rb +229 -0
- data/lib/trulioo_sdk/models/transaction_status.rb +341 -0
- data/lib/trulioo_sdk/models/verify_request.rb +410 -0
- data/lib/trulioo_sdk/models/verify_result.rb +288 -0
- data/lib/trulioo_sdk/version.rb +11 -0
- metadata +223 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
# Trulioo::VerifyRequest
|
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
|
+
| **demo** | **Boolean** | This field is not used anymore. If provided it must match the setting on your account or you will get an error. | [optional] |
|
9
|
+
| **call_back_url** | **String** | | [optional] |
|
10
|
+
| **timeout** | **Integer** | | [optional] |
|
11
|
+
| **cleansed_address** | **Boolean** | Set to true if you want to receive address cleanse information, This will only change the response if you have address cleansing enabled for the country you are querying for. | [optional] |
|
12
|
+
| **configuration_name** | **String** | Indicate the configuration used for the verification. Currently only 'Identity Verification' is supported. | [optional] |
|
13
|
+
| **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] |
|
14
|
+
| **country_code** | **String** | The country code for which the verification needs to be performed. | |
|
15
|
+
| **customer_reference_id** | **String** | Customer Reference Id | [optional] |
|
16
|
+
| **data_fields** | [**DataFields**](DataFields.md) | | |
|
17
|
+
| **verbose_mode** | **Boolean** | Verbose Mode Output Flag. | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'trulioo_sdk'
|
23
|
+
|
24
|
+
instance = Trulioo::VerifyRequest.new(
|
25
|
+
accept_trulioo_terms_and_conditions: null,
|
26
|
+
demo: null,
|
27
|
+
call_back_url: null,
|
28
|
+
timeout: null,
|
29
|
+
cleansed_address: null,
|
30
|
+
configuration_name: null,
|
31
|
+
consent_for_data_sources: null,
|
32
|
+
country_code: null,
|
33
|
+
customer_reference_id: null,
|
34
|
+
data_fields: null,
|
35
|
+
verbose_mode: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Trulioo::VerifyResult
|
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** | Country Code | [optional] |
|
10
|
+
| **product_name** | **String** | Product Name | [optional] |
|
11
|
+
| **record** | [**Record**](Record.md) | | [optional] |
|
12
|
+
| **customer_reference_id** | **String** | Customer Reference Id | [optional] |
|
13
|
+
| **errors** | [**Array<ServiceError>**](ServiceError.md) | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'trulioo_sdk'
|
19
|
+
|
20
|
+
instance = Trulioo::VerifyResult.new(
|
21
|
+
transaction_id: null,
|
22
|
+
uploaded_dt: null,
|
23
|
+
country_code: null,
|
24
|
+
product_name: null,
|
25
|
+
record: null,
|
26
|
+
customer_reference_id: null,
|
27
|
+
errors: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
data/lib/trulioo_sdk.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
Trulioo Ruby SDK
|
3
|
+
|
4
|
+
Gem version: 1.0.3
|
5
|
+
Trulioo OpenAPI version: v1
|
6
|
+
Generated by OpenAPI Generator version: 5.0.1
|
7
|
+
=end
|
8
|
+
|
9
|
+
# Common files
|
10
|
+
require 'trulioo_sdk/api_client'
|
11
|
+
require 'trulioo_sdk/api_error'
|
12
|
+
require 'trulioo_sdk/version'
|
13
|
+
require 'trulioo_sdk/configuration'
|
14
|
+
|
15
|
+
# Models
|
16
|
+
require 'trulioo_sdk/models/address'
|
17
|
+
require 'trulioo_sdk/models/appended_field'
|
18
|
+
require 'trulioo_sdk/models/business'
|
19
|
+
require 'trulioo_sdk/models/business_record'
|
20
|
+
require 'trulioo_sdk/models/business_registration_number'
|
21
|
+
require 'trulioo_sdk/models/business_registration_number_mask'
|
22
|
+
require 'trulioo_sdk/models/business_result'
|
23
|
+
require 'trulioo_sdk/models/business_search_request'
|
24
|
+
require 'trulioo_sdk/models/business_search_request_business_search_model'
|
25
|
+
require 'trulioo_sdk/models/business_search_response'
|
26
|
+
require 'trulioo_sdk/models/business_search_response_industry_code'
|
27
|
+
require 'trulioo_sdk/models/communication'
|
28
|
+
require 'trulioo_sdk/models/consent'
|
29
|
+
require 'trulioo_sdk/models/country_subdivision'
|
30
|
+
require 'trulioo_sdk/models/data_field'
|
31
|
+
require 'trulioo_sdk/models/data_fields'
|
32
|
+
require 'trulioo_sdk/models/datasource_field'
|
33
|
+
require 'trulioo_sdk/models/datasource_result'
|
34
|
+
require 'trulioo_sdk/models/document'
|
35
|
+
require 'trulioo_sdk/models/driver_licence'
|
36
|
+
require 'trulioo_sdk/models/location'
|
37
|
+
require 'trulioo_sdk/models/location_additional_fields'
|
38
|
+
require 'trulioo_sdk/models/national_id'
|
39
|
+
require 'trulioo_sdk/models/normalized_datasource_field'
|
40
|
+
require 'trulioo_sdk/models/normalized_datasource_group_country'
|
41
|
+
require 'trulioo_sdk/models/passport'
|
42
|
+
require 'trulioo_sdk/models/person_info'
|
43
|
+
require 'trulioo_sdk/models/person_info_additional_fields'
|
44
|
+
require 'trulioo_sdk/models/record'
|
45
|
+
require 'trulioo_sdk/models/record_rule'
|
46
|
+
require 'trulioo_sdk/models/result'
|
47
|
+
require 'trulioo_sdk/models/service_error'
|
48
|
+
require 'trulioo_sdk/models/test_entity_data_fields'
|
49
|
+
require 'trulioo_sdk/models/transaction_record_result'
|
50
|
+
require 'trulioo_sdk/models/transaction_record_result_all_of'
|
51
|
+
require 'trulioo_sdk/models/transaction_status'
|
52
|
+
require 'trulioo_sdk/models/verify_request'
|
53
|
+
require 'trulioo_sdk/models/verify_result'
|
54
|
+
|
55
|
+
# APIs
|
56
|
+
require 'trulioo_sdk/api/business_api'
|
57
|
+
require 'trulioo_sdk/api/configuration_api'
|
58
|
+
require 'trulioo_sdk/api/connection_api'
|
59
|
+
require 'trulioo_sdk/api/verifications_api'
|
60
|
+
|
61
|
+
module Trulioo
|
62
|
+
class << self
|
63
|
+
# Customize default settings for the SDK using block.
|
64
|
+
# Trulioo.configure do |config|
|
65
|
+
# config.username = "xxx"
|
66
|
+
# config.password = "xxx"
|
67
|
+
# end
|
68
|
+
# If no block given, return the default Configuration object.
|
69
|
+
def configure
|
70
|
+
if block_given?
|
71
|
+
yield(Configuration.default)
|
72
|
+
else
|
73
|
+
Configuration.default
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
=begin
|
2
|
+
Trulioo Ruby SDK
|
3
|
+
|
4
|
+
Gem version: 1.0.3
|
5
|
+
Trulioo OpenAPI version: v1
|
6
|
+
Generated by OpenAPI Generator version: 5.0.1
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'cgi'
|
10
|
+
|
11
|
+
module Trulioo
|
12
|
+
class BusinessApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# Get Business Search Result
|
19
|
+
# returns the a business search result.
|
20
|
+
# @param mode [String] trial or live
|
21
|
+
# @param id [String] transaction record id
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [BusinessSearchResponse]
|
24
|
+
def get_business_search_result(mode, id, opts = {})
|
25
|
+
data, _status_code, _headers = get_business_search_result_with_http_info(mode, id, opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Get Business Search Result
|
30
|
+
# returns the a business search result.
|
31
|
+
# @param mode [String] trial or live
|
32
|
+
# @param id [String] transaction record id
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(BusinessSearchResponse, Integer, Hash)>] BusinessSearchResponse data, response status code and response headers
|
35
|
+
def get_business_search_result_with_http_info(mode, id, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.get_business_search_result ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'mode' is set
|
40
|
+
if @api_client.config.client_side_validation && mode.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling BusinessApi.get_business_search_result"
|
42
|
+
end
|
43
|
+
# verify the required parameter 'id' is set
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BusinessApi.get_business_search_result"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/{mode}/business/v1/search/transactionrecord/{id}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'id' + '}', CGI.escape(id.to_s).gsub('+', '%20'))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
# HTTP header 'Accept' (if needed)
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:debug_body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:debug_return_type] || 'BusinessSearchResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:operation => :"BusinessApi.get_business_search_result",
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => return_type
|
78
|
+
)
|
79
|
+
|
80
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: BusinessApi#get_business_search_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
|
87
|
+
# Search
|
88
|
+
# Calling this method will perform a business search.
|
89
|
+
# @param mode [String] trial or live
|
90
|
+
# @param business_search_request [BusinessSearchRequest]
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [BusinessSearchResponse]
|
93
|
+
def search(mode, business_search_request, opts = {})
|
94
|
+
data, _status_code, _headers = search_with_http_info(mode, business_search_request, opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Search
|
99
|
+
# Calling this method will perform a business search.
|
100
|
+
# @param mode [String] trial or live
|
101
|
+
# @param business_search_request [BusinessSearchRequest]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<(BusinessSearchResponse, Integer, Hash)>] BusinessSearchResponse data, response status code and response headers
|
104
|
+
def search_with_http_info(mode, business_search_request, opts = {})
|
105
|
+
if @api_client.config.debugging
|
106
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.search ...'
|
107
|
+
end
|
108
|
+
# verify the required parameter 'mode' is set
|
109
|
+
if @api_client.config.client_side_validation && mode.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling BusinessApi.search"
|
111
|
+
end
|
112
|
+
# verify the required parameter 'business_search_request' is set
|
113
|
+
if @api_client.config.client_side_validation && business_search_request.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'business_search_request' when calling BusinessApi.search"
|
115
|
+
end
|
116
|
+
# resource path
|
117
|
+
local_var_path = '/{mode}/business/v1/search'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20'))
|
118
|
+
|
119
|
+
# query parameters
|
120
|
+
query_params = opts[:query_params] || {}
|
121
|
+
|
122
|
+
# header parameters
|
123
|
+
header_params = opts[:header_params] || {}
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
126
|
+
# HTTP header 'Content-Type'
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = opts[:form_params] || {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(business_search_request)
|
134
|
+
|
135
|
+
# return_type
|
136
|
+
return_type = opts[:debug_return_type] || 'BusinessSearchResponse'
|
137
|
+
|
138
|
+
# auth_names
|
139
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
140
|
+
|
141
|
+
new_options = opts.merge(
|
142
|
+
:operation => :"BusinessApi.search",
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: BusinessApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
@@ -0,0 +1,750 @@
|
|
1
|
+
=begin
|
2
|
+
Trulioo Ruby SDK
|
3
|
+
|
4
|
+
Gem version: 1.0.3
|
5
|
+
Trulioo OpenAPI version: v1
|
6
|
+
Generated by OpenAPI Generator version: 5.0.1
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'cgi'
|
10
|
+
|
11
|
+
module Trulioo
|
12
|
+
class ConfigurationApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
# Get Business Registration Numbers
|
19
|
+
# Gets the currently configured business registration numbers, for country and an optionally supplied jurisdiction
|
20
|
+
# @param mode [String] trial or live
|
21
|
+
# @param country_code [String] Country alpha2 code, get via the call to https://developer.trulioo.com/reference#getcountrycodes
|
22
|
+
# @param jurisdiction_code [String] Optional jurisdiction code, get via the call to https://developer.trulioo.com/reference#getcountrysubdivisions
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [Array<BusinessRegistrationNumber>]
|
25
|
+
def get_business_registration_numbers(mode, country_code, jurisdiction_code, opts = {})
|
26
|
+
data, _status_code, _headers = get_business_registration_numbers_with_http_info(mode, country_code, jurisdiction_code, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# Get Business Registration Numbers
|
31
|
+
# Gets the currently configured business registration numbers, for country and an optionally supplied jurisdiction
|
32
|
+
# @param mode [String] trial or live
|
33
|
+
# @param country_code [String] Country alpha2 code, get via the call to https://developer.trulioo.com/reference#getcountrycodes
|
34
|
+
# @param jurisdiction_code [String] Optional jurisdiction code, get via the call to https://developer.trulioo.com/reference#getcountrysubdivisions
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(Array<BusinessRegistrationNumber>, Integer, Hash)>] Array<BusinessRegistrationNumber> data, response status code and response headers
|
37
|
+
def get_business_registration_numbers_with_http_info(mode, country_code, jurisdiction_code, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_business_registration_numbers ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'mode' is set
|
42
|
+
if @api_client.config.client_side_validation && mode.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_business_registration_numbers"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'country_code' is set
|
46
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_business_registration_numbers"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'jurisdiction_code' is set
|
50
|
+
if @api_client.config.client_side_validation && jurisdiction_code.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'jurisdiction_code' when calling ConfigurationApi.get_business_registration_numbers"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/{mode}/configuration/v1/businessregistrationnumbers/{countryCode}/{jurisdictionCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20')).sub('{' + 'jurisdictionCode' + '}', CGI.escape(jurisdiction_code.to_s).gsub('+', '%20'))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = opts[:header_params] || {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:debug_body]
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:debug_return_type] || 'Array<BusinessRegistrationNumber>'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:operation => :"ConfigurationApi.get_business_registration_numbers",
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => return_type
|
84
|
+
)
|
85
|
+
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_business_registration_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
|
93
|
+
# Get Consents
|
94
|
+
# 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.
|
95
|
+
# @param mode [String] trial or live
|
96
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
97
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<String>]
|
100
|
+
def get_consents(mode, configuration_name, country_code, opts = {})
|
101
|
+
data, _status_code, _headers = get_consents_with_http_info(mode, configuration_name, country_code, opts)
|
102
|
+
data
|
103
|
+
end
|
104
|
+
|
105
|
+
# Get Consents
|
106
|
+
# 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.
|
107
|
+
# @param mode [String] trial or live
|
108
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
109
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
112
|
+
def get_consents_with_http_info(mode, configuration_name, country_code, opts = {})
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_consents ...'
|
115
|
+
end
|
116
|
+
# verify the required parameter 'mode' is set
|
117
|
+
if @api_client.config.client_side_validation && mode.nil?
|
118
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_consents"
|
119
|
+
end
|
120
|
+
# verify the required parameter 'configuration_name' is set
|
121
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_consents"
|
123
|
+
end
|
124
|
+
# verify the required parameter 'country_code' is set
|
125
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_consents"
|
127
|
+
end
|
128
|
+
# resource path
|
129
|
+
local_var_path = '/{mode}/configuration/v1/consents/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
130
|
+
|
131
|
+
# query parameters
|
132
|
+
query_params = opts[:query_params] || {}
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = opts[:header_params] || {}
|
136
|
+
# HTTP header 'Accept' (if needed)
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = opts[:form_params] || {}
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = opts[:debug_body]
|
144
|
+
|
145
|
+
# return_type
|
146
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
147
|
+
|
148
|
+
# auth_names
|
149
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
150
|
+
|
151
|
+
new_options = opts.merge(
|
152
|
+
:operation => :"ConfigurationApi.get_consents",
|
153
|
+
:header_params => header_params,
|
154
|
+
:query_params => query_params,
|
155
|
+
:form_params => form_params,
|
156
|
+
:body => post_body,
|
157
|
+
:auth_names => auth_names,
|
158
|
+
:return_type => return_type
|
159
|
+
)
|
160
|
+
|
161
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_consents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
164
|
+
end
|
165
|
+
return data, status_code, headers
|
166
|
+
end
|
167
|
+
|
168
|
+
# Get Country Codes
|
169
|
+
# This method retrieves all the countries that are available to perform a verification.
|
170
|
+
# @param mode [String] trial or live
|
171
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @return [Array<String>]
|
174
|
+
def get_country_codes(mode, configuration_name, opts = {})
|
175
|
+
data, _status_code, _headers = get_country_codes_with_http_info(mode, configuration_name, opts)
|
176
|
+
data
|
177
|
+
end
|
178
|
+
|
179
|
+
# Get Country Codes
|
180
|
+
# This method retrieves all the countries that are available to perform a verification.
|
181
|
+
# @param mode [String] trial or live
|
182
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
185
|
+
def get_country_codes_with_http_info(mode, configuration_name, opts = {})
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_country_codes ...'
|
188
|
+
end
|
189
|
+
# verify the required parameter 'mode' is set
|
190
|
+
if @api_client.config.client_side_validation && mode.nil?
|
191
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_country_codes"
|
192
|
+
end
|
193
|
+
# verify the required parameter 'configuration_name' is set
|
194
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_country_codes"
|
196
|
+
end
|
197
|
+
# resource path
|
198
|
+
local_var_path = '/{mode}/configuration/v1/countrycodes/{configurationName}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20'))
|
199
|
+
|
200
|
+
# query parameters
|
201
|
+
query_params = opts[:query_params] || {}
|
202
|
+
|
203
|
+
# header parameters
|
204
|
+
header_params = opts[:header_params] || {}
|
205
|
+
# HTTP header 'Accept' (if needed)
|
206
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
207
|
+
|
208
|
+
# form parameters
|
209
|
+
form_params = opts[:form_params] || {}
|
210
|
+
|
211
|
+
# http body (model)
|
212
|
+
post_body = opts[:debug_body]
|
213
|
+
|
214
|
+
# return_type
|
215
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
216
|
+
|
217
|
+
# auth_names
|
218
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
219
|
+
|
220
|
+
new_options = opts.merge(
|
221
|
+
:operation => :"ConfigurationApi.get_country_codes",
|
222
|
+
:header_params => header_params,
|
223
|
+
:query_params => query_params,
|
224
|
+
:form_params => form_params,
|
225
|
+
:body => post_body,
|
226
|
+
:auth_names => auth_names,
|
227
|
+
:return_type => return_type
|
228
|
+
)
|
229
|
+
|
230
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
231
|
+
if @api_client.config.debugging
|
232
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_country_codes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
233
|
+
end
|
234
|
+
return data, status_code, headers
|
235
|
+
end
|
236
|
+
|
237
|
+
# Get Country Subdivisions
|
238
|
+
# Gets the provinces states or other subdivisions for a country, mostly matches ISO 3166-2
|
239
|
+
# @param mode [String] trial or live
|
240
|
+
# @param country_code [String] Country alpha2 code, get the the call to countrycodes
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @return [Array<CountrySubdivision>]
|
243
|
+
def get_country_subdivisions(mode, country_code, opts = {})
|
244
|
+
data, _status_code, _headers = get_country_subdivisions_with_http_info(mode, country_code, opts)
|
245
|
+
data
|
246
|
+
end
|
247
|
+
|
248
|
+
# Get Country Subdivisions
|
249
|
+
# Gets the provinces states or other subdivisions for a country, mostly matches ISO 3166-2
|
250
|
+
# @param mode [String] trial or live
|
251
|
+
# @param country_code [String] Country alpha2 code, get the the call to countrycodes
|
252
|
+
# @param [Hash] opts the optional parameters
|
253
|
+
# @return [Array<(Array<CountrySubdivision>, Integer, Hash)>] Array<CountrySubdivision> data, response status code and response headers
|
254
|
+
def get_country_subdivisions_with_http_info(mode, country_code, opts = {})
|
255
|
+
if @api_client.config.debugging
|
256
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_country_subdivisions ...'
|
257
|
+
end
|
258
|
+
# verify the required parameter 'mode' is set
|
259
|
+
if @api_client.config.client_side_validation && mode.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_country_subdivisions"
|
261
|
+
end
|
262
|
+
# verify the required parameter 'country_code' is set
|
263
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_country_subdivisions"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
local_var_path = '/{mode}/configuration/v1/countrysubdivisions/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = opts[:query_params] || {}
|
271
|
+
|
272
|
+
# header parameters
|
273
|
+
header_params = opts[:header_params] || {}
|
274
|
+
# HTTP header 'Accept' (if needed)
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
276
|
+
|
277
|
+
# form parameters
|
278
|
+
form_params = opts[:form_params] || {}
|
279
|
+
|
280
|
+
# http body (model)
|
281
|
+
post_body = opts[:debug_body]
|
282
|
+
|
283
|
+
# return_type
|
284
|
+
return_type = opts[:debug_return_type] || 'Array<CountrySubdivision>'
|
285
|
+
|
286
|
+
# auth_names
|
287
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
288
|
+
|
289
|
+
new_options = opts.merge(
|
290
|
+
:operation => :"ConfigurationApi.get_country_subdivisions",
|
291
|
+
:header_params => header_params,
|
292
|
+
:query_params => query_params,
|
293
|
+
:form_params => form_params,
|
294
|
+
:body => post_body,
|
295
|
+
:auth_names => auth_names,
|
296
|
+
:return_type => return_type
|
297
|
+
)
|
298
|
+
|
299
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_country_subdivisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
302
|
+
end
|
303
|
+
return data, status_code, headers
|
304
|
+
end
|
305
|
+
|
306
|
+
# Get Datasources
|
307
|
+
# Gets datasource groups configured for your product and country.
|
308
|
+
# @param mode [String] trial or live
|
309
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
310
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @return [Array<NormalizedDatasourceGroupCountry>]
|
313
|
+
def get_datasources(mode, configuration_name, country_code, opts = {})
|
314
|
+
data, _status_code, _headers = get_datasources_with_http_info(mode, configuration_name, country_code, opts)
|
315
|
+
data
|
316
|
+
end
|
317
|
+
|
318
|
+
# Get Datasources
|
319
|
+
# Gets datasource groups configured for your product and country.
|
320
|
+
# @param mode [String] trial or live
|
321
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
322
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @return [Array<(Array<NormalizedDatasourceGroupCountry>, Integer, Hash)>] Array<NormalizedDatasourceGroupCountry> data, response status code and response headers
|
325
|
+
def get_datasources_with_http_info(mode, configuration_name, country_code, opts = {})
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_datasources ...'
|
328
|
+
end
|
329
|
+
# verify the required parameter 'mode' is set
|
330
|
+
if @api_client.config.client_side_validation && mode.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_datasources"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'configuration_name' is set
|
334
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_datasources"
|
336
|
+
end
|
337
|
+
# verify the required parameter 'country_code' is set
|
338
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
339
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_datasources"
|
340
|
+
end
|
341
|
+
# resource path
|
342
|
+
local_var_path = '/{mode}/configuration/v1/datasources/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
343
|
+
|
344
|
+
# query parameters
|
345
|
+
query_params = opts[:query_params] || {}
|
346
|
+
|
347
|
+
# header parameters
|
348
|
+
header_params = opts[:header_params] || {}
|
349
|
+
# HTTP header 'Accept' (if needed)
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
351
|
+
|
352
|
+
# form parameters
|
353
|
+
form_params = opts[:form_params] || {}
|
354
|
+
|
355
|
+
# http body (model)
|
356
|
+
post_body = opts[:debug_body]
|
357
|
+
|
358
|
+
# return_type
|
359
|
+
return_type = opts[:debug_return_type] || 'Array<NormalizedDatasourceGroupCountry>'
|
360
|
+
|
361
|
+
# auth_names
|
362
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
363
|
+
|
364
|
+
new_options = opts.merge(
|
365
|
+
:operation => :"ConfigurationApi.get_datasources",
|
366
|
+
:header_params => header_params,
|
367
|
+
:query_params => query_params,
|
368
|
+
:form_params => form_params,
|
369
|
+
:body => post_body,
|
370
|
+
:auth_names => auth_names,
|
371
|
+
:return_type => return_type
|
372
|
+
)
|
373
|
+
|
374
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
375
|
+
if @api_client.config.debugging
|
376
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_datasources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
|
+
end
|
378
|
+
return data, status_code, headers
|
379
|
+
end
|
380
|
+
|
381
|
+
# Get Detailed Consents
|
382
|
+
# 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.
|
383
|
+
# @param mode [String] trial or live
|
384
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
385
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
386
|
+
# @param [Hash] opts the optional parameters
|
387
|
+
# @return [Array<Consent>]
|
388
|
+
def get_detailed_consents(mode, configuration_name, country_code, opts = {})
|
389
|
+
data, _status_code, _headers = get_detailed_consents_with_http_info(mode, configuration_name, country_code, opts)
|
390
|
+
data
|
391
|
+
end
|
392
|
+
|
393
|
+
# Get Detailed Consents
|
394
|
+
# 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.
|
395
|
+
# @param mode [String] trial or live
|
396
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
397
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @return [Array<(Array<Consent>, Integer, Hash)>] Array<Consent> data, response status code and response headers
|
400
|
+
def get_detailed_consents_with_http_info(mode, configuration_name, country_code, opts = {})
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_detailed_consents ...'
|
403
|
+
end
|
404
|
+
# verify the required parameter 'mode' is set
|
405
|
+
if @api_client.config.client_side_validation && mode.nil?
|
406
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_detailed_consents"
|
407
|
+
end
|
408
|
+
# verify the required parameter 'configuration_name' is set
|
409
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
410
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_detailed_consents"
|
411
|
+
end
|
412
|
+
# verify the required parameter 'country_code' is set
|
413
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
414
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_detailed_consents"
|
415
|
+
end
|
416
|
+
# resource path
|
417
|
+
local_var_path = '/{mode}/configuration/v1/detailedConsents/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
418
|
+
|
419
|
+
# query parameters
|
420
|
+
query_params = opts[:query_params] || {}
|
421
|
+
|
422
|
+
# header parameters
|
423
|
+
header_params = opts[:header_params] || {}
|
424
|
+
# HTTP header 'Accept' (if needed)
|
425
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
426
|
+
|
427
|
+
# form parameters
|
428
|
+
form_params = opts[:form_params] || {}
|
429
|
+
|
430
|
+
# http body (model)
|
431
|
+
post_body = opts[:debug_body]
|
432
|
+
|
433
|
+
# return_type
|
434
|
+
return_type = opts[:debug_return_type] || 'Array<Consent>'
|
435
|
+
|
436
|
+
# auth_names
|
437
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
438
|
+
|
439
|
+
new_options = opts.merge(
|
440
|
+
:operation => :"ConfigurationApi.get_detailed_consents",
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => return_type
|
447
|
+
)
|
448
|
+
|
449
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
450
|
+
if @api_client.config.debugging
|
451
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_detailed_consents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
+
end
|
453
|
+
return data, status_code, headers
|
454
|
+
end
|
455
|
+
|
456
|
+
# Get Document Types
|
457
|
+
# Gets the document types available for a country.
|
458
|
+
# @param mode [String] trial or live
|
459
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
460
|
+
# @param [Hash] opts the optional parameters
|
461
|
+
# @return [Hash<String, Array<String>>]
|
462
|
+
def get_document_types(mode, country_code, opts = {})
|
463
|
+
data, _status_code, _headers = get_document_types_with_http_info(mode, country_code, opts)
|
464
|
+
data
|
465
|
+
end
|
466
|
+
|
467
|
+
# Get Document Types
|
468
|
+
# Gets the document types available for a country.
|
469
|
+
# @param mode [String] trial or live
|
470
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
471
|
+
# @param [Hash] opts the optional parameters
|
472
|
+
# @return [Array<(Hash<String, Array<String>>, Integer, Hash)>] Hash<String, Array<String>> data, response status code and response headers
|
473
|
+
def get_document_types_with_http_info(mode, country_code, opts = {})
|
474
|
+
if @api_client.config.debugging
|
475
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_document_types ...'
|
476
|
+
end
|
477
|
+
# verify the required parameter 'mode' is set
|
478
|
+
if @api_client.config.client_side_validation && mode.nil?
|
479
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_document_types"
|
480
|
+
end
|
481
|
+
# verify the required parameter 'country_code' is set
|
482
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
483
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_document_types"
|
484
|
+
end
|
485
|
+
# resource path
|
486
|
+
local_var_path = '/{mode}/configuration/v1/documentTypes/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
487
|
+
|
488
|
+
# query parameters
|
489
|
+
query_params = opts[:query_params] || {}
|
490
|
+
|
491
|
+
# header parameters
|
492
|
+
header_params = opts[:header_params] || {}
|
493
|
+
# HTTP header 'Accept' (if needed)
|
494
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
495
|
+
|
496
|
+
# form parameters
|
497
|
+
form_params = opts[:form_params] || {}
|
498
|
+
|
499
|
+
# http body (model)
|
500
|
+
post_body = opts[:debug_body]
|
501
|
+
|
502
|
+
# return_type
|
503
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Array<String>>'
|
504
|
+
|
505
|
+
# auth_names
|
506
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
507
|
+
|
508
|
+
new_options = opts.merge(
|
509
|
+
:operation => :"ConfigurationApi.get_document_types",
|
510
|
+
:header_params => header_params,
|
511
|
+
:query_params => query_params,
|
512
|
+
:form_params => form_params,
|
513
|
+
:body => post_body,
|
514
|
+
:auth_names => auth_names,
|
515
|
+
:return_type => return_type
|
516
|
+
)
|
517
|
+
|
518
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
519
|
+
if @api_client.config.debugging
|
520
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_document_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
521
|
+
end
|
522
|
+
return data, status_code, headers
|
523
|
+
end
|
524
|
+
|
525
|
+
# Get Fields
|
526
|
+
# 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
|
527
|
+
# @param mode [String] trial or live
|
528
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
529
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
530
|
+
# @param [Hash] opts the optional parameters
|
531
|
+
# @return [Object]
|
532
|
+
def get_fields(mode, configuration_name, country_code, opts = {})
|
533
|
+
data, _status_code, _headers = get_fields_with_http_info(mode, configuration_name, country_code, opts)
|
534
|
+
data
|
535
|
+
end
|
536
|
+
|
537
|
+
# Get Fields
|
538
|
+
# 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
|
539
|
+
# @param mode [String] trial or live
|
540
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
541
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
542
|
+
# @param [Hash] opts the optional parameters
|
543
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
544
|
+
def get_fields_with_http_info(mode, configuration_name, country_code, opts = {})
|
545
|
+
if @api_client.config.debugging
|
546
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_fields ...'
|
547
|
+
end
|
548
|
+
# verify the required parameter 'mode' is set
|
549
|
+
if @api_client.config.client_side_validation && mode.nil?
|
550
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_fields"
|
551
|
+
end
|
552
|
+
# verify the required parameter 'configuration_name' is set
|
553
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
554
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_fields"
|
555
|
+
end
|
556
|
+
# verify the required parameter 'country_code' is set
|
557
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
558
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_fields"
|
559
|
+
end
|
560
|
+
# resource path
|
561
|
+
local_var_path = '/{mode}/configuration/v1/fields/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
562
|
+
|
563
|
+
# query parameters
|
564
|
+
query_params = opts[:query_params] || {}
|
565
|
+
|
566
|
+
# header parameters
|
567
|
+
header_params = opts[:header_params] || {}
|
568
|
+
# HTTP header 'Accept' (if needed)
|
569
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
570
|
+
|
571
|
+
# form parameters
|
572
|
+
form_params = opts[:form_params] || {}
|
573
|
+
|
574
|
+
# http body (model)
|
575
|
+
post_body = opts[:debug_body]
|
576
|
+
|
577
|
+
# return_type
|
578
|
+
return_type = opts[:debug_return_type] || 'Object'
|
579
|
+
|
580
|
+
# auth_names
|
581
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
582
|
+
|
583
|
+
new_options = opts.merge(
|
584
|
+
:operation => :"ConfigurationApi.get_fields",
|
585
|
+
:header_params => header_params,
|
586
|
+
:query_params => query_params,
|
587
|
+
:form_params => form_params,
|
588
|
+
:body => post_body,
|
589
|
+
:auth_names => auth_names,
|
590
|
+
:return_type => return_type
|
591
|
+
)
|
592
|
+
|
593
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
596
|
+
end
|
597
|
+
return data, status_code, headers
|
598
|
+
end
|
599
|
+
|
600
|
+
# Get Recommended Fields
|
601
|
+
# 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
|
602
|
+
# @param mode [String] trial or live
|
603
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
604
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
605
|
+
# @param [Hash] opts the optional parameters
|
606
|
+
# @return [Object]
|
607
|
+
def get_recommended_fields(mode, configuration_name, country_code, opts = {})
|
608
|
+
data, _status_code, _headers = get_recommended_fields_with_http_info(mode, configuration_name, country_code, opts)
|
609
|
+
data
|
610
|
+
end
|
611
|
+
|
612
|
+
# Get Recommended Fields
|
613
|
+
# 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
|
614
|
+
# @param mode [String] trial or live
|
615
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
616
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
617
|
+
# @param [Hash] opts the optional parameters
|
618
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
619
|
+
def get_recommended_fields_with_http_info(mode, configuration_name, country_code, opts = {})
|
620
|
+
if @api_client.config.debugging
|
621
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_recommended_fields ...'
|
622
|
+
end
|
623
|
+
# verify the required parameter 'mode' is set
|
624
|
+
if @api_client.config.client_side_validation && mode.nil?
|
625
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_recommended_fields"
|
626
|
+
end
|
627
|
+
# verify the required parameter 'configuration_name' is set
|
628
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
629
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_recommended_fields"
|
630
|
+
end
|
631
|
+
# verify the required parameter 'country_code' is set
|
632
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
633
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_recommended_fields"
|
634
|
+
end
|
635
|
+
# resource path
|
636
|
+
local_var_path = '/{mode}/configuration/v1/recommendedfields/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
637
|
+
|
638
|
+
# query parameters
|
639
|
+
query_params = opts[:query_params] || {}
|
640
|
+
|
641
|
+
# header parameters
|
642
|
+
header_params = opts[:header_params] || {}
|
643
|
+
# HTTP header 'Accept' (if needed)
|
644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
645
|
+
|
646
|
+
# form parameters
|
647
|
+
form_params = opts[:form_params] || {}
|
648
|
+
|
649
|
+
# http body (model)
|
650
|
+
post_body = opts[:debug_body]
|
651
|
+
|
652
|
+
# return_type
|
653
|
+
return_type = opts[:debug_return_type] || 'Object'
|
654
|
+
|
655
|
+
# auth_names
|
656
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
657
|
+
|
658
|
+
new_options = opts.merge(
|
659
|
+
:operation => :"ConfigurationApi.get_recommended_fields",
|
660
|
+
:header_params => header_params,
|
661
|
+
:query_params => query_params,
|
662
|
+
:form_params => form_params,
|
663
|
+
:body => post_body,
|
664
|
+
:auth_names => auth_names,
|
665
|
+
:return_type => return_type
|
666
|
+
)
|
667
|
+
|
668
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
669
|
+
if @api_client.config.debugging
|
670
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_recommended_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
671
|
+
end
|
672
|
+
return data, status_code, headers
|
673
|
+
end
|
674
|
+
|
675
|
+
# Get Test Entities
|
676
|
+
# Gets the test entities configured for your product and country.
|
677
|
+
# @param mode [String] trial or live
|
678
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
679
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
680
|
+
# @param [Hash] opts the optional parameters
|
681
|
+
# @return [Array<TestEntityDataFields>]
|
682
|
+
def get_test_entities(mode, configuration_name, country_code, opts = {})
|
683
|
+
data, _status_code, _headers = get_test_entities_with_http_info(mode, configuration_name, country_code, opts)
|
684
|
+
data
|
685
|
+
end
|
686
|
+
|
687
|
+
# Get Test Entities
|
688
|
+
# Gets the test entities configured for your product and country.
|
689
|
+
# @param mode [String] trial or live
|
690
|
+
# @param configuration_name [String] The product configuration. Currently \"Identity Verification\" for all products.
|
691
|
+
# @param country_code [String] Call CountryCodes to get the countries available to you.
|
692
|
+
# @param [Hash] opts the optional parameters
|
693
|
+
# @return [Array<(Array<TestEntityDataFields>, Integer, Hash)>] Array<TestEntityDataFields> data, response status code and response headers
|
694
|
+
def get_test_entities_with_http_info(mode, configuration_name, country_code, opts = {})
|
695
|
+
if @api_client.config.debugging
|
696
|
+
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_test_entities ...'
|
697
|
+
end
|
698
|
+
# verify the required parameter 'mode' is set
|
699
|
+
if @api_client.config.client_side_validation && mode.nil?
|
700
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ConfigurationApi.get_test_entities"
|
701
|
+
end
|
702
|
+
# verify the required parameter 'configuration_name' is set
|
703
|
+
if @api_client.config.client_side_validation && configuration_name.nil?
|
704
|
+
fail ArgumentError, "Missing the required parameter 'configuration_name' when calling ConfigurationApi.get_test_entities"
|
705
|
+
end
|
706
|
+
# verify the required parameter 'country_code' is set
|
707
|
+
if @api_client.config.client_side_validation && country_code.nil?
|
708
|
+
fail ArgumentError, "Missing the required parameter 'country_code' when calling ConfigurationApi.get_test_entities"
|
709
|
+
end
|
710
|
+
# resource path
|
711
|
+
local_var_path = '/{mode}/configuration/v1/testentities/{configurationName}/{countryCode}'.sub('{' + 'mode' + '}', CGI.escape(mode.to_s).gsub('+', '%20')).sub('{' + 'configurationName' + '}', CGI.escape(configuration_name.to_s).gsub('+', '%20')).sub('{' + 'countryCode' + '}', CGI.escape(country_code.to_s).gsub('+', '%20'))
|
712
|
+
|
713
|
+
# query parameters
|
714
|
+
query_params = opts[:query_params] || {}
|
715
|
+
|
716
|
+
# header parameters
|
717
|
+
header_params = opts[:header_params] || {}
|
718
|
+
# HTTP header 'Accept' (if needed)
|
719
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json'])
|
720
|
+
|
721
|
+
# form parameters
|
722
|
+
form_params = opts[:form_params] || {}
|
723
|
+
|
724
|
+
# http body (model)
|
725
|
+
post_body = opts[:debug_body]
|
726
|
+
|
727
|
+
# return_type
|
728
|
+
return_type = opts[:debug_return_type] || 'Array<TestEntityDataFields>'
|
729
|
+
|
730
|
+
# auth_names
|
731
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
732
|
+
|
733
|
+
new_options = opts.merge(
|
734
|
+
:operation => :"ConfigurationApi.get_test_entities",
|
735
|
+
:header_params => header_params,
|
736
|
+
:query_params => query_params,
|
737
|
+
:form_params => form_params,
|
738
|
+
:body => post_body,
|
739
|
+
:auth_names => auth_names,
|
740
|
+
:return_type => return_type
|
741
|
+
)
|
742
|
+
|
743
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
744
|
+
if @api_client.config.debugging
|
745
|
+
@api_client.config.logger.debug "API called: ConfigurationApi#get_test_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
746
|
+
end
|
747
|
+
return data, status_code, headers
|
748
|
+
end
|
749
|
+
end
|
750
|
+
end
|