trinsic_api 2.0.0.pre.alpha3 → 2.0.1

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 (183) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/AttachmentsApi.md +1 -1
  4. data/docs/BrazilDigitalCnhInput.md +2 -2
  5. data/docs/CreateAdvancedProviderSessionRequest.md +3 -3
  6. data/docs/CreateHostedProviderSessionResponse.md +4 -2
  7. data/docs/CreateWidgetSessionRequest.md +3 -3
  8. data/docs/CreateWidgetSessionResponse.md +4 -2
  9. data/docs/IdentityData.md +2 -0
  10. data/docs/IdinInput.md +18 -0
  11. data/docs/IntegrationStep.md +1 -1
  12. data/docs/Language.md +15 -0
  13. data/docs/ListProviderContractsResponse.md +18 -0
  14. data/docs/MobileIdInput.md +22 -0
  15. data/docs/NetworkApi.md +71 -4
  16. data/docs/ProviderContract.md +48 -0
  17. data/docs/ProviderHealth.md +15 -0
  18. data/docs/ProviderInfo.md +1 -3
  19. data/docs/ProviderInformation.md +3 -3
  20. data/docs/ProviderInput.md +24 -12
  21. data/docs/RecommendRequest.md +2 -10
  22. data/docs/RecommendationInfo.md +24 -0
  23. data/docs/ResultCollection.md +2 -2
  24. data/docs/Session.md +3 -3
  25. data/docs/SessionsApi.md +2 -2
  26. data/docs/SmartIdInput.md +18 -0
  27. data/docs/SpidInput.md +18 -0
  28. data/docs/StepRefreshInfo.md +1 -1
  29. data/docs/SubProviderMetadata.md +24 -0
  30. data/docs/TrinsicTestDatabaseLookupInput.md +24 -0
  31. data/docs/TrinsicTestSubProvidersInput.md +18 -0
  32. data/docs/WellKnownApi.md +71 -0
  33. data/lib/trinsic_api/api/attachments_api.rb +3 -3
  34. data/lib/trinsic_api/api/network_api.rb +60 -3
  35. data/lib/trinsic_api/api/sessions_api.rb +5 -5
  36. data/lib/trinsic_api/api/well_known_api.rb +75 -0
  37. data/lib/trinsic_api/api_client.rb +8 -9
  38. data/lib/trinsic_api/api_error.rb +1 -1
  39. data/lib/trinsic_api/configuration.rb +1 -1
  40. data/lib/trinsic_api/models/aadhaar_input.rb +10 -4
  41. data/lib/trinsic_api/models/address.rb +10 -4
  42. data/lib/trinsic_api/models/attachment_access_keys.rb +20 -4
  43. data/lib/trinsic_api/models/bangladesh_national_id_input.rb +10 -4
  44. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +10 -4
  45. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +12 -6
  46. data/lib/trinsic_api/models/cancel_session_response.rb +20 -4
  47. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +13 -7
  48. data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +40 -4
  49. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +10 -4
  50. data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +69 -10
  51. data/lib/trinsic_api/models/create_widget_session_request.rb +20 -14
  52. data/lib/trinsic_api/models/create_widget_session_response.rb +69 -10
  53. data/lib/trinsic_api/models/document_data.rb +10 -4
  54. data/lib/trinsic_api/models/document_scan_attachments.rb +10 -4
  55. data/lib/trinsic_api/models/document_type.rb +1 -1
  56. data/lib/trinsic_api/models/get_attachment_request.rb +10 -4
  57. data/lib/trinsic_api/models/get_attachment_response.rb +30 -4
  58. data/lib/trinsic_api/models/get_session_response.rb +20 -4
  59. data/lib/trinsic_api/models/get_session_result_request.rb +20 -4
  60. data/lib/trinsic_api/models/get_session_result_response.rb +20 -4
  61. data/lib/trinsic_api/models/http_validation_problem_details.rb +10 -4
  62. data/lib/trinsic_api/models/identity_data.rb +21 -5
  63. data/lib/trinsic_api/models/{known_identity_data.rb → idin_input.rb} +21 -16
  64. data/lib/trinsic_api/models/indonesia_nik_input.rb +20 -4
  65. data/lib/trinsic_api/models/integration_capability.rb +1 -1
  66. data/lib/trinsic_api/models/integration_launch_method.rb +3 -3
  67. data/lib/trinsic_api/models/integration_step.rb +30 -6
  68. data/lib/trinsic_api/models/kenya_nid_input.rb +20 -4
  69. data/lib/trinsic_api/models/language.rb +42 -0
  70. data/lib/trinsic_api/models/{known_address.rb → list_provider_contracts_response.rb} +39 -86
  71. data/lib/trinsic_api/models/list_providers_response.rb +20 -4
  72. data/lib/trinsic_api/models/list_sessions_response.rb +40 -4
  73. data/lib/trinsic_api/models/mexico_curp_input.rb +10 -4
  74. data/lib/trinsic_api/models/mobile_id_input.rb +266 -0
  75. data/lib/trinsic_api/models/nigeria_nin_input.rb +20 -4
  76. data/lib/trinsic_api/models/order_direction.rb +1 -1
  77. data/lib/trinsic_api/models/person_data.rb +10 -4
  78. data/lib/trinsic_api/models/philippine_match_input.rb +10 -4
  79. data/lib/trinsic_api/models/philippine_qr_input.rb +10 -4
  80. data/lib/trinsic_api/models/problem_details.rb +10 -4
  81. data/lib/trinsic_api/models/provider_attachments.rb +10 -4
  82. data/lib/trinsic_api/models/provider_contract.rb +655 -0
  83. data/lib/trinsic_api/models/provider_health.rb +40 -0
  84. data/lib/trinsic_api/models/provider_info.rb +44 -21
  85. data/lib/trinsic_api/models/provider_information.rb +40 -4
  86. data/lib/trinsic_api/models/provider_input.rb +92 -20
  87. data/lib/trinsic_api/models/recommend_request.rb +19 -63
  88. data/lib/trinsic_api/models/recommend_response.rb +40 -4
  89. data/lib/trinsic_api/models/recommendation_info.rb +262 -0
  90. data/lib/trinsic_api/models/refresh_step_content_request.rb +10 -4
  91. data/lib/trinsic_api/models/refresh_step_content_response.rb +20 -4
  92. data/lib/trinsic_api/models/result_collection.rb +38 -6
  93. data/lib/trinsic_api/models/result_collection_method.rb +1 -1
  94. data/lib/trinsic_api/models/session.rb +63 -7
  95. data/lib/trinsic_api/models/session_error_code.rb +1 -1
  96. data/lib/trinsic_api/models/session_ordering.rb +1 -1
  97. data/lib/trinsic_api/models/sex.rb +1 -1
  98. data/lib/trinsic_api/models/smart_id_input.rb +222 -0
  99. data/lib/trinsic_api/models/south_africa_nid_input.rb +20 -4
  100. data/lib/trinsic_api/models/spid_input.rb +222 -0
  101. data/lib/trinsic_api/models/step_refresh_info.rb +41 -5
  102. data/lib/trinsic_api/models/sub_provider_metadata.rb +320 -0
  103. data/lib/trinsic_api/models/{known_person_data.rb → trinsic_test_database_lookup_input.rb} +31 -69
  104. data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +222 -0
  105. data/lib/trinsic_api/version.rb +2 -2
  106. data/lib/trinsic_api.rb +14 -4
  107. data/spec/api/attachments_api_spec.rb +2 -2
  108. data/spec/api/network_api_spec.rb +13 -2
  109. data/spec/api/sessions_api_spec.rb +3 -3
  110. data/spec/api/well_known_api_spec.rb +44 -0
  111. data/spec/models/aadhaar_input_spec.rb +1 -1
  112. data/spec/models/address_spec.rb +1 -1
  113. data/spec/models/attachment_access_keys_spec.rb +1 -1
  114. data/spec/models/bangladesh_national_id_input_spec.rb +1 -1
  115. data/spec/models/brazil_cpf_check_input_spec.rb +1 -1
  116. data/spec/models/brazil_digital_cnh_input_spec.rb +1 -1
  117. data/spec/models/cancel_session_response_spec.rb +1 -1
  118. data/spec/models/create_advanced_provider_session_request_spec.rb +1 -1
  119. data/spec/models/create_advanced_provider_session_response_spec.rb +1 -1
  120. data/spec/models/create_hosted_provider_session_request_spec.rb +1 -1
  121. data/spec/models/create_hosted_provider_session_response_spec.rb +7 -1
  122. data/spec/models/create_widget_session_request_spec.rb +2 -2
  123. data/spec/models/create_widget_session_response_spec.rb +7 -1
  124. data/spec/models/document_data_spec.rb +1 -1
  125. data/spec/models/document_scan_attachments_spec.rb +1 -1
  126. data/spec/models/document_type_spec.rb +1 -1
  127. data/spec/models/get_attachment_request_spec.rb +1 -1
  128. data/spec/models/get_attachment_response_spec.rb +1 -1
  129. data/spec/models/get_session_response_spec.rb +1 -1
  130. data/spec/models/get_session_result_request_spec.rb +1 -1
  131. data/spec/models/get_session_result_response_spec.rb +1 -1
  132. data/spec/models/http_validation_problem_details_spec.rb +1 -1
  133. data/spec/models/identity_data_spec.rb +7 -1
  134. data/spec/models/{known_identity_data_spec.rb → idin_input_spec.rb} +8 -8
  135. data/spec/models/indonesia_nik_input_spec.rb +1 -1
  136. data/spec/models/integration_capability_spec.rb +1 -1
  137. data/spec/models/integration_launch_method_spec.rb +1 -1
  138. data/spec/models/integration_step_spec.rb +1 -1
  139. data/spec/models/kenya_nid_input_spec.rb +1 -1
  140. data/spec/models/language_spec.rb +30 -0
  141. data/spec/models/list_provider_contracts_response_spec.rb +36 -0
  142. data/spec/models/list_providers_response_spec.rb +1 -1
  143. data/spec/models/list_sessions_response_spec.rb +1 -1
  144. data/spec/models/mexico_curp_input_spec.rb +1 -1
  145. data/spec/models/mobile_id_input_spec.rb +48 -0
  146. data/spec/models/nigeria_nin_input_spec.rb +1 -1
  147. data/spec/models/order_direction_spec.rb +1 -1
  148. data/spec/models/person_data_spec.rb +1 -1
  149. data/spec/models/philippine_match_input_spec.rb +1 -1
  150. data/spec/models/philippine_qr_input_spec.rb +1 -1
  151. data/spec/models/problem_details_spec.rb +1 -1
  152. data/spec/models/provider_attachments_spec.rb +1 -1
  153. data/spec/models/provider_contract_spec.rb +126 -0
  154. data/spec/models/provider_health_spec.rb +30 -0
  155. data/spec/models/provider_info_spec.rb +1 -7
  156. data/spec/models/provider_information_spec.rb +1 -1
  157. data/spec/models/provider_input_spec.rb +37 -1
  158. data/spec/models/recommend_request_spec.rb +2 -26
  159. data/spec/models/recommend_response_spec.rb +1 -1
  160. data/spec/models/recommendation_info_spec.rb +54 -0
  161. data/spec/models/refresh_step_content_request_spec.rb +1 -1
  162. data/spec/models/refresh_step_content_response_spec.rb +1 -1
  163. data/spec/models/result_collection_method_spec.rb +1 -1
  164. data/spec/models/result_collection_spec.rb +1 -1
  165. data/spec/models/session_error_code_spec.rb +1 -1
  166. data/spec/models/session_ordering_spec.rb +1 -1
  167. data/spec/models/session_spec.rb +1 -1
  168. data/spec/models/sex_spec.rb +1 -1
  169. data/spec/models/smart_id_input_spec.rb +36 -0
  170. data/spec/models/south_africa_nid_input_spec.rb +1 -1
  171. data/spec/models/spid_input_spec.rb +36 -0
  172. data/spec/models/step_refresh_info_spec.rb +1 -1
  173. data/spec/models/sub_provider_metadata_spec.rb +54 -0
  174. data/spec/models/trinsic_test_database_lookup_input_spec.rb +54 -0
  175. data/spec/models/trinsic_test_sub_providers_input_spec.rb +36 -0
  176. data/spec/spec_helper.rb +1 -1
  177. data/trinsic_api.gemspec +1 -1
  178. metadata +96 -56
  179. data/docs/KnownAddress.md +0 -32
  180. data/docs/KnownIdentityData.md +0 -18
  181. data/docs/KnownPersonData.md +0 -32
  182. data/spec/models/known_address_spec.rb +0 -78
  183. data/spec/models/known_person_data_spec.rb +0 -78
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -25,9 +25,14 @@ module TrinsicApi
25
25
  }
26
26
  end
27
27
 
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
28
33
  # Returns all the JSON keys this model knows about
29
34
  def self.acceptable_attributes
30
- attribute_map.values
35
+ acceptable_attribute_map.values
31
36
  end
32
37
 
33
38
  # Attribute type mapping.
@@ -51,9 +56,10 @@ module TrinsicApi
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
54
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCpfCheckInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCpfCheckInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
57
63
  end
58
64
  h[k.to_sym] = v
59
65
  }
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -18,10 +18,10 @@ module TrinsicApi
18
18
  # The user's 11-digit, numeric CPF Number
19
19
  attr_accessor :cpf_number
20
20
 
21
- # The raw bytes of the digital CNH file collected from the user. TODO: Lucas or JP help me describe these below vvvvvvvv This can be: - An image containing a physical or digital QR code - A PDF file exported from the CNH app - Some scary third thing?
21
+ # The raw bytes of the digital CNH file collected from the user. TODO: Lucas or JP help me describe these below vvvvvvvv This can be: - An image containing a physical or digital QR code - A PDF file exported from the CNH app - Some scary third thing?
22
22
  attr_accessor :digital_cnh_file
23
23
 
24
- # The MIME Type of the file contained in `DigitalCnhFile`. Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
24
+ # The MIME Type of the file contained in `DigitalCnhFile`. Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
25
25
  attr_accessor :digital_cnh_file_content_type
26
26
 
27
27
  # The raw bytes of the image of the user's face, collected for biometric comparison.
@@ -37,9 +37,14 @@ module TrinsicApi
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -69,9 +74,10 @@ module TrinsicApi
69
74
  end
70
75
 
71
76
  # check to see if the attribute exists and convert string to symbol for hash key
77
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilDigitalCnhInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ if (!acceptable_attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilDigitalCnhInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
81
  end
76
82
  h[k.to_sym] = v
77
83
  }
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -24,9 +24,14 @@ module TrinsicApi
24
24
  }
25
25
  end
26
26
 
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
27
32
  # Returns all the JSON keys this model knows about
28
33
  def self.acceptable_attributes
29
- attribute_map.values
34
+ acceptable_attribute_map.values
30
35
  end
31
36
 
32
37
  # Attribute type mapping.
@@ -50,9 +55,10 @@ module TrinsicApi
50
55
  end
51
56
 
52
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
53
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CancelSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CancelSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
56
62
  end
57
63
  h[k.to_sym] = v
58
64
  }
@@ -84,6 +90,16 @@ module TrinsicApi
84
90
  true
85
91
  end
86
92
 
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] session Value to be assigned
95
+ def session=(session)
96
+ if session.nil?
97
+ fail ArgumentError, 'session cannot be nil'
98
+ end
99
+
100
+ @session = session
101
+ end
102
+
87
103
  # Checks equality by comparing each attribute.
88
104
  # @param [Object] Object to be compared
89
105
  def ==(o)
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -21,13 +21,13 @@ module TrinsicApi
21
21
  # Provider-specific input for those providers which require it.
22
22
  attr_accessor :provider_input
23
23
 
24
- # The Redirect URL to which the user should be sent after the session is complete. This field is required for providers which employ a redirect-based flow.
24
+ # The Redirect URL to which the user should be sent after the session is complete. This field is required for providers which employ a redirect-based flow.
25
25
  attr_accessor :redirect_url
26
26
 
27
- # The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering. Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`. The exception being refresh content to support updating the content of the launch method. For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities. To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities. If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities. If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation. Read more on how to integrate at <a href=\"https://docs.trinsic.id/docs/advanced-provider-sessions\">the guide on Advanced Provider Sessions</a>
27
+ # The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering. Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`. The exception being refresh content to support updating the content of the launch method. For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities. To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities. If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities. If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation. Read more on how to integrate at <a href=\"https://docs.trinsic.id/docs/advanced-provider-sessions\">the guide on Advanced Provider Sessions</a>
28
28
  attr_accessor :capabilities
29
29
 
30
- # Whether the session should fall back to a Trinsic-hosted UI in certain instances. Specifically, fallback will occur if any of the following are true: - You attempted to launch a provider which requires a capability you did not express support for - In this case, Trinsic's hosted UI will perform the necessary capability - You attempted to launch a provider which requires input, and the input was either not provided or incomplete - In this case, Trinsic's hosted UI will collect the necessary input from the user If fallback occurs, the session's NextStep will always be LaunchBrowser, and the CollectionMethod will always be CaptureRedirect. If this field is set to `true`, you must also: 1. Set the `RedirectUrl` field to a non-empty value 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
30
+ # Whether the session should fall back to a Trinsic-hosted UI in certain instances. Specifically, fallback will occur if any of the following are true: - You attempted to launch a provider which requires a capability you did not express support for - In this case, Trinsic's hosted UI will perform the necessary capability - You attempted to launch a provider which requires input, and the input was either not provided or incomplete - In this case, Trinsic's hosted UI will collect the necessary input from the user If fallback occurs, the session's NextStep will always be LaunchBrowser, and the CollectionMethod will always be CaptureRedirect. If this field is set to `true`, you must also: 1. Set the `RedirectUrl` field to a non-empty value 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
31
31
  attr_accessor :fallback_to_hosted_ui
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -41,9 +41,14 @@ module TrinsicApi
41
41
  }
42
42
  end
43
43
 
44
+ # Returns attribute mapping this model knows about
45
+ def self.acceptable_attribute_map
46
+ attribute_map
47
+ end
48
+
44
49
  # Returns all the JSON keys this model knows about
45
50
  def self.acceptable_attributes
46
- attribute_map.values
51
+ acceptable_attribute_map.values
47
52
  end
48
53
 
49
54
  # Attribute type mapping.
@@ -74,9 +79,10 @@ module TrinsicApi
74
79
  end
75
80
 
76
81
  # check to see if the attribute exists and convert string to symbol for hash key
82
+ acceptable_attribute_map = self.class.acceptable_attribute_map
77
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
78
- if (!self.class.attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ if (!acceptable_attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
86
  end
81
87
  h[k.to_sym] = v
82
88
  }
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,14 @@ module TrinsicApi
33
33
  }
34
34
  end
35
35
 
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
36
41
  # Returns all the JSON keys this model knows about
37
42
  def self.acceptable_attributes
38
- attribute_map.values
43
+ acceptable_attribute_map.values
39
44
  end
40
45
 
41
46
  # Attribute type mapping.
@@ -61,9 +66,10 @@ module TrinsicApi
61
66
  end
62
67
 
63
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
- if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateAdvancedProviderSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
73
  end
68
74
  h[k.to_sym] = v
69
75
  }
@@ -117,6 +123,36 @@ module TrinsicApi
117
123
  true
118
124
  end
119
125
 
126
+ # Custom attribute writer method with validation
127
+ # @param [Object] session_id Value to be assigned
128
+ def session_id=(session_id)
129
+ if session_id.nil?
130
+ fail ArgumentError, 'session_id cannot be nil'
131
+ end
132
+
133
+ @session_id = session_id
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] result_collection Value to be assigned
138
+ def result_collection=(result_collection)
139
+ if result_collection.nil?
140
+ fail ArgumentError, 'result_collection cannot be nil'
141
+ end
142
+
143
+ @result_collection = result_collection
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] next_step Value to be assigned
148
+ def next_step=(next_step)
149
+ if next_step.nil?
150
+ fail ArgumentError, 'next_step cannot be nil'
151
+ end
152
+
153
+ @next_step = next_step
154
+ end
155
+
120
156
  # Checks equality by comparing each attribute.
121
157
  # @param [Object] Object to be compared
122
158
  def ==(o)
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,14 @@ module TrinsicApi
33
33
  }
34
34
  end
35
35
 
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
36
41
  # Returns all the JSON keys this model knows about
37
42
  def self.acceptable_attributes
38
- attribute_map.values
43
+ acceptable_attribute_map.values
39
44
  end
40
45
 
41
46
  # Attribute type mapping.
@@ -62,9 +67,10 @@ module TrinsicApi
62
67
  end
63
68
 
64
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateHostedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateHostedProviderSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
74
  end
69
75
  h[k.to_sym] = v
70
76
  }
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -18,34 +18,43 @@ module TrinsicApi
18
18
  # The ID of the newly-created Acceptance Session
19
19
  attr_accessor :session_id
20
20
 
21
- # The URL that should be used to launch the Hosted Provider Session on your user's device. There are two recommended ways to do so: - Redirect their browser to the `LaunchUrl` as a top-level navigation - Open a popup window and navigate it to the `LaunchUrl` This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
21
+ # The URL that should be used to launch the Hosted Provider Session on your user's device. There are two recommended ways to do so: - Redirect their browser to the `LaunchUrl` as a top-level navigation - Open a popup window and navigate it to the `LaunchUrl` This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
22
22
  attr_accessor :launch_url
23
23
 
24
+ # The `resultsAccessKey` for the Acceptance Session. This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault. Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault. Trinsic cannot access a Session's Data Vault without this key.
25
+ attr_accessor :results_access_key
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'session_id' => :'sessionId',
28
- :'launch_url' => :'launchUrl'
31
+ :'launch_url' => :'launchUrl',
32
+ :'results_access_key' => :'resultsAccessKey'
29
33
  }
30
34
  end
31
35
 
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
32
41
  # Returns all the JSON keys this model knows about
33
42
  def self.acceptable_attributes
34
- attribute_map.values
43
+ acceptable_attribute_map.values
35
44
  end
36
45
 
37
46
  # Attribute type mapping.
38
47
  def self.openapi_types
39
48
  {
40
49
  :'session_id' => :'String',
41
- :'launch_url' => :'String'
50
+ :'launch_url' => :'String',
51
+ :'results_access_key' => :'String'
42
52
  }
43
53
  end
44
54
 
45
55
  # List of attributes with nullable: true
46
56
  def self.openapi_nullable
47
57
  Set.new([
48
- :'launch_url'
49
58
  ])
50
59
  end
51
60
 
@@ -57,9 +66,10 @@ module TrinsicApi
57
66
  end
58
67
 
59
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateHostedProviderSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateHostedProviderSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
73
  end
64
74
  h[k.to_sym] = v
65
75
  }
@@ -72,6 +82,14 @@ module TrinsicApi
72
82
 
73
83
  if attributes.key?(:'launch_url')
74
84
  self.launch_url = attributes[:'launch_url']
85
+ else
86
+ self.launch_url = nil
87
+ end
88
+
89
+ if attributes.key?(:'results_access_key')
90
+ self.results_access_key = attributes[:'results_access_key']
91
+ else
92
+ self.results_access_key = nil
75
93
  end
76
94
  end
77
95
 
@@ -84,6 +102,14 @@ module TrinsicApi
84
102
  invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
85
103
  end
86
104
 
105
+ if @launch_url.nil?
106
+ invalid_properties.push('invalid value for "launch_url", launch_url cannot be nil.')
107
+ end
108
+
109
+ if @results_access_key.nil?
110
+ invalid_properties.push('invalid value for "results_access_key", results_access_key cannot be nil.')
111
+ end
112
+
87
113
  invalid_properties
88
114
  end
89
115
 
@@ -92,16 +118,49 @@ module TrinsicApi
92
118
  def valid?
93
119
  warn '[DEPRECATED] the `valid?` method is obsolete'
94
120
  return false if @session_id.nil?
121
+ return false if @launch_url.nil?
122
+ return false if @results_access_key.nil?
95
123
  true
96
124
  end
97
125
 
126
+ # Custom attribute writer method with validation
127
+ # @param [Object] session_id Value to be assigned
128
+ def session_id=(session_id)
129
+ if session_id.nil?
130
+ fail ArgumentError, 'session_id cannot be nil'
131
+ end
132
+
133
+ @session_id = session_id
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] launch_url Value to be assigned
138
+ def launch_url=(launch_url)
139
+ if launch_url.nil?
140
+ fail ArgumentError, 'launch_url cannot be nil'
141
+ end
142
+
143
+ @launch_url = launch_url
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] results_access_key Value to be assigned
148
+ def results_access_key=(results_access_key)
149
+ if results_access_key.nil?
150
+ fail ArgumentError, 'results_access_key cannot be nil'
151
+ end
152
+
153
+ @results_access_key = results_access_key
154
+ end
155
+
98
156
  # Checks equality by comparing each attribute.
99
157
  # @param [Object] Object to be compared
100
158
  def ==(o)
101
159
  return true if self.equal?(o)
102
160
  self.class == o.class &&
103
161
  session_id == o.session_id &&
104
- launch_url == o.launch_url
162
+ launch_url == o.launch_url &&
163
+ results_access_key == o.results_access_key
105
164
  end
106
165
 
107
166
  # @see the `==` method
@@ -113,7 +172,7 @@ module TrinsicApi
113
172
  # Calculates hash code according to all attributes.
114
173
  # @return [Integer] Hash code
115
174
  def hash
116
- [session_id, launch_url].hash
175
+ [session_id, launch_url, results_access_key].hash
117
176
  end
118
177
 
119
178
  # Builds the object from hash
@@ -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.8.0
9
+ Generator version: 7.13.0
10
10
 
11
11
  =end
12
12
 
@@ -15,27 +15,32 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class CreateWidgetSessionRequest
18
- # The URL to redirect the user to after the widget session is complete. *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget as an embedded iFrame or popup; in that case, session resolution is handled by our SDK, not via redirect.
18
+ # The URL to redirect the user to after the widget session is complete. *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget as an embedded iFrame or popup; in that case, session resolution is handled by our SDK, not via redirect.
19
19
  attr_accessor :redirect_url
20
20
 
21
21
  # The list of allowed identity providers. If not specified, all available providers will be allowed.
22
22
  attr_accessor :providers
23
23
 
24
- # Known identity data of an individual being verified. Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
25
- attr_accessor :known_identity_data
24
+ # Data that you already know about the user being verified. This data is used to improve the user experience during provider selection, by surfacing the most relevant providers first.
25
+ attr_accessor :recommendation_info
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'redirect_url' => :'redirectUrl',
31
31
  :'providers' => :'providers',
32
- :'known_identity_data' => :'knownIdentityData'
32
+ :'recommendation_info' => :'recommendationInfo'
33
33
  }
34
34
  end
35
35
 
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
36
41
  # Returns all the JSON keys this model knows about
37
42
  def self.acceptable_attributes
38
- attribute_map.values
43
+ acceptable_attribute_map.values
39
44
  end
40
45
 
41
46
  # Attribute type mapping.
@@ -43,7 +48,7 @@ module TrinsicApi
43
48
  {
44
49
  :'redirect_url' => :'String',
45
50
  :'providers' => :'Array<String>',
46
- :'known_identity_data' => :'KnownIdentityData'
51
+ :'recommendation_info' => :'RecommendationInfo'
47
52
  }
48
53
  end
49
54
 
@@ -52,7 +57,7 @@ module TrinsicApi
52
57
  Set.new([
53
58
  :'redirect_url',
54
59
  :'providers',
55
- :'known_identity_data'
60
+ :'recommendation_info'
56
61
  ])
57
62
  end
58
63
 
@@ -64,9 +69,10 @@ module TrinsicApi
64
69
  end
65
70
 
66
71
  # check to see if the attribute exists and convert string to symbol for hash key
72
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
73
  attributes = attributes.each_with_object({}) { |(k, v), h|
68
- if (!self.class.attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateWidgetSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ if (!acceptable_attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateWidgetSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
76
  end
71
77
  h[k.to_sym] = v
72
78
  }
@@ -81,8 +87,8 @@ module TrinsicApi
81
87
  end
82
88
  end
83
89
 
84
- if attributes.key?(:'known_identity_data')
85
- self.known_identity_data = attributes[:'known_identity_data']
90
+ if attributes.key?(:'recommendation_info')
91
+ self.recommendation_info = attributes[:'recommendation_info']
86
92
  end
87
93
  end
88
94
 
@@ -108,7 +114,7 @@ module TrinsicApi
108
114
  self.class == o.class &&
109
115
  redirect_url == o.redirect_url &&
110
116
  providers == o.providers &&
111
- known_identity_data == o.known_identity_data
117
+ recommendation_info == o.recommendation_info
112
118
  end
113
119
 
114
120
  # @see the `==` method
@@ -120,7 +126,7 @@ module TrinsicApi
120
126
  # Calculates hash code according to all attributes.
121
127
  # @return [Integer] Hash code
122
128
  def hash
123
- [redirect_url, providers, known_identity_data].hash
129
+ [redirect_url, providers, recommendation_info].hash
124
130
  end
125
131
 
126
132
  # Builds the object from hash