trinsic_api 3.2.1 → 3.3.0.pre.alpha2

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 (146) hide show
  1. checksums.yaml +4 -4
  2. data/docs/BrazilCnhProviderOutput.md +2 -0
  3. data/docs/BrazilCpfCheckInput.md +3 -3
  4. data/docs/BrazilCpfProviderOutput.md +1 -1
  5. data/docs/BrazilDigitalCnhInput.md +1 -1
  6. data/docs/ConnectIdAgeVerification.md +9 -1
  7. data/docs/ConnectIdInput.md +18 -0
  8. data/docs/CreateDirectProviderSessionRequest.md +2 -0
  9. data/docs/CreateHostedProviderSessionRequest.md +2 -0
  10. data/docs/CzechBankIdInput.md +18 -0
  11. data/docs/DeveloperApi.md +153 -0
  12. data/docs/DigilockerAadhaarProviderOutput.md +1 -1
  13. data/docs/FinnishTrustNetworkAddressOutput.md +22 -0
  14. data/docs/FinnishTrustNetworkInput.md +18 -0
  15. data/docs/FinnishTrustNetworkProviderOutput.md +2 -0
  16. data/docs/GetAttachmentResponse.md +2 -0
  17. data/docs/GetSessionResultRequest.md +3 -1
  18. data/docs/GetSessionResultResponse.md +3 -1
  19. data/docs/HPKETestRequest.md +22 -0
  20. data/docs/HPKETestVPRequest.md +20 -0
  21. data/docs/IdemiaMobileIdProviderOutput.md +1 -5
  22. data/docs/IndiaPanLookupProviderOutput.md +1 -1
  23. data/docs/IndonesiaDukcapilMatchInput.md +1 -1
  24. data/docs/JapanMyNumberProviderOutput.md +24 -0
  25. data/docs/JordanSanadInput.md +18 -0
  26. data/docs/MitIdAddressOutput.md +28 -0
  27. data/docs/MitIdProviderOutput.md +3 -1
  28. data/docs/PolandMobywatelMatchInput.md +1 -1
  29. data/docs/Provider.md +2 -0
  30. data/docs/ProviderInput.md +10 -0
  31. data/docs/ProviderOutput.md +8 -0
  32. data/docs/RecommendProviderInformation.md +2 -0
  33. data/docs/RecommendProvidersRequest.md +1 -1
  34. data/docs/RevolutProviderOutput.md +28 -0
  35. data/docs/SanadProviderOutput.md +28 -0
  36. data/docs/SaudiArabiaNafathAddress.md +50 -0
  37. data/docs/SaudiArabiaNafathCitizenAttributes.md +68 -0
  38. data/docs/SaudiArabiaNafathHeadOfHousehold.md +26 -0
  39. data/docs/SaudiArabiaNafathProviderOutput.md +38 -0
  40. data/docs/SaudiArabiaNafathResidentAttributes.md +68 -0
  41. data/docs/SaudiArabiaNafathVisitorAttributes.md +72 -0
  42. data/docs/SessionsApi.md +2 -2
  43. data/docs/SignzyIndiaAadhaarFetchProviderOutput.md +1 -1
  44. data/docs/SingpassPersonalCatalog.md +2 -2
  45. data/docs/SwedenBankIdProviderOutput.md +7 -3
  46. data/docs/TrinsicHPKEBundle.md +24 -0
  47. data/docs/TrinsicHPKEMetadata.md +30 -0
  48. data/docs/TrinsicTestDatabaseLookupInput.md +1 -1
  49. data/docs/UkEvisaLookupInput.md +1 -1
  50. data/docs/UsaArizonaWalletInput.md +18 -0
  51. data/docs/VerificationProfileResponse.md +2 -0
  52. data/docs/VerificationProfilesApi.md +3 -1
  53. data/docs/YotiStructuredPostalAddress.md +1 -1
  54. data/lib/trinsic_api/api/developer_api.rb +156 -0
  55. data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
  56. data/lib/trinsic_api/api_client.rb +1 -0
  57. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +12 -1
  58. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +12 -22
  59. data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -1
  60. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
  61. data/lib/trinsic_api/models/connect_id_age_verification.rb +46 -2
  62. data/lib/trinsic_api/models/connect_id_input.rb +149 -0
  63. data/lib/trinsic_api/models/create_direct_provider_session_request.rb +28 -1
  64. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +28 -1
  65. data/lib/trinsic_api/models/czech_bank_id_input.rb +149 -0
  66. data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +1 -1
  67. data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +171 -0
  68. data/lib/trinsic_api/models/finnish_trust_network_input.rb +149 -0
  69. data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +12 -1
  70. data/lib/trinsic_api/models/get_attachment_response.rb +12 -1
  71. data/lib/trinsic_api/models/get_session_result_request.rb +15 -4
  72. data/lib/trinsic_api/models/get_session_result_response.rb +16 -5
  73. data/lib/trinsic_api/models/hpke_test_request.rb +219 -0
  74. data/lib/trinsic_api/models/hpke_test_vp_request.rb +192 -0
  75. data/lib/trinsic_api/models/idemia_mobile_id_provider_output.rb +1 -23
  76. data/lib/trinsic_api/models/india_pan_lookup_provider_output.rb +1 -1
  77. data/lib/trinsic_api/models/indonesia_dukcapil_match_input.rb +1 -1
  78. data/lib/trinsic_api/models/japan_my_number_provider_output.rb +183 -0
  79. data/lib/trinsic_api/models/jordan_sanad_input.rb +164 -0
  80. data/lib/trinsic_api/models/mit_id_address_output.rb +204 -0
  81. data/lib/trinsic_api/models/mit_id_provider_output.rb +16 -5
  82. data/lib/trinsic_api/models/poland_mobywatel_match_input.rb +1 -1
  83. data/lib/trinsic_api/models/provider.rb +14 -1
  84. data/lib/trinsic_api/models/provider_input.rb +56 -1
  85. data/lib/trinsic_api/models/provider_output.rb +45 -1
  86. data/lib/trinsic_api/models/recommend_provider_information.rb +14 -1
  87. data/lib/trinsic_api/models/recommend_providers_request.rb +1 -1
  88. data/lib/trinsic_api/models/revolut_provider_output.rb +204 -0
  89. data/lib/trinsic_api/models/sanad_provider_output.rb +205 -0
  90. data/lib/trinsic_api/models/saudi_arabia_nafath_address.rb +325 -0
  91. data/lib/trinsic_api/models/saudi_arabia_nafath_citizen_attributes.rb +426 -0
  92. data/lib/trinsic_api/models/saudi_arabia_nafath_head_of_household.rb +193 -0
  93. data/lib/trinsic_api/models/saudi_arabia_nafath_provider_output.rb +260 -0
  94. data/lib/trinsic_api/models/saudi_arabia_nafath_resident_attributes.rb +426 -0
  95. data/lib/trinsic_api/models/saudi_arabia_nafath_visitor_attributes.rb +446 -0
  96. data/lib/trinsic_api/models/signzy_india_aadhaar_fetch_provider_output.rb +1 -1
  97. data/lib/trinsic_api/models/singpass_personal_catalog.rb +9 -9
  98. data/lib/trinsic_api/models/sweden_bank_id_provider_output.rb +24 -2
  99. data/lib/trinsic_api/models/trinsic_hpke_bundle.rb +246 -0
  100. data/lib/trinsic_api/models/trinsic_hpke_metadata.rb +327 -0
  101. data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +1 -1
  102. data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +1 -1
  103. data/lib/trinsic_api/models/usa_arizona_wallet_input.rb +149 -0
  104. data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
  105. data/lib/trinsic_api/version.rb +1 -1
  106. data/lib/trinsic_api.rb +21 -0
  107. data/spec/api/developer_api_spec.rb +60 -0
  108. data/spec/api/verification_profiles_api_spec.rb +1 -0
  109. data/spec/models/brazil_cnh_provider_output_spec.rb +6 -0
  110. data/spec/models/connect_id_age_verification_spec.rb +24 -0
  111. data/spec/models/connect_id_input_spec.rb +36 -0
  112. data/spec/models/create_direct_provider_session_request_spec.rb +6 -0
  113. data/spec/models/create_hosted_provider_session_request_spec.rb +6 -0
  114. data/spec/models/czech_bank_id_input_spec.rb +36 -0
  115. data/spec/models/finnish_trust_network_address_output_spec.rb +48 -0
  116. data/spec/models/finnish_trust_network_input_spec.rb +36 -0
  117. data/spec/models/finnish_trust_network_provider_output_spec.rb +6 -0
  118. data/spec/models/get_attachment_response_spec.rb +6 -0
  119. data/spec/models/get_session_result_request_spec.rb +6 -0
  120. data/spec/models/get_session_result_response_spec.rb +6 -0
  121. data/spec/models/hpke_test_request_spec.rb +48 -0
  122. data/spec/models/hpke_test_vp_request_spec.rb +42 -0
  123. data/spec/models/idemia_mobile_id_provider_output_spec.rb +0 -12
  124. data/spec/models/japan_my_number_provider_output_spec.rb +54 -0
  125. data/spec/models/jordan_sanad_input_spec.rb +36 -0
  126. data/spec/models/mit_id_address_output_spec.rb +66 -0
  127. data/spec/models/mit_id_provider_output_spec.rb +6 -0
  128. data/spec/models/provider_input_spec.rb +30 -0
  129. data/spec/models/provider_output_spec.rb +24 -0
  130. data/spec/models/provider_spec.rb +6 -0
  131. data/spec/models/recommend_provider_information_spec.rb +6 -0
  132. data/spec/models/revolut_provider_output_spec.rb +66 -0
  133. data/spec/models/sanad_provider_output_spec.rb +66 -0
  134. data/spec/models/saudi_arabia_nafath_address_spec.rb +132 -0
  135. data/spec/models/saudi_arabia_nafath_citizen_attributes_spec.rb +186 -0
  136. data/spec/models/saudi_arabia_nafath_head_of_household_spec.rb +60 -0
  137. data/spec/models/saudi_arabia_nafath_provider_output_spec.rb +96 -0
  138. data/spec/models/saudi_arabia_nafath_resident_attributes_spec.rb +186 -0
  139. data/spec/models/saudi_arabia_nafath_visitor_attributes_spec.rb +198 -0
  140. data/spec/models/singpass_personal_catalog_spec.rb +1 -1
  141. data/spec/models/sweden_bank_id_provider_output_spec.rb +12 -0
  142. data/spec/models/trinsic_hpke_bundle_spec.rb +54 -0
  143. data/spec/models/trinsic_hpke_metadata_spec.rb +72 -0
  144. data/spec/models/usa_arizona_wallet_input_spec.rb +36 -0
  145. data/spec/models/verification_profile_response_spec.rb +6 -0
  146. metadata +375 -291
@@ -0,0 +1,149 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class ConnectIdInput < ApiModelBase
18
+ # The ID of the specific sub-provider to invoke with ConnectID. If not specified, the user will be prompted to select the sub-provider when `fallbackToHostedUI` is enabled.
19
+ attr_accessor :sub_provider_id
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'sub_provider_id' => :'subProviderId'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'sub_provider_id' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'sub_provider_id'
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ConnectIdInput` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ConnectIdInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'sub_provider_id')
69
+ self.sub_provider_id = attributes[:'sub_provider_id']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ sub_provider_id == o.sub_provider_id
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [sub_provider_id].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ attributes = attributes.transform_keys(&:to_sym)
114
+ transformed_hash = {}
115
+ openapi_types.each_pair do |key, type|
116
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = nil
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[attribute_map[key]].is_a?(Array)
122
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
123
+ end
124
+ elsif !attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
126
+ end
127
+ end
128
+ new(transformed_hash)
129
+ end
130
+
131
+ # Returns the object in the form of hash
132
+ # @return [Hash] Returns the object in the form of hash
133
+ def to_hash
134
+ hash = {}
135
+ self.class.attribute_map.each_pair do |attr, param|
136
+ value = self.send(attr)
137
+ if value.nil?
138
+ is_nullable = self.class.openapi_nullable.include?(attr)
139
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
140
+ end
141
+
142
+ hash[param] = _to_hash(value)
143
+ end
144
+ hash
145
+ end
146
+
147
+ end
148
+
149
+ end
@@ -24,6 +24,9 @@ module TrinsicApi
24
24
  # The Redirect URL to which the user should be sent after the session is complete. This field is required for providers which employ a redirect-based flow.
25
25
  attr_accessor :redirect_url
26
26
 
27
+ # Defaults to `true` if not provided. Controls backwards compatibility behavior. If `true`, `redirectToken` validation is not required as part of the Session flow. If `false`, `redirectToken` validation is required as a core part of the Session flow; results cannot be fetched without it. (This applies only to `CaptureRedirect` Sessions in Direct mode). This parameter exists to enable backwards compatibility with existing integrations. In the future, this parameter will be removed and `redirectToken` validation will always be required. If your integration supports `redirectToken`, you should explicitly set this parameter's value to `false`. Only set this value to `true` if your integration does not support `redirectToken` and you are not yet able to add support.
28
+ attr_accessor :enable_redirect_backwards_compatibility
29
+
27
30
  # The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering. Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`. The exception being refresh content to support updating the content of the launch method. For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities. To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities. If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities. If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation. Read more on how to integrate at <a href=\"https://docs.trinsic.id/docs/direct-provider-sessions\">the guide on Direct Provider Sessions</a>
28
31
  attr_accessor :capabilities
29
32
 
@@ -42,6 +45,7 @@ module TrinsicApi
42
45
  :'provider' => :'provider',
43
46
  :'verification_profile_id' => :'verificationProfileId',
44
47
  :'redirect_url' => :'redirectUrl',
48
+ :'enable_redirect_backwards_compatibility' => :'enableRedirectBackwardsCompatibility',
45
49
  :'capabilities' => :'capabilities',
46
50
  :'fallback_to_hosted_ui' => :'fallbackToHostedUI',
47
51
  :'browser_languages' => :'browserLanguages',
@@ -65,6 +69,7 @@ module TrinsicApi
65
69
  :'provider' => :'String',
66
70
  :'verification_profile_id' => :'String',
67
71
  :'redirect_url' => :'String',
72
+ :'enable_redirect_backwards_compatibility' => :'Boolean',
68
73
  :'capabilities' => :'Array<IntegrationCapability>',
69
74
  :'fallback_to_hosted_ui' => :'Boolean',
70
75
  :'browser_languages' => :'Array<String>',
@@ -114,6 +119,12 @@ module TrinsicApi
114
119
  self.redirect_url = attributes[:'redirect_url']
115
120
  end
116
121
 
122
+ if attributes.key?(:'enable_redirect_backwards_compatibility')
123
+ self.enable_redirect_backwards_compatibility = attributes[:'enable_redirect_backwards_compatibility']
124
+ else
125
+ self.enable_redirect_backwards_compatibility = nil
126
+ end
127
+
117
128
  if attributes.key?(:'capabilities')
118
129
  if (value = attributes[:'capabilities']).is_a?(Array)
119
130
  self.capabilities = value
@@ -154,6 +165,10 @@ module TrinsicApi
154
165
  invalid_properties.push('invalid value for "verification_profile_id", verification_profile_id cannot be nil.')
155
166
  end
156
167
 
168
+ if @enable_redirect_backwards_compatibility.nil?
169
+ invalid_properties.push('invalid value for "enable_redirect_backwards_compatibility", enable_redirect_backwards_compatibility cannot be nil.')
170
+ end
171
+
157
172
  if @capabilities.nil?
158
173
  invalid_properties.push('invalid value for "capabilities", capabilities cannot be nil.')
159
174
  end
@@ -172,6 +187,7 @@ module TrinsicApi
172
187
  return false if @provider.nil?
173
188
  return false if @provider.to_s.length < 1
174
189
  return false if @verification_profile_id.nil?
190
+ return false if @enable_redirect_backwards_compatibility.nil?
175
191
  return false if @capabilities.nil?
176
192
  return false if @capabilities.length < 1
177
193
  true
@@ -201,6 +217,16 @@ module TrinsicApi
201
217
  @verification_profile_id = verification_profile_id
202
218
  end
203
219
 
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] enable_redirect_backwards_compatibility Value to be assigned
222
+ def enable_redirect_backwards_compatibility=(enable_redirect_backwards_compatibility)
223
+ if enable_redirect_backwards_compatibility.nil?
224
+ fail ArgumentError, 'enable_redirect_backwards_compatibility cannot be nil'
225
+ end
226
+
227
+ @enable_redirect_backwards_compatibility = enable_redirect_backwards_compatibility
228
+ end
229
+
204
230
  # Custom attribute writer method with validation
205
231
  # @param [Object] capabilities Value to be assigned
206
232
  def capabilities=(capabilities)
@@ -223,6 +249,7 @@ module TrinsicApi
223
249
  provider == o.provider &&
224
250
  verification_profile_id == o.verification_profile_id &&
225
251
  redirect_url == o.redirect_url &&
252
+ enable_redirect_backwards_compatibility == o.enable_redirect_backwards_compatibility &&
226
253
  capabilities == o.capabilities &&
227
254
  fallback_to_hosted_ui == o.fallback_to_hosted_ui &&
228
255
  browser_languages == o.browser_languages &&
@@ -238,7 +265,7 @@ module TrinsicApi
238
265
  # Calculates hash code according to all attributes.
239
266
  # @return [Integer] Hash code
240
267
  def hash
241
- [provider, verification_profile_id, redirect_url, capabilities, fallback_to_hosted_ui, browser_languages, provider_input].hash
268
+ [provider, verification_profile_id, redirect_url, enable_redirect_backwards_compatibility, capabilities, fallback_to_hosted_ui, browser_languages, provider_input].hash
242
269
  end
243
270
 
244
271
  # Builds the object from hash
@@ -24,6 +24,9 @@ module TrinsicApi
24
24
  # The Redirect URL to which the user should be sent after the session is complete.
25
25
  attr_accessor :redirect_url
26
26
 
27
+ # Defaults to `true` if not provided. Controls backwards compatibility behavior. If `true`, `redirectToken` validation is not required as part of the Session flow. If `false`, `redirectToken` validation is required as a core part of the Session flow; results cannot be fetched without it. This parameter exists to enable backwards compatibility with existing integrations. In the future, this parameter will be removed and `redirectToken` validation will always be required. If your integration supports `redirectToken`, you should explicitly set this parameter's value to `false`. Only set this value to `true` if your integration does not support `redirectToken` and you are not yet able to add support.
28
+ attr_accessor :enable_redirect_backwards_compatibility
29
+
27
30
  # Preferences for languages to show first in the Hosted UI and supported provider launch flows. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
28
31
  attr_accessor :browser_languages
29
32
 
@@ -36,6 +39,7 @@ module TrinsicApi
36
39
  :'provider' => :'provider',
37
40
  :'verification_profile_id' => :'verificationProfileId',
38
41
  :'redirect_url' => :'redirectUrl',
42
+ :'enable_redirect_backwards_compatibility' => :'enableRedirectBackwardsCompatibility',
39
43
  :'browser_languages' => :'browserLanguages',
40
44
  :'provider_input' => :'providerInput'
41
45
  }
@@ -57,6 +61,7 @@ module TrinsicApi
57
61
  :'provider' => :'String',
58
62
  :'verification_profile_id' => :'String',
59
63
  :'redirect_url' => :'String',
64
+ :'enable_redirect_backwards_compatibility' => :'Boolean',
60
65
  :'browser_languages' => :'Array<String>',
61
66
  :'provider_input' => :'ProviderInput'
62
67
  }
@@ -104,6 +109,12 @@ module TrinsicApi
104
109
  self.redirect_url = nil
105
110
  end
106
111
 
112
+ if attributes.key?(:'enable_redirect_backwards_compatibility')
113
+ self.enable_redirect_backwards_compatibility = attributes[:'enable_redirect_backwards_compatibility']
114
+ else
115
+ self.enable_redirect_backwards_compatibility = nil
116
+ end
117
+
107
118
  if attributes.key?(:'browser_languages')
108
119
  if (value = attributes[:'browser_languages']).is_a?(Array)
109
120
  self.browser_languages = value
@@ -140,6 +151,10 @@ module TrinsicApi
140
151
  invalid_properties.push('invalid value for "redirect_url", the character length must be greater than or equal to 1.')
141
152
  end
142
153
 
154
+ if @enable_redirect_backwards_compatibility.nil?
155
+ invalid_properties.push('invalid value for "enable_redirect_backwards_compatibility", enable_redirect_backwards_compatibility cannot be nil.')
156
+ end
157
+
143
158
  invalid_properties
144
159
  end
145
160
 
@@ -152,6 +167,7 @@ module TrinsicApi
152
167
  return false if @verification_profile_id.nil?
153
168
  return false if @redirect_url.nil?
154
169
  return false if @redirect_url.to_s.length < 1
170
+ return false if @enable_redirect_backwards_compatibility.nil?
155
171
  true
156
172
  end
157
173
 
@@ -193,6 +209,16 @@ module TrinsicApi
193
209
  @redirect_url = redirect_url
194
210
  end
195
211
 
212
+ # Custom attribute writer method with validation
213
+ # @param [Object] enable_redirect_backwards_compatibility Value to be assigned
214
+ def enable_redirect_backwards_compatibility=(enable_redirect_backwards_compatibility)
215
+ if enable_redirect_backwards_compatibility.nil?
216
+ fail ArgumentError, 'enable_redirect_backwards_compatibility cannot be nil'
217
+ end
218
+
219
+ @enable_redirect_backwards_compatibility = enable_redirect_backwards_compatibility
220
+ end
221
+
196
222
  # Checks equality by comparing each attribute.
197
223
  # @param [Object] Object to be compared
198
224
  def ==(o)
@@ -201,6 +227,7 @@ module TrinsicApi
201
227
  provider == o.provider &&
202
228
  verification_profile_id == o.verification_profile_id &&
203
229
  redirect_url == o.redirect_url &&
230
+ enable_redirect_backwards_compatibility == o.enable_redirect_backwards_compatibility &&
204
231
  browser_languages == o.browser_languages &&
205
232
  provider_input == o.provider_input
206
233
  end
@@ -214,7 +241,7 @@ module TrinsicApi
214
241
  # Calculates hash code according to all attributes.
215
242
  # @return [Integer] Hash code
216
243
  def hash
217
- [provider, verification_profile_id, redirect_url, browser_languages, provider_input].hash
244
+ [provider, verification_profile_id, redirect_url, enable_redirect_backwards_compatibility, browser_languages, provider_input].hash
218
245
  end
219
246
 
220
247
  # Builds the object from hash
@@ -0,0 +1,149 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class CzechBankIdInput < ApiModelBase
18
+ # The ID of the Czech Bank to invoke. If omitted, the user selects a sub-provider.
19
+ attr_accessor :sub_provider_id
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'sub_provider_id' => :'subProviderId'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'sub_provider_id' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'sub_provider_id'
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdInput` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'sub_provider_id')
69
+ self.sub_provider_id = attributes[:'sub_provider_id']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ sub_provider_id == o.sub_provider_id
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [sub_provider_id].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ attributes = attributes.transform_keys(&:to_sym)
114
+ transformed_hash = {}
115
+ openapi_types.each_pair do |key, type|
116
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = nil
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[attribute_map[key]].is_a?(Array)
122
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
123
+ end
124
+ elsif !attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
126
+ end
127
+ end
128
+ new(transformed_hash)
129
+ end
130
+
131
+ # Returns the object in the form of hash
132
+ # @return [Hash] Returns the object in the form of hash
133
+ def to_hash
134
+ hash = {}
135
+ self.class.attribute_map.each_pair do |attr, param|
136
+ value = self.send(attr)
137
+ if value.nil?
138
+ is_nullable = self.class.openapi_nullable.include?(attr)
139
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
140
+ end
141
+
142
+ hash[param] = _to_hash(value)
143
+ end
144
+ hash
145
+ end
146
+
147
+ end
148
+
149
+ end
@@ -34,7 +34,7 @@ module TrinsicApi
34
34
  # The localized claims extracted from the Aadhaar document.
35
35
  attr_accessor :localized_claims
36
36
 
37
- # Whether our own validation of the Aadhaar document signature and certificate chain succeeded. When the signed document (e.g. Digilocker XML) is available, we validate it using the standard CCA/SafeScrypt chain. When the document is not returned, the signature cannot be validated and this is false. Some providers (e.g. Signzy) also supply a separate DSC validation indicator in the webhook payload; that is independent of this flag, which reflects only our validation.
37
+ # Whether our own validation of the Aadhaar document signature and certificate chain succeeded. When the signed document (e.g. Digilocker XML) is available, we validate it using the standard CCA/SafeScrypt chain. When the document is not returned, the signature cannot be validated and this is false. Some providers also supply a separate DSC validation indicator in the webhook payload; that is independent of this flag, which reflects only our validation.
38
38
  attr_accessor :document_signature_validated
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,171 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class FinnishTrustNetworkAddressOutput < ApiModelBase
18
+ # The locality of the address.
19
+ attr_accessor :locality
20
+
21
+ # The postal code of the address.
22
+ attr_accessor :postal_code
23
+
24
+ # The street address of the individual.
25
+ attr_accessor :street_address
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'locality' => :'locality',
31
+ :'postal_code' => :'postalCode',
32
+ :'street_address' => :'streetAddress'
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
+ :'locality' => :'String',
50
+ :'postal_code' => :'String',
51
+ :'street_address' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ :'locality',
59
+ :'postal_code',
60
+ :'street_address'
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::FinnishTrustNetworkAddressOutput` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!acceptable_attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::FinnishTrustNetworkAddressOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'locality')
81
+ self.locality = attributes[:'locality']
82
+ end
83
+
84
+ if attributes.key?(:'postal_code')
85
+ self.postal_code = attributes[:'postal_code']
86
+ end
87
+
88
+ if attributes.key?(:'street_address')
89
+ self.street_address = attributes[:'street_address']
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ warn '[DEPRECATED] the `valid?` method is obsolete'
105
+ true
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ locality == o.locality &&
114
+ postal_code == o.postal_code &&
115
+ street_address == o.street_address
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ def hash
127
+ [locality, postal_code, street_address].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def self.build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ attributes = attributes.transform_keys(&:to_sym)
136
+ transformed_hash = {}
137
+ openapi_types.each_pair do |key, type|
138
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
139
+ transformed_hash["#{key}"] = nil
140
+ elsif type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[attribute_map[key]].is_a?(Array)
144
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
145
+ end
146
+ elsif !attributes[attribute_map[key]].nil?
147
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
148
+ end
149
+ end
150
+ new(transformed_hash)
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ if value.nil?
160
+ is_nullable = self.class.openapi_nullable.include?(attr)
161
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
162
+ end
163
+
164
+ hash[param] = _to_hash(value)
165
+ end
166
+ hash
167
+ end
168
+
169
+ end
170
+
171
+ end