trinsic_api 1.2.0 → 2.0.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.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/AadhaarInput.md +20 -0
  4. data/docs/Address.md +3 -3
  5. data/docs/AttachmentAccessKeys.md +7 -5
  6. data/docs/AttachmentsApi.md +1 -1
  7. data/docs/BangladeshNationalIdInput.md +24 -0
  8. data/docs/BrazilCpfCheckInput.md +18 -0
  9. data/docs/BrazilDigitalCnhInput.md +24 -0
  10. data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
  11. data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
  12. data/docs/CreateHostedProviderSessionRequest.md +22 -0
  13. data/docs/CreateHostedProviderSessionResponse.md +22 -0
  14. data/docs/CreateWidgetSessionRequest.md +22 -0
  15. data/docs/CreateWidgetSessionResponse.md +22 -0
  16. data/docs/DocumentData.md +3 -3
  17. data/docs/DocumentScanAttachments.md +18 -0
  18. data/docs/{SessionState.md → DocumentType.md} +2 -2
  19. data/docs/HttpValidationProblemDetails.md +28 -0
  20. data/docs/IdentityData.md +6 -4
  21. data/docs/IdinInput.md +18 -0
  22. data/docs/IndonesiaNikInput.md +22 -0
  23. data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
  24. data/docs/IntegrationLaunchMethod.md +15 -0
  25. data/docs/IntegrationStep.md +22 -0
  26. data/docs/KenyaNidInput.md +28 -0
  27. data/docs/{SessionFailCode.md → Language.md} +2 -2
  28. data/docs/ListProviderContractsResponse.md +18 -0
  29. data/docs/MexicoCurpInput.md +18 -0
  30. data/docs/MobileIdInput.md +22 -0
  31. data/docs/NetworkApi.md +22 -25
  32. data/docs/NigeriaNinInput.md +30 -0
  33. data/docs/PersonData.md +14 -12
  34. data/docs/PhilippineMatchInput.md +26 -0
  35. data/docs/PhilippineQRInput.md +20 -0
  36. data/docs/ProblemDetails.md +26 -0
  37. data/docs/ProviderAttachments.md +18 -0
  38. data/docs/ProviderContract.md +46 -0
  39. data/docs/ProviderInformation.md +3 -3
  40. data/docs/ProviderInput.md +50 -0
  41. data/docs/RecommendRequest.md +2 -6
  42. data/docs/RecommendationInfo.md +24 -0
  43. data/docs/RefreshStepContentRequest.md +18 -0
  44. data/docs/RefreshStepContentResponse.md +18 -0
  45. data/docs/ResultCollection.md +20 -0
  46. data/docs/ResultCollectionMethod.md +15 -0
  47. data/docs/Session.md +6 -8
  48. data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
  49. data/docs/SessionsApi.md +237 -19
  50. data/docs/Sex.md +15 -0
  51. data/docs/SmartIdInput.md +18 -0
  52. data/docs/SouthAfricaNidInput.md +24 -0
  53. data/docs/SpidInput.md +18 -0
  54. data/docs/StepRefreshInfo.md +22 -0
  55. data/docs/SubProviderMetadata.md +24 -0
  56. data/docs/TrinsicTestDatabaseLookupInput.md +24 -0
  57. data/docs/TrinsicTestSubProvidersInput.md +18 -0
  58. data/lib/trinsic_api/api/attachments_api.rb +3 -3
  59. data/lib/trinsic_api/api/network_api.rb +19 -25
  60. data/lib/trinsic_api/api/sessions_api.rb +219 -21
  61. data/lib/trinsic_api/api_client.rb +1 -1
  62. data/lib/trinsic_api/api_error.rb +1 -1
  63. data/lib/trinsic_api/configuration.rb +1 -1
  64. data/lib/trinsic_api/models/aadhaar_input.rb +227 -0
  65. data/lib/trinsic_api/models/address.rb +16 -10
  66. data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
  67. data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
  68. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
  69. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
  70. data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
  71. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
  72. data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
  73. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
  74. data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +256 -0
  75. data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
  76. data/lib/trinsic_api/models/create_widget_session_response.rb +256 -0
  77. data/lib/trinsic_api/models/document_data.rb +32 -4
  78. data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
  79. data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
  80. data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
  81. data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
  82. data/lib/trinsic_api/models/get_session_response.rb +1 -1
  83. data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
  84. data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
  85. data/lib/trinsic_api/models/{known_address.rb → http_validation_problem_details.rb} +55 -51
  86. data/lib/trinsic_api/models/identity_data.rb +16 -6
  87. data/lib/trinsic_api/models/{known_identity_data.rb → idin_input.rb} +13 -13
  88. data/lib/trinsic_api/models/{disclosed_fields_request.rb → indonesia_nik_input.rb} +94 -93
  89. data/lib/trinsic_api/models/integration_capability.rb +44 -0
  90. data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
  91. data/lib/trinsic_api/models/integration_step.rb +275 -0
  92. data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
  93. data/lib/trinsic_api/models/language.rb +42 -0
  94. data/lib/trinsic_api/models/{validation_result.rb → list_provider_contracts_response.rb} +17 -25
  95. data/lib/trinsic_api/models/list_providers_response.rb +1 -1
  96. data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
  97. data/lib/trinsic_api/models/{create_session_response.rb → mexico_curp_input.rb} +44 -26
  98. data/lib/trinsic_api/models/mobile_id_input.rb +260 -0
  99. data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
  100. data/lib/trinsic_api/models/order_direction.rb +1 -1
  101. data/lib/trinsic_api/models/person_data.rb +50 -15
  102. data/lib/trinsic_api/models/{known_person_data.rb → philippine_match_input.rb} +28 -33
  103. data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
  104. data/lib/trinsic_api/models/{verification.rb → problem_details.rb} +49 -42
  105. data/lib/trinsic_api/models/provider_attachments.rb +215 -0
  106. data/lib/trinsic_api/models/provider_contract.rb +482 -0
  107. data/lib/trinsic_api/models/provider_info.rb +1 -1
  108. data/lib/trinsic_api/models/provider_information.rb +1 -1
  109. data/lib/trinsic_api/models/provider_input.rb +392 -0
  110. data/lib/trinsic_api/models/recommend_request.rb +10 -40
  111. data/lib/trinsic_api/models/recommend_response.rb +1 -1
  112. data/lib/trinsic_api/models/recommendation_info.rb +256 -0
  113. data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
  114. data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
  115. data/lib/trinsic_api/models/result_collection.rb +261 -0
  116. data/lib/trinsic_api/models/result_collection_method.rb +40 -0
  117. data/lib/trinsic_api/models/session.rb +32 -48
  118. data/lib/trinsic_api/models/session_error_code.rb +48 -0
  119. data/lib/trinsic_api/models/session_ordering.rb +1 -1
  120. data/lib/trinsic_api/models/sex.rb +42 -0
  121. data/lib/trinsic_api/models/smart_id_input.rb +216 -0
  122. data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
  123. data/lib/trinsic_api/models/spid_input.rb +216 -0
  124. data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
  125. data/lib/trinsic_api/models/sub_provider_metadata.rb +274 -0
  126. data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +249 -0
  127. data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +216 -0
  128. data/lib/trinsic_api/version.rb +2 -2
  129. data/lib/trinsic_api.rb +45 -15
  130. data/spec/api/attachments_api_spec.rb +2 -2
  131. data/spec/api/network_api_spec.rb +8 -9
  132. data/spec/api/sessions_api_spec.rb +45 -8
  133. data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
  134. data/spec/models/address_spec.rb +2 -2
  135. data/spec/models/attachment_access_keys_spec.rb +7 -1
  136. data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
  137. data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
  138. data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
  139. data/spec/models/cancel_session_response_spec.rb +1 -1
  140. data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
  141. data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
  142. data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
  143. data/spec/models/create_hosted_provider_session_response_spec.rb +48 -0
  144. data/spec/models/create_widget_session_request_spec.rb +48 -0
  145. data/spec/models/create_widget_session_response_spec.rb +48 -0
  146. data/spec/models/document_data_spec.rb +1 -1
  147. data/spec/models/document_scan_attachments_spec.rb +36 -0
  148. data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
  149. data/spec/models/get_attachment_request_spec.rb +1 -1
  150. data/spec/models/get_attachment_response_spec.rb +1 -1
  151. data/spec/models/get_session_response_spec.rb +1 -1
  152. data/spec/models/get_session_result_request_spec.rb +1 -1
  153. data/spec/models/get_session_result_response_spec.rb +1 -1
  154. data/spec/models/http_validation_problem_details_spec.rb +66 -0
  155. data/spec/models/identity_data_spec.rb +7 -1
  156. data/spec/models/{failure_message_spec.rb → idin_input_spec.rb} +8 -8
  157. data/spec/models/indonesia_nik_input_spec.rb +48 -0
  158. data/spec/models/integration_capability_spec.rb +30 -0
  159. data/spec/models/integration_launch_method_spec.rb +30 -0
  160. data/spec/models/integration_step_spec.rb +48 -0
  161. data/spec/models/{known_person_data_spec.rb → kenya_nid_input_spec.rb} +13 -13
  162. data/spec/models/{session_fail_code_spec.rb → language_spec.rb} +7 -7
  163. data/spec/models/list_provider_contracts_response_spec.rb +36 -0
  164. data/spec/models/list_providers_response_spec.rb +1 -1
  165. data/spec/models/list_sessions_response_spec.rb +1 -1
  166. data/spec/models/{known_identity_data_spec.rb → mexico_curp_input_spec.rb} +8 -8
  167. data/spec/models/mobile_id_input_spec.rb +48 -0
  168. data/spec/models/{known_address_spec.rb → nigeria_nin_input_spec.rb} +14 -14
  169. data/spec/models/order_direction_spec.rb +1 -1
  170. data/spec/models/person_data_spec.rb +8 -2
  171. data/spec/models/{create_session_request_spec.rb → philippine_match_input_spec.rb} +12 -12
  172. data/spec/models/{create_session_response_spec.rb → philippine_qr_input_spec.rb} +9 -9
  173. data/spec/models/problem_details_spec.rb +60 -0
  174. data/spec/models/provider_attachments_spec.rb +36 -0
  175. data/spec/models/{disclosed_fields_request_spec.rb → provider_contract_spec.rb} +37 -19
  176. data/spec/models/provider_info_spec.rb +1 -1
  177. data/spec/models/provider_information_spec.rb +1 -1
  178. data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +49 -19
  179. data/spec/models/recommend_request_spec.rb +2 -14
  180. data/spec/models/recommend_response_spec.rb +1 -1
  181. data/spec/models/recommendation_info_spec.rb +54 -0
  182. data/spec/models/refresh_step_content_request_spec.rb +36 -0
  183. data/spec/models/refresh_step_content_response_spec.rb +36 -0
  184. data/spec/models/result_collection_method_spec.rb +30 -0
  185. data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
  186. data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
  187. data/spec/models/session_ordering_spec.rb +1 -1
  188. data/spec/models/session_spec.rb +4 -10
  189. data/spec/models/sex_spec.rb +30 -0
  190. data/spec/models/smart_id_input_spec.rb +36 -0
  191. data/spec/models/south_africa_nid_input_spec.rb +54 -0
  192. data/spec/models/spid_input_spec.rb +36 -0
  193. data/spec/models/step_refresh_info_spec.rb +48 -0
  194. data/spec/models/sub_provider_metadata_spec.rb +54 -0
  195. data/spec/models/trinsic_test_database_lookup_input_spec.rb +54 -0
  196. data/spec/models/trinsic_test_sub_providers_input_spec.rb +36 -0
  197. data/spec/spec_helper.rb +1 -1
  198. data/trinsic_api.gemspec +1 -1
  199. metadata +195 -75
  200. data/docs/CreateSessionRequest.md +0 -26
  201. data/docs/CreateSessionResponse.md +0 -20
  202. data/docs/DisclosedFields.md +0 -40
  203. data/docs/DisclosedFieldsRequest.md +0 -40
  204. data/docs/IdentityLookupResponse.md +0 -18
  205. data/docs/KnownAddress.md +0 -30
  206. data/docs/KnownIdentityData.md +0 -18
  207. data/docs/KnownPersonData.md +0 -28
  208. data/docs/ValidationResult.md +0 -20
  209. data/docs/Verification.md +0 -20
  210. data/lib/trinsic_api/models/create_session_request.rb +0 -257
  211. data/lib/trinsic_api/models/session_fail_code.rb +0 -45
  212. data/lib/trinsic_api/models/verification_fail_code.rb +0 -44
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
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
- # Create a Session to verify a user's identity
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 [CreateSessionRequest] :create_session_request
89
- # @return [CreateSessionResponse]
90
- def create_session(opts = {})
91
- data, _status_code, _headers = create_session_with_http_info(opts)
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
- # Create a Session to verify a user's identity
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 [CreateSessionRequest] :create_session_request
99
- # @return [Array<(CreateSessionResponse, Integer, Hash)>] CreateSessionResponse data, response status code and response headers
100
- def create_session_with_http_info(opts = {})
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.create_session ...'
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[:'create_session_request'])
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] || 'CreateSessionResponse'
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.create_session",
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#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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&#39;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&#39;s identity using Trinsic&#39;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] || {}
@@ -363,7 +491,7 @@ module TrinsicApi
363
491
  end
364
492
 
365
493
  # Redact Session
366
- # Redact a Session, removing all identity data from Trinsic's servers. Every application has a redaction period that dictates how long we will hold on to your users' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
494
+ # Redact a Session, removing all identity data from Trinsic's servers. Every application has a redaction period that dictates how long we will hold on to your users' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
367
495
  # @param session_id [String]
368
496
  # @param [Hash] opts the optional parameters
369
497
  # @return [nil]
@@ -373,7 +501,7 @@ module TrinsicApi
373
501
  end
374
502
 
375
503
  # Redact Session
376
- # Redact a Session, removing all identity data from Trinsic&#39;s servers. Every application has a redaction period that dictates how long we will hold on to your users&#39; PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
504
+ # Redact a Session, removing all identity data from Trinsic&#39;s servers. Every application has a redaction period that dictates how long we will hold on to your users&#39; PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
377
505
  # @param session_id [String]
378
506
  # @param [Hash] opts the optional parameters
379
507
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -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
- #Connect API
2
+ #Trinsic API
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
2
+ #Trinsic API
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
2
+ #Trinsic API
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Trinsic API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class AadhaarInput
18
+ # The user's full name
19
+ attr_accessor :full_name
20
+
21
+ # The user's date of birth, in `YYYY-MM-DD` format
22
+ attr_accessor :date_of_birth
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'full_name' => :'fullName',
28
+ :'date_of_birth' => :'dateOfBirth'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'full_name' => :'String',
41
+ :'date_of_birth' => :'Date'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'full_name',
49
+ :'date_of_birth'
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::AadhaarInput` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
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
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'full_name')
69
+ self.full_name = attributes[:'full_name']
70
+ end
71
+
72
+ if attributes.key?(:'date_of_birth')
73
+ self.date_of_birth = attributes[:'date_of_birth']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
81
+ invalid_properties = Array.new
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ full_name == o.full_name &&
98
+ date_of_birth == o.date_of_birth
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Integer] Hash code
109
+ def hash
110
+ [full_name, date_of_birth].hash
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def self.build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ attributes = attributes.transform_keys(&:to_sym)
119
+ transformed_hash = {}
120
+ openapi_types.each_pair do |key, type|
121
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
122
+ transformed_hash["#{key}"] = nil
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[attribute_map[key]].is_a?(Array)
127
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
128
+ end
129
+ elsif !attributes[attribute_map[key]].nil?
130
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
131
+ end
132
+ end
133
+ new(transformed_hash)
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def self._deserialize(type, value)
141
+ case type.to_sym
142
+ when :Time
143
+ Time.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :Boolean
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ # models (e.g. Pet) or oneOf
174
+ klass = TrinsicApi.const_get(type)
175
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+
225
+ end
226
+
227
+ end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
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 :state
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
- :'state' => :'state',
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
- :'state' => :'String',
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?(:'state')
107
- self.state = attributes[:'state']
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
- state == o.state &&
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, state, postal_code, country, full_address].hash
168
+ [line1, line2, line3, city, subdivision, postal_code, country, full_address].hash
163
169
  end
164
170
 
165
171
  # Builds the object from hash