trinsic_api 1.1.2 → 2.0.0.pre.alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AadhaarInput.md +20 -0
  3. data/docs/Address.md +3 -3
  4. data/docs/AttachmentAccessKeys.md +7 -5
  5. data/docs/BangladeshNationalIdInput.md +24 -0
  6. data/docs/BrazilCpfCheckInput.md +18 -0
  7. data/docs/BrazilDigitalCnhInput.md +24 -0
  8. data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
  9. data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
  10. data/docs/CreateHostedProviderSessionRequest.md +22 -0
  11. data/docs/CreateHostedProviderSessionResponse.md +20 -0
  12. data/docs/CreateWidgetSessionRequest.md +22 -0
  13. data/docs/{CreateSessionResponse.md → CreateWidgetSessionResponse.md} +5 -5
  14. data/docs/DocumentData.md +3 -3
  15. data/docs/DocumentScanAttachments.md +18 -0
  16. data/docs/{SessionState.md → DocumentType.md} +2 -2
  17. data/docs/HttpValidationProblemDetails.md +28 -0
  18. data/docs/IdentityData.md +4 -4
  19. data/docs/IndonesiaNikInput.md +22 -0
  20. data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
  21. data/docs/IntegrationLaunchMethod.md +15 -0
  22. data/docs/IntegrationStep.md +22 -0
  23. data/docs/KenyaNidInput.md +28 -0
  24. data/docs/KnownAddress.md +32 -0
  25. data/docs/KnownIdentityData.md +18 -0
  26. data/docs/KnownPersonData.md +32 -0
  27. data/docs/MexicoCurpInput.md +18 -0
  28. data/docs/NetworkApi.md +37 -35
  29. data/docs/NigeriaNinInput.md +30 -0
  30. data/docs/PersonData.md +14 -12
  31. data/docs/PhilippineMatchInput.md +26 -0
  32. data/docs/PhilippineQRInput.md +20 -0
  33. data/docs/ProblemDetails.md +26 -0
  34. data/docs/ProviderAttachments.md +18 -0
  35. data/docs/ProviderInfo.md +3 -1
  36. data/docs/ProviderInformation.md +22 -0
  37. data/docs/ProviderInput.md +38 -0
  38. data/docs/RecommendRequest.md +26 -0
  39. data/docs/RecommendResponse.md +22 -0
  40. data/docs/RefreshStepContentRequest.md +18 -0
  41. data/docs/RefreshStepContentResponse.md +18 -0
  42. data/docs/ResultCollection.md +20 -0
  43. data/docs/ResultCollectionMethod.md +15 -0
  44. data/docs/Session.md +6 -8
  45. data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
  46. data/docs/SessionsApi.md +236 -18
  47. data/docs/{SessionFailCode.md → Sex.md} +2 -2
  48. data/docs/SouthAfricaNidInput.md +24 -0
  49. data/docs/StepRefreshInfo.md +22 -0
  50. data/lib/trinsic_api/api/attachments_api.rb +1 -1
  51. data/lib/trinsic_api/api/network_api.rb +38 -37
  52. data/lib/trinsic_api/api/sessions_api.rb +217 -19
  53. data/lib/trinsic_api/api_client.rb +1 -1
  54. data/lib/trinsic_api/api_error.rb +1 -1
  55. data/lib/trinsic_api/configuration.rb +1 -1
  56. data/lib/trinsic_api/models/{validation_result.rb → aadhaar_input.rb} +21 -26
  57. data/lib/trinsic_api/models/address.rb +16 -10
  58. data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
  59. data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
  60. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
  61. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
  62. data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
  63. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
  64. data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
  65. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
  66. data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +233 -0
  67. data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
  68. data/lib/trinsic_api/models/{create_session_response.rb → create_widget_session_response.rb} +18 -17
  69. data/lib/trinsic_api/models/document_data.rb +32 -4
  70. data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
  71. data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
  72. data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
  73. data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
  74. data/lib/trinsic_api/models/get_session_response.rb +1 -1
  75. data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
  76. data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
  77. data/lib/trinsic_api/models/http_validation_problem_details.rb +273 -0
  78. data/lib/trinsic_api/models/identity_data.rb +5 -5
  79. data/lib/trinsic_api/models/{create_session_request.rb → indonesia_nik_input.rb} +105 -38
  80. data/lib/trinsic_api/models/integration_capability.rb +44 -0
  81. data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
  82. data/lib/trinsic_api/models/integration_step.rb +275 -0
  83. data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
  84. data/lib/trinsic_api/models/known_address.rb +287 -0
  85. data/lib/trinsic_api/models/known_identity_data.rb +217 -0
  86. data/lib/trinsic_api/models/{disclosed_fields_request.rb → known_person_data.rb} +57 -77
  87. data/lib/trinsic_api/models/list_providers_response.rb +1 -1
  88. data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
  89. data/lib/trinsic_api/models/mexico_curp_input.rb +250 -0
  90. data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
  91. data/lib/trinsic_api/models/order_direction.rb +1 -1
  92. data/lib/trinsic_api/models/person_data.rb +50 -15
  93. data/lib/trinsic_api/models/philippine_match_input.rb +260 -0
  94. data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
  95. data/lib/trinsic_api/models/problem_details.rb +255 -0
  96. data/lib/trinsic_api/models/provider_attachments.rb +215 -0
  97. data/lib/trinsic_api/models/provider_info.rb +18 -5
  98. data/lib/trinsic_api/models/provider_information.rb +253 -0
  99. data/lib/trinsic_api/models/provider_input.rb +326 -0
  100. data/lib/trinsic_api/models/recommend_request.rb +266 -0
  101. data/lib/trinsic_api/models/recommend_response.rb +262 -0
  102. data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
  103. data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
  104. data/lib/trinsic_api/models/{verification.rb → result_collection.rb} +27 -20
  105. data/lib/trinsic_api/models/result_collection_method.rb +40 -0
  106. data/lib/trinsic_api/models/session.rb +32 -48
  107. data/lib/trinsic_api/models/session_error_code.rb +48 -0
  108. data/lib/trinsic_api/models/session_ordering.rb +1 -1
  109. data/lib/trinsic_api/models/sex.rb +42 -0
  110. data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
  111. data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
  112. data/lib/trinsic_api/version.rb +2 -2
  113. data/lib/trinsic_api.rb +40 -12
  114. data/spec/api/attachments_api_spec.rb +1 -1
  115. data/spec/api/network_api_spec.rb +12 -12
  116. data/spec/api/sessions_api_spec.rb +44 -7
  117. data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
  118. data/spec/models/address_spec.rb +2 -2
  119. data/spec/models/attachment_access_keys_spec.rb +7 -1
  120. data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
  121. data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
  122. data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
  123. data/spec/models/cancel_session_response_spec.rb +1 -1
  124. data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
  125. data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
  126. data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
  127. data/spec/models/create_hosted_provider_session_response_spec.rb +42 -0
  128. data/spec/models/create_widget_session_request_spec.rb +48 -0
  129. data/spec/models/{create_session_response_spec.rb → create_widget_session_response_spec.rb} +8 -8
  130. data/spec/models/document_data_spec.rb +1 -1
  131. data/spec/models/document_scan_attachments_spec.rb +36 -0
  132. data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
  133. data/spec/models/get_attachment_request_spec.rb +1 -1
  134. data/spec/models/get_attachment_response_spec.rb +1 -1
  135. data/spec/models/get_session_response_spec.rb +1 -1
  136. data/spec/models/get_session_result_request_spec.rb +1 -1
  137. data/spec/models/get_session_result_response_spec.rb +1 -1
  138. data/spec/models/http_validation_problem_details_spec.rb +66 -0
  139. data/spec/models/identity_data_spec.rb +1 -1
  140. data/spec/models/indonesia_nik_input_spec.rb +48 -0
  141. data/spec/models/integration_capability_spec.rb +30 -0
  142. data/spec/models/integration_launch_method_spec.rb +30 -0
  143. data/spec/models/integration_step_spec.rb +48 -0
  144. data/spec/models/kenya_nid_input_spec.rb +66 -0
  145. data/spec/models/known_address_spec.rb +78 -0
  146. data/spec/models/known_identity_data_spec.rb +36 -0
  147. data/spec/models/{disclosed_fields_request_spec.rb → known_person_data_spec.rb} +13 -37
  148. data/spec/models/list_providers_response_spec.rb +1 -1
  149. data/spec/models/list_sessions_response_spec.rb +1 -1
  150. data/spec/models/{failure_message_spec.rb → mexico_curp_input_spec.rb} +8 -8
  151. data/spec/models/nigeria_nin_input_spec.rb +72 -0
  152. data/spec/models/order_direction_spec.rb +1 -1
  153. data/spec/models/person_data_spec.rb +8 -2
  154. data/spec/models/philippine_match_input_spec.rb +60 -0
  155. data/spec/models/philippine_qr_input_spec.rb +42 -0
  156. data/spec/models/problem_details_spec.rb +60 -0
  157. data/spec/models/provider_attachments_spec.rb +36 -0
  158. data/spec/models/provider_info_spec.rb +7 -1
  159. data/spec/models/provider_information_spec.rb +48 -0
  160. data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +18 -24
  161. data/spec/models/recommend_request_spec.rb +60 -0
  162. data/spec/models/recommend_response_spec.rb +48 -0
  163. data/spec/models/refresh_step_content_request_spec.rb +36 -0
  164. data/spec/models/refresh_step_content_response_spec.rb +36 -0
  165. data/spec/models/result_collection_method_spec.rb +30 -0
  166. data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
  167. data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
  168. data/spec/models/session_ordering_spec.rb +1 -1
  169. data/spec/models/session_spec.rb +4 -10
  170. data/spec/models/{session_fail_code_spec.rb → sex_spec.rb} +7 -7
  171. data/spec/models/{create_session_request_spec.rb → south_africa_nid_input_spec.rb} +11 -11
  172. data/spec/models/step_refresh_info_spec.rb +48 -0
  173. data/spec/spec_helper.rb +1 -1
  174. data/trinsic_api.gemspec +1 -1
  175. metadata +173 -61
  176. data/docs/CreateSessionRequest.md +0 -24
  177. data/docs/DisclosedFields.md +0 -40
  178. data/docs/DisclosedFieldsRequest.md +0 -40
  179. data/docs/IdentityLookupResponse.md +0 -18
  180. data/docs/ValidationResult.md +0 -20
  181. data/docs/Verification.md +0 -20
  182. data/lib/trinsic_api/models/session_fail_code.rb +0 -45
  183. data/lib/trinsic_api/models/verification_fail_code.rb +0 -43
@@ -0,0 +1,216 @@
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 RefreshStepContentRequest
18
+ # The `ResultsAccessKey` returned when the Session was created
19
+ attr_accessor :results_access_key
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'results_access_key' => :'resultsAccessKey'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'results_access_key' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'results_access_key'
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::RefreshStepContentRequest` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RefreshStepContentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'results_access_key')
63
+ self.results_access_key = attributes[:'results_access_key']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
79
+ true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ results_access_key == o.results_access_key
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Integer] Hash code
98
+ def hash
99
+ [results_access_key].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def self.build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
+ end
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
+ end
121
+ end
122
+ new(transformed_hash)
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def self._deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = TrinsicApi.const_get(type)
164
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ 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,14 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class IdentityLookupResponse
18
- # Whether the given phone number is known to have an identity in the network.
19
- attr_accessor :identity_in_network
17
+ class RefreshStepContentResponse
18
+ # The integration's next step with refreshed content
19
+ attr_accessor :next_step
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
- :'identity_in_network' => :'identityInNetwork'
24
+ :'next_step' => :'nextStep'
25
25
  }
26
26
  end
27
27
 
@@ -33,7 +33,7 @@ module TrinsicApi
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'identity_in_network' => :'Boolean'
36
+ :'next_step' => :'IntegrationStep'
37
37
  }
38
38
  end
39
39
 
@@ -47,21 +47,21 @@ 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::IdentityLookupResponse` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::RefreshStepContentResponse` 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::IdentityLookupResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RefreshStepContentResponse`. 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
  }
60
60
 
61
- if attributes.key?(:'identity_in_network')
62
- self.identity_in_network = attributes[:'identity_in_network']
61
+ if attributes.key?(:'next_step')
62
+ self.next_step = attributes[:'next_step']
63
63
  else
64
- self.identity_in_network = nil
64
+ self.next_step = nil
65
65
  end
66
66
  end
67
67
 
@@ -70,8 +70,8 @@ module TrinsicApi
70
70
  def list_invalid_properties
71
71
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
72
  invalid_properties = Array.new
73
- if @identity_in_network.nil?
74
- invalid_properties.push('invalid value for "identity_in_network", identity_in_network cannot be nil.')
73
+ if @next_step.nil?
74
+ invalid_properties.push('invalid value for "next_step", next_step cannot be nil.')
75
75
  end
76
76
 
77
77
  invalid_properties
@@ -81,7 +81,7 @@ module TrinsicApi
81
81
  # @return true if the model is valid
82
82
  def valid?
83
83
  warn '[DEPRECATED] the `valid?` method is obsolete'
84
- return false if @identity_in_network.nil?
84
+ return false if @next_step.nil?
85
85
  true
86
86
  end
87
87
 
@@ -90,7 +90,7 @@ module TrinsicApi
90
90
  def ==(o)
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
- identity_in_network == o.identity_in_network
93
+ next_step == o.next_step
94
94
  end
95
95
 
96
96
  # @see the `==` method
@@ -102,7 +102,7 @@ module TrinsicApi
102
102
  # Calculates hash code according to all attributes.
103
103
  # @return [Integer] Hash code
104
104
  def hash
105
- [identity_in_network].hash
105
+ [next_step].hash
106
106
  end
107
107
 
108
108
  # Builds the object from hash
@@ -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,13 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- # A Verification contained within a Session
18
- class Verification
19
- # The identity provider that was used to perform the Verification, if any
20
- attr_accessor :provider
17
+ class ResultCollection
18
+ # The method by which the results of the Acceptance Session should be collected.
19
+ attr_accessor :method
21
20
 
22
- # If the Verification is in state `VerificationFailed`, this field contains the reason for failure
23
- attr_accessor :fail_code
21
+ # If the method is `PollResult`, this is the key that should be used to poll for the results.
22
+ attr_accessor :results_access_key
24
23
 
25
24
  class EnumAttributeValidator
26
25
  attr_reader :datatype
@@ -47,8 +46,8 @@ module TrinsicApi
47
46
  # Attribute mapping from ruby-style variable name to JSON key.
48
47
  def self.attribute_map
49
48
  {
50
- :'provider' => :'provider',
51
- :'fail_code' => :'failCode'
49
+ :'method' => :'method',
50
+ :'results_access_key' => :'resultsAccessKey'
52
51
  }
53
52
  end
54
53
 
@@ -60,14 +59,15 @@ module TrinsicApi
60
59
  # Attribute type mapping.
61
60
  def self.openapi_types
62
61
  {
63
- :'provider' => :'String',
64
- :'fail_code' => :'VerificationFailCode'
62
+ :'method' => :'ResultCollectionMethod',
63
+ :'results_access_key' => :'String'
65
64
  }
66
65
  end
67
66
 
68
67
  # List of attributes with nullable: true
69
68
  def self.openapi_nullable
70
69
  Set.new([
70
+ :'results_access_key'
71
71
  ])
72
72
  end
73
73
 
@@ -75,23 +75,25 @@ module TrinsicApi
75
75
  # @param [Hash] attributes Model attributes in the form of hash
76
76
  def initialize(attributes = {})
77
77
  if (!attributes.is_a?(Hash))
78
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::Verification` initialize method"
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ResultCollection` initialize method"
79
79
  end
80
80
 
81
81
  # check to see if the attribute exists and convert string to symbol for hash key
82
82
  attributes = attributes.each_with_object({}) { |(k, v), h|
83
83
  if (!self.class.attribute_map.key?(k.to_sym))
84
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Verification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ResultCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
85
  end
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'provider')
90
- self.provider = attributes[:'provider']
89
+ if attributes.key?(:'method')
90
+ self.method = attributes[:'method']
91
+ else
92
+ self.method = nil
91
93
  end
92
94
 
93
- if attributes.key?(:'fail_code')
94
- self.fail_code = attributes[:'fail_code']
95
+ if attributes.key?(:'results_access_key')
96
+ self.results_access_key = attributes[:'results_access_key']
95
97
  end
96
98
  end
97
99
 
@@ -100,6 +102,10 @@ module TrinsicApi
100
102
  def list_invalid_properties
101
103
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
104
  invalid_properties = Array.new
105
+ if @method.nil?
106
+ invalid_properties.push('invalid value for "method", method cannot be nil.')
107
+ end
108
+
103
109
  invalid_properties
104
110
  end
105
111
 
@@ -107,6 +113,7 @@ module TrinsicApi
107
113
  # @return true if the model is valid
108
114
  def valid?
109
115
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
+ return false if @method.nil?
110
117
  true
111
118
  end
112
119
 
@@ -115,8 +122,8 @@ module TrinsicApi
115
122
  def ==(o)
116
123
  return true if self.equal?(o)
117
124
  self.class == o.class &&
118
- provider == o.provider &&
119
- fail_code == o.fail_code
125
+ method == o.method &&
126
+ results_access_key == o.results_access_key
120
127
  end
121
128
 
122
129
  # @see the `==` method
@@ -128,7 +135,7 @@ module TrinsicApi
128
135
  # Calculates hash code according to all attributes.
129
136
  # @return [Integer] Hash code
130
137
  def hash
131
- [provider, fail_code].hash
138
+ [method, results_access_key].hash
132
139
  end
133
140
 
134
141
  # Builds the object from hash
@@ -0,0 +1,40 @@
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 ResultCollectionMethod
18
+ POLL_RESULT = "PollResult".freeze
19
+ CAPTURE_REDIRECT = "CaptureRedirect".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [POLL_RESULT, CAPTURE_REDIRECT].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if ResultCollectionMethod.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #ResultCollectionMethod"
38
+ end
39
+ end
40
+ 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
 
@@ -17,17 +17,14 @@ module TrinsicApi
17
17
  class Session
18
18
  attr_accessor :id
19
19
 
20
- # The state of the session
21
- attr_accessor :state
20
+ # Whether the Session is in a terminal / final state. If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
21
+ attr_accessor :done
22
22
 
23
- # If the session is in state `IdvFailed`, this field contains the reason for failure.
24
- attr_accessor :fail_code
23
+ # Whether the Session has completed successfully. If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information. If this is `true`, the Session has completed successfully.
24
+ attr_accessor :success
25
25
 
26
- # The underlying verification for this Session
27
- attr_accessor :verification
28
-
29
- # The fields that were requested to be disclosed when the Session was created
30
- attr_accessor :disclosed_fields
26
+ # The reason for the Session's failure. Only present if `Success` is `false`.
27
+ attr_accessor :error_code
31
28
 
32
29
  # The unix timestamp, in seconds, when this session was created
33
30
  attr_accessor :created
@@ -61,10 +58,9 @@ module TrinsicApi
61
58
  def self.attribute_map
62
59
  {
63
60
  :'id' => :'id',
64
- :'state' => :'state',
65
- :'fail_code' => :'failCode',
66
- :'verification' => :'verification',
67
- :'disclosed_fields' => :'disclosedFields',
61
+ :'done' => :'done',
62
+ :'success' => :'success',
63
+ :'error_code' => :'errorCode',
68
64
  :'created' => :'created',
69
65
  :'updated' => :'updated'
70
66
  }
@@ -79,10 +75,9 @@ module TrinsicApi
79
75
  def self.openapi_types
80
76
  {
81
77
  :'id' => :'String',
82
- :'state' => :'SessionState',
83
- :'fail_code' => :'SessionFailCode',
84
- :'verification' => :'Verification',
85
- :'disclosed_fields' => :'DisclosedFields',
78
+ :'done' => :'Boolean',
79
+ :'success' => :'Boolean',
80
+ :'error_code' => :'SessionErrorCode',
86
81
  :'created' => :'Integer',
87
82
  :'updated' => :'Integer'
88
83
  }
@@ -91,6 +86,7 @@ module TrinsicApi
91
86
  # List of attributes with nullable: true
92
87
  def self.openapi_nullable
93
88
  Set.new([
89
+ :'error_code',
94
90
  ])
95
91
  end
96
92
 
@@ -115,26 +111,20 @@ module TrinsicApi
115
111
  self.id = nil
116
112
  end
117
113
 
118
- if attributes.key?(:'state')
119
- self.state = attributes[:'state']
114
+ if attributes.key?(:'done')
115
+ self.done = attributes[:'done']
120
116
  else
121
- self.state = nil
122
- end
123
-
124
- if attributes.key?(:'fail_code')
125
- self.fail_code = attributes[:'fail_code']
117
+ self.done = nil
126
118
  end
127
119
 
128
- if attributes.key?(:'verification')
129
- self.verification = attributes[:'verification']
120
+ if attributes.key?(:'success')
121
+ self.success = attributes[:'success']
130
122
  else
131
- self.verification = nil
123
+ self.success = nil
132
124
  end
133
125
 
134
- if attributes.key?(:'disclosed_fields')
135
- self.disclosed_fields = attributes[:'disclosed_fields']
136
- else
137
- self.disclosed_fields = nil
126
+ if attributes.key?(:'error_code')
127
+ self.error_code = attributes[:'error_code']
138
128
  end
139
129
 
140
130
  if attributes.key?(:'created')
@@ -159,16 +149,12 @@ module TrinsicApi
159
149
  invalid_properties.push('invalid value for "id", id cannot be nil.')
160
150
  end
161
151
 
162
- if @state.nil?
163
- invalid_properties.push('invalid value for "state", state cannot be nil.')
164
- end
165
-
166
- if @verification.nil?
167
- invalid_properties.push('invalid value for "verification", verification cannot be nil.')
152
+ if @done.nil?
153
+ invalid_properties.push('invalid value for "done", done cannot be nil.')
168
154
  end
169
155
 
170
- if @disclosed_fields.nil?
171
- invalid_properties.push('invalid value for "disclosed_fields", disclosed_fields cannot be nil.')
156
+ if @success.nil?
157
+ invalid_properties.push('invalid value for "success", success cannot be nil.')
172
158
  end
173
159
 
174
160
  if @created.nil?
@@ -187,9 +173,8 @@ module TrinsicApi
187
173
  def valid?
188
174
  warn '[DEPRECATED] the `valid?` method is obsolete'
189
175
  return false if @id.nil?
190
- return false if @state.nil?
191
- return false if @verification.nil?
192
- return false if @disclosed_fields.nil?
176
+ return false if @done.nil?
177
+ return false if @success.nil?
193
178
  return false if @created.nil?
194
179
  return false if @updated.nil?
195
180
  true
@@ -201,10 +186,9 @@ module TrinsicApi
201
186
  return true if self.equal?(o)
202
187
  self.class == o.class &&
203
188
  id == o.id &&
204
- state == o.state &&
205
- fail_code == o.fail_code &&
206
- verification == o.verification &&
207
- disclosed_fields == o.disclosed_fields &&
189
+ done == o.done &&
190
+ success == o.success &&
191
+ error_code == o.error_code &&
208
192
  created == o.created &&
209
193
  updated == o.updated
210
194
  end
@@ -218,7 +202,7 @@ module TrinsicApi
218
202
  # Calculates hash code according to all attributes.
219
203
  # @return [Integer] Hash code
220
204
  def hash
221
- [id, state, fail_code, verification, disclosed_fields, created, updated].hash
205
+ [id, done, success, error_code, created, updated].hash
222
206
  end
223
207
 
224
208
  # Builds the object from hash
@@ -0,0 +1,48 @@
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 SessionErrorCode
18
+ INTERNAL = "Internal".freeze
19
+ OTHER = "Other".freeze
20
+ CANCELED = "Canceled".freeze
21
+ USER_ABANDONED = "UserAbandoned".freeze
22
+ USER_TIMED_OUT = "UserTimedOut".freeze
23
+ EXPIRED = "Expired".freeze
24
+ INVALID_IMAGE = "InvalidImage".freeze
25
+ INAUTHENTIC = "Inauthentic".freeze
26
+ UNSUPPORTED_DOCUMENT = "UnsupportedDocument".freeze
27
+ ASSURANCE_LEVEL_NOT_MET = "AssuranceLevelNotMet".freeze
28
+
29
+ def self.all_vars
30
+ @all_vars ||= [INTERNAL, OTHER, CANCELED, USER_ABANDONED, USER_TIMED_OUT, EXPIRED, INVALID_IMAGE, INAUTHENTIC, UNSUPPORTED_DOCUMENT, ASSURANCE_LEVEL_NOT_MET].freeze
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def self.build_from_hash(value)
37
+ new.build_from_hash(value)
38
+ end
39
+
40
+ # Builds the enum from string
41
+ # @param [String] The enum value in the form of the string
42
+ # @return [String] The enum value
43
+ def build_from_hash(value)
44
+ return value if SessionErrorCode.all_vars.include?(value)
45
+ raise "Invalid ENUM value #{value} for class #SessionErrorCode"
46
+ end
47
+ end
48
+ 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