trinsic_api 2.3.0.pre.alpha2 → 3.0.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 (278) hide show
  1. checksums.yaml +4 -4
  2. data/docs/{EnvironmentRedirectUrisAddRequest.md → AddRedirectUriRequest.md} +2 -2
  3. data/docs/Address.md +2 -2
  4. data/docs/AppleWalletProviderOutput.md +18 -0
  5. data/docs/AttachmentInfo.md +24 -0
  6. data/docs/{MdlFieldDataType.md → AttributeAvailability.md} +2 -2
  7. data/docs/AustriaHandySignaturProviderOutput.md +20 -0
  8. data/docs/BelgiumIdCardProviderOutput.md +24 -0
  9. data/docs/ContractAttachment.md +20 -0
  10. data/docs/ContractAttribute.md +20 -0
  11. data/docs/CoteDIvoireNidLookup2Input.md +18 -0
  12. data/docs/CzechiaMojeIdProviderOutput.md +24 -0
  13. data/docs/DocumentData.md +12 -10
  14. data/docs/EstoniaIdCardProviderOutput.md +24 -0
  15. data/docs/FaydaProviderOutput.md +1 -1
  16. data/docs/FinlandIdCardProviderOutput.md +24 -0
  17. data/docs/FrejaProviderOutput.md +24 -0
  18. data/docs/FrenchNumeriqueGivenName.md +22 -0
  19. data/docs/FrenchNumeriqueNationality.md +20 -0
  20. data/docs/FrenchNumeriquePhone.md +22 -0
  21. data/docs/FrenchNumeriqueProviderOutput.md +66 -0
  22. data/docs/GetAttachmentRequest.md +2 -4
  23. data/docs/GoogleWalletProviderOutput.md +18 -0
  24. data/docs/IdentityData.md +9 -11
  25. data/docs/ItsmeProviderOutput.md +26 -0
  26. data/docs/KenyaNidMatch2Input.md +1 -1
  27. data/docs/{Language.md → KenyaNidMatch2InputSex.md} +2 -2
  28. data/docs/LaWalletProviderOutput.md +52 -0
  29. data/docs/LatviaEparakstsMobileProviderOutput.md +22 -0
  30. data/docs/LatviaEparakstsProviderOutput.md +22 -0
  31. data/docs/ListProvidersResponse.md +1 -1
  32. data/docs/{ListEnvironmentRedirectUrisResponse.md → ListRedirectUrisResponse.md} +2 -2
  33. data/docs/LithuaniaIdCardProviderOutput.md +24 -0
  34. data/docs/LloydsSmartIdProviderOutput.md +40 -0
  35. data/docs/Match.md +2 -2
  36. data/docs/MatchData.md +12 -10
  37. data/docs/MdlOutput.md +24 -0
  38. data/docs/MdlOutputCertificateData.md +26 -0
  39. data/docs/{ExternalMdlFieldData.md → MdlOutputFieldData.md} +3 -3
  40. data/docs/{FieldAvailability.md → MdlOutputFieldDataType.md} +2 -2
  41. data/docs/MexicoCurpProviderOutput.md +1 -1
  42. data/docs/MitIdProviderOutput.md +38 -0
  43. data/docs/MobileIdInput.md +1 -1
  44. data/docs/{SexV1.md → MobileIdLanguage.md} +2 -2
  45. data/docs/MobileIdProviderOutput.md +34 -0
  46. data/docs/NigeriaNinBiometric2Input.md +22 -0
  47. data/docs/NigeriaNinLookup2Input.md +18 -0
  48. data/docs/NigeriaNinMatch2Input.md +30 -0
  49. data/docs/NigeriaNinMatch2InputSex.md +15 -0
  50. data/docs/PersonData.md +10 -10
  51. data/docs/PeruDniAddress.md +22 -0
  52. data/docs/PeruDniLookupInput.md +18 -0
  53. data/docs/PeruDniProviderOutput.md +48 -0
  54. data/docs/PhilippinesDigitalNidProviderOutput.md +2 -2
  55. data/docs/PhilippinesPhysicalNidProviderOutput.md +2 -2
  56. data/docs/PolandEdoAppProviderOutput.md +24 -0
  57. data/docs/PolandMojeIdProviderOutput.md +22 -0
  58. data/docs/PortugalIdCardProviderOutput.md +24 -0
  59. data/docs/PostOfficeEasyIdProviderOutput.md +40 -0
  60. data/docs/{ProviderContract.md → Provider.md} +29 -25
  61. data/docs/ProviderInput.md +50 -32
  62. data/docs/ProviderOutput.md +61 -7
  63. data/docs/ProvidersApi.md +79 -0
  64. data/docs/RecommendProviderHealthOption.md +15 -0
  65. data/docs/{ProviderInformation.md → RecommendProviderInformation.md} +14 -14
  66. data/docs/{RecommendRequest.md → RecommendProvidersRequest.md} +3 -3
  67. data/docs/RecommendProvidersResponse.md +18 -0
  68. data/docs/{EnvironmentRedirectUrisApi.md → RedirectUrisApi.md} +21 -21
  69. data/docs/SamsungWalletProviderOutput.md +18 -0
  70. data/docs/SerbiaIdCardProviderOutput.md +24 -0
  71. data/docs/SessionsApi.md +149 -1
  72. data/docs/SmartIdInput.md +0 -2
  73. data/docs/SmartIdProviderOutput.md +42 -0
  74. data/docs/SouthAfricaNidBiometric2Input.md +22 -0
  75. data/docs/SouthAfricaNidMatch2Input.md +30 -0
  76. data/docs/SouthAfricaNidMatch2InputSex.md +15 -0
  77. data/docs/SpidProviderOutput.md +45 -25
  78. data/docs/SubProviderMetadata.md +0 -2
  79. data/docs/SwedenBankIdProviderOutput.md +42 -0
  80. data/docs/UgandaNidMatch2Input.md +22 -0
  81. data/docs/VerificationProfileResponse.md +3 -1
  82. data/docs/VerificationProfilesApi.md +3 -1
  83. data/docs/YotiDocumentDetails.md +26 -0
  84. data/docs/YotiProviderOutput.md +40 -0
  85. data/docs/YotiStructuredPostalAddress.md +56 -0
  86. data/docs/ZimbabweNidLookup2Input.md +18 -0
  87. data/lib/trinsic_api/api/providers_api.rb +82 -0
  88. data/lib/trinsic_api/api/{environment_redirect_uris_api.rb → redirect_uris_api.rb} +28 -28
  89. data/lib/trinsic_api/api/sessions_api.rb +142 -2
  90. data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
  91. data/lib/trinsic_api/models/{environment_redirect_uris_add_request.rb → add_redirect_uri_request.rb} +12 -3
  92. data/lib/trinsic_api/models/address.rb +3 -0
  93. data/lib/trinsic_api/models/apple_wallet_provider_output.rb +239 -0
  94. data/lib/trinsic_api/models/attachment_info.rb +319 -0
  95. data/lib/trinsic_api/models/{field_availability.rb → attribute_availability.rb} +3 -3
  96. data/lib/trinsic_api/models/austria_handy_signatur_provider_output.rb +266 -0
  97. data/lib/trinsic_api/models/{bangladesh_nid_input.rb → belgium_id_card_provider_output.rb} +60 -90
  98. data/lib/trinsic_api/models/{contract_identifier_field.rb → contract_attachment.rb} +25 -52
  99. data/lib/trinsic_api/models/{contract_field.rb → contract_attribute.rb} +8 -35
  100. data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_input.rb +222 -0
  101. data/lib/trinsic_api/models/{finalize_mdl_exchange_response.rb → czechia_moje_id_provider_output.rb} +85 -52
  102. data/lib/trinsic_api/models/document_data.rb +18 -1
  103. data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +320 -0
  104. data/lib/trinsic_api/models/fayda_provider_output.rb +1 -0
  105. data/lib/trinsic_api/models/finland_id_card_provider_output.rb +320 -0
  106. data/lib/trinsic_api/models/freja_provider_output.rb +320 -0
  107. data/lib/trinsic_api/models/french_numerique_given_name.rb +245 -0
  108. data/lib/trinsic_api/models/french_numerique_nationality.rb +234 -0
  109. data/lib/trinsic_api/models/french_numerique_phone.rb +245 -0
  110. data/lib/trinsic_api/models/french_numerique_provider_output.rb +487 -0
  111. data/lib/trinsic_api/models/get_attachment_request.rb +22 -49
  112. data/lib/trinsic_api/models/google_wallet_provider_output.rb +239 -0
  113. data/lib/trinsic_api/models/identity_data.rb +30 -33
  114. data/lib/trinsic_api/models/itsme_provider_output.rb +315 -0
  115. data/lib/trinsic_api/models/kenya_nid_match2_input.rb +1 -1
  116. data/lib/trinsic_api/models/{sex_v1.rb → kenya_nid_match2_input_sex.rb} +4 -6
  117. data/lib/trinsic_api/models/la_wallet_provider_output.rb +682 -0
  118. data/lib/trinsic_api/models/latvia_eparaksts_mobile_provider_output.rb +293 -0
  119. data/lib/trinsic_api/models/{create_mdl_exchange_response.rb → latvia_eparaksts_provider_output.rb} +53 -52
  120. data/lib/trinsic_api/models/list_providers_response.rb +2 -2
  121. data/lib/trinsic_api/models/{list_environment_redirect_uris_response.rb → list_redirect_uris_response.rb} +3 -3
  122. data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +320 -0
  123. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +344 -0
  124. data/lib/trinsic_api/models/match.rb +2 -0
  125. data/lib/trinsic_api/models/match_data.rb +23 -1
  126. data/lib/trinsic_api/models/{mdl_identity_data.rb → mdl_output.rb} +35 -8
  127. data/lib/trinsic_api/models/{mdl_certificate_data.rb → mdl_output_certificate_data.rb} +4 -4
  128. data/lib/trinsic_api/models/{external_mdl_field_data.rb → mdl_output_field_data.rb} +4 -4
  129. data/lib/trinsic_api/models/{mdl_field_data_type.rb → mdl_output_field_data_type.rb} +5 -4
  130. data/lib/trinsic_api/models/mexico_curp_provider_output.rb +1 -0
  131. data/lib/trinsic_api/models/mit_id_provider_output.rb +333 -0
  132. data/lib/trinsic_api/models/mobile_id_input.rb +1 -1
  133. data/lib/trinsic_api/models/{language.rb → mobile_id_language.rb} +3 -3
  134. data/lib/trinsic_api/models/mobile_id_provider_output.rb +311 -0
  135. data/lib/trinsic_api/models/nigeria_nin_biometric2_input.rb +246 -0
  136. data/lib/trinsic_api/models/{provider_attachments.rb → nigeria_nin_lookup2_input.rb} +12 -11
  137. data/lib/trinsic_api/models/{recommend_response.rb → nigeria_nin_match2_input.rb} +94 -82
  138. data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +40 -0
  139. data/lib/trinsic_api/models/person_data.rb +7 -0
  140. data/lib/trinsic_api/models/{identifier.rb → peru_dni_address.rb} +53 -49
  141. data/lib/trinsic_api/models/peru_dni_lookup_input.rb +222 -0
  142. data/lib/trinsic_api/models/peru_dni_provider_output.rb +518 -0
  143. data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +2 -1
  144. data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +2 -1
  145. data/lib/trinsic_api/models/poland_edo_app_provider_output.rb +320 -0
  146. data/lib/trinsic_api/models/poland_moje_id_provider_output.rb +293 -0
  147. data/lib/trinsic_api/models/{finalize_mdl_exchange_request.rb → portugal_id_card_provider_output.rb} +69 -68
  148. data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +344 -0
  149. data/lib/trinsic_api/models/{provider_contract.rb → provider.rb} +183 -125
  150. data/lib/trinsic_api/models/provider_input.rb +223 -124
  151. data/lib/trinsic_api/models/provider_output.rb +317 -15
  152. data/lib/trinsic_api/models/recommend_provider_health_option.rb +41 -0
  153. data/lib/trinsic_api/models/{provider_information.rb → recommend_provider_information.rb} +79 -73
  154. data/lib/trinsic_api/models/{recommend_request.rb → recommend_providers_request.rb} +27 -5
  155. data/lib/trinsic_api/models/{list_provider_contracts_response.rb → recommend_providers_response.rb} +20 -21
  156. data/lib/trinsic_api/models/redirect_uri_response.rb +9 -0
  157. data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +239 -0
  158. data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +320 -0
  159. data/lib/trinsic_api/models/smart_id_input.rb +1 -12
  160. data/lib/trinsic_api/models/smart_id_provider_output.rb +355 -0
  161. data/lib/trinsic_api/models/south_africa_nid_biometric2_input.rb +246 -0
  162. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +310 -0
  163. data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +40 -0
  164. data/lib/trinsic_api/models/spid_provider_output.rb +131 -20
  165. data/lib/trinsic_api/models/sub_provider_metadata.rb +1 -28
  166. data/lib/trinsic_api/models/{provider_info.rb → sweden_bank_id_provider_output.rb} +121 -153
  167. data/lib/trinsic_api/models/uganda_nid_match2_input.rb +244 -0
  168. data/lib/trinsic_api/models/verification_profile_response.rb +31 -4
  169. data/lib/trinsic_api/models/yoti_document_details.rb +266 -0
  170. data/lib/trinsic_api/models/yoti_provider_output.rb +344 -0
  171. data/lib/trinsic_api/models/yoti_structured_postal_address.rb +431 -0
  172. data/lib/trinsic_api/models/{document_scan_attachments.rb → zimbabwe_nid_lookup2_input.rb} +12 -11
  173. data/lib/trinsic_api/version.rb +1 -1
  174. data/lib/trinsic_api.rb +63 -30
  175. data/spec/api/providers_api_spec.rb +47 -0
  176. data/spec/api/{environment_redirect_uris_api_spec.rb → redirect_uris_api_spec.rb} +10 -10
  177. data/spec/api/sessions_api_spec.rb +27 -1
  178. data/spec/api/verification_profiles_api_spec.rb +1 -0
  179. data/spec/models/{environment_redirect_uris_add_request_spec.rb → add_redirect_uri_request_spec.rb} +6 -6
  180. data/spec/models/{list_provider_contracts_response_spec.rb → apple_wallet_provider_output_spec.rb} +7 -7
  181. data/spec/models/attachment_info_spec.rb +54 -0
  182. data/spec/models/{mdl_field_data_type_spec.rb → attribute_availability_spec.rb} +6 -6
  183. data/spec/models/austria_handy_signatur_provider_output_spec.rb +42 -0
  184. data/spec/models/{finalize_mdl_exchange_response_spec.rb → belgium_id_card_provider_output_spec.rb} +10 -10
  185. data/spec/models/contract_attachment_spec.rb +42 -0
  186. data/spec/models/contract_attribute_spec.rb +42 -0
  187. data/spec/models/cote_d_ivoire_nid_lookup2_input_spec.rb +36 -0
  188. data/spec/models/czechia_moje_id_provider_output_spec.rb +54 -0
  189. data/spec/models/document_data_spec.rb +6 -0
  190. data/spec/models/estonia_id_card_provider_output_spec.rb +54 -0
  191. data/spec/models/finland_id_card_provider_output_spec.rb +54 -0
  192. data/spec/models/freja_provider_output_spec.rb +54 -0
  193. data/spec/models/french_numerique_given_name_spec.rb +48 -0
  194. data/spec/models/french_numerique_nationality_spec.rb +42 -0
  195. data/spec/models/{contract_identifier_field_spec.rb → french_numerique_phone_spec.rb} +9 -9
  196. data/spec/models/french_numerique_provider_output_spec.rb +180 -0
  197. data/spec/models/get_attachment_request_spec.rb +1 -7
  198. data/spec/models/google_wallet_provider_output_spec.rb +36 -0
  199. data/spec/models/identity_data_spec.rb +1 -7
  200. data/spec/models/{bangladesh_nid_input_spec.rb → itsme_provider_output_spec.rb} +11 -11
  201. data/spec/models/{sex_v1_spec.rb → kenya_nid_match2_input_sex_spec.rb} +6 -6
  202. data/spec/models/la_wallet_provider_output_spec.rb +138 -0
  203. data/spec/models/latvia_eparaksts_mobile_provider_output_spec.rb +48 -0
  204. data/spec/models/latvia_eparaksts_provider_output_spec.rb +48 -0
  205. data/spec/models/{list_environment_redirect_uris_response_spec.rb → list_redirect_uris_response_spec.rb} +6 -6
  206. data/spec/models/lithuania_id_card_provider_output_spec.rb +54 -0
  207. data/spec/models/lloyds_smart_id_provider_output_spec.rb +102 -0
  208. data/spec/models/match_data_spec.rb +6 -0
  209. data/spec/models/{mdl_certificate_data_spec.rb → mdl_output_certificate_data_spec.rb} +6 -6
  210. data/spec/models/{external_mdl_field_data_spec.rb → mdl_output_field_data_spec.rb} +6 -6
  211. data/spec/models/{field_availability_spec.rb → mdl_output_field_data_type_spec.rb} +6 -6
  212. data/spec/models/{mdl_identity_data_spec.rb → mdl_output_spec.rb} +12 -6
  213. data/spec/models/mit_id_provider_output_spec.rb +96 -0
  214. data/spec/models/{language_spec.rb → mobile_id_language_spec.rb} +6 -6
  215. data/spec/models/{create_mdl_exchange_request_spec.rb → mobile_id_provider_output_spec.rb} +20 -14
  216. data/spec/models/nigeria_nin_biometric2_input_spec.rb +48 -0
  217. data/spec/models/{document_scan_attachments_spec.rb → nigeria_nin_lookup2_input_spec.rb} +7 -7
  218. data/spec/models/nigeria_nin_match2_input_sex_spec.rb +30 -0
  219. data/spec/models/{provider_info_spec.rb → nigeria_nin_match2_input_spec.rb} +13 -13
  220. data/spec/models/{identifier_spec.rb → peru_dni_address_spec.rb} +9 -9
  221. data/spec/models/{provider_attachments_spec.rb → peru_dni_lookup_input_spec.rb} +7 -7
  222. data/spec/models/peru_dni_provider_output_spec.rb +126 -0
  223. data/spec/models/{finalize_mdl_exchange_request_spec.rb → poland_edo_app_provider_output_spec.rb} +10 -10
  224. data/spec/models/{create_mdl_exchange_response_spec.rb → poland_moje_id_provider_output_spec.rb} +9 -9
  225. data/spec/models/portugal_id_card_provider_output_spec.rb +54 -0
  226. data/spec/models/post_office_easy_id_provider_output_spec.rb +102 -0
  227. data/spec/models/provider_input_spec.rb +70 -16
  228. data/spec/models/provider_output_spec.rb +164 -2
  229. data/spec/models/{provider_contract_spec.rb → provider_spec.rb} +28 -16
  230. data/spec/models/recommend_provider_health_option_spec.rb +30 -0
  231. data/spec/models/{provider_information_spec.rb → recommend_provider_information_spec.rb} +11 -11
  232. data/spec/models/{recommend_request_spec.rb → recommend_providers_request_spec.rb} +6 -6
  233. data/spec/models/recommend_providers_response_spec.rb +36 -0
  234. data/spec/models/samsung_wallet_provider_output_spec.rb +36 -0
  235. data/spec/models/serbia_id_card_provider_output_spec.rb +54 -0
  236. data/spec/models/smart_id_input_spec.rb +0 -6
  237. data/spec/models/smart_id_provider_output_spec.rb +108 -0
  238. data/spec/models/south_africa_nid_biometric2_input_spec.rb +48 -0
  239. data/spec/models/south_africa_nid_match2_input_sex_spec.rb +30 -0
  240. data/spec/models/{attachment_access_keys_spec.rb → south_africa_nid_match2_input_spec.rb} +18 -12
  241. data/spec/models/spid_provider_output_spec.rb +61 -1
  242. data/spec/models/sub_provider_metadata_spec.rb +0 -6
  243. data/spec/models/sweden_bank_id_provider_output_spec.rb +108 -0
  244. data/spec/models/{contract_field_spec.rb → uganda_nid_match2_input_spec.rb} +9 -9
  245. data/spec/models/verification_profile_response_spec.rb +6 -0
  246. data/spec/models/yoti_document_details_spec.rb +60 -0
  247. data/spec/models/yoti_provider_output_spec.rb +102 -0
  248. data/spec/models/yoti_structured_postal_address_spec.rb +150 -0
  249. data/spec/models/zimbabwe_nid_lookup2_input_spec.rb +36 -0
  250. metadata +254 -122
  251. data/docs/AttachmentAccessKeys.md +0 -28
  252. data/docs/AttachmentsApi.md +0 -79
  253. data/docs/BangladeshNidInput.md +0 -26
  254. data/docs/ContractField.md +0 -22
  255. data/docs/ContractIdentifierField.md +0 -22
  256. data/docs/CreateMdlExchangeRequest.md +0 -32
  257. data/docs/CreateMdlExchangeResponse.md +0 -22
  258. data/docs/DocumentScanAttachments.md +0 -18
  259. data/docs/FinalizeMdlExchangeRequest.md +0 -24
  260. data/docs/FinalizeMdlExchangeResponse.md +0 -24
  261. data/docs/Identifier.md +0 -22
  262. data/docs/ListProviderContractsResponse.md +0 -18
  263. data/docs/MdlApi.md +0 -151
  264. data/docs/MdlCertificateData.md +0 -26
  265. data/docs/MdlIdentityData.md +0 -22
  266. data/docs/NetworkApi.md +0 -223
  267. data/docs/ProviderAttachments.md +0 -18
  268. data/docs/ProviderInfo.md +0 -30
  269. data/docs/RecommendResponse.md +0 -22
  270. data/lib/trinsic_api/api/attachments_api.rb +0 -86
  271. data/lib/trinsic_api/api/mdl_api.rb +0 -150
  272. data/lib/trinsic_api/api/network_api.rb +0 -215
  273. data/lib/trinsic_api/models/attachment_access_keys.rb +0 -287
  274. data/lib/trinsic_api/models/create_mdl_exchange_request.rb +0 -404
  275. data/spec/api/attachments_api_spec.rb +0 -47
  276. data/spec/api/mdl_api_spec.rb +0 -59
  277. data/spec/api/network_api_spec.rb +0 -72
  278. data/spec/models/recommend_response_spec.rb +0 -48
@@ -0,0 +1,222 @@
1
+ =begin
2
+ #Trinsic API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class CoteDIvoireNidLookup2Input
18
+ # The user's National ID number (NNI) or document number
19
+ attr_accessor :id_number
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'id_number' => :'idNumber'
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
+ :'id_number' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'id_number'
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::CoteDIvoireNidLookup2Input` 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::CoteDIvoireNidLookup2Input`. 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?(:'id_number')
69
+ self.id_number = attributes[:'id_number']
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
+ id_number == o.id_number
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
+ [id_number].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
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def self._deserialize(type, value)
136
+ case type.to_sym
137
+ when :Time
138
+ Time.parse(value)
139
+ when :Date
140
+ Date.parse(value)
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :Boolean
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else # model
168
+ # models (e.g. Pet) or oneOf
169
+ klass = TrinsicApi.const_get(type)
170
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
+ end
172
+ end
173
+
174
+ # Returns the string representation of the object
175
+ # @return [String] String presentation of the object
176
+ def to_s
177
+ to_hash.to_s
178
+ end
179
+
180
+ # to_body is an alias to to_hash (backward compatibility)
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_body
183
+ to_hash
184
+ end
185
+
186
+ # Returns the object in the form of hash
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_hash
189
+ hash = {}
190
+ self.class.attribute_map.each_pair do |attr, param|
191
+ value = self.send(attr)
192
+ if value.nil?
193
+ is_nullable = self.class.openapi_nullable.include?(attr)
194
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
195
+ end
196
+
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+
222
+ end
@@ -14,26 +14,27 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class FinalizeMdlExchangeResponse
18
- # The Exchange ID of the mDL exchange which was just finalized.
19
- attr_accessor :exchange_id
17
+ # Exposed properties for the `a-mojeid` Provider which do not directly map to the normalized IdentityData model.
18
+ class CzechiaMojeIdProviderOutput
19
+ # The first name of the verified individual
20
+ attr_accessor :first_name
20
21
 
21
- # The AcceptanceSession which was created as a result of finalizing this mDL exchange.
22
- attr_accessor :created_session
22
+ # The last name of the verified individual
23
+ attr_accessor :last_name
23
24
 
24
- # The identity data from the mDL exchange, in a semi-normalized format. Supports all possible fields and namespaces, but does not map them to Trinsic's common data model.
25
- attr_accessor :mdl_data
25
+ # The date of birth of the verified individual
26
+ attr_accessor :date_of_birth
26
27
 
27
- # The identity data from the mDL exchange, normalized into Trinsic's common data model.
28
- attr_accessor :normalized_identity_data
28
+ # The OpenID 2.0 Identifier (\"openid2_id\") of the verified individual's MojeID account. This is an HTTPS URL which uniquely identifies the user within the MojeID system.
29
+ attr_accessor :open_id2_identifier
29
30
 
30
31
  # Attribute mapping from ruby-style variable name to JSON key.
31
32
  def self.attribute_map
32
33
  {
33
- :'exchange_id' => :'exchangeId',
34
- :'created_session' => :'createdSession',
35
- :'mdl_data' => :'mdlData',
36
- :'normalized_identity_data' => :'normalizedIdentityData'
34
+ :'first_name' => :'firstName',
35
+ :'last_name' => :'lastName',
36
+ :'date_of_birth' => :'dateOfBirth',
37
+ :'open_id2_identifier' => :'openId2Identifier'
37
38
  }
38
39
  end
39
40
 
@@ -50,18 +51,16 @@ module TrinsicApi
50
51
  # Attribute type mapping.
51
52
  def self.openapi_types
52
53
  {
53
- :'exchange_id' => :'String',
54
- :'created_session' => :'Session',
55
- :'mdl_data' => :'MdlIdentityData',
56
- :'normalized_identity_data' => :'IdentityData'
54
+ :'first_name' => :'String',
55
+ :'last_name' => :'String',
56
+ :'date_of_birth' => :'Date',
57
+ :'open_id2_identifier' => :'String'
57
58
  }
58
59
  end
59
60
 
60
61
  # List of attributes with nullable: true
61
62
  def self.openapi_nullable
62
63
  Set.new([
63
- :'mdl_data',
64
- :'normalized_identity_data'
65
64
  ])
66
65
  end
67
66
 
@@ -69,36 +68,40 @@ module TrinsicApi
69
68
  # @param [Hash] attributes Model attributes in the form of hash
70
69
  def initialize(attributes = {})
71
70
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::FinalizeMdlExchangeResponse` initialize method"
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechiaMojeIdProviderOutput` initialize method"
73
72
  end
74
73
 
75
74
  # check to see if the attribute exists and convert string to symbol for hash key
76
75
  acceptable_attribute_map = self.class.acceptable_attribute_map
77
76
  attributes = attributes.each_with_object({}) { |(k, v), h|
78
77
  if (!acceptable_attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::FinalizeMdlExchangeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechiaMojeIdProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
79
  end
81
80
  h[k.to_sym] = v
82
81
  }
83
82
 
84
- if attributes.key?(:'exchange_id')
85
- self.exchange_id = attributes[:'exchange_id']
83
+ if attributes.key?(:'first_name')
84
+ self.first_name = attributes[:'first_name']
86
85
  else
87
- self.exchange_id = nil
86
+ self.first_name = nil
88
87
  end
89
88
 
90
- if attributes.key?(:'created_session')
91
- self.created_session = attributes[:'created_session']
89
+ if attributes.key?(:'last_name')
90
+ self.last_name = attributes[:'last_name']
92
91
  else
93
- self.created_session = nil
92
+ self.last_name = nil
94
93
  end
95
94
 
96
- if attributes.key?(:'mdl_data')
97
- self.mdl_data = attributes[:'mdl_data']
95
+ if attributes.key?(:'date_of_birth')
96
+ self.date_of_birth = attributes[:'date_of_birth']
97
+ else
98
+ self.date_of_birth = nil
98
99
  end
99
100
 
100
- if attributes.key?(:'normalized_identity_data')
101
- self.normalized_identity_data = attributes[:'normalized_identity_data']
101
+ if attributes.key?(:'open_id2_identifier')
102
+ self.open_id2_identifier = attributes[:'open_id2_identifier']
103
+ else
104
+ self.open_id2_identifier = nil
102
105
  end
103
106
  end
104
107
 
@@ -107,12 +110,20 @@ module TrinsicApi
107
110
  def list_invalid_properties
108
111
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
112
  invalid_properties = Array.new
110
- if @exchange_id.nil?
111
- invalid_properties.push('invalid value for "exchange_id", exchange_id cannot be nil.')
113
+ if @first_name.nil?
114
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
115
+ end
116
+
117
+ if @last_name.nil?
118
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
112
119
  end
113
120
 
114
- if @created_session.nil?
115
- invalid_properties.push('invalid value for "created_session", created_session cannot be nil.')
121
+ if @date_of_birth.nil?
122
+ invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
123
+ end
124
+
125
+ if @open_id2_identifier.nil?
126
+ invalid_properties.push('invalid value for "open_id2_identifier", open_id2_identifier cannot be nil.')
116
127
  end
117
128
 
118
129
  invalid_properties
@@ -122,29 +133,51 @@ module TrinsicApi
122
133
  # @return true if the model is valid
123
134
  def valid?
124
135
  warn '[DEPRECATED] the `valid?` method is obsolete'
125
- return false if @exchange_id.nil?
126
- return false if @created_session.nil?
136
+ return false if @first_name.nil?
137
+ return false if @last_name.nil?
138
+ return false if @date_of_birth.nil?
139
+ return false if @open_id2_identifier.nil?
127
140
  true
128
141
  end
129
142
 
130
143
  # Custom attribute writer method with validation
131
- # @param [Object] exchange_id Value to be assigned
132
- def exchange_id=(exchange_id)
133
- if exchange_id.nil?
134
- fail ArgumentError, 'exchange_id cannot be nil'
144
+ # @param [Object] first_name Value to be assigned
145
+ def first_name=(first_name)
146
+ if first_name.nil?
147
+ fail ArgumentError, 'first_name cannot be nil'
148
+ end
149
+
150
+ @first_name = first_name
151
+ end
152
+
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] last_name Value to be assigned
155
+ def last_name=(last_name)
156
+ if last_name.nil?
157
+ fail ArgumentError, 'last_name cannot be nil'
158
+ end
159
+
160
+ @last_name = last_name
161
+ end
162
+
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] date_of_birth Value to be assigned
165
+ def date_of_birth=(date_of_birth)
166
+ if date_of_birth.nil?
167
+ fail ArgumentError, 'date_of_birth cannot be nil'
135
168
  end
136
169
 
137
- @exchange_id = exchange_id
170
+ @date_of_birth = date_of_birth
138
171
  end
139
172
 
140
173
  # Custom attribute writer method with validation
141
- # @param [Object] created_session Value to be assigned
142
- def created_session=(created_session)
143
- if created_session.nil?
144
- fail ArgumentError, 'created_session cannot be nil'
174
+ # @param [Object] open_id2_identifier Value to be assigned
175
+ def open_id2_identifier=(open_id2_identifier)
176
+ if open_id2_identifier.nil?
177
+ fail ArgumentError, 'open_id2_identifier cannot be nil'
145
178
  end
146
179
 
147
- @created_session = created_session
180
+ @open_id2_identifier = open_id2_identifier
148
181
  end
149
182
 
150
183
  # Checks equality by comparing each attribute.
@@ -152,10 +185,10 @@ module TrinsicApi
152
185
  def ==(o)
153
186
  return true if self.equal?(o)
154
187
  self.class == o.class &&
155
- exchange_id == o.exchange_id &&
156
- created_session == o.created_session &&
157
- mdl_data == o.mdl_data &&
158
- normalized_identity_data == o.normalized_identity_data
188
+ first_name == o.first_name &&
189
+ last_name == o.last_name &&
190
+ date_of_birth == o.date_of_birth &&
191
+ open_id2_identifier == o.open_id2_identifier
159
192
  end
160
193
 
161
194
  # @see the `==` method
@@ -167,7 +200,7 @@ module TrinsicApi
167
200
  # Calculates hash code according to all attributes.
168
201
  # @return [Integer] Hash code
169
202
  def hash
170
- [exchange_id, created_session, mdl_data, normalized_identity_data].hash
203
+ [first_name, last_name, date_of_birth, open_id2_identifier].hash
171
204
  end
172
205
 
173
206
  # Builds the object from hash
@@ -15,16 +15,25 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class DocumentData
18
+ # The type of the document.
18
19
  attr_accessor :type
19
20
 
21
+ # The primary identifying number of the document.
20
22
  attr_accessor :number
21
23
 
24
+ # The date the document was issued.
22
25
  attr_accessor :issue_date
23
26
 
27
+ # The date the document expires.
24
28
  attr_accessor :expiration_date
25
29
 
30
+ # The ISO 3166-1 alpha-2 country code of the country that issued the document.
26
31
  attr_accessor :issuing_country
27
32
 
33
+ # The ISO 3166-2 subdivision code of the issuing authority which issued the document. This is always in the form {CountryCode}-{SubdivisionCode}, where CountryCode is 2 letters and SubdivisionCode is 1-3 alphanumeric characters.
34
+ attr_accessor :issuing_subdivision
35
+
36
+ # The name of the authority which issued the document.
28
37
  attr_accessor :issuing_authority
29
38
 
30
39
  class EnumAttributeValidator
@@ -57,6 +66,7 @@ module TrinsicApi
57
66
  :'issue_date' => :'issueDate',
58
67
  :'expiration_date' => :'expirationDate',
59
68
  :'issuing_country' => :'issuingCountry',
69
+ :'issuing_subdivision' => :'issuingSubdivision',
60
70
  :'issuing_authority' => :'issuingAuthority'
61
71
  }
62
72
  end
@@ -79,6 +89,7 @@ module TrinsicApi
79
89
  :'issue_date' => :'Date',
80
90
  :'expiration_date' => :'Date',
81
91
  :'issuing_country' => :'String',
92
+ :'issuing_subdivision' => :'String',
82
93
  :'issuing_authority' => :'String'
83
94
  }
84
95
  end
@@ -91,6 +102,7 @@ module TrinsicApi
91
102
  :'issue_date',
92
103
  :'expiration_date',
93
104
  :'issuing_country',
105
+ :'issuing_subdivision',
94
106
  :'issuing_authority'
95
107
  ])
96
108
  end
@@ -131,6 +143,10 @@ module TrinsicApi
131
143
  self.issuing_country = attributes[:'issuing_country']
132
144
  end
133
145
 
146
+ if attributes.key?(:'issuing_subdivision')
147
+ self.issuing_subdivision = attributes[:'issuing_subdivision']
148
+ end
149
+
134
150
  if attributes.key?(:'issuing_authority')
135
151
  self.issuing_authority = attributes[:'issuing_authority']
136
152
  end
@@ -161,6 +177,7 @@ module TrinsicApi
161
177
  issue_date == o.issue_date &&
162
178
  expiration_date == o.expiration_date &&
163
179
  issuing_country == o.issuing_country &&
180
+ issuing_subdivision == o.issuing_subdivision &&
164
181
  issuing_authority == o.issuing_authority
165
182
  end
166
183
 
@@ -173,7 +190,7 @@ module TrinsicApi
173
190
  # Calculates hash code according to all attributes.
174
191
  # @return [Integer] Hash code
175
192
  def hash
176
- [type, number, issue_date, expiration_date, issuing_country, issuing_authority].hash
193
+ [type, number, issue_date, expiration_date, issuing_country, issuing_subdivision, issuing_authority].hash
177
194
  end
178
195
 
179
196
  # Builds the object from hash