trinsic_api 2.1.1.pre.alpha1 → 2.2.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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AppleWalletInput.md +18 -0
  3. data/docs/AttachmentsApi.md +1 -1
  4. data/docs/{CreateAdvancedProviderSessionRequest.md → CreateDirectProviderSessionRequest.md} +5 -3
  5. data/docs/{CreateAdvancedProviderSessionResponse.md → CreateDirectProviderSessionResponse.md} +2 -2
  6. data/docs/CreateHostedProviderSessionRequest.md +3 -1
  7. data/docs/CreateMdlExchangeRequest.md +32 -0
  8. data/docs/CreateMdlExchangeResponse.md +22 -0
  9. data/docs/CreateWidgetSessionRequest.md +3 -1
  10. data/docs/ExternalMdlFieldData.md +20 -0
  11. data/docs/FinalizeMdlExchangeRequest.md +24 -0
  12. data/docs/FinalizeMdlExchangeResponse.md +24 -0
  13. data/docs/GetAttachmentRequest.md +3 -1
  14. data/docs/GoogleWalletInput.md +18 -0
  15. data/docs/IdentityData.md +2 -0
  16. data/docs/{IndonesiaDukcapilBiometricMatchInput.md → IndonesiaDukcapilMatchInput.md} +3 -3
  17. data/docs/Match.md +20 -0
  18. data/docs/MatchData.md +36 -0
  19. data/docs/MdlApi.md +151 -0
  20. data/docs/MdlCertificateData.md +26 -0
  21. data/docs/MdlExchangeMechanism.md +15 -0
  22. data/docs/MdlFieldDataType.md +15 -0
  23. data/docs/MdlIdentityData.md +22 -0
  24. data/docs/NetworkApi.md +21 -18
  25. data/docs/ProviderContract.md +7 -5
  26. data/docs/ProviderInput.md +6 -2
  27. data/docs/RecommendRequest.md +2 -0
  28. data/docs/SessionsApi.md +103 -27
  29. data/docs/SubmitNativeChallengeResponseRequest.md +20 -0
  30. data/docs/SubmitNativeChallengeResponseResponse.md +18 -0
  31. data/lib/trinsic_api/api/mdl_api.rb +150 -0
  32. data/lib/trinsic_api/api/network_api.rb +22 -14
  33. data/lib/trinsic_api/api/sessions_api.rb +99 -23
  34. data/lib/trinsic_api/models/apple_wallet_input.rb +244 -0
  35. data/lib/trinsic_api/models/{create_advanced_provider_session_request.rb → create_direct_provider_session_request.rb} +32 -5
  36. data/lib/trinsic_api/models/{create_advanced_provider_session_response.rb → create_direct_provider_session_response.rb} +3 -3
  37. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +29 -2
  38. data/lib/trinsic_api/models/create_mdl_exchange_request.rb +404 -0
  39. data/lib/trinsic_api/models/create_mdl_exchange_response.rb +292 -0
  40. data/lib/trinsic_api/models/create_widget_session_request.rb +29 -2
  41. data/lib/trinsic_api/models/external_mdl_field_data.rb +287 -0
  42. data/lib/trinsic_api/models/finalize_mdl_exchange_request.rb +319 -0
  43. data/lib/trinsic_api/models/finalize_mdl_exchange_response.rb +287 -0
  44. data/lib/trinsic_api/models/get_attachment_request.rb +31 -4
  45. data/lib/trinsic_api/models/google_wallet_input.rb +244 -0
  46. data/lib/trinsic_api/models/identity_data.rb +11 -1
  47. data/lib/trinsic_api/models/{indonesia_dukcapil_biometric_match_input.rb → indonesia_dukcapil_match_input.rb} +4 -4
  48. data/lib/trinsic_api/models/integration_capability.rb +2 -1
  49. data/lib/trinsic_api/models/integration_launch_method.rb +2 -1
  50. data/lib/trinsic_api/models/integration_step.rb +1 -1
  51. data/lib/trinsic_api/models/match.rb +231 -0
  52. data/lib/trinsic_api/models/match_data.rb +311 -0
  53. data/lib/trinsic_api/models/mdl_certificate_data.rb +346 -0
  54. data/lib/trinsic_api/models/mdl_exchange_mechanism.rb +40 -0
  55. data/lib/trinsic_api/models/mdl_field_data_type.rb +43 -0
  56. data/lib/trinsic_api/models/mdl_identity_data.rb +294 -0
  57. data/lib/trinsic_api/models/provider_contract.rb +33 -6
  58. data/lib/trinsic_api/models/provider_input.rb +31 -9
  59. data/lib/trinsic_api/models/recommend_request.rb +28 -1
  60. data/lib/trinsic_api/models/result_collection_method.rb +2 -1
  61. data/lib/trinsic_api/models/session_error_code.rb +3 -1
  62. data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +283 -0
  63. data/lib/trinsic_api/models/submit_native_challenge_response_response.rb +238 -0
  64. data/lib/trinsic_api/version.rb +1 -1
  65. data/lib/trinsic_api.rb +19 -3
  66. data/spec/api/mdl_api_spec.rb +59 -0
  67. data/spec/api/network_api_spec.rb +3 -3
  68. data/spec/api/sessions_api_spec.rb +21 -7
  69. data/spec/models/apple_wallet_input_spec.rb +36 -0
  70. data/spec/models/{create_advanced_provider_session_request_spec.rb → create_direct_provider_session_request_spec.rb} +12 -6
  71. data/spec/models/{create_advanced_provider_session_response_spec.rb → create_direct_provider_session_response_spec.rb} +6 -6
  72. data/spec/models/create_hosted_provider_session_request_spec.rb +6 -0
  73. data/spec/models/create_mdl_exchange_request_spec.rb +78 -0
  74. data/spec/models/create_mdl_exchange_response_spec.rb +48 -0
  75. data/spec/models/create_widget_session_request_spec.rb +6 -0
  76. data/spec/models/external_mdl_field_data_spec.rb +42 -0
  77. data/spec/models/finalize_mdl_exchange_request_spec.rb +54 -0
  78. data/spec/models/finalize_mdl_exchange_response_spec.rb +54 -0
  79. data/spec/models/get_attachment_request_spec.rb +6 -0
  80. data/spec/models/google_wallet_input_spec.rb +36 -0
  81. data/spec/models/identity_data_spec.rb +6 -0
  82. data/spec/models/{indonesia_dukcapil_biometric_match_input_spec.rb → indonesia_dukcapil_match_input_spec.rb} +6 -6
  83. data/spec/models/match_data_spec.rb +90 -0
  84. data/spec/models/match_spec.rb +42 -0
  85. data/spec/models/mdl_certificate_data_spec.rb +60 -0
  86. data/spec/models/mdl_exchange_mechanism_spec.rb +30 -0
  87. data/spec/models/mdl_field_data_type_spec.rb +30 -0
  88. data/spec/models/mdl_identity_data_spec.rb +48 -0
  89. data/spec/models/provider_contract_spec.rb +6 -0
  90. data/spec/models/provider_input_spec.rb +13 -1
  91. data/spec/models/recommend_request_spec.rb +6 -0
  92. data/spec/models/submit_native_challenge_response_request_spec.rb +42 -0
  93. data/spec/models/submit_native_challenge_response_response_spec.rb +36 -0
  94. metadata +130 -66
@@ -0,0 +1,43 @@
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
+ class MdlFieldDataType
18
+ STRING = "String".freeze
19
+ BOOLEAN = "Boolean".freeze
20
+ NUMBER = "Number".freeze
21
+ BASE64_URL = "Base64Url".freeze
22
+ ENCODED_CBOR = "EncodedCbor".freeze
23
+
24
+ def self.all_vars
25
+ @all_vars ||= [STRING, BOOLEAN, NUMBER, BASE64_URL, ENCODED_CBOR].freeze
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def self.build_from_hash(value)
32
+ new.build_from_hash(value)
33
+ end
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
+ def build_from_hash(value)
39
+ return value if MdlFieldDataType.all_vars.include?(value)
40
+ raise "Invalid ENUM value #{value} for class #MdlFieldDataType"
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,294 @@
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
+ class MdlIdentityData
18
+ # Information about the IACA Root Certificate which signed the Issuer Certificate for this mDL.
19
+ attr_accessor :iaca_root_certificate
20
+
21
+ # Information about the Document Signer Certificate which signed the mDL presented by the user.
22
+ attr_accessor :document_signer_certificate
23
+
24
+ # The namespaces, and fields within those namespaces, which were present in the processed mDL.
25
+ attr_accessor :name_spaces
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'iaca_root_certificate' => :'iacaRootCertificate',
31
+ :'document_signer_certificate' => :'documentSignerCertificate',
32
+ :'name_spaces' => :'nameSpaces'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'iaca_root_certificate' => :'MdlCertificateData',
50
+ :'document_signer_certificate' => :'MdlCertificateData',
51
+ :'name_spaces' => :'Hash<String, Hash<String, ExternalMdlFieldData>>'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MdlIdentityData` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MdlIdentityData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'iaca_root_certificate')
78
+ self.iaca_root_certificate = attributes[:'iaca_root_certificate']
79
+ else
80
+ self.iaca_root_certificate = nil
81
+ end
82
+
83
+ if attributes.key?(:'document_signer_certificate')
84
+ self.document_signer_certificate = attributes[:'document_signer_certificate']
85
+ else
86
+ self.document_signer_certificate = nil
87
+ end
88
+
89
+ if attributes.key?(:'name_spaces')
90
+ if (value = attributes[:'name_spaces']).is_a?(Hash)
91
+ self.name_spaces = value
92
+ end
93
+ else
94
+ self.name_spaces = nil
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
+ invalid_properties = Array.new
103
+ if @iaca_root_certificate.nil?
104
+ invalid_properties.push('invalid value for "iaca_root_certificate", iaca_root_certificate cannot be nil.')
105
+ end
106
+
107
+ if @document_signer_certificate.nil?
108
+ invalid_properties.push('invalid value for "document_signer_certificate", document_signer_certificate cannot be nil.')
109
+ end
110
+
111
+ if @name_spaces.nil?
112
+ invalid_properties.push('invalid value for "name_spaces", name_spaces cannot be nil.')
113
+ end
114
+
115
+ invalid_properties
116
+ end
117
+
118
+ # Check to see if the all the properties in the model are valid
119
+ # @return true if the model is valid
120
+ def valid?
121
+ warn '[DEPRECATED] the `valid?` method is obsolete'
122
+ return false if @iaca_root_certificate.nil?
123
+ return false if @document_signer_certificate.nil?
124
+ return false if @name_spaces.nil?
125
+ true
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] iaca_root_certificate Value to be assigned
130
+ def iaca_root_certificate=(iaca_root_certificate)
131
+ if iaca_root_certificate.nil?
132
+ fail ArgumentError, 'iaca_root_certificate cannot be nil'
133
+ end
134
+
135
+ @iaca_root_certificate = iaca_root_certificate
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] document_signer_certificate Value to be assigned
140
+ def document_signer_certificate=(document_signer_certificate)
141
+ if document_signer_certificate.nil?
142
+ fail ArgumentError, 'document_signer_certificate cannot be nil'
143
+ end
144
+
145
+ @document_signer_certificate = document_signer_certificate
146
+ end
147
+
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] name_spaces Value to be assigned
150
+ def name_spaces=(name_spaces)
151
+ if name_spaces.nil?
152
+ fail ArgumentError, 'name_spaces cannot be nil'
153
+ end
154
+
155
+ @name_spaces = name_spaces
156
+ end
157
+
158
+ # Checks equality by comparing each attribute.
159
+ # @param [Object] Object to be compared
160
+ def ==(o)
161
+ return true if self.equal?(o)
162
+ self.class == o.class &&
163
+ iaca_root_certificate == o.iaca_root_certificate &&
164
+ document_signer_certificate == o.document_signer_certificate &&
165
+ name_spaces == o.name_spaces
166
+ end
167
+
168
+ # @see the `==` method
169
+ # @param [Object] Object to be compared
170
+ def eql?(o)
171
+ self == o
172
+ end
173
+
174
+ # Calculates hash code according to all attributes.
175
+ # @return [Integer] Hash code
176
+ def hash
177
+ [iaca_root_certificate, document_signer_certificate, name_spaces].hash
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def self.build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ attributes = attributes.transform_keys(&:to_sym)
186
+ transformed_hash = {}
187
+ openapi_types.each_pair do |key, type|
188
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
189
+ transformed_hash["#{key}"] = nil
190
+ elsif type =~ /\AArray<(.*)>/i
191
+ # check to ensure the input is an array given that the attribute
192
+ # is documented as an array but the input is not
193
+ if attributes[attribute_map[key]].is_a?(Array)
194
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
195
+ end
196
+ elsif !attributes[attribute_map[key]].nil?
197
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
198
+ end
199
+ end
200
+ new(transformed_hash)
201
+ end
202
+
203
+ # Deserializes the data based on type
204
+ # @param string type Data type
205
+ # @param string value Value to be deserialized
206
+ # @return [Object] Deserialized data
207
+ def self._deserialize(type, value)
208
+ case type.to_sym
209
+ when :Time
210
+ Time.parse(value)
211
+ when :Date
212
+ Date.parse(value)
213
+ when :String
214
+ value.to_s
215
+ when :Integer
216
+ value.to_i
217
+ when :Float
218
+ value.to_f
219
+ when :Boolean
220
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
221
+ true
222
+ else
223
+ false
224
+ end
225
+ when :Object
226
+ # generic object (usually a Hash), return directly
227
+ value
228
+ when /\AArray<(?<inner_type>.+)>\z/
229
+ inner_type = Regexp.last_match[:inner_type]
230
+ value.map { |v| _deserialize(inner_type, v) }
231
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
232
+ k_type = Regexp.last_match[:k_type]
233
+ v_type = Regexp.last_match[:v_type]
234
+ {}.tap do |hash|
235
+ value.each do |k, v|
236
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
237
+ end
238
+ end
239
+ else # model
240
+ # models (e.g. Pet) or oneOf
241
+ klass = TrinsicApi.const_get(type)
242
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
243
+ end
244
+ end
245
+
246
+ # Returns the string representation of the object
247
+ # @return [String] String presentation of the object
248
+ def to_s
249
+ to_hash.to_s
250
+ end
251
+
252
+ # to_body is an alias to to_hash (backward compatibility)
253
+ # @return [Hash] Returns the object in the form of hash
254
+ def to_body
255
+ to_hash
256
+ end
257
+
258
+ # Returns the object in the form of hash
259
+ # @return [Hash] Returns the object in the form of hash
260
+ def to_hash
261
+ hash = {}
262
+ self.class.attribute_map.each_pair do |attr, param|
263
+ value = self.send(attr)
264
+ if value.nil?
265
+ is_nullable = self.class.openapi_nullable.include?(attr)
266
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
267
+ end
268
+
269
+ hash[param] = _to_hash(value)
270
+ end
271
+ hash
272
+ end
273
+
274
+ # Outputs non-array value in the form of hash
275
+ # For object, use to_hash. Otherwise, just return the value
276
+ # @param [Object] value Any valid value
277
+ # @return [Hash] Returns the value in the form of hash
278
+ def _to_hash(value)
279
+ if value.is_a?(Array)
280
+ value.compact.map { |v| _to_hash(v) }
281
+ elsif value.is_a?(Hash)
282
+ {}.tap do |hash|
283
+ value.each { |k, v| hash[k] = _to_hash(v) }
284
+ end
285
+ elsif value.respond_to? :to_hash
286
+ value.to_hash
287
+ else
288
+ value
289
+ end
290
+ end
291
+
292
+ end
293
+
294
+ end
@@ -39,27 +39,30 @@ module TrinsicApi
39
39
  # The regions within which the Provider is available.
40
40
  attr_accessor :regions
41
41
 
42
- # Relevant only to Advanced Provider Sessions. The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
42
+ # Relevant only to Direct Provider Sessions. The `LaunchMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
43
43
  attr_accessor :launch_method
44
44
 
45
- # Relevant only to Advanced Provider Sessions. The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
45
+ # Relevant only to Direct Provider Sessions. The `CollectionMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
46
46
  attr_accessor :collection_method
47
47
 
48
48
  # If `true`, then the results for this Provider may not be available immediately after the user is redirected back to your application. In this case, the `GetSessionResults` API must be called until results are available. This is an uncommon scenario, and only applies to Providers which cannot guarantee the availability of results immediately after the user is redirected back to your application.
49
49
  attr_accessor :results_may_be_delayed_after_redirect
50
50
 
51
- # Relevant only to Advanced Provider Sessions. Whether the Provider requires the `RefreshStepContent` capability. For example, Samsung Wallet's deep links expire every 30 seconds, and must be refreshed periodically for a resilient user flow.
51
+ # Relevant only to Direct Provider Sessions. Whether the Provider requires the `RefreshStepContent` capability. For example, Samsung Wallet's deep links expire every 30 seconds, and must be refreshed periodically for a resilient user flow.
52
52
  attr_accessor :has_refreshable_content
53
53
 
54
- # Relevant to Hosted Provider Sessions and Advanced Provider Sessions. If `true`, this Provider requires provider-specific input on Session creation. If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
54
+ # Relevant to Hosted Provider Sessions and Direct Provider Sessions. If `true`, this Provider requires provider-specific input on Session creation. If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
55
55
  attr_accessor :requires_input
56
56
 
57
57
  # Whether there exists a Trinsic-hosted UI for this Provider. This is `true` for any Provider which is not a simple, OIDC-like redirect flow.
58
58
  attr_accessor :has_trinsic_interface
59
59
 
60
- # Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API. If `false`, the Provider may still be launched through Advanced Provider Sessions; however, it will necessarily require a Trinsic-hosted UI to function.
60
+ # Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API. If `false`, the Provider may still be launched through Direct Provider Sessions; however, it will necessarily require a Trinsic-hosted UI to function.
61
61
  attr_accessor :supports_advanced_provider_sessions
62
62
 
63
+ # Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API. If `false`, the Provider may still be launched through Direct Provider Sessions; however, it will necessarily require a Trinsic-hosted UI to function.
64
+ attr_accessor :supports_direct_provider_sessions
65
+
63
66
  # Information about the fields that this Provider will return in verification results.
64
67
  attr_accessor :available_fields
65
68
 
@@ -109,6 +112,7 @@ module TrinsicApi
109
112
  :'requires_input' => :'requiresInput',
110
113
  :'has_trinsic_interface' => :'hasTrinsicInterface',
111
114
  :'supports_advanced_provider_sessions' => :'supportsAdvancedProviderSessions',
115
+ :'supports_direct_provider_sessions' => :'supportsDirectProviderSessions',
112
116
  :'available_fields' => :'availableFields',
113
117
  :'sub_providers' => :'subProviders',
114
118
  :'health' => :'health'
@@ -143,6 +147,7 @@ module TrinsicApi
143
147
  :'requires_input' => :'Boolean',
144
148
  :'has_trinsic_interface' => :'Boolean',
145
149
  :'supports_advanced_provider_sessions' => :'Boolean',
150
+ :'supports_direct_provider_sessions' => :'Boolean',
146
151
  :'available_fields' => :'Array<ContractField>',
147
152
  :'sub_providers' => :'Array<SubProviderMetadata>',
148
153
  :'health' => :'ProviderHealth'
@@ -267,6 +272,12 @@ module TrinsicApi
267
272
  self.supports_advanced_provider_sessions = nil
268
273
  end
269
274
 
275
+ if attributes.key?(:'supports_direct_provider_sessions')
276
+ self.supports_direct_provider_sessions = attributes[:'supports_direct_provider_sessions']
277
+ else
278
+ self.supports_direct_provider_sessions = nil
279
+ end
280
+
270
281
  if attributes.key?(:'available_fields')
271
282
  if (value = attributes[:'available_fields']).is_a?(Array)
272
283
  self.available_fields = value
@@ -351,6 +362,10 @@ module TrinsicApi
351
362
  invalid_properties.push('invalid value for "supports_advanced_provider_sessions", supports_advanced_provider_sessions cannot be nil.')
352
363
  end
353
364
 
365
+ if @supports_direct_provider_sessions.nil?
366
+ invalid_properties.push('invalid value for "supports_direct_provider_sessions", supports_direct_provider_sessions cannot be nil.')
367
+ end
368
+
354
369
  if @health.nil?
355
370
  invalid_properties.push('invalid value for "health", health cannot be nil.')
356
371
  end
@@ -377,6 +392,7 @@ module TrinsicApi
377
392
  return false if @requires_input.nil?
378
393
  return false if @has_trinsic_interface.nil?
379
394
  return false if @supports_advanced_provider_sessions.nil?
395
+ return false if @supports_direct_provider_sessions.nil?
380
396
  return false if @health.nil?
381
397
  true
382
398
  end
@@ -531,6 +547,16 @@ module TrinsicApi
531
547
  @supports_advanced_provider_sessions = supports_advanced_provider_sessions
532
548
  end
533
549
 
550
+ # Custom attribute writer method with validation
551
+ # @param [Object] supports_direct_provider_sessions Value to be assigned
552
+ def supports_direct_provider_sessions=(supports_direct_provider_sessions)
553
+ if supports_direct_provider_sessions.nil?
554
+ fail ArgumentError, 'supports_direct_provider_sessions cannot be nil'
555
+ end
556
+
557
+ @supports_direct_provider_sessions = supports_direct_provider_sessions
558
+ end
559
+
534
560
  # Custom attribute writer method with validation
535
561
  # @param [Object] health Value to be assigned
536
562
  def health=(health)
@@ -561,6 +587,7 @@ module TrinsicApi
561
587
  requires_input == o.requires_input &&
562
588
  has_trinsic_interface == o.has_trinsic_interface &&
563
589
  supports_advanced_provider_sessions == o.supports_advanced_provider_sessions &&
590
+ supports_direct_provider_sessions == o.supports_direct_provider_sessions &&
564
591
  available_fields == o.available_fields &&
565
592
  sub_providers == o.sub_providers &&
566
593
  health == o.health
@@ -575,7 +602,7 @@ module TrinsicApi
575
602
  # Calculates hash code according to all attributes.
576
603
  # @return [Integer] Hash code
577
604
  def hash
578
- [id, name, subtext, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, available_fields, sub_providers, health].hash
605
+ [id, name, subtext, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, supports_direct_provider_sessions, available_fields, sub_providers, health].hash
579
606
  end
580
607
 
581
608
  # Builds the object from hash
@@ -18,8 +18,8 @@ module TrinsicApi
18
18
  # Input for the `indonesia-nik-lookup` provider
19
19
  attr_accessor :indonesia_nik
20
20
 
21
- # Input for the `indonesia-dukcapil-biometric-match` provider
22
- attr_accessor :indonesia_dukcapil_biometric_match
21
+ # Input for the `indonesia-dukcapil-match` provider
22
+ attr_accessor :indonesia_dukcapil_match
23
23
 
24
24
  # Input for the `mexico-curp-lookup` provider
25
25
  attr_accessor :mexico_curp
@@ -63,6 +63,12 @@ module TrinsicApi
63
63
  # Input for the `italy-spid` provider
64
64
  attr_accessor :spid
65
65
 
66
+ # Input for the `google-wallet` provider
67
+ attr_accessor :google_wallet
68
+
69
+ # Input for the `apple-wallet` provider
70
+ attr_accessor :apple_wallet
71
+
66
72
  # *TEST MODE ONLY.* Input for the `trinsic-test-database-lookup` provider
67
73
  attr_accessor :trinsic_test_database_lookup
68
74
 
@@ -73,7 +79,7 @@ module TrinsicApi
73
79
  def self.attribute_map
74
80
  {
75
81
  :'indonesia_nik' => :'indonesiaNik',
76
- :'indonesia_dukcapil_biometric_match' => :'indonesiaDukcapilBiometricMatch',
82
+ :'indonesia_dukcapil_match' => :'indonesiaDukcapilMatch',
77
83
  :'mexico_curp' => :'mexicoCurp',
78
84
  :'south_africa_nid' => :'southAfricaNid',
79
85
  :'kenya_nid' => :'kenyaNid',
@@ -88,6 +94,8 @@ module TrinsicApi
88
94
  :'mobile_id' => :'mobileId',
89
95
  :'idin' => :'idin',
90
96
  :'spid' => :'spid',
97
+ :'google_wallet' => :'googleWallet',
98
+ :'apple_wallet' => :'appleWallet',
91
99
  :'trinsic_test_database_lookup' => :'trinsicTestDatabaseLookup',
92
100
  :'trinsic_test_sub_providers' => :'trinsicTestSubProviders'
93
101
  }
@@ -107,7 +115,7 @@ module TrinsicApi
107
115
  def self.openapi_types
108
116
  {
109
117
  :'indonesia_nik' => :'IndonesiaNikInput',
110
- :'indonesia_dukcapil_biometric_match' => :'IndonesiaDukcapilBiometricMatchInput',
118
+ :'indonesia_dukcapil_match' => :'IndonesiaDukcapilMatchInput',
111
119
  :'mexico_curp' => :'MexicoCurpInput',
112
120
  :'south_africa_nid' => :'SouthAfricaNidInput',
113
121
  :'kenya_nid' => :'KenyaNidInput',
@@ -122,6 +130,8 @@ module TrinsicApi
122
130
  :'mobile_id' => :'MobileIdInput',
123
131
  :'idin' => :'IdinInput',
124
132
  :'spid' => :'SpidInput',
133
+ :'google_wallet' => :'GoogleWalletInput',
134
+ :'apple_wallet' => :'AppleWalletInput',
125
135
  :'trinsic_test_database_lookup' => :'TrinsicTestDatabaseLookupInput',
126
136
  :'trinsic_test_sub_providers' => :'TrinsicTestSubProvidersInput'
127
137
  }
@@ -131,7 +141,7 @@ module TrinsicApi
131
141
  def self.openapi_nullable
132
142
  Set.new([
133
143
  :'indonesia_nik',
134
- :'indonesia_dukcapil_biometric_match',
144
+ :'indonesia_dukcapil_match',
135
145
  :'mexico_curp',
136
146
  :'south_africa_nid',
137
147
  :'kenya_nid',
@@ -146,6 +156,8 @@ module TrinsicApi
146
156
  :'mobile_id',
147
157
  :'idin',
148
158
  :'spid',
159
+ :'google_wallet',
160
+ :'apple_wallet',
149
161
  :'trinsic_test_database_lookup',
150
162
  :'trinsic_test_sub_providers'
151
163
  ])
@@ -171,8 +183,8 @@ module TrinsicApi
171
183
  self.indonesia_nik = attributes[:'indonesia_nik']
172
184
  end
173
185
 
174
- if attributes.key?(:'indonesia_dukcapil_biometric_match')
175
- self.indonesia_dukcapil_biometric_match = attributes[:'indonesia_dukcapil_biometric_match']
186
+ if attributes.key?(:'indonesia_dukcapil_match')
187
+ self.indonesia_dukcapil_match = attributes[:'indonesia_dukcapil_match']
176
188
  end
177
189
 
178
190
  if attributes.key?(:'mexico_curp')
@@ -231,6 +243,14 @@ module TrinsicApi
231
243
  self.spid = attributes[:'spid']
232
244
  end
233
245
 
246
+ if attributes.key?(:'google_wallet')
247
+ self.google_wallet = attributes[:'google_wallet']
248
+ end
249
+
250
+ if attributes.key?(:'apple_wallet')
251
+ self.apple_wallet = attributes[:'apple_wallet']
252
+ end
253
+
234
254
  if attributes.key?(:'trinsic_test_database_lookup')
235
255
  self.trinsic_test_database_lookup = attributes[:'trinsic_test_database_lookup']
236
256
  end
@@ -261,7 +281,7 @@ module TrinsicApi
261
281
  return true if self.equal?(o)
262
282
  self.class == o.class &&
263
283
  indonesia_nik == o.indonesia_nik &&
264
- indonesia_dukcapil_biometric_match == o.indonesia_dukcapil_biometric_match &&
284
+ indonesia_dukcapil_match == o.indonesia_dukcapil_match &&
265
285
  mexico_curp == o.mexico_curp &&
266
286
  south_africa_nid == o.south_africa_nid &&
267
287
  kenya_nid == o.kenya_nid &&
@@ -276,6 +296,8 @@ module TrinsicApi
276
296
  mobile_id == o.mobile_id &&
277
297
  idin == o.idin &&
278
298
  spid == o.spid &&
299
+ google_wallet == o.google_wallet &&
300
+ apple_wallet == o.apple_wallet &&
279
301
  trinsic_test_database_lookup == o.trinsic_test_database_lookup &&
280
302
  trinsic_test_sub_providers == o.trinsic_test_sub_providers
281
303
  end
@@ -289,7 +311,7 @@ module TrinsicApi
289
311
  # Calculates hash code according to all attributes.
290
312
  # @return [Integer] Hash code
291
313
  def hash
292
- [indonesia_nik, indonesia_dukcapil_biometric_match, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
314
+ [indonesia_nik, indonesia_dukcapil_match, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, google_wallet, apple_wallet, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
293
315
  end
294
316
 
295
317
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class RecommendRequest
18
+ # The ID of the VerificationProfile to use for this recommendation.
19
+ attr_accessor :verification_profile_id
20
+
18
21
  # Information about the user you wish to generate a recommendation for.
19
22
  attr_accessor :recommendation_info
20
23
 
@@ -24,6 +27,7 @@ module TrinsicApi
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
30
+ :'verification_profile_id' => :'verificationProfileId',
27
31
  :'recommendation_info' => :'recommendationInfo',
28
32
  :'health' => :'health'
29
33
  }
@@ -42,6 +46,7 @@ module TrinsicApi
42
46
  # Attribute type mapping.
43
47
  def self.openapi_types
44
48
  {
49
+ :'verification_profile_id' => :'String',
45
50
  :'recommendation_info' => :'RecommendationInfo',
46
51
  :'health' => :'String'
47
52
  }
@@ -71,6 +76,12 @@ module TrinsicApi
71
76
  h[k.to_sym] = v
72
77
  }
73
78
 
79
+ if attributes.key?(:'verification_profile_id')
80
+ self.verification_profile_id = attributes[:'verification_profile_id']
81
+ else
82
+ self.verification_profile_id = nil
83
+ end
84
+
74
85
  if attributes.key?(:'recommendation_info')
75
86
  self.recommendation_info = attributes[:'recommendation_info']
76
87
  end
@@ -85,6 +96,10 @@ module TrinsicApi
85
96
  def list_invalid_properties
86
97
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
98
  invalid_properties = Array.new
99
+ if @verification_profile_id.nil?
100
+ invalid_properties.push('invalid value for "verification_profile_id", verification_profile_id cannot be nil.')
101
+ end
102
+
88
103
  invalid_properties
89
104
  end
90
105
 
@@ -92,14 +107,26 @@ module TrinsicApi
92
107
  # @return true if the model is valid
93
108
  def valid?
94
109
  warn '[DEPRECATED] the `valid?` method is obsolete'
110
+ return false if @verification_profile_id.nil?
95
111
  true
96
112
  end
97
113
 
114
+ # Custom attribute writer method with validation
115
+ # @param [Object] verification_profile_id Value to be assigned
116
+ def verification_profile_id=(verification_profile_id)
117
+ if verification_profile_id.nil?
118
+ fail ArgumentError, 'verification_profile_id cannot be nil'
119
+ end
120
+
121
+ @verification_profile_id = verification_profile_id
122
+ end
123
+
98
124
  # Checks equality by comparing each attribute.
99
125
  # @param [Object] Object to be compared
100
126
  def ==(o)
101
127
  return true if self.equal?(o)
102
128
  self.class == o.class &&
129
+ verification_profile_id == o.verification_profile_id &&
103
130
  recommendation_info == o.recommendation_info &&
104
131
  health == o.health
105
132
  end
@@ -113,7 +140,7 @@ module TrinsicApi
113
140
  # Calculates hash code according to all attributes.
114
141
  # @return [Integer] Hash code
115
142
  def hash
116
- [recommendation_info, health].hash
143
+ [verification_profile_id, recommendation_info, health].hash
117
144
  end
118
145
 
119
146
  # Builds the object from hash
@@ -17,9 +17,10 @@ module TrinsicApi
17
17
  class ResultCollectionMethod
18
18
  POLL_RESULT = "PollResult".freeze
19
19
  CAPTURE_REDIRECT = "CaptureRedirect".freeze
20
+ SUBMIT_NATIVE_CHALLENGE_RESPONSE = "SubmitNativeChallengeResponse".freeze
20
21
 
21
22
  def self.all_vars
22
- @all_vars ||= [POLL_RESULT, CAPTURE_REDIRECT].freeze
23
+ @all_vars ||= [POLL_RESULT, CAPTURE_REDIRECT, SUBMIT_NATIVE_CHALLENGE_RESPONSE].freeze
23
24
  end
24
25
 
25
26
  # Builds the enum from string