trinsic_api 3.0.0 → 3.0.2.pre.preview

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 (128) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AadhaarClaims.md +46 -0
  3. data/docs/AadhaarLanguage.md +20 -0
  4. data/docs/AadhaarLocalizedClaims.md +40 -0
  5. data/docs/AppleWalletInput.md +3 -1
  6. data/docs/ConnectIdAddress.md +26 -0
  7. data/docs/ConnectIdAgeVerification.md +20 -0
  8. data/docs/ConnectIdBeneficiaryAccount.md +24 -0
  9. data/docs/ConnectIdProviderOutput.md +38 -0
  10. data/docs/CzechMojeIdAddressOutput.md +28 -0
  11. data/docs/CzechMojeIdProviderOutput.md +62 -0
  12. data/docs/DigilockerAadhaarProviderOutput.md +30 -0
  13. data/docs/FaydaProviderOutput.md +7 -1
  14. data/docs/FinnishTrustNetworkProviderOutput.md +38 -0
  15. data/docs/FranceIdentiteInput.md +18 -0
  16. data/docs/FranceIdentiteProviderOutput.md +18 -0
  17. data/docs/FrejaIndirectProviderOutput.md +24 -0
  18. data/docs/FrejaProviderOutput.md +36 -8
  19. data/docs/GetProviderResponse.md +18 -0
  20. data/docs/GoogleWalletInput.md +3 -1
  21. data/docs/KenyaNidLookup2Address.md +26 -0
  22. data/docs/KenyaNidLookup2ProviderOutput.md +38 -0
  23. data/docs/NigeriaNinLookup2ProviderOutput.md +40 -0
  24. data/docs/NorwegianBankIdProviderOutput.md +32 -0
  25. data/docs/OneIdProviderAddress.md +26 -0
  26. data/docs/OneIdProviderOutput.md +28 -0
  27. data/docs/OutputFrejaAddress.md +24 -0
  28. data/docs/OutputFrejaDocument.md +24 -0
  29. data/docs/PhilippinesDigitalNidProviderOutput.md +21 -1
  30. data/docs/PhilippinesPhysicalNidProviderOutput.md +17 -1
  31. data/docs/ProviderInput.md +6 -0
  32. data/docs/ProviderOutput.md +26 -2
  33. data/docs/ProvidersApi.md +70 -0
  34. data/docs/Raw18013DocumentRequest.md +20 -0
  35. data/docs/Raw18013RequestInput.md +18 -0
  36. data/docs/RecommendProvidersResponse.md +3 -1
  37. data/docs/SamsungWalletInput.md +18 -0
  38. data/docs/UkEvisaLookupInput.md +20 -0
  39. data/docs/UnitedKingdomEvisaProviderOutput.md +38 -0
  40. data/docs/VerificationProfileResponse.md +2 -0
  41. data/docs/VerificationProfilesApi.md +4 -0
  42. data/docs/YotiDeeplinkProviderOutput.md +40 -0
  43. data/lib/trinsic_api/api/providers_api.rb +63 -0
  44. data/lib/trinsic_api/api/verification_profiles_api.rb +6 -0
  45. data/lib/trinsic_api/models/aadhaar_claims.rb +376 -0
  46. data/lib/trinsic_api/models/aadhaar_language.rb +250 -0
  47. data/lib/trinsic_api/models/aadhaar_localized_claims.rb +343 -0
  48. data/lib/trinsic_api/models/apple_wallet_input.rb +16 -5
  49. data/lib/trinsic_api/models/connect_id_address.rb +266 -0
  50. data/lib/trinsic_api/models/connect_id_age_verification.rb +233 -0
  51. data/lib/trinsic_api/models/connect_id_beneficiary_account.rb +255 -0
  52. data/lib/trinsic_api/models/connect_id_provider_output.rb +333 -0
  53. data/lib/trinsic_api/models/czech_moje_id_address_output.rb +277 -0
  54. data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +465 -0
  55. data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +305 -0
  56. data/lib/trinsic_api/models/fayda_provider_output.rb +38 -5
  57. data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +333 -0
  58. data/lib/trinsic_api/models/france_identite_input.rb +222 -0
  59. data/lib/trinsic_api/models/france_identite_provider_output.rb +239 -0
  60. data/lib/trinsic_api/models/freja_indirect_provider_output.rb +320 -0
  61. data/lib/trinsic_api/models/freja_provider_output.rb +185 -91
  62. data/lib/trinsic_api/models/get_provider_response.rb +238 -0
  63. data/lib/trinsic_api/models/google_wallet_input.rb +16 -5
  64. data/lib/trinsic_api/models/integration_step.rb +1 -1
  65. data/lib/trinsic_api/models/kenya_nid_lookup2_address.rb +269 -0
  66. data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +429 -0
  67. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +392 -0
  68. data/lib/trinsic_api/models/norwegian_bank_id_provider_output.rb +300 -0
  69. data/lib/trinsic_api/models/one_id_provider_address.rb +266 -0
  70. data/lib/trinsic_api/models/one_id_provider_output.rb +278 -0
  71. data/lib/trinsic_api/models/output_freja_address.rb +255 -0
  72. data/lib/trinsic_api/models/output_freja_document.rb +255 -0
  73. data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +114 -4
  74. data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +92 -4
  75. data/lib/trinsic_api/models/provider_input.rb +34 -1
  76. data/lib/trinsic_api/models/provider_output.rb +138 -6
  77. data/lib/trinsic_api/models/raw18013_document_request.rb +276 -0
  78. data/lib/trinsic_api/models/raw18013_request_input.rb +259 -0
  79. data/lib/trinsic_api/models/recommend_providers_response.rb +33 -4
  80. data/lib/trinsic_api/models/samsung_wallet_input.rb +222 -0
  81. data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +283 -0
  82. data/lib/trinsic_api/models/united_kingdom_evisa_provider_output.rb +333 -0
  83. data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
  84. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +344 -0
  85. data/lib/trinsic_api/version.rb +1 -1
  86. data/lib/trinsic_api.rb +29 -0
  87. data/spec/api/providers_api_spec.rb +12 -0
  88. data/spec/api/verification_profiles_api_spec.rb +2 -0
  89. data/spec/models/aadhaar_claims_spec.rb +120 -0
  90. data/spec/models/aadhaar_language_spec.rb +42 -0
  91. data/spec/models/aadhaar_localized_claims_spec.rb +102 -0
  92. data/spec/models/apple_wallet_input_spec.rb +6 -0
  93. data/spec/models/connect_id_address_spec.rb +60 -0
  94. data/spec/models/connect_id_age_verification_spec.rb +42 -0
  95. data/spec/models/connect_id_beneficiary_account_spec.rb +54 -0
  96. data/spec/models/connect_id_provider_output_spec.rb +96 -0
  97. data/spec/models/czech_moje_id_address_output_spec.rb +66 -0
  98. data/spec/models/czech_moje_id_provider_output_spec.rb +168 -0
  99. data/spec/models/digilocker_aadhaar_provider_output_spec.rb +72 -0
  100. data/spec/models/fayda_provider_output_spec.rb +18 -0
  101. data/spec/models/finnish_trust_network_provider_output_spec.rb +96 -0
  102. data/spec/models/france_identite_input_spec.rb +36 -0
  103. data/spec/models/france_identite_provider_output_spec.rb +36 -0
  104. data/spec/models/freja_indirect_provider_output_spec.rb +54 -0
  105. data/spec/models/freja_provider_output_spec.rb +88 -4
  106. data/spec/models/get_provider_response_spec.rb +36 -0
  107. data/spec/models/google_wallet_input_spec.rb +6 -0
  108. data/spec/models/kenya_nid_lookup2_address_spec.rb +60 -0
  109. data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +96 -0
  110. data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +102 -0
  111. data/spec/models/norwegian_bank_id_provider_output_spec.rb +78 -0
  112. data/spec/models/one_id_provider_address_spec.rb +60 -0
  113. data/spec/models/one_id_provider_output_spec.rb +66 -0
  114. data/spec/models/output_freja_address_spec.rb +54 -0
  115. data/spec/models/output_freja_document_spec.rb +54 -0
  116. data/spec/models/philippines_digital_nid_provider_output_spec.rb +60 -0
  117. data/spec/models/philippines_physical_nid_provider_output_spec.rb +48 -0
  118. data/spec/models/provider_input_spec.rb +18 -0
  119. data/spec/models/provider_output_spec.rb +72 -0
  120. data/spec/models/raw18013_document_request_spec.rb +42 -0
  121. data/spec/models/raw18013_request_input_spec.rb +36 -0
  122. data/spec/models/recommend_providers_response_spec.rb +6 -0
  123. data/spec/models/samsung_wallet_input_spec.rb +36 -0
  124. data/spec/models/uk_evisa_lookup_input_spec.rb +42 -0
  125. data/spec/models/united_kingdom_evisa_provider_output_spec.rb +96 -0
  126. data/spec/models/verification_profile_response_spec.rb +6 -0
  127. data/spec/models/yoti_deeplink_provider_output_spec.rb +102 -0
  128. metadata +236 -120
@@ -0,0 +1,333 @@
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
+ # Exposed properties for the `uk-evisa-lookup` Provider which do not directly map to the normalized IdentityData model.
18
+ class UnitedKingdomEvisaProviderOutput
19
+ # The first name of the individual as recorded on the eVisa.
20
+ attr_accessor :first_name
21
+
22
+ # The last name of the individual as recorded on the eVisa.
23
+ attr_accessor :last_name
24
+
25
+ # The date of birth of the individual.
26
+ attr_accessor :date_of_birth
27
+
28
+ # The 9-character share code used for the verification.
29
+ attr_accessor :share_code
30
+
31
+ # The eVisa reference number issued by UK Visas and Immigration (UKVI).
32
+ attr_accessor :reference_number
33
+
34
+ # The expiration date of the eVisa. Only present for immigration_status verifications.
35
+ attr_accessor :expiration_date
36
+
37
+ # The start date from which the eVisa is valid. Only returned for immigration_status and right_to_rent verifications — not returned for right_to_work.
38
+ attr_accessor :valid_from
39
+
40
+ # The nationality of the individual as recorded on the eVisa. Only present for immigration_status verifications.
41
+ attr_accessor :nationality
42
+
43
+ # The immigration status of the individual. Only present for immigration_status verifications. This is a personalized record for each individual, and there is no single definitive list. Some common values: - Settled - Pre-settled - Student - Graduate - Youth Mobility - Global Talent - Skilled Worker - Limited leave
44
+ attr_accessor :immigration_status
45
+
46
+ # Overall verification outcome: \"pass\" or \"fail\".
47
+ attr_accessor :outcome
48
+
49
+ # Type of verification. List of possible values: - immigration_status - right_to_work - right_to_rent
50
+ attr_accessor :evidence_type
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'first_name' => :'firstName',
56
+ :'last_name' => :'lastName',
57
+ :'date_of_birth' => :'dateOfBirth',
58
+ :'share_code' => :'shareCode',
59
+ :'reference_number' => :'referenceNumber',
60
+ :'expiration_date' => :'expirationDate',
61
+ :'valid_from' => :'validFrom',
62
+ :'nationality' => :'nationality',
63
+ :'immigration_status' => :'immigrationStatus',
64
+ :'outcome' => :'outcome',
65
+ :'evidence_type' => :'evidenceType'
66
+ }
67
+ end
68
+
69
+ # Returns attribute mapping this model knows about
70
+ def self.acceptable_attribute_map
71
+ attribute_map
72
+ end
73
+
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ acceptable_attribute_map.values
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.openapi_types
81
+ {
82
+ :'first_name' => :'String',
83
+ :'last_name' => :'String',
84
+ :'date_of_birth' => :'Date',
85
+ :'share_code' => :'String',
86
+ :'reference_number' => :'String',
87
+ :'expiration_date' => :'Date',
88
+ :'valid_from' => :'Date',
89
+ :'nationality' => :'String',
90
+ :'immigration_status' => :'String',
91
+ :'outcome' => :'String',
92
+ :'evidence_type' => :'String'
93
+ }
94
+ end
95
+
96
+ # List of attributes with nullable: true
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'first_name',
100
+ :'last_name',
101
+ :'date_of_birth',
102
+ :'share_code',
103
+ :'reference_number',
104
+ :'expiration_date',
105
+ :'valid_from',
106
+ :'nationality',
107
+ :'immigration_status',
108
+ :'outcome',
109
+ :'evidence_type'
110
+ ])
111
+ end
112
+
113
+ # Initializes the object
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ def initialize(attributes = {})
116
+ if (!attributes.is_a?(Hash))
117
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::UnitedKingdomEvisaProviderOutput` initialize method"
118
+ end
119
+
120
+ # check to see if the attribute exists and convert string to symbol for hash key
121
+ acceptable_attribute_map = self.class.acceptable_attribute_map
122
+ attributes = attributes.each_with_object({}) { |(k, v), h|
123
+ if (!acceptable_attribute_map.key?(k.to_sym))
124
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::UnitedKingdomEvisaProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
125
+ end
126
+ h[k.to_sym] = v
127
+ }
128
+
129
+ if attributes.key?(:'first_name')
130
+ self.first_name = attributes[:'first_name']
131
+ end
132
+
133
+ if attributes.key?(:'last_name')
134
+ self.last_name = attributes[:'last_name']
135
+ end
136
+
137
+ if attributes.key?(:'date_of_birth')
138
+ self.date_of_birth = attributes[:'date_of_birth']
139
+ end
140
+
141
+ if attributes.key?(:'share_code')
142
+ self.share_code = attributes[:'share_code']
143
+ end
144
+
145
+ if attributes.key?(:'reference_number')
146
+ self.reference_number = attributes[:'reference_number']
147
+ end
148
+
149
+ if attributes.key?(:'expiration_date')
150
+ self.expiration_date = attributes[:'expiration_date']
151
+ end
152
+
153
+ if attributes.key?(:'valid_from')
154
+ self.valid_from = attributes[:'valid_from']
155
+ end
156
+
157
+ if attributes.key?(:'nationality')
158
+ self.nationality = attributes[:'nationality']
159
+ end
160
+
161
+ if attributes.key?(:'immigration_status')
162
+ self.immigration_status = attributes[:'immigration_status']
163
+ end
164
+
165
+ if attributes.key?(:'outcome')
166
+ self.outcome = attributes[:'outcome']
167
+ end
168
+
169
+ if attributes.key?(:'evidence_type')
170
+ self.evidence_type = attributes[:'evidence_type']
171
+ end
172
+ end
173
+
174
+ # Show invalid properties with the reasons. Usually used together with valid?
175
+ # @return Array for valid properties with the reasons
176
+ def list_invalid_properties
177
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
178
+ invalid_properties = Array.new
179
+ invalid_properties
180
+ end
181
+
182
+ # Check to see if the all the properties in the model are valid
183
+ # @return true if the model is valid
184
+ def valid?
185
+ warn '[DEPRECATED] the `valid?` method is obsolete'
186
+ true
187
+ end
188
+
189
+ # Checks equality by comparing each attribute.
190
+ # @param [Object] Object to be compared
191
+ def ==(o)
192
+ return true if self.equal?(o)
193
+ self.class == o.class &&
194
+ first_name == o.first_name &&
195
+ last_name == o.last_name &&
196
+ date_of_birth == o.date_of_birth &&
197
+ share_code == o.share_code &&
198
+ reference_number == o.reference_number &&
199
+ expiration_date == o.expiration_date &&
200
+ valid_from == o.valid_from &&
201
+ nationality == o.nationality &&
202
+ immigration_status == o.immigration_status &&
203
+ outcome == o.outcome &&
204
+ evidence_type == o.evidence_type
205
+ end
206
+
207
+ # @see the `==` method
208
+ # @param [Object] Object to be compared
209
+ def eql?(o)
210
+ self == o
211
+ end
212
+
213
+ # Calculates hash code according to all attributes.
214
+ # @return [Integer] Hash code
215
+ def hash
216
+ [first_name, last_name, date_of_birth, share_code, reference_number, expiration_date, valid_from, nationality, immigration_status, outcome, evidence_type].hash
217
+ end
218
+
219
+ # Builds the object from hash
220
+ # @param [Hash] attributes Model attributes in the form of hash
221
+ # @return [Object] Returns the model itself
222
+ def self.build_from_hash(attributes)
223
+ return nil unless attributes.is_a?(Hash)
224
+ attributes = attributes.transform_keys(&:to_sym)
225
+ transformed_hash = {}
226
+ openapi_types.each_pair do |key, type|
227
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
228
+ transformed_hash["#{key}"] = nil
229
+ elsif type =~ /\AArray<(.*)>/i
230
+ # check to ensure the input is an array given that the attribute
231
+ # is documented as an array but the input is not
232
+ if attributes[attribute_map[key]].is_a?(Array)
233
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
234
+ end
235
+ elsif !attributes[attribute_map[key]].nil?
236
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
237
+ end
238
+ end
239
+ new(transformed_hash)
240
+ end
241
+
242
+ # Deserializes the data based on type
243
+ # @param string type Data type
244
+ # @param string value Value to be deserialized
245
+ # @return [Object] Deserialized data
246
+ def self._deserialize(type, value)
247
+ case type.to_sym
248
+ when :Time
249
+ Time.parse(value)
250
+ when :Date
251
+ Date.parse(value)
252
+ when :String
253
+ value.to_s
254
+ when :Integer
255
+ value.to_i
256
+ when :Float
257
+ value.to_f
258
+ when :Boolean
259
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
260
+ true
261
+ else
262
+ false
263
+ end
264
+ when :Object
265
+ # generic object (usually a Hash), return directly
266
+ value
267
+ when /\AArray<(?<inner_type>.+)>\z/
268
+ inner_type = Regexp.last_match[:inner_type]
269
+ value.map { |v| _deserialize(inner_type, v) }
270
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
271
+ k_type = Regexp.last_match[:k_type]
272
+ v_type = Regexp.last_match[:v_type]
273
+ {}.tap do |hash|
274
+ value.each do |k, v|
275
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
276
+ end
277
+ end
278
+ else # model
279
+ # models (e.g. Pet) or oneOf
280
+ klass = TrinsicApi.const_get(type)
281
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
282
+ end
283
+ end
284
+
285
+ # Returns the string representation of the object
286
+ # @return [String] String presentation of the object
287
+ def to_s
288
+ to_hash.to_s
289
+ end
290
+
291
+ # to_body is an alias to to_hash (backward compatibility)
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_body
294
+ to_hash
295
+ end
296
+
297
+ # Returns the object in the form of hash
298
+ # @return [Hash] Returns the object in the form of hash
299
+ def to_hash
300
+ hash = {}
301
+ self.class.attribute_map.each_pair do |attr, param|
302
+ value = self.send(attr)
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
308
+ hash[param] = _to_hash(value)
309
+ end
310
+ hash
311
+ end
312
+
313
+ # Outputs non-array value in the form of hash
314
+ # For object, use to_hash. Otherwise, just return the value
315
+ # @param [Object] value Any valid value
316
+ # @return [Hash] Returns the value in the form of hash
317
+ def _to_hash(value)
318
+ if value.is_a?(Array)
319
+ value.compact.map { |v| _to_hash(v) }
320
+ elsif value.is_a?(Hash)
321
+ {}.tap do |hash|
322
+ value.each { |k, v| hash[k] = _to_hash(v) }
323
+ end
324
+ elsif value.respond_to? :to_hash
325
+ value.to_hash
326
+ else
327
+ value
328
+ end
329
+ end
330
+
331
+ end
332
+
333
+ end
@@ -33,6 +33,9 @@ module TrinsicApi
33
33
  # The providers that are currently enabled for the verification profile.
34
34
  attr_accessor :enabled_providers
35
35
 
36
+ # The session expiration for verification sessions created with this profile.
37
+ attr_accessor :session_expiration
38
+
36
39
  # Whether this profile is for production usage. Only applicable for Live environment profiles.
37
40
  attr_accessor :is_production_usage
38
41
 
@@ -45,6 +48,7 @@ module TrinsicApi
45
48
  :'logo_url' => :'logoUrl',
46
49
  :'primary_color' => :'primaryColor',
47
50
  :'enabled_providers' => :'enabledProviders',
51
+ :'session_expiration' => :'sessionExpiration',
48
52
  :'is_production_usage' => :'isProductionUsage'
49
53
  }
50
54
  end
@@ -68,6 +72,7 @@ module TrinsicApi
68
72
  :'logo_url' => :'String',
69
73
  :'primary_color' => :'String',
70
74
  :'enabled_providers' => :'Array<String>',
75
+ :'session_expiration' => :'String',
71
76
  :'is_production_usage' => :'Boolean'
72
77
  }
73
78
  end
@@ -132,6 +137,12 @@ module TrinsicApi
132
137
  self.enabled_providers = nil
133
138
  end
134
139
 
140
+ if attributes.key?(:'session_expiration')
141
+ self.session_expiration = attributes[:'session_expiration']
142
+ else
143
+ self.session_expiration = nil
144
+ end
145
+
135
146
  if attributes.key?(:'is_production_usage')
136
147
  self.is_production_usage = attributes[:'is_production_usage']
137
148
  else
@@ -168,6 +179,10 @@ module TrinsicApi
168
179
  invalid_properties.push('invalid value for "enabled_providers", enabled_providers cannot be nil.')
169
180
  end
170
181
 
182
+ if @session_expiration.nil?
183
+ invalid_properties.push('invalid value for "session_expiration", session_expiration cannot be nil.')
184
+ end
185
+
171
186
  if @is_production_usage.nil?
172
187
  invalid_properties.push('invalid value for "is_production_usage", is_production_usage cannot be nil.')
173
188
  end
@@ -185,6 +200,7 @@ module TrinsicApi
185
200
  return false if @logo_url.nil?
186
201
  return false if @primary_color.nil?
187
202
  return false if @enabled_providers.nil?
203
+ return false if @session_expiration.nil?
188
204
  return false if @is_production_usage.nil?
189
205
  true
190
206
  end
@@ -249,6 +265,16 @@ module TrinsicApi
249
265
  @enabled_providers = enabled_providers
250
266
  end
251
267
 
268
+ # Custom attribute writer method with validation
269
+ # @param [Object] session_expiration Value to be assigned
270
+ def session_expiration=(session_expiration)
271
+ if session_expiration.nil?
272
+ fail ArgumentError, 'session_expiration cannot be nil'
273
+ end
274
+
275
+ @session_expiration = session_expiration
276
+ end
277
+
252
278
  # Custom attribute writer method with validation
253
279
  # @param [Object] is_production_usage Value to be assigned
254
280
  def is_production_usage=(is_production_usage)
@@ -270,6 +296,7 @@ module TrinsicApi
270
296
  logo_url == o.logo_url &&
271
297
  primary_color == o.primary_color &&
272
298
  enabled_providers == o.enabled_providers &&
299
+ session_expiration == o.session_expiration &&
273
300
  is_production_usage == o.is_production_usage
274
301
  end
275
302
 
@@ -282,7 +309,7 @@ module TrinsicApi
282
309
  # Calculates hash code according to all attributes.
283
310
  # @return [Integer] Hash code
284
311
  def hash
285
- [id, _alias, brand_name, logo_url, primary_color, enabled_providers, is_production_usage].hash
312
+ [id, _alias, brand_name, logo_url, primary_color, enabled_providers, session_expiration, is_production_usage].hash
286
313
  end
287
314
 
288
315
  # Builds the object from hash