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
@@ -0,0 +1,320 @@
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.13.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ # Information about a sub-provider.
18
+ class SubProviderMetadata
19
+ # The ID of the sub-provider. This cannot be used as a standalone Provider ID when creating a Session. It must be passed in via the Provider-specific input.
20
+ attr_accessor :id
21
+
22
+ # The name of the sub-provider
23
+ attr_accessor :name
24
+
25
+ # Flavor text for the sub-provider
26
+ attr_accessor :description
27
+
28
+ # A URL pointing to the logo on Trinsic's CDN. May be a PNG, JPG, or SVG image.
29
+ attr_accessor :logo_url
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'id' => :'id',
35
+ :'name' => :'name',
36
+ :'description' => :'description',
37
+ :'logo_url' => :'logoUrl'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'id' => :'String',
55
+ :'name' => :'String',
56
+ :'description' => :'String',
57
+ :'logo_url' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SubProviderMetadata` initialize method"
72
+ end
73
+
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ acceptable_attribute_map = self.class.acceptable_attribute_map
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!acceptable_attribute_map.key?(k.to_sym))
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SubProviderMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
79
+ end
80
+ h[k.to_sym] = v
81
+ }
82
+
83
+ if attributes.key?(:'id')
84
+ self.id = attributes[:'id']
85
+ else
86
+ self.id = nil
87
+ end
88
+
89
+ if attributes.key?(:'name')
90
+ self.name = attributes[:'name']
91
+ else
92
+ self.name = nil
93
+ end
94
+
95
+ if attributes.key?(:'description')
96
+ self.description = attributes[:'description']
97
+ else
98
+ self.description = nil
99
+ end
100
+
101
+ if attributes.key?(:'logo_url')
102
+ self.logo_url = attributes[:'logo_url']
103
+ else
104
+ self.logo_url = nil
105
+ end
106
+ end
107
+
108
+ # Show invalid properties with the reasons. Usually used together with valid?
109
+ # @return Array for valid properties with the reasons
110
+ def list_invalid_properties
111
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
112
+ invalid_properties = Array.new
113
+ if @id.nil?
114
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
115
+ end
116
+
117
+ if @name.nil?
118
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
119
+ end
120
+
121
+ if @description.nil?
122
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
123
+ end
124
+
125
+ if @logo_url.nil?
126
+ invalid_properties.push('invalid value for "logo_url", logo_url cannot be nil.')
127
+ end
128
+
129
+ invalid_properties
130
+ end
131
+
132
+ # Check to see if the all the properties in the model are valid
133
+ # @return true if the model is valid
134
+ def valid?
135
+ warn '[DEPRECATED] the `valid?` method is obsolete'
136
+ return false if @id.nil?
137
+ return false if @name.nil?
138
+ return false if @description.nil?
139
+ return false if @logo_url.nil?
140
+ true
141
+ end
142
+
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] id Value to be assigned
145
+ def id=(id)
146
+ if id.nil?
147
+ fail ArgumentError, 'id cannot be nil'
148
+ end
149
+
150
+ @id = id
151
+ end
152
+
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] name Value to be assigned
155
+ def name=(name)
156
+ if name.nil?
157
+ fail ArgumentError, 'name cannot be nil'
158
+ end
159
+
160
+ @name = name
161
+ end
162
+
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] description Value to be assigned
165
+ def description=(description)
166
+ if description.nil?
167
+ fail ArgumentError, 'description cannot be nil'
168
+ end
169
+
170
+ @description = description
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] logo_url Value to be assigned
175
+ def logo_url=(logo_url)
176
+ if logo_url.nil?
177
+ fail ArgumentError, 'logo_url cannot be nil'
178
+ end
179
+
180
+ @logo_url = logo_url
181
+ end
182
+
183
+ # Checks equality by comparing each attribute.
184
+ # @param [Object] Object to be compared
185
+ def ==(o)
186
+ return true if self.equal?(o)
187
+ self.class == o.class &&
188
+ id == o.id &&
189
+ name == o.name &&
190
+ description == o.description &&
191
+ logo_url == o.logo_url
192
+ end
193
+
194
+ # @see the `==` method
195
+ # @param [Object] Object to be compared
196
+ def eql?(o)
197
+ self == o
198
+ end
199
+
200
+ # Calculates hash code according to all attributes.
201
+ # @return [Integer] Hash code
202
+ def hash
203
+ [id, name, description, logo_url].hash
204
+ end
205
+
206
+ # Builds the object from hash
207
+ # @param [Hash] attributes Model attributes in the form of hash
208
+ # @return [Object] Returns the model itself
209
+ def self.build_from_hash(attributes)
210
+ return nil unless attributes.is_a?(Hash)
211
+ attributes = attributes.transform_keys(&:to_sym)
212
+ transformed_hash = {}
213
+ openapi_types.each_pair do |key, type|
214
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
215
+ transformed_hash["#{key}"] = nil
216
+ elsif type =~ /\AArray<(.*)>/i
217
+ # check to ensure the input is an array given that the attribute
218
+ # is documented as an array but the input is not
219
+ if attributes[attribute_map[key]].is_a?(Array)
220
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
221
+ end
222
+ elsif !attributes[attribute_map[key]].nil?
223
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
224
+ end
225
+ end
226
+ new(transformed_hash)
227
+ end
228
+
229
+ # Deserializes the data based on type
230
+ # @param string type Data type
231
+ # @param string value Value to be deserialized
232
+ # @return [Object] Deserialized data
233
+ def self._deserialize(type, value)
234
+ case type.to_sym
235
+ when :Time
236
+ Time.parse(value)
237
+ when :Date
238
+ Date.parse(value)
239
+ when :String
240
+ value.to_s
241
+ when :Integer
242
+ value.to_i
243
+ when :Float
244
+ value.to_f
245
+ when :Boolean
246
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
247
+ true
248
+ else
249
+ false
250
+ end
251
+ when :Object
252
+ # generic object (usually a Hash), return directly
253
+ value
254
+ when /\AArray<(?<inner_type>.+)>\z/
255
+ inner_type = Regexp.last_match[:inner_type]
256
+ value.map { |v| _deserialize(inner_type, v) }
257
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
258
+ k_type = Regexp.last_match[:k_type]
259
+ v_type = Regexp.last_match[:v_type]
260
+ {}.tap do |hash|
261
+ value.each do |k, v|
262
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
263
+ end
264
+ end
265
+ else # model
266
+ # models (e.g. Pet) or oneOf
267
+ klass = TrinsicApi.const_get(type)
268
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
269
+ end
270
+ end
271
+
272
+ # Returns the string representation of the object
273
+ # @return [String] String presentation of the object
274
+ def to_s
275
+ to_hash.to_s
276
+ end
277
+
278
+ # to_body is an alias to to_hash (backward compatibility)
279
+ # @return [Hash] Returns the object in the form of hash
280
+ def to_body
281
+ to_hash
282
+ end
283
+
284
+ # Returns the object in the form of hash
285
+ # @return [Hash] Returns the object in the form of hash
286
+ def to_hash
287
+ hash = {}
288
+ self.class.attribute_map.each_pair do |attr, param|
289
+ value = self.send(attr)
290
+ if value.nil?
291
+ is_nullable = self.class.openapi_nullable.include?(attr)
292
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
293
+ end
294
+
295
+ hash[param] = _to_hash(value)
296
+ end
297
+ hash
298
+ end
299
+
300
+ # Outputs non-array value in the form of hash
301
+ # For object, use to_hash. Otherwise, just return the value
302
+ # @param [Object] value Any valid value
303
+ # @return [Hash] Returns the value in the form of hash
304
+ def _to_hash(value)
305
+ if value.is_a?(Array)
306
+ value.compact.map { |v| _to_hash(v) }
307
+ elsif value.is_a?(Hash)
308
+ {}.tap do |hash|
309
+ value.each { |k, v| hash[k] = _to_hash(v) }
310
+ end
311
+ elsif value.respond_to? :to_hash
312
+ value.to_hash
313
+ else
314
+ value
315
+ end
316
+ end
317
+
318
+ end
319
+
320
+ end
@@ -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
 
@@ -14,48 +14,37 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class KnownPersonData
18
- # Given (first) name of the individual
17
+ class TrinsicTestDatabaseLookupInput
18
+ # The given name to use for the output of the test Session. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Can be any non-empty value.
19
19
  attr_accessor :given_name
20
20
 
21
- # Family (last) name of the individual
21
+ # The family name to use for the output of the test Session. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Can be any non-empty value.
22
22
  attr_accessor :family_name
23
23
 
24
- # Middle name of the individual
25
- attr_accessor :middle_name
24
+ # A 6-digit code; must be \"123456\" for the Session to succeed. This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it from the user. Any other value will cause the Session to fail.
25
+ attr_accessor :identity_code
26
26
 
27
- # Full name of the individual.
28
- attr_accessor :full_name
29
-
30
- # Suffix of the individual
31
- attr_accessor :suffix
32
-
33
- # The phone number (with preceding + character and country code) of the individual being verified
34
- attr_accessor :phone_number
35
-
36
- # The address of the individual being verified
37
- attr_accessor :address
38
-
39
- # Date of birth of the individual, in the format \"YYYY-MM-DD\"
40
- attr_accessor :date_of_birth
27
+ # An optional selfie image, base64-encoded. Will replace the existing test selfie attachment output if provided.
28
+ attr_accessor :selfie_base64
41
29
 
42
30
  # Attribute mapping from ruby-style variable name to JSON key.
43
31
  def self.attribute_map
44
32
  {
45
33
  :'given_name' => :'givenName',
46
34
  :'family_name' => :'familyName',
47
- :'middle_name' => :'middleName',
48
- :'full_name' => :'fullName',
49
- :'suffix' => :'suffix',
50
- :'phone_number' => :'phoneNumber',
51
- :'address' => :'address',
52
- :'date_of_birth' => :'dateOfBirth'
35
+ :'identity_code' => :'identityCode',
36
+ :'selfie_base64' => :'selfieBase64'
53
37
  }
54
38
  end
55
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
56
45
  # Returns all the JSON keys this model knows about
57
46
  def self.acceptable_attributes
58
- attribute_map.values
47
+ acceptable_attribute_map.values
59
48
  end
60
49
 
61
50
  # Attribute type mapping.
@@ -63,12 +52,8 @@ module TrinsicApi
63
52
  {
64
53
  :'given_name' => :'String',
65
54
  :'family_name' => :'String',
66
- :'middle_name' => :'String',
67
- :'full_name' => :'String',
68
- :'suffix' => :'String',
69
- :'phone_number' => :'String',
70
- :'address' => :'KnownAddress',
71
- :'date_of_birth' => :'String'
55
+ :'identity_code' => :'String',
56
+ :'selfie_base64' => :'String'
72
57
  }
73
58
  end
74
59
 
@@ -77,12 +62,8 @@ module TrinsicApi
77
62
  Set.new([
78
63
  :'given_name',
79
64
  :'family_name',
80
- :'middle_name',
81
- :'full_name',
82
- :'suffix',
83
- :'phone_number',
84
- :'address',
85
- :'date_of_birth'
65
+ :'identity_code',
66
+ :'selfie_base64'
86
67
  ])
87
68
  end
88
69
 
@@ -90,13 +71,14 @@ module TrinsicApi
90
71
  # @param [Hash] attributes Model attributes in the form of hash
91
72
  def initialize(attributes = {})
92
73
  if (!attributes.is_a?(Hash))
93
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KnownPersonData` initialize method"
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::TrinsicTestDatabaseLookupInput` initialize method"
94
75
  end
95
76
 
96
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
97
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
98
- if (!self.class.attribute_map.key?(k.to_sym))
99
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KnownPersonData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::TrinsicTestDatabaseLookupInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
100
82
  end
101
83
  h[k.to_sym] = v
102
84
  }
@@ -109,28 +91,12 @@ module TrinsicApi
109
91
  self.family_name = attributes[:'family_name']
110
92
  end
111
93
 
112
- if attributes.key?(:'middle_name')
113
- self.middle_name = attributes[:'middle_name']
114
- end
115
-
116
- if attributes.key?(:'full_name')
117
- self.full_name = attributes[:'full_name']
118
- end
119
-
120
- if attributes.key?(:'suffix')
121
- self.suffix = attributes[:'suffix']
122
- end
123
-
124
- if attributes.key?(:'phone_number')
125
- self.phone_number = attributes[:'phone_number']
126
- end
127
-
128
- if attributes.key?(:'address')
129
- self.address = attributes[:'address']
94
+ if attributes.key?(:'identity_code')
95
+ self.identity_code = attributes[:'identity_code']
130
96
  end
131
97
 
132
- if attributes.key?(:'date_of_birth')
133
- self.date_of_birth = attributes[:'date_of_birth']
98
+ if attributes.key?(:'selfie_base64')
99
+ self.selfie_base64 = attributes[:'selfie_base64']
134
100
  end
135
101
  end
136
102
 
@@ -156,12 +122,8 @@ module TrinsicApi
156
122
  self.class == o.class &&
157
123
  given_name == o.given_name &&
158
124
  family_name == o.family_name &&
159
- middle_name == o.middle_name &&
160
- full_name == o.full_name &&
161
- suffix == o.suffix &&
162
- phone_number == o.phone_number &&
163
- address == o.address &&
164
- date_of_birth == o.date_of_birth
125
+ identity_code == o.identity_code &&
126
+ selfie_base64 == o.selfie_base64
165
127
  end
166
128
 
167
129
  # @see the `==` method
@@ -173,7 +135,7 @@ module TrinsicApi
173
135
  # Calculates hash code according to all attributes.
174
136
  # @return [Integer] Hash code
175
137
  def hash
176
- [given_name, family_name, middle_name, full_name, suffix, phone_number, address, date_of_birth].hash
138
+ [given_name, family_name, identity_code, selfie_base64].hash
177
139
  end
178
140
 
179
141
  # Builds the object from hash