trinsic_api 2.0.2 → 2.1.0.pre.alpha1

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AttachmentsApi.md +2 -2
  3. data/docs/BangladeshNidInput.md +26 -0
  4. data/docs/BrazilDigitalCnhInput.md +1 -1
  5. data/docs/ContractField.md +20 -0
  6. data/docs/CreateAdvancedProviderSessionRequest.md +3 -3
  7. data/docs/CreateHostedProviderSessionRequest.md +1 -1
  8. data/docs/FieldAvailability.md +15 -0
  9. data/docs/HttpValidationProblemDetails.md +5 -5
  10. data/docs/NetworkApi.md +14 -9
  11. data/docs/ProblemDetails.md +5 -5
  12. data/docs/ProviderContract.md +6 -2
  13. data/docs/ProviderInfo.md +9 -1
  14. data/docs/ProviderInformation.md +16 -4
  15. data/docs/ProviderInput.md +13 -13
  16. data/docs/RecommendRequest.md +3 -1
  17. data/docs/RecommendResponse.md +3 -3
  18. data/docs/RefreshStepContentRequest.md +1 -1
  19. data/docs/Session.md +1 -1
  20. data/docs/SessionsApi.md +13 -13
  21. data/docs/SmartIdInput.md +3 -1
  22. data/docs/SubProviderMetadata.md +4 -2
  23. data/lib/trinsic_api/api/attachments_api.rb +3 -3
  24. data/lib/trinsic_api/api/network_api.rb +8 -5
  25. data/lib/trinsic_api/api/sessions_api.rb +11 -11
  26. data/lib/trinsic_api/models/bangladesh_nid_input.rb +350 -0
  27. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
  28. data/lib/trinsic_api/models/{bangladesh_national_id_input.rb → contract_field.rb} +69 -36
  29. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +16 -16
  30. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
  31. data/lib/trinsic_api/models/document_type.rb +2 -1
  32. data/lib/trinsic_api/models/field_availability.rb +41 -0
  33. data/lib/trinsic_api/models/http_validation_problem_details.rb +5 -0
  34. data/lib/trinsic_api/models/integration_capability.rb +2 -1
  35. data/lib/trinsic_api/models/problem_details.rb +5 -0
  36. data/lib/trinsic_api/models/provider_contract.rb +42 -2
  37. data/lib/trinsic_api/models/provider_info.rb +98 -4
  38. data/lib/trinsic_api/models/provider_information.rb +155 -4
  39. data/lib/trinsic_api/models/provider_input.rb +13 -13
  40. data/lib/trinsic_api/models/recommend_request.rb +16 -5
  41. data/lib/trinsic_api/models/recommend_response.rb +3 -3
  42. data/lib/trinsic_api/models/refresh_step_content_request.rb +26 -1
  43. data/lib/trinsic_api/models/session.rb +1 -1
  44. data/lib/trinsic_api/models/smart_id_input.rb +16 -5
  45. data/lib/trinsic_api/models/sub_provider_metadata.rb +29 -2
  46. data/lib/trinsic_api/version.rb +1 -1
  47. data/lib/trinsic_api.rb +3 -2
  48. data/spec/api/attachments_api_spec.rb +1 -1
  49. data/spec/api/network_api_spec.rb +2 -1
  50. data/spec/api/sessions_api_spec.rb +1 -1
  51. data/spec/models/{bangladesh_national_id_input_spec.rb → bangladesh_nid_input_spec.rb} +13 -7
  52. data/spec/models/contract_field_spec.rb +42 -0
  53. data/spec/models/create_advanced_provider_session_request_spec.rb +4 -4
  54. data/spec/models/field_availability_spec.rb +30 -0
  55. data/spec/models/provider_contract_spec.rb +12 -0
  56. data/spec/models/provider_info_spec.rb +24 -0
  57. data/spec/models/provider_information_spec.rb +36 -0
  58. data/spec/models/recommend_request_spec.rb +6 -0
  59. data/spec/models/smart_id_input_spec.rb +6 -0
  60. data/spec/models/sub_provider_metadata_spec.rb +6 -0
  61. metadata +67 -63
  62. data/docs/BangladeshNationalIdInput.md +0 -24
  63. data/docs/WellKnownApi.md +0 -71
  64. data/lib/trinsic_api/api/well_known_api.rb +0 -75
  65. data/spec/api/well_known_api_spec.rb +0 -44
@@ -25,12 +25,28 @@ module TrinsicApi
25
25
  # A URL pointing to the provider's logo
26
26
  attr_accessor :logo_url
27
27
 
28
+ # The Provider's subtext recommended to be shown next to the name. This is flavor text, not a full, human-readable description of the provider.
29
+ attr_accessor :subtext
30
+
31
+ # The Provider's description recommended to be shown next to the name. This is flavor text, not a full, human-readable description of the provider.
32
+ attr_accessor :description
33
+
34
+ # The current health status of the provider
35
+ attr_accessor :health
36
+
37
+ # Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
38
+ attr_accessor :sub_providers
39
+
28
40
  # Attribute mapping from ruby-style variable name to JSON key.
29
41
  def self.attribute_map
30
42
  {
31
43
  :'id' => :'id',
32
44
  :'name' => :'name',
33
- :'logo_url' => :'logoUrl'
45
+ :'logo_url' => :'logoUrl',
46
+ :'subtext' => :'subtext',
47
+ :'description' => :'description',
48
+ :'health' => :'health',
49
+ :'sub_providers' => :'subProviders'
34
50
  }
35
51
  end
36
52
 
@@ -49,13 +65,18 @@ module TrinsicApi
49
65
  {
50
66
  :'id' => :'String',
51
67
  :'name' => :'String',
52
- :'logo_url' => :'String'
68
+ :'logo_url' => :'String',
69
+ :'subtext' => :'String',
70
+ :'description' => :'String',
71
+ :'health' => :'String',
72
+ :'sub_providers' => :'Array<SubProviderMetadata>'
53
73
  }
54
74
  end
55
75
 
56
76
  # List of attributes with nullable: true
57
77
  def self.openapi_nullable
58
78
  Set.new([
79
+ :'sub_providers'
59
80
  ])
60
81
  end
61
82
 
@@ -92,6 +113,30 @@ module TrinsicApi
92
113
  else
93
114
  self.logo_url = nil
94
115
  end
116
+
117
+ if attributes.key?(:'subtext')
118
+ self.subtext = attributes[:'subtext']
119
+ else
120
+ self.subtext = nil
121
+ end
122
+
123
+ if attributes.key?(:'description')
124
+ self.description = attributes[:'description']
125
+ else
126
+ self.description = nil
127
+ end
128
+
129
+ if attributes.key?(:'health')
130
+ self.health = attributes[:'health']
131
+ else
132
+ self.health = nil
133
+ end
134
+
135
+ if attributes.key?(:'sub_providers')
136
+ if (value = attributes[:'sub_providers']).is_a?(Array)
137
+ self.sub_providers = value
138
+ end
139
+ end
95
140
  end
96
141
 
97
142
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,6 +156,18 @@ module TrinsicApi
111
156
  invalid_properties.push('invalid value for "logo_url", logo_url cannot be nil.')
112
157
  end
113
158
 
159
+ if @subtext.nil?
160
+ invalid_properties.push('invalid value for "subtext", subtext cannot be nil.')
161
+ end
162
+
163
+ if @description.nil?
164
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
165
+ end
166
+
167
+ if @health.nil?
168
+ invalid_properties.push('invalid value for "health", health cannot be nil.')
169
+ end
170
+
114
171
  invalid_properties
115
172
  end
116
173
 
@@ -121,6 +178,9 @@ module TrinsicApi
121
178
  return false if @id.nil?
122
179
  return false if @name.nil?
123
180
  return false if @logo_url.nil?
181
+ return false if @subtext.nil?
182
+ return false if @description.nil?
183
+ return false if @health.nil?
124
184
  true
125
185
  end
126
186
 
@@ -154,6 +214,36 @@ module TrinsicApi
154
214
  @logo_url = logo_url
155
215
  end
156
216
 
217
+ # Custom attribute writer method with validation
218
+ # @param [Object] subtext Value to be assigned
219
+ def subtext=(subtext)
220
+ if subtext.nil?
221
+ fail ArgumentError, 'subtext cannot be nil'
222
+ end
223
+
224
+ @subtext = subtext
225
+ end
226
+
227
+ # Custom attribute writer method with validation
228
+ # @param [Object] description Value to be assigned
229
+ def description=(description)
230
+ if description.nil?
231
+ fail ArgumentError, 'description cannot be nil'
232
+ end
233
+
234
+ @description = description
235
+ end
236
+
237
+ # Custom attribute writer method with validation
238
+ # @param [Object] health Value to be assigned
239
+ def health=(health)
240
+ if health.nil?
241
+ fail ArgumentError, 'health cannot be nil'
242
+ end
243
+
244
+ @health = health
245
+ end
246
+
157
247
  # Checks equality by comparing each attribute.
158
248
  # @param [Object] Object to be compared
159
249
  def ==(o)
@@ -161,7 +251,11 @@ module TrinsicApi
161
251
  self.class == o.class &&
162
252
  id == o.id &&
163
253
  name == o.name &&
164
- logo_url == o.logo_url
254
+ logo_url == o.logo_url &&
255
+ subtext == o.subtext &&
256
+ description == o.description &&
257
+ health == o.health &&
258
+ sub_providers == o.sub_providers
165
259
  end
166
260
 
167
261
  # @see the `==` method
@@ -173,7 +267,7 @@ module TrinsicApi
173
267
  # Calculates hash code according to all attributes.
174
268
  # @return [Integer] Hash code
175
269
  def hash
176
- [id, name, logo_url].hash
270
+ [id, name, logo_url, subtext, description, health, sub_providers].hash
177
271
  end
178
272
 
179
273
  # Builds the object from hash
@@ -15,18 +15,45 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class ProviderInformation
18
+ # The ID of the provider
19
+ attr_accessor :id
20
+
21
+ # The friendly, human-readable name of the provider
22
+ attr_accessor :name
23
+
24
+ # A URL pointing to the provider's logo
25
+ attr_accessor :logo_url
26
+
27
+ # The Provider's subtext recommended to be shown next to the name. This is flavor text, not a full, human-readable description of the provider.
28
+ attr_accessor :subtext
29
+
30
+ # The ID of the provider
18
31
  attr_accessor :provider_id
19
32
 
33
+ # The friendly, human-readable name of the provider
20
34
  attr_accessor :provider_display_name
21
35
 
36
+ # A URL pointing to the provider's logo
22
37
  attr_accessor :provider_logo
23
38
 
39
+ # The current health status of the provider
40
+ attr_accessor :health
41
+
42
+ # Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
43
+ attr_accessor :sub_providers
44
+
24
45
  # Attribute mapping from ruby-style variable name to JSON key.
25
46
  def self.attribute_map
26
47
  {
48
+ :'id' => :'id',
49
+ :'name' => :'name',
50
+ :'logo_url' => :'logoUrl',
51
+ :'subtext' => :'subtext',
27
52
  :'provider_id' => :'providerId',
28
53
  :'provider_display_name' => :'providerDisplayName',
29
- :'provider_logo' => :'providerLogo'
54
+ :'provider_logo' => :'providerLogo',
55
+ :'health' => :'health',
56
+ :'sub_providers' => :'subProviders'
30
57
  }
31
58
  end
32
59
 
@@ -43,15 +70,22 @@ module TrinsicApi
43
70
  # Attribute type mapping.
44
71
  def self.openapi_types
45
72
  {
73
+ :'id' => :'String',
74
+ :'name' => :'String',
75
+ :'logo_url' => :'String',
76
+ :'subtext' => :'String',
46
77
  :'provider_id' => :'String',
47
78
  :'provider_display_name' => :'String',
48
- :'provider_logo' => :'String'
79
+ :'provider_logo' => :'String',
80
+ :'health' => :'String',
81
+ :'sub_providers' => :'Array<SubProviderMetadata>'
49
82
  }
50
83
  end
51
84
 
52
85
  # List of attributes with nullable: true
53
86
  def self.openapi_nullable
54
87
  Set.new([
88
+ :'sub_providers'
55
89
  ])
56
90
  end
57
91
 
@@ -71,6 +105,30 @@ module TrinsicApi
71
105
  h[k.to_sym] = v
72
106
  }
73
107
 
108
+ if attributes.key?(:'id')
109
+ self.id = attributes[:'id']
110
+ else
111
+ self.id = nil
112
+ end
113
+
114
+ if attributes.key?(:'name')
115
+ self.name = attributes[:'name']
116
+ else
117
+ self.name = nil
118
+ end
119
+
120
+ if attributes.key?(:'logo_url')
121
+ self.logo_url = attributes[:'logo_url']
122
+ else
123
+ self.logo_url = nil
124
+ end
125
+
126
+ if attributes.key?(:'subtext')
127
+ self.subtext = attributes[:'subtext']
128
+ else
129
+ self.subtext = nil
130
+ end
131
+
74
132
  if attributes.key?(:'provider_id')
75
133
  self.provider_id = attributes[:'provider_id']
76
134
  else
@@ -88,6 +146,18 @@ module TrinsicApi
88
146
  else
89
147
  self.provider_logo = nil
90
148
  end
149
+
150
+ if attributes.key?(:'health')
151
+ self.health = attributes[:'health']
152
+ else
153
+ self.health = nil
154
+ end
155
+
156
+ if attributes.key?(:'sub_providers')
157
+ if (value = attributes[:'sub_providers']).is_a?(Array)
158
+ self.sub_providers = value
159
+ end
160
+ end
91
161
  end
92
162
 
93
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,6 +165,22 @@ module TrinsicApi
95
165
  def list_invalid_properties
96
166
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
167
  invalid_properties = Array.new
168
+ if @id.nil?
169
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
170
+ end
171
+
172
+ if @name.nil?
173
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
174
+ end
175
+
176
+ if @logo_url.nil?
177
+ invalid_properties.push('invalid value for "logo_url", logo_url cannot be nil.')
178
+ end
179
+
180
+ if @subtext.nil?
181
+ invalid_properties.push('invalid value for "subtext", subtext cannot be nil.')
182
+ end
183
+
98
184
  if @provider_id.nil?
99
185
  invalid_properties.push('invalid value for "provider_id", provider_id cannot be nil.')
100
186
  end
@@ -107,6 +193,10 @@ module TrinsicApi
107
193
  invalid_properties.push('invalid value for "provider_logo", provider_logo cannot be nil.')
108
194
  end
109
195
 
196
+ if @health.nil?
197
+ invalid_properties.push('invalid value for "health", health cannot be nil.')
198
+ end
199
+
110
200
  invalid_properties
111
201
  end
112
202
 
@@ -114,12 +204,57 @@ module TrinsicApi
114
204
  # @return true if the model is valid
115
205
  def valid?
116
206
  warn '[DEPRECATED] the `valid?` method is obsolete'
207
+ return false if @id.nil?
208
+ return false if @name.nil?
209
+ return false if @logo_url.nil?
210
+ return false if @subtext.nil?
117
211
  return false if @provider_id.nil?
118
212
  return false if @provider_display_name.nil?
119
213
  return false if @provider_logo.nil?
214
+ return false if @health.nil?
120
215
  true
121
216
  end
122
217
 
218
+ # Custom attribute writer method with validation
219
+ # @param [Object] id Value to be assigned
220
+ def id=(id)
221
+ if id.nil?
222
+ fail ArgumentError, 'id cannot be nil'
223
+ end
224
+
225
+ @id = id
226
+ end
227
+
228
+ # Custom attribute writer method with validation
229
+ # @param [Object] name Value to be assigned
230
+ def name=(name)
231
+ if name.nil?
232
+ fail ArgumentError, 'name cannot be nil'
233
+ end
234
+
235
+ @name = name
236
+ end
237
+
238
+ # Custom attribute writer method with validation
239
+ # @param [Object] logo_url Value to be assigned
240
+ def logo_url=(logo_url)
241
+ if logo_url.nil?
242
+ fail ArgumentError, 'logo_url cannot be nil'
243
+ end
244
+
245
+ @logo_url = logo_url
246
+ end
247
+
248
+ # Custom attribute writer method with validation
249
+ # @param [Object] subtext Value to be assigned
250
+ def subtext=(subtext)
251
+ if subtext.nil?
252
+ fail ArgumentError, 'subtext cannot be nil'
253
+ end
254
+
255
+ @subtext = subtext
256
+ end
257
+
123
258
  # Custom attribute writer method with validation
124
259
  # @param [Object] provider_id Value to be assigned
125
260
  def provider_id=(provider_id)
@@ -150,14 +285,30 @@ module TrinsicApi
150
285
  @provider_logo = provider_logo
151
286
  end
152
287
 
288
+ # Custom attribute writer method with validation
289
+ # @param [Object] health Value to be assigned
290
+ def health=(health)
291
+ if health.nil?
292
+ fail ArgumentError, 'health cannot be nil'
293
+ end
294
+
295
+ @health = health
296
+ end
297
+
153
298
  # Checks equality by comparing each attribute.
154
299
  # @param [Object] Object to be compared
155
300
  def ==(o)
156
301
  return true if self.equal?(o)
157
302
  self.class == o.class &&
303
+ id == o.id &&
304
+ name == o.name &&
305
+ logo_url == o.logo_url &&
306
+ subtext == o.subtext &&
158
307
  provider_id == o.provider_id &&
159
308
  provider_display_name == o.provider_display_name &&
160
- provider_logo == o.provider_logo
309
+ provider_logo == o.provider_logo &&
310
+ health == o.health &&
311
+ sub_providers == o.sub_providers
161
312
  end
162
313
 
163
314
  # @see the `==` method
@@ -169,7 +320,7 @@ module TrinsicApi
169
320
  # Calculates hash code according to all attributes.
170
321
  # @return [Integer] Hash code
171
322
  def hash
172
- [provider_id, provider_display_name, provider_logo].hash
323
+ [id, name, logo_url, subtext, provider_id, provider_display_name, provider_logo, health, sub_providers].hash
173
324
  end
174
325
 
175
326
  # Builds the object from hash
@@ -15,37 +15,37 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class ProviderInput
18
- # Input for the `f-indonesia-nik` provider
18
+ # Input for the `indonesia-nik-lookup` provider
19
19
  attr_accessor :indonesia_nik
20
20
 
21
- # Input for the `f-mexico-curp` provider
21
+ # Input for the `mexico-curp-lookup` provider
22
22
  attr_accessor :mexico_curp
23
23
 
24
- # Input for the `f-south-africa-nid` provider
24
+ # Input for the `south-africa-nid-lookup` provider
25
25
  attr_accessor :south_africa_nid
26
26
 
27
- # Input for the `f-kenya-nid` provider
27
+ # Input for the `kenya-nid-lookup` provider
28
28
  attr_accessor :kenya_nid
29
29
 
30
- # Input for the `f-nigeria-nin` provider
30
+ # Input for the `nigeria-nin-lookup` provider
31
31
  attr_accessor :nigeria_nin
32
32
 
33
- # Input for the `f-india-aadhaar-match` provider
33
+ # Input for the `india-digilocker-aadhaar-match` provider
34
34
  attr_accessor :aadhaar
35
35
 
36
36
  # Input for the `bangladesh-nid` provider
37
37
  attr_accessor :bangladesh_national_id
38
38
 
39
- # Input for the `g-brazil-cpf` provider
39
+ # Input for the `brazil-cpf-lookup` provider
40
40
  attr_accessor :brazil_cpf_check
41
41
 
42
- # Input for the `g-brazil-digital-cnh` provider
42
+ # Input for the `brazil-digital-cnh` provider
43
43
  attr_accessor :brazil_digital_cnh
44
44
 
45
- # Input for the `b-philsys-biometric` provider
45
+ # Input for the `philippines-philsys-match` provider
46
46
  attr_accessor :philippine_match
47
47
 
48
- # Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
48
+ # Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
49
49
  attr_accessor :philippine_qr
50
50
 
51
51
  # Input for the `smart-id` provider
@@ -54,10 +54,10 @@ module TrinsicApi
54
54
  # Input for the `mobile-id` provider
55
55
  attr_accessor :mobile_id
56
56
 
57
- # Input for the `idin` provider
57
+ # Input for the `netherlands-idin` provider
58
58
  attr_accessor :idin
59
59
 
60
- # Input for the `spid` provider
60
+ # Input for the `italy-spid` provider
61
61
  attr_accessor :spid
62
62
 
63
63
  # *TEST MODE ONLY.* Input for the `trinsic-test-database-lookup` provider
@@ -108,7 +108,7 @@ module TrinsicApi
108
108
  :'kenya_nid' => :'KenyaNidInput',
109
109
  :'nigeria_nin' => :'NigeriaNinInput',
110
110
  :'aadhaar' => :'AadhaarInput',
111
- :'bangladesh_national_id' => :'BangladeshNationalIdInput',
111
+ :'bangladesh_national_id' => :'BangladeshNidInput',
112
112
  :'brazil_cpf_check' => :'BrazilCpfCheckInput',
113
113
  :'brazil_digital_cnh' => :'BrazilDigitalCnhInput',
114
114
  :'philippine_match' => :'PhilippineMatchInput',
@@ -18,10 +18,14 @@ module TrinsicApi
18
18
  # Information about the user you wish to generate a recommendation for.
19
19
  attr_accessor :recommendation_info
20
20
 
21
+ # Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"online\".
22
+ attr_accessor :health
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'recommendation_info' => :'recommendationInfo'
27
+ :'recommendation_info' => :'recommendationInfo',
28
+ :'health' => :'health'
25
29
  }
26
30
  end
27
31
 
@@ -38,14 +42,16 @@ module TrinsicApi
38
42
  # Attribute type mapping.
39
43
  def self.openapi_types
40
44
  {
41
- :'recommendation_info' => :'RecommendationInfo'
45
+ :'recommendation_info' => :'RecommendationInfo',
46
+ :'health' => :'String'
42
47
  }
43
48
  end
44
49
 
45
50
  # List of attributes with nullable: true
46
51
  def self.openapi_nullable
47
52
  Set.new([
48
- :'recommendation_info'
53
+ :'recommendation_info',
54
+ :'health'
49
55
  ])
50
56
  end
51
57
 
@@ -68,6 +74,10 @@ module TrinsicApi
68
74
  if attributes.key?(:'recommendation_info')
69
75
  self.recommendation_info = attributes[:'recommendation_info']
70
76
  end
77
+
78
+ if attributes.key?(:'health')
79
+ self.health = attributes[:'health']
80
+ end
71
81
  end
72
82
 
73
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +100,8 @@ module TrinsicApi
90
100
  def ==(o)
91
101
  return true if self.equal?(o)
92
102
  self.class == o.class &&
93
- recommendation_info == o.recommendation_info
103
+ recommendation_info == o.recommendation_info &&
104
+ health == o.health
94
105
  end
95
106
 
96
107
  # @see the `==` method
@@ -102,7 +113,7 @@ module TrinsicApi
102
113
  # Calculates hash code according to all attributes.
103
114
  # @return [Integer] Hash code
104
115
  def hash
105
- [recommendation_info].hash
116
+ [recommendation_info, health].hash
106
117
  end
107
118
 
108
119
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class RecommendResponse
18
- # The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
18
+ # The providers which the user is known to have a credential with.
19
19
  attr_accessor :recognized
20
20
 
21
- # The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
21
+ # The providers which the user is deemed sufficiently likely to have a credential with.
22
22
  attr_accessor :relevant
23
23
 
24
- # The list of providers that are not recognized and are not relevant to the user's identity
24
+ # The providers which the user is unlikely to have a credential with. This includes all providers available to your app which were not included in the Recognized or Relevant lists.
25
25
  attr_accessor :remainder
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,7 +45,6 @@ module TrinsicApi
45
45
  # List of attributes with nullable: true
46
46
  def self.openapi_nullable
47
47
  Set.new([
48
- :'results_access_key'
49
48
  ])
50
49
  end
51
50
 
@@ -67,6 +66,8 @@ module TrinsicApi
67
66
 
68
67
  if attributes.key?(:'results_access_key')
69
68
  self.results_access_key = attributes[:'results_access_key']
69
+ else
70
+ self.results_access_key = nil
70
71
  end
71
72
  end
72
73
 
@@ -75,6 +76,14 @@ module TrinsicApi
75
76
  def list_invalid_properties
76
77
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
78
  invalid_properties = Array.new
79
+ if @results_access_key.nil?
80
+ invalid_properties.push('invalid value for "results_access_key", results_access_key cannot be nil.')
81
+ end
82
+
83
+ if @results_access_key.to_s.length < 1
84
+ invalid_properties.push('invalid value for "results_access_key", the character length must be great than or equal to 1.')
85
+ end
86
+
78
87
  invalid_properties
79
88
  end
80
89
 
@@ -82,9 +91,25 @@ module TrinsicApi
82
91
  # @return true if the model is valid
83
92
  def valid?
84
93
  warn '[DEPRECATED] the `valid?` method is obsolete'
94
+ return false if @results_access_key.nil?
95
+ return false if @results_access_key.to_s.length < 1
85
96
  true
86
97
  end
87
98
 
99
+ # Custom attribute writer method with validation
100
+ # @param [Object] results_access_key Value to be assigned
101
+ def results_access_key=(results_access_key)
102
+ if results_access_key.nil?
103
+ fail ArgumentError, 'results_access_key cannot be nil'
104
+ end
105
+
106
+ if results_access_key.to_s.length < 1
107
+ fail ArgumentError, 'invalid value for "results_access_key", the character length must be great than or equal to 1.'
108
+ end
109
+
110
+ @results_access_key = results_access_key
111
+ end
112
+
88
113
  # Checks equality by comparing each attribute.
89
114
  # @param [Object] Object to be compared
90
115
  def ==(o)
@@ -29,7 +29,7 @@ module TrinsicApi
29
29
  # The unix timestamp, in seconds, when this session was created
30
30
  attr_accessor :created
31
31
 
32
- # The unix timestamp, in seconds, when this session's state last changed
32
+ # The unix timestamp, in seconds, when this session's data was last updated
33
33
  attr_accessor :updated
34
34
 
35
35
  class EnumAttributeValidator