trinsic_api 3.3.0.pre.alpha4 → 3.3.0

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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AadhaarDocumentOutput.md +28 -0
  3. data/docs/BrazilCnhProviderOutput.md +4 -0
  4. data/docs/BrazilCpfProviderOutput.md +0 -2
  5. data/docs/ChinaResidentIdMatchOutput.md +7 -1
  6. data/docs/CoteDIvoireNidLookup2ProviderOutput.md +4 -0
  7. data/docs/CzechBankIdProviderOutput.md +2 -2
  8. data/docs/CzechMojeIdProviderOutput.md +2 -0
  9. data/docs/DigidentityAddressOutput.md +22 -0
  10. data/docs/DigidentityProviderOutput.md +40 -0
  11. data/docs/DigilockerAadhaarProviderOutput.md +5 -1
  12. data/docs/ElSalvadorDuiProviderOutput.md +2 -2
  13. data/docs/FinnishTrustNetworkAddressOutput.md +3 -1
  14. data/docs/FinnishTrustNetworkProviderOutput.md +1 -1
  15. data/docs/{SignzyIndiaAadhaarFetchProviderOutput.md → IndiaDigilockerAadhaarFetchProviderOutput.md} +6 -2
  16. data/docs/IndonesiaDukcapilMatchProviderOutput.md +6 -0
  17. data/docs/ItsmeProviderOutput.md +2 -0
  18. data/docs/KenyaNidLookup2ProviderOutput.md +4 -0
  19. data/docs/KoreaTelcoMatchProviderOutput.md +6 -0
  20. data/docs/NigeriaNinLookup2ProviderOutput.md +4 -0
  21. data/docs/PhilippinesPhysicalNidProviderOutput.md +5 -1
  22. data/docs/PolandMobywatelMatchProviderOutput.md +4 -0
  23. data/docs/Provider.md +6 -2
  24. data/docs/ProviderInput.md +0 -12
  25. data/docs/ProviderOutput.md +9 -29
  26. data/docs/RecommendProviderInformation.md +6 -2
  27. data/docs/SouthAfricaNidLookup2ProviderOutput.md +2 -0
  28. data/docs/SubProviderMetadata.md +6 -4
  29. data/docs/SubmitNativeChallengeResponseRequest.md +1 -1
  30. data/docs/ZimbabweNidLookup2ProviderOutput.md +2 -0
  31. data/lib/trinsic_api/api_client.rb +1 -1
  32. data/lib/trinsic_api/models/{belgium_id_card_provider_output.rb → aadhaar_document_output.rb} +52 -30
  33. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +23 -1
  34. data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -12
  35. data/lib/trinsic_api/models/china_resident_id_match_output.rb +38 -5
  36. data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +23 -1
  37. data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +2 -2
  38. data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +12 -1
  39. data/lib/trinsic_api/models/{nigeria_nin_match2_sex_field.rb → digidentity_address_output.rb} +31 -20
  40. data/lib/trinsic_api/models/{nigeria_nin_match2_input.rb → digidentity_provider_output.rb} +101 -67
  41. data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +27 -5
  42. data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +2 -2
  43. data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +16 -5
  44. data/lib/trinsic_api/models/{signzy_india_aadhaar_fetch_provider_output.rb → india_digilocker_aadhaar_fetch_provider_output.rb} +26 -4
  45. data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +34 -1
  46. data/lib/trinsic_api/models/itsme_provider_output.rb +12 -1
  47. data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +23 -1
  48. data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +34 -1
  49. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +23 -1
  50. data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +27 -5
  51. data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +23 -1
  52. data/lib/trinsic_api/models/provider.rb +71 -17
  53. data/lib/trinsic_api/models/provider_input.rb +1 -67
  54. data/lib/trinsic_api/models/provider_output.rb +46 -156
  55. data/lib/trinsic_api/models/recommend_provider_information.rb +71 -17
  56. data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +12 -1
  57. data/lib/trinsic_api/models/sub_provider_metadata.rb +68 -25
  58. data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +1 -1
  59. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +12 -1
  60. data/lib/trinsic_api/version.rb +1 -1
  61. data/lib/trinsic_api.rb +4 -37
  62. data/spec/models/{kenya_nid_input_spec.rb → aadhaar_document_output_spec.rb} +12 -12
  63. data/spec/models/brazil_cnh_provider_output_spec.rb +12 -0
  64. data/spec/models/brazil_cpf_provider_output_spec.rb +0 -6
  65. data/spec/models/china_resident_id_match_output_spec.rb +18 -0
  66. data/spec/models/cote_d_ivoire_nid_lookup2_provider_output_spec.rb +12 -0
  67. data/spec/models/czech_moje_id_provider_output_spec.rb +6 -0
  68. data/spec/models/{latvia_eparaksts_provider_output_spec.rb → digidentity_address_output_spec.rb} +9 -9
  69. data/spec/models/{yoti_deeplink_provider_output_spec.rb → digidentity_provider_output_spec.rb} +18 -18
  70. data/spec/models/digilocker_aadhaar_provider_output_spec.rb +12 -0
  71. data/spec/models/finnish_trust_network_address_output_spec.rb +6 -0
  72. data/spec/models/{signzy_india_aadhaar_fetch_provider_output_spec.rb → india_digilocker_aadhaar_fetch_provider_output_spec.rb} +18 -6
  73. data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +18 -0
  74. data/spec/models/itsme_provider_output_spec.rb +6 -0
  75. data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +12 -0
  76. data/spec/models/korea_telco_match_provider_output_spec.rb +18 -0
  77. data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +12 -0
  78. data/spec/models/philippines_physical_nid_provider_output_spec.rb +12 -0
  79. data/spec/models/poland_mobywatel_match_provider_output_spec.rb +12 -0
  80. data/spec/models/provider_input_spec.rb +0 -36
  81. data/spec/models/provider_output_spec.rb +21 -81
  82. data/spec/models/provider_spec.rb +13 -1
  83. data/spec/models/recommend_provider_information_spec.rb +13 -1
  84. data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +6 -0
  85. data/spec/models/sub_provider_metadata_spec.rb +8 -2
  86. data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +6 -0
  87. metadata +293 -425
  88. data/docs/BelgiumIdCardProviderOutput.md +0 -24
  89. data/docs/CzechiaMojeIdProviderOutput.md +0 -24
  90. data/docs/EstoniaIdCardProviderOutput.md +0 -24
  91. data/docs/FinlandIdCardProviderOutput.md +0 -24
  92. data/docs/FrejaIndirectProviderOutput.md +0 -24
  93. data/docs/KenyaNidInput.md +0 -28
  94. data/docs/KenyaNidMatch2DateOfBirthField.md +0 -20
  95. data/docs/KenyaNidMatch2FullNameField.md +0 -20
  96. data/docs/KenyaNidMatch2Input.md +0 -28
  97. data/docs/KenyaNidMatch2InputSex.md +0 -15
  98. data/docs/KenyaNidMatch2NationalIdNumberField.md +0 -20
  99. data/docs/KenyaNidMatch2ProviderOutput.md +0 -24
  100. data/docs/KenyaNidMatch2SexField.md +0 -20
  101. data/docs/LatviaEparakstsProviderOutput.md +0 -22
  102. data/docs/LithuaniaIdCardProviderOutput.md +0 -24
  103. data/docs/LloydsSmartIdProviderOutput.md +0 -40
  104. data/docs/NigeriaNinInput.md +0 -30
  105. data/docs/NigeriaNinMatch2DateOfBirthField.md +0 -20
  106. data/docs/NigeriaNinMatch2FullNameField.md +0 -20
  107. data/docs/NigeriaNinMatch2Input.md +0 -30
  108. data/docs/NigeriaNinMatch2InputSex.md +0 -15
  109. data/docs/NigeriaNinMatch2NationalIdNumberField.md +0 -20
  110. data/docs/NigeriaNinMatch2PhoneNumberField.md +0 -20
  111. data/docs/NigeriaNinMatch2ProviderOutput.md +0 -26
  112. data/docs/NigeriaNinMatch2SexField.md +0 -20
  113. data/docs/PortugalIdCardProviderOutput.md +0 -24
  114. data/docs/SerbiaIdCardProviderOutput.md +0 -24
  115. data/docs/SouthAfricaNidInput.md +0 -24
  116. data/docs/SouthAfricaNidMatch2DateOfBirthField.md +0 -20
  117. data/docs/SouthAfricaNidMatch2FullNameField.md +0 -20
  118. data/docs/SouthAfricaNidMatch2Input.md +0 -28
  119. data/docs/SouthAfricaNidMatch2InputSex.md +0 -15
  120. data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +0 -20
  121. data/docs/SouthAfricaNidMatch2ProviderOutput.md +0 -26
  122. data/docs/SouthAfricaNidMatch2SexField.md +0 -20
  123. data/docs/YotiDeeplinkProviderOutput.md +0 -40
  124. data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +0 -196
  125. data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +0 -196
  126. data/lib/trinsic_api/models/finland_id_card_provider_output.rb +0 -196
  127. data/lib/trinsic_api/models/freja_indirect_provider_output.rb +0 -196
  128. data/lib/trinsic_api/models/kenya_nid_input.rb +0 -353
  129. data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +0 -173
  130. data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +0 -173
  131. data/lib/trinsic_api/models/kenya_nid_match2_input.rb +0 -239
  132. data/lib/trinsic_api/models/kenya_nid_match2_input_sex.rb +0 -41
  133. data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +0 -173
  134. data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +0 -196
  135. data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +0 -173
  136. data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +0 -185
  137. data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +0 -196
  138. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +0 -284
  139. data/lib/trinsic_api/models/nigeria_nin_input.rb +0 -339
  140. data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +0 -173
  141. data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +0 -173
  142. data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +0 -41
  143. data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +0 -173
  144. data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +0 -173
  145. data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +0 -207
  146. data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +0 -196
  147. data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +0 -196
  148. data/lib/trinsic_api/models/south_africa_nid_input.rb +0 -306
  149. data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +0 -173
  150. data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +0 -173
  151. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +0 -239
  152. data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +0 -41
  153. data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +0 -173
  154. data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +0 -207
  155. data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +0 -173
  156. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +0 -284
  157. data/spec/models/belgium_id_card_provider_output_spec.rb +0 -54
  158. data/spec/models/czechia_moje_id_provider_output_spec.rb +0 -54
  159. data/spec/models/estonia_id_card_provider_output_spec.rb +0 -54
  160. data/spec/models/finland_id_card_provider_output_spec.rb +0 -54
  161. data/spec/models/freja_indirect_provider_output_spec.rb +0 -54
  162. data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +0 -42
  163. data/spec/models/kenya_nid_match2_full_name_field_spec.rb +0 -42
  164. data/spec/models/kenya_nid_match2_input_sex_spec.rb +0 -30
  165. data/spec/models/kenya_nid_match2_input_spec.rb +0 -66
  166. data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +0 -42
  167. data/spec/models/kenya_nid_match2_provider_output_spec.rb +0 -54
  168. data/spec/models/kenya_nid_match2_sex_field_spec.rb +0 -42
  169. data/spec/models/lithuania_id_card_provider_output_spec.rb +0 -54
  170. data/spec/models/lloyds_smart_id_provider_output_spec.rb +0 -102
  171. data/spec/models/nigeria_nin_input_spec.rb +0 -72
  172. data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +0 -42
  173. data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +0 -42
  174. data/spec/models/nigeria_nin_match2_input_sex_spec.rb +0 -30
  175. data/spec/models/nigeria_nin_match2_input_spec.rb +0 -72
  176. data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +0 -42
  177. data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +0 -42
  178. data/spec/models/nigeria_nin_match2_provider_output_spec.rb +0 -60
  179. data/spec/models/nigeria_nin_match2_sex_field_spec.rb +0 -42
  180. data/spec/models/portugal_id_card_provider_output_spec.rb +0 -54
  181. data/spec/models/serbia_id_card_provider_output_spec.rb +0 -54
  182. data/spec/models/south_africa_nid_input_spec.rb +0 -54
  183. data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +0 -42
  184. data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +0 -42
  185. data/spec/models/south_africa_nid_match2_input_sex_spec.rb +0 -30
  186. data/spec/models/south_africa_nid_match2_input_spec.rb +0 -66
  187. data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +0 -42
  188. data/spec/models/south_africa_nid_match2_provider_output_spec.rb +0 -60
  189. data/spec/models/south_africa_nid_match2_sex_field_spec.rb +0 -42
@@ -16,6 +16,12 @@ require 'time'
16
16
  module TrinsicApi
17
17
  # Exposed properties for the `cote-divoire-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
18
18
  class CoteDIvoireNidLookup2ProviderOutput < ApiModelBase
19
+ # Country of the identity registry, as an ISO 3166-1 alpha-2 code.
20
+ attr_accessor :issuing_country
21
+
22
+ # Primary identifier returned for the lookup; may identify the person or the document.
23
+ attr_accessor :lookup_id_number
24
+
19
25
  # Full name as returned by ONECI (National Civil Registry and Identification Office).
20
26
  attr_accessor :full_name
21
27
 
@@ -46,6 +52,8 @@ module TrinsicApi
46
52
  # Attribute mapping from ruby-style variable name to JSON key.
47
53
  def self.attribute_map
48
54
  {
55
+ :'issuing_country' => :'issuingCountry',
56
+ :'lookup_id_number' => :'lookupIdNumber',
49
57
  :'full_name' => :'fullName',
50
58
  :'given_name' => :'givenName',
51
59
  :'family_name' => :'familyName',
@@ -71,6 +79,8 @@ module TrinsicApi
71
79
  # Attribute type mapping.
72
80
  def self.openapi_types
73
81
  {
82
+ :'issuing_country' => :'String',
83
+ :'lookup_id_number' => :'String',
74
84
  :'full_name' => :'String',
75
85
  :'given_name' => :'String',
76
86
  :'family_name' => :'String',
@@ -86,6 +96,8 @@ module TrinsicApi
86
96
  # List of attributes with nullable: true
87
97
  def self.openapi_nullable
88
98
  Set.new([
99
+ :'issuing_country',
100
+ :'lookup_id_number',
89
101
  :'full_name',
90
102
  :'given_name',
91
103
  :'family_name',
@@ -124,6 +136,14 @@ module TrinsicApi
124
136
  h[k.to_sym] = v
125
137
  }
126
138
 
139
+ if attributes.key?(:'issuing_country')
140
+ self.issuing_country = attributes[:'issuing_country']
141
+ end
142
+
143
+ if attributes.key?(:'lookup_id_number')
144
+ self.lookup_id_number = attributes[:'lookup_id_number']
145
+ end
146
+
127
147
  if attributes.key?(:'full_name')
128
148
  self.full_name = attributes[:'full_name']
129
149
  end
@@ -181,6 +201,8 @@ module TrinsicApi
181
201
  def ==(o)
182
202
  return true if self.equal?(o)
183
203
  self.class == o.class &&
204
+ issuing_country == o.issuing_country &&
205
+ lookup_id_number == o.lookup_id_number &&
184
206
  full_name == o.full_name &&
185
207
  given_name == o.given_name &&
186
208
  family_name == o.family_name &&
@@ -201,7 +223,7 @@ module TrinsicApi
201
223
  # Calculates hash code according to all attributes.
202
224
  # @return [Integer] Hash code
203
225
  def hash
204
- [full_name, given_name, family_name, date_of_birth, sex, nationality, address, document_number, national_id_number].hash
226
+ [issuing_country, lookup_id_number, full_name, given_name, family_name, date_of_birth, sex, nationality, address, document_number, national_id_number].hash
205
227
  end
206
228
 
207
229
  # Builds the object from hash
@@ -40,7 +40,7 @@ module TrinsicApi
40
40
  # The individual's gender. Possible values: - Male - Female - Other Only returned for Identify verifications.
41
41
  attr_accessor :gender
42
42
 
43
- # The individual's date of birth. This is a string because the value may have reduced precision, such as only a year.
43
+ # The individual's date of birth in YYYY-MM-DD format.
44
44
  attr_accessor :date_of_birth
45
45
 
46
46
  # The individual's Czech birth number. This value is written without the traditional forward slash. Czech birth numbers are Czech public-authority identifiers administered through the Ministry of Interior's birth-number register. The Ministry can assign one to Czech citizens and to foreign nationals with temporary or permanent residence in the Czech Republic. For foreign nationals, this is still a Czech birth number in the Czech format, not an identity number from another country. The common current format is YYXXDDSSSC: - YY: Two digit birth year - XX: Encoded birth month, see below for encoding logic - DD: Birth day - SSS: Sequence number - C: Modulo-11 checksum digit. Not present for people born before 1954. The encoded month is MM for men, MM + 50 for women, and can be MM + 20 for men or MM + 70 for women when additional number ranges are needed. Older numbers for people born before 1954 can use YYXXDDSSS and do not use the modulo-11 checksum. Only returned for Identify verifications.
@@ -167,7 +167,7 @@ module TrinsicApi
167
167
  :'nickname' => :'String',
168
168
  :'preferred_username' => :'String',
169
169
  :'gender' => :'String',
170
- :'date_of_birth' => :'String',
170
+ :'date_of_birth' => :'Date',
171
171
  :'birth_number' => :'String',
172
172
  :'age' => :'Integer',
173
173
  :'is_adult' => :'Boolean',
@@ -16,6 +16,9 @@ require 'time'
16
16
  module TrinsicApi
17
17
  # Exposed properties for the `czech-moje-id` Provider which do not directly map to the normalized IdentityData model.
18
18
  class CzechMojeIdProviderOutput < ApiModelBase
19
+ # The mailing address returned in the address claim.
20
+ attr_accessor :mailing_address
21
+
19
22
  # The subject identifier (sub) of the verified individual's MojeID account. This is a unique identifier that represents the individual within the MojeID system.
20
23
  attr_accessor :subject_identifier
21
24
 
@@ -94,6 +97,7 @@ module TrinsicApi
94
97
  # Attribute mapping from ruby-style variable name to JSON key.
95
98
  def self.attribute_map
96
99
  {
100
+ :'mailing_address' => :'mailingAddress',
97
101
  :'subject_identifier' => :'subjectIdentifier',
98
102
  :'name' => :'name',
99
103
  :'given_name' => :'givenName',
@@ -135,6 +139,7 @@ module TrinsicApi
135
139
  # Attribute type mapping.
136
140
  def self.openapi_types
137
141
  {
142
+ :'mailing_address' => :'CzechMojeIdAddressOutput',
138
143
  :'subject_identifier' => :'String',
139
144
  :'name' => :'String',
140
145
  :'given_name' => :'String',
@@ -166,6 +171,7 @@ module TrinsicApi
166
171
  # List of attributes with nullable: true
167
172
  def self.openapi_nullable
168
173
  Set.new([
174
+ :'mailing_address',
169
175
  :'subject_identifier',
170
176
  :'name',
171
177
  :'given_name',
@@ -220,6 +226,10 @@ module TrinsicApi
220
226
  h[k.to_sym] = v
221
227
  }
222
228
 
229
+ if attributes.key?(:'mailing_address')
230
+ self.mailing_address = attributes[:'mailing_address']
231
+ end
232
+
223
233
  if attributes.key?(:'subject_identifier')
224
234
  self.subject_identifier = attributes[:'subject_identifier']
225
235
  end
@@ -341,6 +351,7 @@ module TrinsicApi
341
351
  def ==(o)
342
352
  return true if self.equal?(o)
343
353
  self.class == o.class &&
354
+ mailing_address == o.mailing_address &&
344
355
  subject_identifier == o.subject_identifier &&
345
356
  name == o.name &&
346
357
  given_name == o.given_name &&
@@ -377,7 +388,7 @@ module TrinsicApi
377
388
  # Calculates hash code according to all attributes.
378
389
  # @return [Integer] Hash code
379
390
  def hash
380
- [subject_identifier, name, given_name, family_name, nickname, email, email_verified, phone_number, phone_number_verified, date_of_birth, gender, id_card_number, passport_number, social_security_number, is_adult, account_validated, isds_id, is_student, company_registration_number, tax_identification_number, nia_verified, transaction_id, home_address, billing_address, shipping_address].hash
391
+ [mailing_address, subject_identifier, name, given_name, family_name, nickname, email, email_verified, phone_number, phone_number_verified, date_of_birth, gender, id_card_number, passport_number, social_security_number, is_adult, account_validated, isds_id, is_student, company_registration_number, tax_identification_number, nia_verified, transaction_id, home_address, billing_address, shipping_address].hash
381
392
  end
382
393
 
383
394
  # Builds the object from hash
@@ -14,18 +14,22 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class NigeriaNinMatch2SexField < ApiModelBase
18
- # The sex value submitted for this check. Possible input values: - Male - Female
19
- attr_accessor :input_value
17
+ class DigidentityAddressOutput < ApiModelBase
18
+ # Street address.
19
+ attr_accessor :street_address
20
20
 
21
- # The outcome of comparing the submitted sex to the issuer record. Possible values: - Exact Match - No Match - Not Provided - Not Returned
22
- attr_accessor :outcome
21
+ # Postal code.
22
+ attr_accessor :postal_code
23
+
24
+ # Country code returned by Digidentity.
25
+ attr_accessor :country
23
26
 
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
- :'input_value' => :'inputValue',
28
- :'outcome' => :'outcome'
30
+ :'street_address' => :'streetAddress',
31
+ :'postal_code' => :'postalCode',
32
+ :'country' => :'country'
29
33
  }
30
34
  end
31
35
 
@@ -42,16 +46,18 @@ module TrinsicApi
42
46
  # Attribute type mapping.
43
47
  def self.openapi_types
44
48
  {
45
- :'input_value' => :'String',
46
- :'outcome' => :'String'
49
+ :'street_address' => :'String',
50
+ :'postal_code' => :'String',
51
+ :'country' => :'String'
47
52
  }
48
53
  end
49
54
 
50
55
  # List of attributes with nullable: true
51
56
  def self.openapi_nullable
52
57
  Set.new([
53
- :'input_value',
54
- :'outcome'
58
+ :'street_address',
59
+ :'postal_code',
60
+ :'country'
55
61
  ])
56
62
  end
57
63
 
@@ -69,24 +75,28 @@ module TrinsicApi
69
75
  # @param [Hash] attributes Model attributes in the form of hash
70
76
  def initialize(attributes = {})
71
77
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::NigeriaNinMatch2SexField` initialize method"
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DigidentityAddressOutput` initialize method"
73
79
  end
74
80
 
75
81
  # check to see if the attribute exists and convert string to symbol for hash key
76
82
  acceptable_attribute_map = self.class.acceptable_attribute_map
77
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
78
84
  if (!acceptable_attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::NigeriaNinMatch2SexField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DigidentityAddressOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
86
  end
81
87
  h[k.to_sym] = v
82
88
  }
83
89
 
84
- if attributes.key?(:'input_value')
85
- self.input_value = attributes[:'input_value']
90
+ if attributes.key?(:'street_address')
91
+ self.street_address = attributes[:'street_address']
92
+ end
93
+
94
+ if attributes.key?(:'postal_code')
95
+ self.postal_code = attributes[:'postal_code']
86
96
  end
87
97
 
88
- if attributes.key?(:'outcome')
89
- self.outcome = attributes[:'outcome']
98
+ if attributes.key?(:'country')
99
+ self.country = attributes[:'country']
90
100
  end
91
101
  end
92
102
 
@@ -110,8 +120,9 @@ module TrinsicApi
110
120
  def ==(o)
111
121
  return true if self.equal?(o)
112
122
  self.class == o.class &&
113
- input_value == o.input_value &&
114
- outcome == o.outcome
123
+ street_address == o.street_address &&
124
+ postal_code == o.postal_code &&
125
+ country == o.country
115
126
  end
116
127
 
117
128
  # @see the `==` method
@@ -123,7 +134,7 @@ module TrinsicApi
123
134
  # Calculates hash code according to all attributes.
124
135
  # @return [Integer] Hash code
125
136
  def hash
126
- [input_value, outcome].hash
137
+ [street_address, postal_code, country].hash
127
138
  end
128
139
 
129
140
  # Builds the object from hash
@@ -14,60 +14,59 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class NigeriaNinMatch2Input < ApiModelBase
18
- # National Identification Number (NIN). This is a unique, permanent identifier assigned by the National Identity Management Commission (NIMC) upon enrollment. Format: - 11 numeric digits - No publicly known encoding scheme is used to encode personal information in the NIN - Last digit is a checksum using the Verhoeff algorithm
19
- attr_accessor :id_number
17
+ # Identity output for the digidentity provider.
18
+ class DigidentityProviderOutput < ApiModelBase
19
+ # Subject identifier returned by Digidentity.
20
+ attr_accessor :sub
20
21
 
21
- # The user's first name as it appears in their National ID
22
- attr_accessor :given_name
22
+ # Preferred username returned by Digidentity.
23
+ attr_accessor :preferred_username
23
24
 
24
- # The user's last name as it appears in their National ID
25
- attr_accessor :family_name
25
+ # Email address returned by Digidentity.
26
+ attr_accessor :email
27
+
28
+ # Whether Digidentity verified the email address, when reported.
29
+ attr_accessor :email_verified
30
+
31
+ # Whether Digidentity verified the phone number, when reported.
32
+ attr_accessor :phone_number_verified
33
+
34
+ # Given name returned by Digidentity.
35
+ attr_accessor :given_name
26
36
 
27
- # The user's middle name as it appears in their National ID (optional)
37
+ # Middle name returned by Digidentity.
28
38
  attr_accessor :middle_name
29
39
 
30
- # The user's date of birth, in `YYYY-MM-DD` format
31
- attr_accessor :date_of_birth
40
+ # Family name returned by Digidentity.
41
+ attr_accessor :family_name
32
42
 
33
- # The user's sex as it appears in their National ID
34
- attr_accessor :sex
43
+ # Date of birth in YYYY-MM-DD format.
44
+ attr_accessor :birth_date
35
45
 
36
- # The user's phone number as it appears in their National ID (optional). Must be in E.164 international format: \"+234XXXXXXXXX\"
37
- attr_accessor :phone_number
46
+ # Gender returned by Digidentity.
47
+ attr_accessor :gender
38
48
 
39
- class EnumAttributeValidator
40
- attr_reader :datatype
41
- attr_reader :allowable_values
42
-
43
- def initialize(datatype, allowable_values)
44
- @allowable_values = allowable_values.map do |value|
45
- case datatype.to_s
46
- when /Integer/i
47
- value.to_i
48
- when /Float/i
49
- value.to_f
50
- else
51
- value
52
- end
53
- end
54
- end
49
+ # Phone number returned by Digidentity.
50
+ attr_accessor :phone_number
55
51
 
56
- def valid?(value)
57
- !value || allowable_values.include?(value)
58
- end
59
- end
52
+ # Registered address returned by Digidentity.
53
+ attr_accessor :address
60
54
 
61
55
  # Attribute mapping from ruby-style variable name to JSON key.
62
56
  def self.attribute_map
63
57
  {
64
- :'id_number' => :'idNumber',
58
+ :'sub' => :'sub',
59
+ :'preferred_username' => :'preferredUsername',
60
+ :'email' => :'email',
61
+ :'email_verified' => :'emailVerified',
62
+ :'phone_number_verified' => :'phoneNumberVerified',
65
63
  :'given_name' => :'givenName',
66
- :'family_name' => :'familyName',
67
64
  :'middle_name' => :'middleName',
68
- :'date_of_birth' => :'dateOfBirth',
69
- :'sex' => :'sex',
70
- :'phone_number' => :'phoneNumber'
65
+ :'family_name' => :'familyName',
66
+ :'birth_date' => :'birthDate',
67
+ :'gender' => :'gender',
68
+ :'phone_number' => :'phoneNumber',
69
+ :'address' => :'address'
71
70
  }
72
71
  end
73
72
 
@@ -84,26 +83,36 @@ module TrinsicApi
84
83
  # Attribute type mapping.
85
84
  def self.openapi_types
86
85
  {
87
- :'id_number' => :'String',
86
+ :'sub' => :'String',
87
+ :'preferred_username' => :'String',
88
+ :'email' => :'String',
89
+ :'email_verified' => :'Boolean',
90
+ :'phone_number_verified' => :'Boolean',
88
91
  :'given_name' => :'String',
89
- :'family_name' => :'String',
90
92
  :'middle_name' => :'String',
91
- :'date_of_birth' => :'Date',
92
- :'sex' => :'NigeriaNinMatch2InputSex',
93
- :'phone_number' => :'String'
93
+ :'family_name' => :'String',
94
+ :'birth_date' => :'Date',
95
+ :'gender' => :'String',
96
+ :'phone_number' => :'String',
97
+ :'address' => :'DigidentityAddressOutput'
94
98
  }
95
99
  end
96
100
 
97
101
  # List of attributes with nullable: true
98
102
  def self.openapi_nullable
99
103
  Set.new([
100
- :'id_number',
104
+ :'sub',
105
+ :'preferred_username',
106
+ :'email',
107
+ :'email_verified',
108
+ :'phone_number_verified',
101
109
  :'given_name',
102
- :'family_name',
103
110
  :'middle_name',
104
- :'date_of_birth',
105
- :'sex',
106
- :'phone_number'
111
+ :'family_name',
112
+ :'birth_date',
113
+ :'gender',
114
+ :'phone_number',
115
+ :'address'
107
116
  ])
108
117
  end
109
118
 
@@ -121,45 +130,65 @@ module TrinsicApi
121
130
  # @param [Hash] attributes Model attributes in the form of hash
122
131
  def initialize(attributes = {})
123
132
  if (!attributes.is_a?(Hash))
124
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::NigeriaNinMatch2Input` initialize method"
133
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DigidentityProviderOutput` initialize method"
125
134
  end
126
135
 
127
136
  # check to see if the attribute exists and convert string to symbol for hash key
128
137
  acceptable_attribute_map = self.class.acceptable_attribute_map
129
138
  attributes = attributes.each_with_object({}) { |(k, v), h|
130
139
  if (!acceptable_attribute_map.key?(k.to_sym))
131
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::NigeriaNinMatch2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
140
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DigidentityProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
132
141
  end
133
142
  h[k.to_sym] = v
134
143
  }
135
144
 
136
- if attributes.key?(:'id_number')
137
- self.id_number = attributes[:'id_number']
145
+ if attributes.key?(:'sub')
146
+ self.sub = attributes[:'sub']
138
147
  end
139
148
 
140
- if attributes.key?(:'given_name')
141
- self.given_name = attributes[:'given_name']
149
+ if attributes.key?(:'preferred_username')
150
+ self.preferred_username = attributes[:'preferred_username']
142
151
  end
143
152
 
144
- if attributes.key?(:'family_name')
145
- self.family_name = attributes[:'family_name']
153
+ if attributes.key?(:'email')
154
+ self.email = attributes[:'email']
155
+ end
156
+
157
+ if attributes.key?(:'email_verified')
158
+ self.email_verified = attributes[:'email_verified']
159
+ end
160
+
161
+ if attributes.key?(:'phone_number_verified')
162
+ self.phone_number_verified = attributes[:'phone_number_verified']
163
+ end
164
+
165
+ if attributes.key?(:'given_name')
166
+ self.given_name = attributes[:'given_name']
146
167
  end
147
168
 
148
169
  if attributes.key?(:'middle_name')
149
170
  self.middle_name = attributes[:'middle_name']
150
171
  end
151
172
 
152
- if attributes.key?(:'date_of_birth')
153
- self.date_of_birth = attributes[:'date_of_birth']
173
+ if attributes.key?(:'family_name')
174
+ self.family_name = attributes[:'family_name']
175
+ end
176
+
177
+ if attributes.key?(:'birth_date')
178
+ self.birth_date = attributes[:'birth_date']
154
179
  end
155
180
 
156
- if attributes.key?(:'sex')
157
- self.sex = attributes[:'sex']
181
+ if attributes.key?(:'gender')
182
+ self.gender = attributes[:'gender']
158
183
  end
159
184
 
160
185
  if attributes.key?(:'phone_number')
161
186
  self.phone_number = attributes[:'phone_number']
162
187
  end
188
+
189
+ if attributes.key?(:'address')
190
+ self.address = attributes[:'address']
191
+ end
163
192
  end
164
193
 
165
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -182,13 +211,18 @@ module TrinsicApi
182
211
  def ==(o)
183
212
  return true if self.equal?(o)
184
213
  self.class == o.class &&
185
- id_number == o.id_number &&
214
+ sub == o.sub &&
215
+ preferred_username == o.preferred_username &&
216
+ email == o.email &&
217
+ email_verified == o.email_verified &&
218
+ phone_number_verified == o.phone_number_verified &&
186
219
  given_name == o.given_name &&
187
- family_name == o.family_name &&
188
220
  middle_name == o.middle_name &&
189
- date_of_birth == o.date_of_birth &&
190
- sex == o.sex &&
191
- phone_number == o.phone_number
221
+ family_name == o.family_name &&
222
+ birth_date == o.birth_date &&
223
+ gender == o.gender &&
224
+ phone_number == o.phone_number &&
225
+ address == o.address
192
226
  end
193
227
 
194
228
  # @see the `==` method
@@ -200,7 +234,7 @@ module TrinsicApi
200
234
  # Calculates hash code according to all attributes.
201
235
  # @return [Integer] Hash code
202
236
  def hash
203
- [id_number, given_name, family_name, middle_name, date_of_birth, sex, phone_number].hash
237
+ [sub, preferred_username, email, email_verified, phone_number_verified, given_name, middle_name, family_name, birth_date, gender, phone_number, address].hash
204
238
  end
205
239
 
206
240
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module TrinsicApi
17
17
  # Exposed properties for the `india-digilocker-aadhaar` Provider which do not directly map to the normalized IdentityData model.
18
18
  class DigilockerAadhaarProviderOutput < ApiModelBase
19
+ # The identity details extracted from the Aadhaar document.
20
+ attr_accessor :document
21
+
19
22
  # The document type from which the identity data was retrieved.
20
23
  attr_accessor :document_type
21
24
 
@@ -37,16 +40,21 @@ module TrinsicApi
37
40
  # 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
41
  attr_accessor :document_signature_validated
39
42
 
43
+ # The gender value returned by IDfy.
44
+ attr_accessor :gender
45
+
40
46
  # Attribute mapping from ruby-style variable name to JSON key.
41
47
  def self.attribute_map
42
48
  {
49
+ :'document' => :'document',
43
50
  :'document_type' => :'documentType',
44
51
  :'timestamp' => :'timestamp',
45
52
  :'time_to_live' => :'timeToLive',
46
53
  :'aadhaar_number_last_four' => :'aadhaarNumberLastFour',
47
54
  :'claims' => :'claims',
48
55
  :'localized_claims' => :'localizedClaims',
49
- :'document_signature_validated' => :'documentSignatureValidated'
56
+ :'document_signature_validated' => :'documentSignatureValidated',
57
+ :'gender' => :'gender'
50
58
  }
51
59
  end
52
60
 
@@ -63,26 +71,30 @@ module TrinsicApi
63
71
  # Attribute type mapping.
64
72
  def self.openapi_types
65
73
  {
74
+ :'document' => :'AadhaarDocumentOutput',
66
75
  :'document_type' => :'String',
67
76
  :'timestamp' => :'Time',
68
77
  :'time_to_live' => :'Time',
69
78
  :'aadhaar_number_last_four' => :'String',
70
79
  :'claims' => :'AadhaarClaims',
71
80
  :'localized_claims' => :'AadhaarLocalizedClaims',
72
- :'document_signature_validated' => :'Boolean'
81
+ :'document_signature_validated' => :'Boolean',
82
+ :'gender' => :'String'
73
83
  }
74
84
  end
75
85
 
76
86
  # List of attributes with nullable: true
77
87
  def self.openapi_nullable
78
88
  Set.new([
89
+ :'document',
79
90
  :'document_type',
80
91
  :'timestamp',
81
92
  :'time_to_live',
82
93
  :'aadhaar_number_last_four',
83
94
  :'claims',
84
95
  :'localized_claims',
85
- :'document_signature_validated'
96
+ :'document_signature_validated',
97
+ :'gender'
86
98
  ])
87
99
  end
88
100
 
@@ -112,6 +124,10 @@ module TrinsicApi
112
124
  h[k.to_sym] = v
113
125
  }
114
126
 
127
+ if attributes.key?(:'document')
128
+ self.document = attributes[:'document']
129
+ end
130
+
115
131
  if attributes.key?(:'document_type')
116
132
  self.document_type = attributes[:'document_type']
117
133
  end
@@ -139,6 +155,10 @@ module TrinsicApi
139
155
  if attributes.key?(:'document_signature_validated')
140
156
  self.document_signature_validated = attributes[:'document_signature_validated']
141
157
  end
158
+
159
+ if attributes.key?(:'gender')
160
+ self.gender = attributes[:'gender']
161
+ end
142
162
  end
143
163
 
144
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -161,13 +181,15 @@ module TrinsicApi
161
181
  def ==(o)
162
182
  return true if self.equal?(o)
163
183
  self.class == o.class &&
184
+ document == o.document &&
164
185
  document_type == o.document_type &&
165
186
  timestamp == o.timestamp &&
166
187
  time_to_live == o.time_to_live &&
167
188
  aadhaar_number_last_four == o.aadhaar_number_last_four &&
168
189
  claims == o.claims &&
169
190
  localized_claims == o.localized_claims &&
170
- document_signature_validated == o.document_signature_validated
191
+ document_signature_validated == o.document_signature_validated &&
192
+ gender == o.gender
171
193
  end
172
194
 
173
195
  # @see the `==` method
@@ -179,7 +201,7 @@ module TrinsicApi
179
201
  # Calculates hash code according to all attributes.
180
202
  # @return [Integer] Hash code
181
203
  def hash
182
- [document_type, timestamp, time_to_live, aadhaar_number_last_four, claims, localized_claims, document_signature_validated].hash
204
+ [document, document_type, timestamp, time_to_live, aadhaar_number_last_four, claims, localized_claims, document_signature_validated, gender].hash
183
205
  end
184
206
 
185
207
  # Builds the object from hash
@@ -16,10 +16,10 @@ require 'time'
16
16
  module TrinsicApi
17
17
  # Exposed properties for the `el-salvador-dui-lookup` Provider which do not directly map to the normalized IdentityData model.
18
18
  class ElSalvadorDuiProviderOutput < ApiModelBase
19
- # Full name as it appears on the DUI (Documento Único de Identidad), as returned by Verifik from official records administered by the Registro Nacional de las Personas Naturales (RNPN).
19
+ # Full name as it appears on the DUI (Documento Único de Identidad), from official records administered by the Registro Nacional de las Personas Naturales (RNPN).
20
20
  attr_accessor :full_name
21
21
 
22
- # The DUI (Documento Único de Identidad) document number as returned by Verifik for the matched record. Nine numeric digits after sanitization. Commonly printed as ########-# (hyphen before the final digit). The output will be stripped of the hyphen and will preserve leading zeros. The ninth digit is a check digit. This is not publicly documented by the Salvadoran government, but the algorithm is available in the public domain for those who seek it.
22
+ # The DUI (Documento Único de Identidad) document number for the matched record. Nine numeric digits after sanitization. Commonly printed as ########-# (hyphen before the final digit). The output will be stripped of the hyphen and will preserve leading zeros. The ninth digit is a check digit. This is not publicly documented by the Salvadoran government, but the algorithm is available in the public domain for those who seek it.
23
23
  attr_accessor :document_number
24
24
 
25
25
  # The date of birth that was supplied for the lookup and confirmed as matching the DUI record.