trinsic_api 1.2.0 → 2.0.0.pre.alpha3
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 +4 -4
- data/docs/AadhaarInput.md +20 -0
- data/docs/Address.md +3 -3
- data/docs/AttachmentAccessKeys.md +7 -5
- data/docs/BangladeshNationalIdInput.md +24 -0
- data/docs/BrazilCpfCheckInput.md +18 -0
- data/docs/BrazilDigitalCnhInput.md +24 -0
- data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
- data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
- data/docs/CreateHostedProviderSessionRequest.md +22 -0
- data/docs/CreateHostedProviderSessionResponse.md +20 -0
- data/docs/CreateWidgetSessionRequest.md +22 -0
- data/docs/{CreateSessionResponse.md → CreateWidgetSessionResponse.md} +5 -5
- data/docs/DocumentData.md +3 -3
- data/docs/DocumentScanAttachments.md +18 -0
- data/docs/{SessionState.md → DocumentType.md} +2 -2
- data/docs/HttpValidationProblemDetails.md +28 -0
- data/docs/IdentityData.md +4 -4
- data/docs/IndonesiaNikInput.md +22 -0
- data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
- data/docs/IntegrationLaunchMethod.md +15 -0
- data/docs/IntegrationStep.md +22 -0
- data/docs/KenyaNidInput.md +28 -0
- data/docs/KnownAddress.md +3 -1
- data/docs/KnownPersonData.md +4 -0
- data/docs/MexicoCurpInput.md +18 -0
- data/docs/NetworkApi.md +2 -72
- data/docs/NigeriaNinInput.md +30 -0
- data/docs/PersonData.md +14 -12
- data/docs/PhilippineMatchInput.md +26 -0
- data/docs/PhilippineQRInput.md +20 -0
- data/docs/ProblemDetails.md +26 -0
- data/docs/ProviderAttachments.md +18 -0
- data/docs/ProviderInfo.md +3 -1
- data/docs/ProviderInput.md +38 -0
- data/docs/RecommendRequest.md +7 -3
- data/docs/RefreshStepContentRequest.md +18 -0
- data/docs/RefreshStepContentResponse.md +18 -0
- data/docs/ResultCollection.md +20 -0
- data/docs/ResultCollectionMethod.md +15 -0
- data/docs/Session.md +6 -8
- data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
- data/docs/SessionsApi.md +236 -18
- data/docs/{SessionFailCode.md → Sex.md} +2 -2
- data/docs/SouthAfricaNidInput.md +24 -0
- data/docs/StepRefreshInfo.md +22 -0
- data/lib/trinsic_api/api/attachments_api.rb +1 -1
- data/lib/trinsic_api/api/network_api.rb +3 -66
- data/lib/trinsic_api/api/sessions_api.rb +217 -19
- data/lib/trinsic_api/api_client.rb +1 -1
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/{validation_result.rb → aadhaar_input.rb} +21 -26
- data/lib/trinsic_api/models/address.rb +16 -10
- data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
- data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +233 -0
- data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
- data/lib/trinsic_api/models/{create_session_response.rb → create_widget_session_response.rb} +18 -17
- data/lib/trinsic_api/models/document_data.rb +32 -4
- data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
- data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
- data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
- data/lib/trinsic_api/models/http_validation_problem_details.rb +273 -0
- data/lib/trinsic_api/models/identity_data.rb +5 -5
- data/lib/trinsic_api/models/{disclosed_fields_request.rb → indonesia_nik_input.rb} +94 -93
- data/lib/trinsic_api/models/integration_capability.rb +44 -0
- data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
- data/lib/trinsic_api/models/integration_step.rb +275 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
- data/lib/trinsic_api/models/known_address.rb +20 -2
- data/lib/trinsic_api/models/known_identity_data.rb +2 -1
- data/lib/trinsic_api/models/known_person_data.rb +30 -2
- data/lib/trinsic_api/models/list_providers_response.rb +1 -1
- data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
- data/lib/trinsic_api/models/mexico_curp_input.rb +250 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +50 -15
- data/lib/trinsic_api/models/philippine_match_input.rb +260 -0
- data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
- data/lib/trinsic_api/models/problem_details.rb +255 -0
- data/lib/trinsic_api/models/provider_attachments.rb +215 -0
- data/lib/trinsic_api/models/provider_info.rb +18 -5
- data/lib/trinsic_api/models/provider_information.rb +1 -1
- data/lib/trinsic_api/models/{create_session_request.rb → provider_input.rb} +111 -42
- data/lib/trinsic_api/models/recommend_request.rb +38 -18
- data/lib/trinsic_api/models/recommend_response.rb +1 -1
- data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
- data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
- data/lib/trinsic_api/models/{verification.rb → result_collection.rb} +27 -20
- data/lib/trinsic_api/models/result_collection_method.rb +40 -0
- data/lib/trinsic_api/models/session.rb +32 -48
- data/lib/trinsic_api/models/session_error_code.rb +48 -0
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +42 -0
- data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
- data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +34 -12
- data/spec/api/attachments_api_spec.rb +1 -1
- data/spec/api/network_api_spec.rb +2 -14
- data/spec/api/sessions_api_spec.rb +44 -7
- data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/attachment_access_keys_spec.rb +7 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
- data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
- data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
- data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_response_spec.rb +42 -0
- data/spec/models/create_widget_session_request_spec.rb +48 -0
- data/spec/models/{create_session_response_spec.rb → create_widget_session_response_spec.rb} +8 -8
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +36 -0
- data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
- data/spec/models/get_attachment_request_spec.rb +1 -1
- data/spec/models/get_attachment_response_spec.rb +1 -1
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/get_session_result_request_spec.rb +1 -1
- data/spec/models/get_session_result_response_spec.rb +1 -1
- data/spec/models/http_validation_problem_details_spec.rb +66 -0
- data/spec/models/identity_data_spec.rb +1 -1
- data/spec/models/indonesia_nik_input_spec.rb +48 -0
- data/spec/models/integration_capability_spec.rb +30 -0
- data/spec/models/integration_launch_method_spec.rb +30 -0
- data/spec/models/integration_step_spec.rb +48 -0
- data/spec/models/kenya_nid_input_spec.rb +66 -0
- data/spec/models/known_address_spec.rb +7 -1
- data/spec/models/known_identity_data_spec.rb +1 -1
- data/spec/models/known_person_data_spec.rb +13 -1
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/{failure_message_spec.rb → mexico_curp_input_spec.rb} +8 -8
- data/spec/models/nigeria_nin_input_spec.rb +72 -0
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +8 -2
- data/spec/models/{create_session_request_spec.rb → philippine_match_input_spec.rb} +12 -12
- data/spec/models/philippine_qr_input_spec.rb +42 -0
- data/spec/models/problem_details_spec.rb +60 -0
- data/spec/models/provider_attachments_spec.rb +36 -0
- data/spec/models/provider_info_spec.rb +7 -1
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +18 -24
- data/spec/models/recommend_request_spec.rb +14 -2
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/refresh_step_content_request_spec.rb +36 -0
- data/spec/models/refresh_step_content_response_spec.rb +36 -0
- data/spec/models/result_collection_method_spec.rb +30 -0
- data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
- data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +4 -10
- data/spec/models/{session_fail_code_spec.rb → sex_spec.rb} +7 -7
- data/spec/models/south_africa_nid_input_spec.rb +54 -0
- data/spec/models/step_refresh_info_spec.rb +48 -0
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +154 -66
- data/docs/CreateSessionRequest.md +0 -26
- data/docs/DisclosedFields.md +0 -40
- data/docs/DisclosedFieldsRequest.md +0 -40
- data/docs/IdentityLookupResponse.md +0 -18
- data/docs/ValidationResult.md +0 -20
- data/docs/Verification.md +0 -20
- data/lib/trinsic_api/models/session_fail_code.rb +0 -45
- data/lib/trinsic_api/models/verification_fail_code.rb +0 -44
- data/spec/models/disclosed_fields_request_spec.rb +0 -102
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -82,27 +82,27 @@ module TrinsicApi
|
|
82
82
|
return data, status_code, headers
|
83
83
|
end
|
84
84
|
|
85
|
-
# Create Session
|
86
|
-
#
|
85
|
+
# Create Advanced Provider Session
|
86
|
+
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic's hosted UI will automatically be invoked to handle any capabilities you do not support.
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [
|
89
|
-
# @return [
|
90
|
-
def
|
91
|
-
data, _status_code, _headers =
|
88
|
+
# @option opts [CreateAdvancedProviderSessionRequest] :create_advanced_provider_session_request
|
89
|
+
# @return [CreateAdvancedProviderSessionResponse]
|
90
|
+
def create_advanced_provider_session(opts = {})
|
91
|
+
data, _status_code, _headers = create_advanced_provider_session_with_http_info(opts)
|
92
92
|
data
|
93
93
|
end
|
94
94
|
|
95
|
-
# Create Session
|
96
|
-
#
|
95
|
+
# Create Advanced Provider Session
|
96
|
+
# Verify a user's identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic's hosted UI will automatically be invoked to handle any capabilities you do not support.
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [
|
99
|
-
# @return [Array<(
|
100
|
-
def
|
98
|
+
# @option opts [CreateAdvancedProviderSessionRequest] :create_advanced_provider_session_request
|
99
|
+
# @return [Array<(CreateAdvancedProviderSessionResponse, Integer, Hash)>] CreateAdvancedProviderSessionResponse data, response status code and response headers
|
100
|
+
def create_advanced_provider_session_with_http_info(opts = {})
|
101
101
|
if @api_client.config.debugging
|
102
|
-
@api_client.config.logger.debug 'Calling API: SessionsApi.
|
102
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.create_advanced_provider_session ...'
|
103
103
|
end
|
104
104
|
# resource path
|
105
|
-
local_var_path = '/api/v1/sessions'
|
105
|
+
local_var_path = '/api/v1/sessions/provider/advanced'
|
106
106
|
|
107
107
|
# query parameters
|
108
108
|
query_params = opts[:query_params] || {}
|
@@ -121,16 +121,16 @@ module TrinsicApi
|
|
121
121
|
form_params = opts[:form_params] || {}
|
122
122
|
|
123
123
|
# http body (model)
|
124
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
124
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_advanced_provider_session_request'])
|
125
125
|
|
126
126
|
# return_type
|
127
|
-
return_type = opts[:debug_return_type] || '
|
127
|
+
return_type = opts[:debug_return_type] || 'CreateAdvancedProviderSessionResponse'
|
128
128
|
|
129
129
|
# auth_names
|
130
130
|
auth_names = opts[:debug_auth_names] || ['Bearer']
|
131
131
|
|
132
132
|
new_options = opts.merge(
|
133
|
-
:operation => :"SessionsApi.
|
133
|
+
:operation => :"SessionsApi.create_advanced_provider_session",
|
134
134
|
:header_params => header_params,
|
135
135
|
:query_params => query_params,
|
136
136
|
:form_params => form_params,
|
@@ -141,7 +141,135 @@ module TrinsicApi
|
|
141
141
|
|
142
142
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
143
143
|
if @api_client.config.debugging
|
144
|
-
@api_client.config.logger.debug "API called: SessionsApi#
|
144
|
+
@api_client.config.logger.debug "API called: SessionsApi#create_advanced_provider_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# Create Hosted Provider Session
|
150
|
+
# Verify a user's identity with a specific provider, using Trinsic-hosted UI for providers which require additional user interaction.
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [CreateHostedProviderSessionRequest] :create_hosted_provider_session_request
|
153
|
+
# @return [CreateHostedProviderSessionResponse]
|
154
|
+
def create_hosted_provider_session(opts = {})
|
155
|
+
data, _status_code, _headers = create_hosted_provider_session_with_http_info(opts)
|
156
|
+
data
|
157
|
+
end
|
158
|
+
|
159
|
+
# Create Hosted Provider Session
|
160
|
+
# Verify a user's identity with a specific provider, using Trinsic-hosted UI for providers which require additional user interaction.
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [CreateHostedProviderSessionRequest] :create_hosted_provider_session_request
|
163
|
+
# @return [Array<(CreateHostedProviderSessionResponse, Integer, Hash)>] CreateHostedProviderSessionResponse data, response status code and response headers
|
164
|
+
def create_hosted_provider_session_with_http_info(opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.create_hosted_provider_session ...'
|
167
|
+
end
|
168
|
+
# resource path
|
169
|
+
local_var_path = '/api/v1/sessions/provider/hosted'
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = opts[:query_params] || {}
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = opts[:header_params] || {}
|
176
|
+
# HTTP header 'Accept' (if needed)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
178
|
+
# HTTP header 'Content-Type'
|
179
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
180
|
+
if !content_type.nil?
|
181
|
+
header_params['Content-Type'] = content_type
|
182
|
+
end
|
183
|
+
|
184
|
+
# form parameters
|
185
|
+
form_params = opts[:form_params] || {}
|
186
|
+
|
187
|
+
# http body (model)
|
188
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hosted_provider_session_request'])
|
189
|
+
|
190
|
+
# return_type
|
191
|
+
return_type = opts[:debug_return_type] || 'CreateHostedProviderSessionResponse'
|
192
|
+
|
193
|
+
# auth_names
|
194
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
195
|
+
|
196
|
+
new_options = opts.merge(
|
197
|
+
:operation => :"SessionsApi.create_hosted_provider_session",
|
198
|
+
:header_params => header_params,
|
199
|
+
:query_params => query_params,
|
200
|
+
:form_params => form_params,
|
201
|
+
:body => post_body,
|
202
|
+
:auth_names => auth_names,
|
203
|
+
:return_type => return_type
|
204
|
+
)
|
205
|
+
|
206
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
207
|
+
if @api_client.config.debugging
|
208
|
+
@api_client.config.logger.debug "API called: SessionsApi#create_hosted_provider_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
|
+
end
|
210
|
+
return data, status_code, headers
|
211
|
+
end
|
212
|
+
|
213
|
+
# Create Widget Session
|
214
|
+
# Verify a user's identity using Trinsic's hosted Widget flow.
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [CreateWidgetSessionRequest] :create_widget_session_request
|
217
|
+
# @return [CreateWidgetSessionResponse]
|
218
|
+
def create_widget_session(opts = {})
|
219
|
+
data, _status_code, _headers = create_widget_session_with_http_info(opts)
|
220
|
+
data
|
221
|
+
end
|
222
|
+
|
223
|
+
# Create Widget Session
|
224
|
+
# Verify a user's identity using Trinsic's hosted Widget flow.
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [CreateWidgetSessionRequest] :create_widget_session_request
|
227
|
+
# @return [Array<(CreateWidgetSessionResponse, Integer, Hash)>] CreateWidgetSessionResponse data, response status code and response headers
|
228
|
+
def create_widget_session_with_http_info(opts = {})
|
229
|
+
if @api_client.config.debugging
|
230
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.create_widget_session ...'
|
231
|
+
end
|
232
|
+
# resource path
|
233
|
+
local_var_path = '/api/v1/sessions/widget'
|
234
|
+
|
235
|
+
# query parameters
|
236
|
+
query_params = opts[:query_params] || {}
|
237
|
+
|
238
|
+
# header parameters
|
239
|
+
header_params = opts[:header_params] || {}
|
240
|
+
# HTTP header 'Accept' (if needed)
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
242
|
+
# HTTP header 'Content-Type'
|
243
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
244
|
+
if !content_type.nil?
|
245
|
+
header_params['Content-Type'] = content_type
|
246
|
+
end
|
247
|
+
|
248
|
+
# form parameters
|
249
|
+
form_params = opts[:form_params] || {}
|
250
|
+
|
251
|
+
# http body (model)
|
252
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_widget_session_request'])
|
253
|
+
|
254
|
+
# return_type
|
255
|
+
return_type = opts[:debug_return_type] || 'CreateWidgetSessionResponse'
|
256
|
+
|
257
|
+
# auth_names
|
258
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
259
|
+
|
260
|
+
new_options = opts.merge(
|
261
|
+
:operation => :"SessionsApi.create_widget_session",
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: SessionsApi#create_widget_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
273
|
end
|
146
274
|
return data, status_code, headers
|
147
275
|
end
|
@@ -319,7 +447,7 @@ module TrinsicApi
|
|
319
447
|
end
|
320
448
|
|
321
449
|
# resource path
|
322
|
-
local_var_path = '/api/v1/sessions'
|
450
|
+
local_var_path = '/api/v1/sessions/list'
|
323
451
|
|
324
452
|
# query parameters
|
325
453
|
query_params = opts[:query_params] || {}
|
@@ -424,5 +552,75 @@ module TrinsicApi
|
|
424
552
|
end
|
425
553
|
return data, status_code, headers
|
426
554
|
end
|
555
|
+
|
556
|
+
# Refresh Step Content
|
557
|
+
# Refreshes the content of a Step for an Advanced Provider Session.
|
558
|
+
# @param acceptance_session_id [String]
|
559
|
+
# @param [Hash] opts the optional parameters
|
560
|
+
# @option opts [RefreshStepContentRequest] :refresh_step_content_request
|
561
|
+
# @return [RefreshStepContentResponse]
|
562
|
+
def refresh_step_content(acceptance_session_id, opts = {})
|
563
|
+
data, _status_code, _headers = refresh_step_content_with_http_info(acceptance_session_id, opts)
|
564
|
+
data
|
565
|
+
end
|
566
|
+
|
567
|
+
# Refresh Step Content
|
568
|
+
# Refreshes the content of a Step for an Advanced Provider Session.
|
569
|
+
# @param acceptance_session_id [String]
|
570
|
+
# @param [Hash] opts the optional parameters
|
571
|
+
# @option opts [RefreshStepContentRequest] :refresh_step_content_request
|
572
|
+
# @return [Array<(RefreshStepContentResponse, Integer, Hash)>] RefreshStepContentResponse data, response status code and response headers
|
573
|
+
def refresh_step_content_with_http_info(acceptance_session_id, opts = {})
|
574
|
+
if @api_client.config.debugging
|
575
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.refresh_step_content ...'
|
576
|
+
end
|
577
|
+
# verify the required parameter 'acceptance_session_id' is set
|
578
|
+
if @api_client.config.client_side_validation && acceptance_session_id.nil?
|
579
|
+
fail ArgumentError, "Missing the required parameter 'acceptance_session_id' when calling SessionsApi.refresh_step_content"
|
580
|
+
end
|
581
|
+
# resource path
|
582
|
+
local_var_path = '/api/v1/sessions/{acceptanceSessionId}/step/refresh'.sub('{' + 'acceptanceSessionId' + '}', CGI.escape(acceptance_session_id.to_s))
|
583
|
+
|
584
|
+
# query parameters
|
585
|
+
query_params = opts[:query_params] || {}
|
586
|
+
|
587
|
+
# header parameters
|
588
|
+
header_params = opts[:header_params] || {}
|
589
|
+
# HTTP header 'Accept' (if needed)
|
590
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
591
|
+
# HTTP header 'Content-Type'
|
592
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
593
|
+
if !content_type.nil?
|
594
|
+
header_params['Content-Type'] = content_type
|
595
|
+
end
|
596
|
+
|
597
|
+
# form parameters
|
598
|
+
form_params = opts[:form_params] || {}
|
599
|
+
|
600
|
+
# http body (model)
|
601
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'refresh_step_content_request'])
|
602
|
+
|
603
|
+
# return_type
|
604
|
+
return_type = opts[:debug_return_type] || 'RefreshStepContentResponse'
|
605
|
+
|
606
|
+
# auth_names
|
607
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
608
|
+
|
609
|
+
new_options = opts.merge(
|
610
|
+
:operation => :"SessionsApi.refresh_step_content",
|
611
|
+
:header_params => header_params,
|
612
|
+
:query_params => query_params,
|
613
|
+
:form_params => form_params,
|
614
|
+
:body => post_body,
|
615
|
+
:auth_names => auth_names,
|
616
|
+
:return_type => return_type
|
617
|
+
)
|
618
|
+
|
619
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
620
|
+
if @api_client.config.debugging
|
621
|
+
@api_client.config.logger.debug "API called: SessionsApi#refresh_step_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
622
|
+
end
|
623
|
+
return data, status_code, headers
|
624
|
+
end
|
427
625
|
end
|
428
626
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,16 +14,18 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
18
|
-
|
17
|
+
class AadhaarInput
|
18
|
+
# The user's full name
|
19
|
+
attr_accessor :full_name
|
19
20
|
|
20
|
-
|
21
|
+
# The user's date of birth, in `YYYY-MM-DD` format
|
22
|
+
attr_accessor :date_of_birth
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
|
-
:'
|
26
|
-
:'
|
27
|
+
:'full_name' => :'fullName',
|
28
|
+
:'date_of_birth' => :'dateOfBirth'
|
27
29
|
}
|
28
30
|
end
|
29
31
|
|
@@ -35,14 +37,16 @@ module TrinsicApi
|
|
35
37
|
# Attribute type mapping.
|
36
38
|
def self.openapi_types
|
37
39
|
{
|
38
|
-
:'
|
39
|
-
:'
|
40
|
+
:'full_name' => :'String',
|
41
|
+
:'date_of_birth' => :'Date'
|
40
42
|
}
|
41
43
|
end
|
42
44
|
|
43
45
|
# List of attributes with nullable: true
|
44
46
|
def self.openapi_nullable
|
45
47
|
Set.new([
|
48
|
+
:'full_name',
|
49
|
+
:'date_of_birth'
|
46
50
|
])
|
47
51
|
end
|
48
52
|
|
@@ -50,27 +54,23 @@ module TrinsicApi
|
|
50
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
55
|
def initialize(attributes = {})
|
52
56
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::AadhaarInput` initialize method"
|
54
58
|
end
|
55
59
|
|
56
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::AadhaarInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
64
|
end
|
61
65
|
h[k.to_sym] = v
|
62
66
|
}
|
63
67
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
|
66
|
-
self.member_names = value
|
67
|
-
end
|
68
|
-
else
|
69
|
-
self.member_names = nil
|
68
|
+
if attributes.key?(:'full_name')
|
69
|
+
self.full_name = attributes[:'full_name']
|
70
70
|
end
|
71
71
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
72
|
+
if attributes.key?(:'date_of_birth')
|
73
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -79,10 +79,6 @@ module TrinsicApi
|
|
79
79
|
def list_invalid_properties
|
80
80
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
81
|
invalid_properties = Array.new
|
82
|
-
if @member_names.nil?
|
83
|
-
invalid_properties.push('invalid value for "member_names", member_names cannot be nil.')
|
84
|
-
end
|
85
|
-
|
86
82
|
invalid_properties
|
87
83
|
end
|
88
84
|
|
@@ -90,7 +86,6 @@ module TrinsicApi
|
|
90
86
|
# @return true if the model is valid
|
91
87
|
def valid?
|
92
88
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
|
-
return false if @member_names.nil?
|
94
89
|
true
|
95
90
|
end
|
96
91
|
|
@@ -99,8 +94,8 @@ module TrinsicApi
|
|
99
94
|
def ==(o)
|
100
95
|
return true if self.equal?(o)
|
101
96
|
self.class == o.class &&
|
102
|
-
|
103
|
-
|
97
|
+
full_name == o.full_name &&
|
98
|
+
date_of_birth == o.date_of_birth
|
104
99
|
end
|
105
100
|
|
106
101
|
# @see the `==` method
|
@@ -112,7 +107,7 @@ module TrinsicApi
|
|
112
107
|
# Calculates hash code according to all attributes.
|
113
108
|
# @return [Integer] Hash code
|
114
109
|
def hash
|
115
|
-
[
|
110
|
+
[full_name, date_of_birth].hash
|
116
111
|
end
|
117
112
|
|
118
113
|
# Builds the object from hash
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,7 +14,6 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
# Address information for an individual
|
18
17
|
class Address
|
19
18
|
attr_accessor :line1
|
20
19
|
|
@@ -24,13 +23,12 @@ module TrinsicApi
|
|
24
23
|
|
25
24
|
attr_accessor :city
|
26
25
|
|
27
|
-
attr_accessor :
|
26
|
+
attr_accessor :subdivision
|
28
27
|
|
29
28
|
attr_accessor :postal_code
|
30
29
|
|
31
30
|
attr_accessor :country
|
32
31
|
|
33
|
-
# The full address as a single string
|
34
32
|
attr_accessor :full_address
|
35
33
|
|
36
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -40,7 +38,7 @@ module TrinsicApi
|
|
40
38
|
:'line2' => :'line2',
|
41
39
|
:'line3' => :'line3',
|
42
40
|
:'city' => :'city',
|
43
|
-
:'
|
41
|
+
:'subdivision' => :'subdivision',
|
44
42
|
:'postal_code' => :'postalCode',
|
45
43
|
:'country' => :'country',
|
46
44
|
:'full_address' => :'fullAddress'
|
@@ -59,7 +57,7 @@ module TrinsicApi
|
|
59
57
|
:'line2' => :'String',
|
60
58
|
:'line3' => :'String',
|
61
59
|
:'city' => :'String',
|
62
|
-
:'
|
60
|
+
:'subdivision' => :'String',
|
63
61
|
:'postal_code' => :'String',
|
64
62
|
:'country' => :'String',
|
65
63
|
:'full_address' => :'String'
|
@@ -69,6 +67,14 @@ module TrinsicApi
|
|
69
67
|
# List of attributes with nullable: true
|
70
68
|
def self.openapi_nullable
|
71
69
|
Set.new([
|
70
|
+
:'line1',
|
71
|
+
:'line2',
|
72
|
+
:'line3',
|
73
|
+
:'city',
|
74
|
+
:'subdivision',
|
75
|
+
:'postal_code',
|
76
|
+
:'country',
|
77
|
+
:'full_address'
|
72
78
|
])
|
73
79
|
end
|
74
80
|
|
@@ -103,8 +109,8 @@ module TrinsicApi
|
|
103
109
|
self.city = attributes[:'city']
|
104
110
|
end
|
105
111
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
112
|
+
if attributes.key?(:'subdivision')
|
113
|
+
self.subdivision = attributes[:'subdivision']
|
108
114
|
end
|
109
115
|
|
110
116
|
if attributes.key?(:'postal_code')
|
@@ -144,7 +150,7 @@ module TrinsicApi
|
|
144
150
|
line2 == o.line2 &&
|
145
151
|
line3 == o.line3 &&
|
146
152
|
city == o.city &&
|
147
|
-
|
153
|
+
subdivision == o.subdivision &&
|
148
154
|
postal_code == o.postal_code &&
|
149
155
|
country == o.country &&
|
150
156
|
full_address == o.full_address
|
@@ -159,7 +165,7 @@ module TrinsicApi
|
|
159
165
|
# Calculates hash code according to all attributes.
|
160
166
|
# @return [Integer] Hash code
|
161
167
|
def hash
|
162
|
-
[line1, line2, line3, city,
|
168
|
+
[line1, line2, line3, city, subdivision, postal_code, country, full_address].hash
|
163
169
|
end
|
164
170
|
|
165
171
|
# Builds the object from hash
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,27 +14,25 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
# Attachment Access Keys for attachments (eg document / selfie images)
|
18
17
|
class AttachmentAccessKeys
|
19
|
-
# Key to access the selfie image (if relevant) for this verification
|
20
18
|
attr_accessor :selfie
|
21
19
|
|
22
|
-
# Key to access the document front image (if relevant) for this verification
|
23
20
|
attr_accessor :document_front
|
24
21
|
|
25
|
-
# Key to access the document back image (if relevant) for this verification
|
26
22
|
attr_accessor :document_back
|
27
23
|
|
28
|
-
# Key to access the document portrait image (if relevant and available) for this verification. Specifically, this is a cropped version of the document front image which includes only the portrait on the document.
|
29
24
|
attr_accessor :document_portrait
|
30
25
|
|
26
|
+
attr_accessor :provider
|
27
|
+
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
29
|
def self.attribute_map
|
33
30
|
{
|
34
31
|
:'selfie' => :'selfie',
|
35
32
|
:'document_front' => :'documentFront',
|
36
33
|
:'document_back' => :'documentBack',
|
37
|
-
:'document_portrait' => :'documentPortrait'
|
34
|
+
:'document_portrait' => :'documentPortrait',
|
35
|
+
:'provider' => :'provider'
|
38
36
|
}
|
39
37
|
end
|
40
38
|
|
@@ -49,13 +47,18 @@ module TrinsicApi
|
|
49
47
|
:'selfie' => :'String',
|
50
48
|
:'document_front' => :'String',
|
51
49
|
:'document_back' => :'String',
|
52
|
-
:'document_portrait' => :'String'
|
50
|
+
:'document_portrait' => :'String',
|
51
|
+
:'provider' => :'ProviderAttachments'
|
53
52
|
}
|
54
53
|
end
|
55
54
|
|
56
55
|
# List of attributes with nullable: true
|
57
56
|
def self.openapi_nullable
|
58
57
|
Set.new([
|
58
|
+
:'selfie',
|
59
|
+
:'document_front',
|
60
|
+
:'document_back',
|
61
|
+
:'document_portrait',
|
59
62
|
])
|
60
63
|
end
|
61
64
|
|
@@ -89,6 +92,12 @@ module TrinsicApi
|
|
89
92
|
if attributes.key?(:'document_portrait')
|
90
93
|
self.document_portrait = attributes[:'document_portrait']
|
91
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'provider')
|
97
|
+
self.provider = attributes[:'provider']
|
98
|
+
else
|
99
|
+
self.provider = nil
|
100
|
+
end
|
92
101
|
end
|
93
102
|
|
94
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -96,6 +105,10 @@ module TrinsicApi
|
|
96
105
|
def list_invalid_properties
|
97
106
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
98
107
|
invalid_properties = Array.new
|
108
|
+
if @provider.nil?
|
109
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
110
|
+
end
|
111
|
+
|
99
112
|
invalid_properties
|
100
113
|
end
|
101
114
|
|
@@ -103,6 +116,7 @@ module TrinsicApi
|
|
103
116
|
# @return true if the model is valid
|
104
117
|
def valid?
|
105
118
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
119
|
+
return false if @provider.nil?
|
106
120
|
true
|
107
121
|
end
|
108
122
|
|
@@ -114,7 +128,8 @@ module TrinsicApi
|
|
114
128
|
selfie == o.selfie &&
|
115
129
|
document_front == o.document_front &&
|
116
130
|
document_back == o.document_back &&
|
117
|
-
document_portrait == o.document_portrait
|
131
|
+
document_portrait == o.document_portrait &&
|
132
|
+
provider == o.provider
|
118
133
|
end
|
119
134
|
|
120
135
|
# @see the `==` method
|
@@ -126,7 +141,7 @@ module TrinsicApi
|
|
126
141
|
# Calculates hash code according to all attributes.
|
127
142
|
# @return [Integer] Hash code
|
128
143
|
def hash
|
129
|
-
[selfie, document_front, document_back, document_portrait].hash
|
144
|
+
[selfie, document_front, document_back, document_portrait, provider].hash
|
130
145
|
end
|
131
146
|
|
132
147
|
# Builds the object from hash
|