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,325 @@
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 SaudiArabiaNafathAddress < ApiModelBase
18
+ # Building number.
19
+ attr_accessor :building_number
20
+
21
+ # Street name in the session locale. Arabic when the session locale is ar, and English when it is en. streetSecondary is the other language.
22
+ attr_accessor :street
23
+
24
+ # District or neighborhood in the session locale. Arabic when the session locale is ar, and English when it is en. districtSecondary is the other language.
25
+ attr_accessor :district
26
+
27
+ # City in the session locale. Arabic when the session locale is ar, and English when it is en. citySecondary is the other language.
28
+ attr_accessor :city
29
+
30
+ # Postal code.
31
+ attr_accessor :postal_code
32
+
33
+ # Additional number, used alongside the district to locate buildings within the Saudi addressing system.
34
+ attr_accessor :additional_number
35
+
36
+ # Apartment or unit number.
37
+ attr_accessor :unit_number
38
+
39
+ # Geographic coordinates of the registered address. Format: Two space-separated decimal numbers, longitude then latitude.
40
+ attr_accessor :location_coordinates
41
+
42
+ # Whether this address is the individual's primary registered address.
43
+ attr_accessor :is_primary_address
44
+
45
+ # Region name in the session locale. Arabic when the session locale is ar, and English when it is en. regionNameSecondary is the other language.
46
+ attr_accessor :region_name
47
+
48
+ # Region name in the other language from regionName. English when the session locale is ar, and Arabic when it is en.
49
+ attr_accessor :region_name_secondary
50
+
51
+ # City name in the other language from city. English when the session locale is ar, and Arabic when it is en.
52
+ attr_accessor :city_secondary
53
+
54
+ # Street name in the other language from street. English when the session locale is ar, and Arabic when it is en.
55
+ attr_accessor :street_secondary
56
+
57
+ # District name in the other language from district. English when the session locale is ar, and Arabic when it is en.
58
+ attr_accessor :district_secondary
59
+
60
+ # City identifier.
61
+ attr_accessor :city_id
62
+
63
+ # Region identifier.
64
+ attr_accessor :region_id
65
+
66
+ # District identifier.
67
+ attr_accessor :district_id
68
+
69
+ # Attribute mapping from ruby-style variable name to JSON key.
70
+ def self.attribute_map
71
+ {
72
+ :'building_number' => :'buildingNumber',
73
+ :'street' => :'street',
74
+ :'district' => :'district',
75
+ :'city' => :'city',
76
+ :'postal_code' => :'postalCode',
77
+ :'additional_number' => :'additionalNumber',
78
+ :'unit_number' => :'unitNumber',
79
+ :'location_coordinates' => :'locationCoordinates',
80
+ :'is_primary_address' => :'isPrimaryAddress',
81
+ :'region_name' => :'regionName',
82
+ :'region_name_secondary' => :'regionNameSecondary',
83
+ :'city_secondary' => :'citySecondary',
84
+ :'street_secondary' => :'streetSecondary',
85
+ :'district_secondary' => :'districtSecondary',
86
+ :'city_id' => :'cityId',
87
+ :'region_id' => :'regionId',
88
+ :'district_id' => :'districtId'
89
+ }
90
+ end
91
+
92
+ # Returns attribute mapping this model knows about
93
+ def self.acceptable_attribute_map
94
+ attribute_map
95
+ end
96
+
97
+ # Returns all the JSON keys this model knows about
98
+ def self.acceptable_attributes
99
+ acceptable_attribute_map.values
100
+ end
101
+
102
+ # Attribute type mapping.
103
+ def self.openapi_types
104
+ {
105
+ :'building_number' => :'String',
106
+ :'street' => :'String',
107
+ :'district' => :'String',
108
+ :'city' => :'String',
109
+ :'postal_code' => :'String',
110
+ :'additional_number' => :'String',
111
+ :'unit_number' => :'String',
112
+ :'location_coordinates' => :'String',
113
+ :'is_primary_address' => :'Boolean',
114
+ :'region_name' => :'String',
115
+ :'region_name_secondary' => :'String',
116
+ :'city_secondary' => :'String',
117
+ :'street_secondary' => :'String',
118
+ :'district_secondary' => :'String',
119
+ :'city_id' => :'String',
120
+ :'region_id' => :'String',
121
+ :'district_id' => :'String'
122
+ }
123
+ end
124
+
125
+ # List of attributes with nullable: true
126
+ def self.openapi_nullable
127
+ Set.new([
128
+ :'building_number',
129
+ :'street',
130
+ :'district',
131
+ :'city',
132
+ :'postal_code',
133
+ :'additional_number',
134
+ :'unit_number',
135
+ :'location_coordinates',
136
+ :'is_primary_address',
137
+ :'region_name',
138
+ :'region_name_secondary',
139
+ :'city_secondary',
140
+ :'street_secondary',
141
+ :'district_secondary',
142
+ :'city_id',
143
+ :'region_id',
144
+ :'district_id'
145
+ ])
146
+ end
147
+
148
+ # Initializes the object
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ def initialize(attributes = {})
151
+ if (!attributes.is_a?(Hash))
152
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathAddress` initialize method"
153
+ end
154
+
155
+ # check to see if the attribute exists and convert string to symbol for hash key
156
+ acceptable_attribute_map = self.class.acceptable_attribute_map
157
+ attributes = attributes.each_with_object({}) { |(k, v), h|
158
+ if (!acceptable_attribute_map.key?(k.to_sym))
159
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
160
+ end
161
+ h[k.to_sym] = v
162
+ }
163
+
164
+ if attributes.key?(:'building_number')
165
+ self.building_number = attributes[:'building_number']
166
+ end
167
+
168
+ if attributes.key?(:'street')
169
+ self.street = attributes[:'street']
170
+ end
171
+
172
+ if attributes.key?(:'district')
173
+ self.district = attributes[:'district']
174
+ end
175
+
176
+ if attributes.key?(:'city')
177
+ self.city = attributes[:'city']
178
+ end
179
+
180
+ if attributes.key?(:'postal_code')
181
+ self.postal_code = attributes[:'postal_code']
182
+ end
183
+
184
+ if attributes.key?(:'additional_number')
185
+ self.additional_number = attributes[:'additional_number']
186
+ end
187
+
188
+ if attributes.key?(:'unit_number')
189
+ self.unit_number = attributes[:'unit_number']
190
+ end
191
+
192
+ if attributes.key?(:'location_coordinates')
193
+ self.location_coordinates = attributes[:'location_coordinates']
194
+ end
195
+
196
+ if attributes.key?(:'is_primary_address')
197
+ self.is_primary_address = attributes[:'is_primary_address']
198
+ end
199
+
200
+ if attributes.key?(:'region_name')
201
+ self.region_name = attributes[:'region_name']
202
+ end
203
+
204
+ if attributes.key?(:'region_name_secondary')
205
+ self.region_name_secondary = attributes[:'region_name_secondary']
206
+ end
207
+
208
+ if attributes.key?(:'city_secondary')
209
+ self.city_secondary = attributes[:'city_secondary']
210
+ end
211
+
212
+ if attributes.key?(:'street_secondary')
213
+ self.street_secondary = attributes[:'street_secondary']
214
+ end
215
+
216
+ if attributes.key?(:'district_secondary')
217
+ self.district_secondary = attributes[:'district_secondary']
218
+ end
219
+
220
+ if attributes.key?(:'city_id')
221
+ self.city_id = attributes[:'city_id']
222
+ end
223
+
224
+ if attributes.key?(:'region_id')
225
+ self.region_id = attributes[:'region_id']
226
+ end
227
+
228
+ if attributes.key?(:'district_id')
229
+ self.district_id = attributes[:'district_id']
230
+ end
231
+ end
232
+
233
+ # Show invalid properties with the reasons. Usually used together with valid?
234
+ # @return Array for valid properties with the reasons
235
+ def list_invalid_properties
236
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
237
+ invalid_properties = Array.new
238
+ invalid_properties
239
+ end
240
+
241
+ # Check to see if the all the properties in the model are valid
242
+ # @return true if the model is valid
243
+ def valid?
244
+ warn '[DEPRECATED] the `valid?` method is obsolete'
245
+ true
246
+ end
247
+
248
+ # Checks equality by comparing each attribute.
249
+ # @param [Object] Object to be compared
250
+ def ==(o)
251
+ return true if self.equal?(o)
252
+ self.class == o.class &&
253
+ building_number == o.building_number &&
254
+ street == o.street &&
255
+ district == o.district &&
256
+ city == o.city &&
257
+ postal_code == o.postal_code &&
258
+ additional_number == o.additional_number &&
259
+ unit_number == o.unit_number &&
260
+ location_coordinates == o.location_coordinates &&
261
+ is_primary_address == o.is_primary_address &&
262
+ region_name == o.region_name &&
263
+ region_name_secondary == o.region_name_secondary &&
264
+ city_secondary == o.city_secondary &&
265
+ street_secondary == o.street_secondary &&
266
+ district_secondary == o.district_secondary &&
267
+ city_id == o.city_id &&
268
+ region_id == o.region_id &&
269
+ district_id == o.district_id
270
+ end
271
+
272
+ # @see the `==` method
273
+ # @param [Object] Object to be compared
274
+ def eql?(o)
275
+ self == o
276
+ end
277
+
278
+ # Calculates hash code according to all attributes.
279
+ # @return [Integer] Hash code
280
+ def hash
281
+ [building_number, street, district, city, postal_code, additional_number, unit_number, location_coordinates, is_primary_address, region_name, region_name_secondary, city_secondary, street_secondary, district_secondary, city_id, region_id, district_id].hash
282
+ end
283
+
284
+ # Builds the object from hash
285
+ # @param [Hash] attributes Model attributes in the form of hash
286
+ # @return [Object] Returns the model itself
287
+ def self.build_from_hash(attributes)
288
+ return nil unless attributes.is_a?(Hash)
289
+ attributes = attributes.transform_keys(&:to_sym)
290
+ transformed_hash = {}
291
+ openapi_types.each_pair do |key, type|
292
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
293
+ transformed_hash["#{key}"] = nil
294
+ elsif type =~ /\AArray<(.*)>/i
295
+ # check to ensure the input is an array given that the attribute
296
+ # is documented as an array but the input is not
297
+ if attributes[attribute_map[key]].is_a?(Array)
298
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
299
+ end
300
+ elsif !attributes[attribute_map[key]].nil?
301
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
302
+ end
303
+ end
304
+ new(transformed_hash)
305
+ end
306
+
307
+ # Returns the object in the form of hash
308
+ # @return [Hash] Returns the object in the form of hash
309
+ def to_hash
310
+ hash = {}
311
+ self.class.attribute_map.each_pair do |attr, param|
312
+ value = self.send(attr)
313
+ if value.nil?
314
+ is_nullable = self.class.openapi_nullable.include?(attr)
315
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
+ end
317
+
318
+ hash[param] = _to_hash(value)
319
+ end
320
+ hash
321
+ end
322
+
323
+ end
324
+
325
+ end