trinsic_api 0.3.0 → 0.4.0
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/README.md +21 -21
- data/docs/AttachmentsApi.md +15 -13
- data/docs/{ExchangeAttachmentAccessKeyRequest.md → GetAttachmentRequest.md} +2 -2
- data/docs/{ExchangeResultsKeyRequest.md → GetSessionResultRequest.md} +2 -2
- data/docs/{ExchangeResultsKeyResponse.md → GetSessionResultResponse.md} +2 -2
- data/docs/NetworkApi.md +10 -6
- data/docs/SessionsApi.md +56 -46
- data/lib/trinsic_api/api/attachments_api.rb +14 -12
- data/lib/trinsic_api/api/network_api.rb +7 -3
- data/lib/trinsic_api/api/sessions_api.rb +54 -44
- 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/address.rb +1 -1
- data/lib/trinsic_api/models/attachments.rb +1 -1
- data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
- data/lib/trinsic_api/models/create_session_request.rb +1 -1
- data/lib/trinsic_api/models/create_session_response.rb +1 -1
- data/lib/trinsic_api/models/disclosed_fields.rb +1 -1
- data/lib/trinsic_api/models/disclosed_fields_request.rb +1 -1
- data/lib/trinsic_api/models/document_data.rb +1 -1
- data/lib/trinsic_api/models/failure_message.rb +1 -1
- data/lib/trinsic_api/models/{exchange_attachment_access_key_request.rb → get_attachment_request.rb} +4 -4
- data/lib/trinsic_api/models/get_session_response.rb +1 -1
- data/lib/trinsic_api/models/{exchange_results_key_request.rb → get_session_result_request.rb} +4 -4
- data/lib/trinsic_api/models/{exchange_results_key_response.rb → get_session_result_response.rb} +4 -4
- data/lib/trinsic_api/models/identity_data.rb +1 -1
- data/lib/trinsic_api/models/identity_lookup_response.rb +1 -1
- 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/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +1 -1
- data/lib/trinsic_api/models/provider_info.rb +1 -1
- data/lib/trinsic_api/models/session.rb +1 -1
- data/lib/trinsic_api/models/session_fail_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/session_state.rb +1 -1
- data/lib/trinsic_api/models/validation_result.rb +1 -1
- data/lib/trinsic_api/models/verification.rb +1 -1
- data/lib/trinsic_api/models/verification_fail_code.rb +1 -1
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +4 -4
- data/spec/api/attachments_api_spec.rb +5 -4
- data/spec/api/network_api_spec.rb +3 -1
- data/spec/api/sessions_api_spec.rb +15 -10
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachments_spec.rb +1 -1
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_session_request_spec.rb +1 -1
- data/spec/models/create_session_response_spec.rb +1 -1
- data/spec/models/disclosed_fields_request_spec.rb +1 -1
- data/spec/models/disclosed_fields_spec.rb +1 -1
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/failure_message_spec.rb +1 -1
- data/spec/models/{exchange_attachment_access_key_request_spec.rb → get_attachment_request_spec.rb} +7 -7
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/{exchange_results_key_request_spec.rb → get_session_result_request_spec.rb} +7 -7
- data/spec/models/{exchange_results_key_response_spec.rb → get_session_result_response_spec.rb} +7 -7
- data/spec/models/identity_data_spec.rb +1 -1
- data/spec/models/identity_lookup_response_spec.rb +1 -1
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +1 -1
- data/spec/models/provider_info_spec.rb +1 -1
- data/spec/models/session_fail_code_spec.rb +1 -1
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/session_state_spec.rb +1 -1
- data/spec/models/validation_result_spec.rb +1 -1
- data/spec/models/verification_fail_code_spec.rb +1 -1
- data/spec/models/verification_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +3 -3
- metadata +16 -16
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ module TrinsicApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Lookup Identity
|
22
23
|
# Query the availability of an identity in the Trinsic Network by phone number
|
23
24
|
# @param phone_number [String]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module TrinsicApi
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Lookup Identity
|
31
33
|
# Query the availability of an identity in the Trinsic Network by phone number
|
32
34
|
# @param phone_number [String]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -49,7 +51,7 @@ module TrinsicApi
|
|
49
51
|
# header parameters
|
50
52
|
header_params = opts[:header_params] || {}
|
51
53
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
53
55
|
|
54
56
|
# form parameters
|
55
57
|
form_params = opts[:form_params] || {}
|
@@ -80,6 +82,7 @@ module TrinsicApi
|
|
80
82
|
return data, status_code, headers
|
81
83
|
end
|
82
84
|
|
85
|
+
# List Identity Providers
|
83
86
|
# List all identity providers available for use
|
84
87
|
# @param [Hash] opts the optional parameters
|
85
88
|
# @return [ListProvidersResponse]
|
@@ -88,6 +91,7 @@ module TrinsicApi
|
|
88
91
|
data
|
89
92
|
end
|
90
93
|
|
94
|
+
# List Identity Providers
|
91
95
|
# List all identity providers available for use
|
92
96
|
# @param [Hash] opts the optional parameters
|
93
97
|
# @return [Array<(ListProvidersResponse, Integer, Hash)>] ListProvidersResponse data, response status code and response headers
|
@@ -104,7 +108,7 @@ module TrinsicApi
|
|
104
108
|
# header parameters
|
105
109
|
header_params = opts[:header_params] || {}
|
106
110
|
# HTTP header 'Accept' (if needed)
|
107
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
108
112
|
|
109
113
|
# form parameters
|
110
114
|
form_params = opts[:form_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ module TrinsicApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Cancel Session
|
22
23
|
# Cancel a Session by its ID
|
23
24
|
# @param session_id [String]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module TrinsicApi
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Cancel Session
|
31
33
|
# Cancel a Session by its ID
|
32
34
|
# @param session_id [String]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -49,7 +51,7 @@ module TrinsicApi
|
|
49
51
|
# header parameters
|
50
52
|
header_params = opts[:header_params] || {}
|
51
53
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
53
55
|
|
54
56
|
# form parameters
|
55
57
|
form_params = opts[:form_params] || {}
|
@@ -80,6 +82,7 @@ module TrinsicApi
|
|
80
82
|
return data, status_code, headers
|
81
83
|
end
|
82
84
|
|
85
|
+
# Create Session
|
83
86
|
# Create a Session to verify a user's identity
|
84
87
|
# @param [Hash] opts the optional parameters
|
85
88
|
# @option opts [CreateSessionRequest] :create_session_request
|
@@ -89,6 +92,7 @@ module TrinsicApi
|
|
89
92
|
data
|
90
93
|
end
|
91
94
|
|
95
|
+
# Create Session
|
92
96
|
# Create a Session to verify a user's identity
|
93
97
|
# @param [Hash] opts the optional parameters
|
94
98
|
# @option opts [CreateSessionRequest] :create_session_request
|
@@ -106,7 +110,7 @@ module TrinsicApi
|
|
106
110
|
# header parameters
|
107
111
|
header_params = opts[:header_params] || {}
|
108
112
|
# HTTP header 'Accept' (if needed)
|
109
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
110
114
|
# HTTP header 'Content-Type'
|
111
115
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
112
116
|
if !content_type.nil?
|
@@ -142,31 +146,31 @@ module TrinsicApi
|
|
142
146
|
return data, status_code, headers
|
143
147
|
end
|
144
148
|
|
145
|
-
#
|
149
|
+
# Get Session
|
150
|
+
# Get a Session by its ID
|
146
151
|
# @param session_id [String]
|
147
152
|
# @param [Hash] opts the optional parameters
|
148
|
-
# @
|
149
|
-
|
150
|
-
|
151
|
-
data, _status_code, _headers = exchange_results_key_with_http_info(session_id, opts)
|
153
|
+
# @return [GetSessionResponse]
|
154
|
+
def get_session(session_id, opts = {})
|
155
|
+
data, _status_code, _headers = get_session_with_http_info(session_id, opts)
|
152
156
|
data
|
153
157
|
end
|
154
158
|
|
155
|
-
#
|
159
|
+
# Get Session
|
160
|
+
# Get a Session by its ID
|
156
161
|
# @param session_id [String]
|
157
162
|
# @param [Hash] opts the optional parameters
|
158
|
-
# @
|
159
|
-
|
160
|
-
def exchange_results_key_with_http_info(session_id, opts = {})
|
163
|
+
# @return [Array<(GetSessionResponse, Integer, Hash)>] GetSessionResponse data, response status code and response headers
|
164
|
+
def get_session_with_http_info(session_id, opts = {})
|
161
165
|
if @api_client.config.debugging
|
162
|
-
@api_client.config.logger.debug 'Calling API: SessionsApi.
|
166
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.get_session ...'
|
163
167
|
end
|
164
168
|
# verify the required parameter 'session_id' is set
|
165
169
|
if @api_client.config.client_side_validation && session_id.nil?
|
166
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.
|
170
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.get_session"
|
167
171
|
end
|
168
172
|
# resource path
|
169
|
-
local_var_path = '/api/v1/sessions/{sessionId}
|
173
|
+
local_var_path = '/api/v1/sessions/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
170
174
|
|
171
175
|
# query parameters
|
172
176
|
query_params = opts[:query_params] || {}
|
@@ -174,27 +178,22 @@ module TrinsicApi
|
|
174
178
|
# header parameters
|
175
179
|
header_params = opts[:header_params] || {}
|
176
180
|
# HTTP header 'Accept' (if needed)
|
177
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
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
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
183
182
|
|
184
183
|
# form parameters
|
185
184
|
form_params = opts[:form_params] || {}
|
186
185
|
|
187
186
|
# http body (model)
|
188
|
-
post_body = opts[:debug_body]
|
187
|
+
post_body = opts[:debug_body]
|
189
188
|
|
190
189
|
# return_type
|
191
|
-
return_type = opts[:debug_return_type] || '
|
190
|
+
return_type = opts[:debug_return_type] || 'GetSessionResponse'
|
192
191
|
|
193
192
|
# auth_names
|
194
193
|
auth_names = opts[:debug_auth_names] || ['Bearer']
|
195
194
|
|
196
195
|
new_options = opts.merge(
|
197
|
-
:operation => :"SessionsApi.
|
196
|
+
:operation => :"SessionsApi.get_session",
|
198
197
|
:header_params => header_params,
|
199
198
|
:query_params => query_params,
|
200
199
|
:form_params => form_params,
|
@@ -203,36 +202,38 @@ module TrinsicApi
|
|
203
202
|
:return_type => return_type
|
204
203
|
)
|
205
204
|
|
206
|
-
data, status_code, headers = @api_client.call_api(:
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
207
206
|
if @api_client.config.debugging
|
208
|
-
@api_client.config.logger.debug "API called: SessionsApi#
|
207
|
+
@api_client.config.logger.debug "API called: SessionsApi#get_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
208
|
end
|
210
209
|
return data, status_code, headers
|
211
210
|
end
|
212
211
|
|
213
|
-
# Get
|
212
|
+
# Get Session Results
|
214
213
|
# @param session_id [String]
|
215
214
|
# @param [Hash] opts the optional parameters
|
216
|
-
# @
|
217
|
-
|
218
|
-
|
215
|
+
# @option opts [GetSessionResultRequest] :get_session_result_request
|
216
|
+
# @return [GetSessionResultResponse]
|
217
|
+
def get_session_result(session_id, opts = {})
|
218
|
+
data, _status_code, _headers = get_session_result_with_http_info(session_id, opts)
|
219
219
|
data
|
220
220
|
end
|
221
221
|
|
222
|
-
# Get
|
222
|
+
# Get Session Results
|
223
223
|
# @param session_id [String]
|
224
224
|
# @param [Hash] opts the optional parameters
|
225
|
-
# @
|
226
|
-
|
225
|
+
# @option opts [GetSessionResultRequest] :get_session_result_request
|
226
|
+
# @return [Array<(GetSessionResultResponse, Integer, Hash)>] GetSessionResultResponse data, response status code and response headers
|
227
|
+
def get_session_result_with_http_info(session_id, opts = {})
|
227
228
|
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug 'Calling API: SessionsApi.
|
229
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.get_session_result ...'
|
229
230
|
end
|
230
231
|
# verify the required parameter 'session_id' is set
|
231
232
|
if @api_client.config.client_side_validation && session_id.nil?
|
232
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.
|
233
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.get_session_result"
|
233
234
|
end
|
234
235
|
# resource path
|
235
|
-
local_var_path = '/api/v1/sessions/{sessionId}'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
236
|
+
local_var_path = '/api/v1/sessions/{sessionId}/results'.sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
236
237
|
|
237
238
|
# query parameters
|
238
239
|
query_params = opts[:query_params] || {}
|
@@ -240,22 +241,27 @@ module TrinsicApi
|
|
240
241
|
# header parameters
|
241
242
|
header_params = opts[:header_params] || {}
|
242
243
|
# HTTP header 'Accept' (if needed)
|
243
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
245
|
+
# HTTP header 'Content-Type'
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
247
|
+
if !content_type.nil?
|
248
|
+
header_params['Content-Type'] = content_type
|
249
|
+
end
|
244
250
|
|
245
251
|
# form parameters
|
246
252
|
form_params = opts[:form_params] || {}
|
247
253
|
|
248
254
|
# http body (model)
|
249
|
-
post_body = opts[:debug_body]
|
255
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'get_session_result_request'])
|
250
256
|
|
251
257
|
# return_type
|
252
|
-
return_type = opts[:debug_return_type] || '
|
258
|
+
return_type = opts[:debug_return_type] || 'GetSessionResultResponse'
|
253
259
|
|
254
260
|
# auth_names
|
255
261
|
auth_names = opts[:debug_auth_names] || ['Bearer']
|
256
262
|
|
257
263
|
new_options = opts.merge(
|
258
|
-
:operation => :"SessionsApi.
|
264
|
+
:operation => :"SessionsApi.get_session_result",
|
259
265
|
:header_params => header_params,
|
260
266
|
:query_params => query_params,
|
261
267
|
:form_params => form_params,
|
@@ -264,13 +270,14 @@ module TrinsicApi
|
|
264
270
|
:return_type => return_type
|
265
271
|
)
|
266
272
|
|
267
|
-
data, status_code, headers = @api_client.call_api(:
|
273
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
268
274
|
if @api_client.config.debugging
|
269
|
-
@api_client.config.logger.debug "API called: SessionsApi#
|
275
|
+
@api_client.config.logger.debug "API called: SessionsApi#get_session_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
270
276
|
end
|
271
277
|
return data, status_code, headers
|
272
278
|
end
|
273
279
|
|
280
|
+
# List Sessions
|
274
281
|
# List Sessions created by your account
|
275
282
|
# @param [Hash] opts the optional parameters
|
276
283
|
# @option opts [SessionOrdering] :order_by The field by which sessions should be ordered
|
@@ -283,6 +290,7 @@ module TrinsicApi
|
|
283
290
|
data
|
284
291
|
end
|
285
292
|
|
293
|
+
# List Sessions
|
286
294
|
# List Sessions created by your account
|
287
295
|
# @param [Hash] opts the optional parameters
|
288
296
|
# @option opts [SessionOrdering] :order_by The field by which sessions should be ordered
|
@@ -323,7 +331,7 @@ module TrinsicApi
|
|
323
331
|
# header parameters
|
324
332
|
header_params = opts[:header_params] || {}
|
325
333
|
# HTTP header 'Accept' (if needed)
|
326
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
334
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
327
335
|
|
328
336
|
# form parameters
|
329
337
|
form_params = opts[:form_params] || {}
|
@@ -354,6 +362,7 @@ module TrinsicApi
|
|
354
362
|
return data, status_code, headers
|
355
363
|
end
|
356
364
|
|
365
|
+
# Redact Session
|
357
366
|
# Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
358
367
|
# @param session_id [String]
|
359
368
|
# @param [Hash] opts the optional parameters
|
@@ -363,6 +372,7 @@ module TrinsicApi
|
|
363
372
|
nil
|
364
373
|
end
|
365
374
|
|
375
|
+
# Redact Session
|
366
376
|
# Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
367
377
|
# @param session_id [String]
|
368
378
|
# @param [Hash] opts the optional parameters
|
@@ -384,7 +394,7 @@ module TrinsicApi
|
|
384
394
|
# header parameters
|
385
395
|
header_params = opts[:header_params] || {}
|
386
396
|
# HTTP header 'Accept' (if needed)
|
387
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
388
398
|
|
389
399
|
# form parameters
|
390
400
|
form_params = opts[:form_params] || {}
|
data/lib/trinsic_api/models/{exchange_attachment_access_key_request.rb → get_attachment_request.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
17
|
+
class GetAttachmentRequest
|
18
18
|
# The Attachment Access Key to exchange for the raw file contents of the related Attachment
|
19
19
|
attr_accessor :attachment_access_key
|
20
20
|
|
@@ -47,13 +47,13 @@ module TrinsicApi
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::GetAttachmentRequest` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::GetAttachmentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
data/lib/trinsic_api/models/{exchange_results_key_request.rb → get_session_result_request.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
17
|
+
class GetSessionResultRequest
|
18
18
|
# The Results Access Key to exchange
|
19
19
|
attr_accessor :results_access_key
|
20
20
|
|
@@ -47,13 +47,13 @@ module TrinsicApi
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::GetSessionResultRequest` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::GetSessionResultRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
data/lib/trinsic_api/models/{exchange_results_key_response.rb → get_session_result_response.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
17
|
+
class GetSessionResultResponse
|
18
18
|
attr_accessor :session
|
19
19
|
|
20
20
|
attr_accessor :identity_data
|
@@ -50,13 +50,13 @@ module TrinsicApi
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::GetSessionResultResponse` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::GetSessionResultResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|