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
@@ -14,39 +14,63 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- # A provider that can be specified when creating a `Session`
18
- class ProviderInfo
19
- # The ID of the provider
20
- attr_accessor :id
17
+ # Exposed properties for the `sweden-bankid` Provider which do not directly map to the normalized IdentityData model.
18
+ class SwedenBankIdProviderOutput
19
+ # The full name of the individual.
20
+ attr_accessor :full_name
21
21
 
22
- # The friendly, human-readable name of the provider
23
- attr_accessor :name
22
+ # The date of birth of the individual.
23
+ attr_accessor :date_of_birth
24
24
 
25
- # A URL pointing to the provider's logo
26
- attr_accessor :logo_url
25
+ # The Swedish personal number (personnummer) associated with the verified individual. The value is typically a 12-digit number. This is in the format YYYYMMDDXXXX, where: - YYYYMMDD is the date of birth. - XXXX is an individual number, indicating gender. If XXXX is even, the individual is female. If XXXX is odd, the individual is male.
26
+ attr_accessor :personal_identity_number
27
27
 
28
- # The Provider's subtext recommended to be shown next to the name. This is flavor text, not a full, human-readable description of the provider.
29
- attr_accessor :subtext
28
+ # The given name of the individual
29
+ attr_accessor :given_name
30
30
 
31
- # The Provider's description recommended to be shown next to the name. This is flavor text, not a full, human-readable description of the provider.
32
- attr_accessor :description
31
+ # The family name of the individual
32
+ attr_accessor :family_name
33
33
 
34
- # The current health status of the provider
35
- attr_accessor :health
34
+ # The end user's country on the verified certificate. This is ISO 2-character code of the country.
35
+ attr_accessor :country
36
36
 
37
- # Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
38
- attr_accessor :sub_providers
37
+ # The object identifier policy of the individual's verified certificate
38
+ attr_accessor :certificate_policy
39
+
40
+ # The common name of the end user's verified certificate
41
+ attr_accessor :common_name
42
+
43
+ # The distinguished name of the end user's verified certificate
44
+ attr_accessor :distinguished_name
45
+
46
+ # The country that issued the Swedish personal number. This is an ISO 2-character code of the country and is extracted from the certificate. This will always be `SE`.
47
+ attr_accessor :personal_identity_number_issuing_country
48
+
49
+ # The IP address of the device used for authentication
50
+ attr_accessor :authentication_device_ip
51
+
52
+ # The certificate validity start date (not before) in UTC
53
+ attr_accessor :not_before
54
+
55
+ # The certificate validity end date (not after) in UTC
56
+ attr_accessor :not_after
39
57
 
40
58
  # Attribute mapping from ruby-style variable name to JSON key.
41
59
  def self.attribute_map
42
60
  {
43
- :'id' => :'id',
44
- :'name' => :'name',
45
- :'logo_url' => :'logoUrl',
46
- :'subtext' => :'subtext',
47
- :'description' => :'description',
48
- :'health' => :'health',
49
- :'sub_providers' => :'subProviders'
61
+ :'full_name' => :'fullName',
62
+ :'date_of_birth' => :'dateOfBirth',
63
+ :'personal_identity_number' => :'personalIdentityNumber',
64
+ :'given_name' => :'givenName',
65
+ :'family_name' => :'familyName',
66
+ :'country' => :'country',
67
+ :'certificate_policy' => :'certificatePolicy',
68
+ :'common_name' => :'commonName',
69
+ :'distinguished_name' => :'distinguishedName',
70
+ :'personal_identity_number_issuing_country' => :'personalIdentityNumberIssuingCountry',
71
+ :'authentication_device_ip' => :'authenticationDeviceIp',
72
+ :'not_before' => :'notBefore',
73
+ :'not_after' => :'notAfter'
50
74
  }
51
75
  end
52
76
 
@@ -63,20 +87,38 @@ module TrinsicApi
63
87
  # Attribute type mapping.
64
88
  def self.openapi_types
65
89
  {
66
- :'id' => :'String',
67
- :'name' => :'String',
68
- :'logo_url' => :'String',
69
- :'subtext' => :'String',
70
- :'description' => :'String',
71
- :'health' => :'String',
72
- :'sub_providers' => :'Array<SubProviderMetadata>'
90
+ :'full_name' => :'String',
91
+ :'date_of_birth' => :'Date',
92
+ :'personal_identity_number' => :'String',
93
+ :'given_name' => :'String',
94
+ :'family_name' => :'String',
95
+ :'country' => :'String',
96
+ :'certificate_policy' => :'String',
97
+ :'common_name' => :'String',
98
+ :'distinguished_name' => :'String',
99
+ :'personal_identity_number_issuing_country' => :'String',
100
+ :'authentication_device_ip' => :'String',
101
+ :'not_before' => :'Time',
102
+ :'not_after' => :'Time'
73
103
  }
74
104
  end
75
105
 
76
106
  # List of attributes with nullable: true
77
107
  def self.openapi_nullable
78
108
  Set.new([
79
- :'sub_providers'
109
+ :'full_name',
110
+ :'date_of_birth',
111
+ :'personal_identity_number',
112
+ :'given_name',
113
+ :'family_name',
114
+ :'country',
115
+ :'certificate_policy',
116
+ :'common_name',
117
+ :'distinguished_name',
118
+ :'personal_identity_number_issuing_country',
119
+ :'authentication_device_ip',
120
+ :'not_before',
121
+ :'not_after'
80
122
  ])
81
123
  end
82
124
 
@@ -84,90 +126,76 @@ module TrinsicApi
84
126
  # @param [Hash] attributes Model attributes in the form of hash
85
127
  def initialize(attributes = {})
86
128
  if (!attributes.is_a?(Hash))
87
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ProviderInfo` initialize method"
129
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SwedenBankIdProviderOutput` initialize method"
88
130
  end
89
131
 
90
132
  # check to see if the attribute exists and convert string to symbol for hash key
91
133
  acceptable_attribute_map = self.class.acceptable_attribute_map
92
134
  attributes = attributes.each_with_object({}) { |(k, v), h|
93
135
  if (!acceptable_attribute_map.key?(k.to_sym))
94
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
136
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SwedenBankIdProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
95
137
  end
96
138
  h[k.to_sym] = v
97
139
  }
98
140
 
99
- if attributes.key?(:'id')
100
- self.id = attributes[:'id']
101
- else
102
- self.id = nil
141
+ if attributes.key?(:'full_name')
142
+ self.full_name = attributes[:'full_name']
103
143
  end
104
144
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
107
- else
108
- self.name = nil
145
+ if attributes.key?(:'date_of_birth')
146
+ self.date_of_birth = attributes[:'date_of_birth']
109
147
  end
110
148
 
111
- if attributes.key?(:'logo_url')
112
- self.logo_url = attributes[:'logo_url']
113
- else
114
- self.logo_url = nil
149
+ if attributes.key?(:'personal_identity_number')
150
+ self.personal_identity_number = attributes[:'personal_identity_number']
115
151
  end
116
152
 
117
- if attributes.key?(:'subtext')
118
- self.subtext = attributes[:'subtext']
119
- else
120
- self.subtext = nil
153
+ if attributes.key?(:'given_name')
154
+ self.given_name = attributes[:'given_name']
121
155
  end
122
156
 
123
- if attributes.key?(:'description')
124
- self.description = attributes[:'description']
125
- else
126
- self.description = nil
157
+ if attributes.key?(:'family_name')
158
+ self.family_name = attributes[:'family_name']
127
159
  end
128
160
 
129
- if attributes.key?(:'health')
130
- self.health = attributes[:'health']
131
- else
132
- self.health = nil
161
+ if attributes.key?(:'country')
162
+ self.country = attributes[:'country']
133
163
  end
134
164
 
135
- if attributes.key?(:'sub_providers')
136
- if (value = attributes[:'sub_providers']).is_a?(Array)
137
- self.sub_providers = value
138
- end
165
+ if attributes.key?(:'certificate_policy')
166
+ self.certificate_policy = attributes[:'certificate_policy']
139
167
  end
140
- end
141
168
 
142
- # Show invalid properties with the reasons. Usually used together with valid?
143
- # @return Array for valid properties with the reasons
144
- def list_invalid_properties
145
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
146
- invalid_properties = Array.new
147
- if @id.nil?
148
- invalid_properties.push('invalid value for "id", id cannot be nil.')
169
+ if attributes.key?(:'common_name')
170
+ self.common_name = attributes[:'common_name']
149
171
  end
150
172
 
151
- if @name.nil?
152
- invalid_properties.push('invalid value for "name", name cannot be nil.')
173
+ if attributes.key?(:'distinguished_name')
174
+ self.distinguished_name = attributes[:'distinguished_name']
153
175
  end
154
176
 
155
- if @logo_url.nil?
156
- invalid_properties.push('invalid value for "logo_url", logo_url cannot be nil.')
177
+ if attributes.key?(:'personal_identity_number_issuing_country')
178
+ self.personal_identity_number_issuing_country = attributes[:'personal_identity_number_issuing_country']
157
179
  end
158
180
 
159
- if @subtext.nil?
160
- invalid_properties.push('invalid value for "subtext", subtext cannot be nil.')
181
+ if attributes.key?(:'authentication_device_ip')
182
+ self.authentication_device_ip = attributes[:'authentication_device_ip']
161
183
  end
162
184
 
163
- if @description.nil?
164
- invalid_properties.push('invalid value for "description", description cannot be nil.')
185
+ if attributes.key?(:'not_before')
186
+ self.not_before = attributes[:'not_before']
165
187
  end
166
188
 
167
- if @health.nil?
168
- invalid_properties.push('invalid value for "health", health cannot be nil.')
189
+ if attributes.key?(:'not_after')
190
+ self.not_after = attributes[:'not_after']
169
191
  end
192
+ end
170
193
 
194
+ # Show invalid properties with the reasons. Usually used together with valid?
195
+ # @return Array for valid properties with the reasons
196
+ def list_invalid_properties
197
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
198
+ invalid_properties = Array.new
171
199
  invalid_properties
172
200
  end
173
201
 
@@ -175,87 +203,27 @@ module TrinsicApi
175
203
  # @return true if the model is valid
176
204
  def valid?
177
205
  warn '[DEPRECATED] the `valid?` method is obsolete'
178
- return false if @id.nil?
179
- return false if @name.nil?
180
- return false if @logo_url.nil?
181
- return false if @subtext.nil?
182
- return false if @description.nil?
183
- return false if @health.nil?
184
206
  true
185
207
  end
186
208
 
187
- # Custom attribute writer method with validation
188
- # @param [Object] id Value to be assigned
189
- def id=(id)
190
- if id.nil?
191
- fail ArgumentError, 'id cannot be nil'
192
- end
193
-
194
- @id = id
195
- end
196
-
197
- # Custom attribute writer method with validation
198
- # @param [Object] name Value to be assigned
199
- def name=(name)
200
- if name.nil?
201
- fail ArgumentError, 'name cannot be nil'
202
- end
203
-
204
- @name = name
205
- end
206
-
207
- # Custom attribute writer method with validation
208
- # @param [Object] logo_url Value to be assigned
209
- def logo_url=(logo_url)
210
- if logo_url.nil?
211
- fail ArgumentError, 'logo_url cannot be nil'
212
- end
213
-
214
- @logo_url = logo_url
215
- end
216
-
217
- # Custom attribute writer method with validation
218
- # @param [Object] subtext Value to be assigned
219
- def subtext=(subtext)
220
- if subtext.nil?
221
- fail ArgumentError, 'subtext cannot be nil'
222
- end
223
-
224
- @subtext = subtext
225
- end
226
-
227
- # Custom attribute writer method with validation
228
- # @param [Object] description Value to be assigned
229
- def description=(description)
230
- if description.nil?
231
- fail ArgumentError, 'description cannot be nil'
232
- end
233
-
234
- @description = description
235
- end
236
-
237
- # Custom attribute writer method with validation
238
- # @param [Object] health Value to be assigned
239
- def health=(health)
240
- if health.nil?
241
- fail ArgumentError, 'health cannot be nil'
242
- end
243
-
244
- @health = health
245
- end
246
-
247
209
  # Checks equality by comparing each attribute.
248
210
  # @param [Object] Object to be compared
249
211
  def ==(o)
250
212
  return true if self.equal?(o)
251
213
  self.class == o.class &&
252
- id == o.id &&
253
- name == o.name &&
254
- logo_url == o.logo_url &&
255
- subtext == o.subtext &&
256
- description == o.description &&
257
- health == o.health &&
258
- sub_providers == o.sub_providers
214
+ full_name == o.full_name &&
215
+ date_of_birth == o.date_of_birth &&
216
+ personal_identity_number == o.personal_identity_number &&
217
+ given_name == o.given_name &&
218
+ family_name == o.family_name &&
219
+ country == o.country &&
220
+ certificate_policy == o.certificate_policy &&
221
+ common_name == o.common_name &&
222
+ distinguished_name == o.distinguished_name &&
223
+ personal_identity_number_issuing_country == o.personal_identity_number_issuing_country &&
224
+ authentication_device_ip == o.authentication_device_ip &&
225
+ not_before == o.not_before &&
226
+ not_after == o.not_after
259
227
  end
260
228
 
261
229
  # @see the `==` method
@@ -267,7 +235,7 @@ module TrinsicApi
267
235
  # Calculates hash code according to all attributes.
268
236
  # @return [Integer] Hash code
269
237
  def hash
270
- [id, name, logo_url, subtext, description, health, sub_providers].hash
238
+ [full_name, date_of_birth, personal_identity_number, given_name, family_name, country, certificate_policy, common_name, distinguished_name, personal_identity_number_issuing_country, authentication_device_ip, not_before, not_after].hash
271
239
  end
272
240
 
273
241
  # Builds the object from hash
@@ -0,0 +1,244 @@
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 UgandaNidMatch2Input
18
+ # The user's Uganda National ID number (NIN) - 14 alphanumeric characters
19
+ attr_accessor :id_number
20
+
21
+ # The card number on the document (secondary ID number). Required for Uganda Basic KYC instead of first name and last name.
22
+ attr_accessor :secondary_id_number
23
+
24
+ # The user's date of birth, in `YYYY-MM-DD` format
25
+ attr_accessor :date_of_birth
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'id_number' => :'idNumber',
31
+ :'secondary_id_number' => :'secondaryIdNumber',
32
+ :'date_of_birth' => :'dateOfBirth'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'id_number' => :'String',
50
+ :'secondary_id_number' => :'String',
51
+ :'date_of_birth' => :'Date'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ :'id_number',
59
+ :'secondary_id_number',
60
+ :'date_of_birth'
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::UgandaNidMatch2Input` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!acceptable_attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::UgandaNidMatch2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'id_number')
81
+ self.id_number = attributes[:'id_number']
82
+ end
83
+
84
+ if attributes.key?(:'secondary_id_number')
85
+ self.secondary_id_number = attributes[:'secondary_id_number']
86
+ end
87
+
88
+ if attributes.key?(:'date_of_birth')
89
+ self.date_of_birth = attributes[:'date_of_birth']
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ warn '[DEPRECATED] the `valid?` method is obsolete'
105
+ true
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ id_number == o.id_number &&
114
+ secondary_id_number == o.secondary_id_number &&
115
+ date_of_birth == o.date_of_birth
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ def hash
127
+ [id_number, secondary_id_number, date_of_birth].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def self.build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ attributes = attributes.transform_keys(&:to_sym)
136
+ transformed_hash = {}
137
+ openapi_types.each_pair do |key, type|
138
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
139
+ transformed_hash["#{key}"] = nil
140
+ elsif type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[attribute_map[key]].is_a?(Array)
144
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
145
+ end
146
+ elsif !attributes[attribute_map[key]].nil?
147
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
148
+ end
149
+ end
150
+ new(transformed_hash)
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def self._deserialize(type, value)
158
+ case type.to_sym
159
+ when :Time
160
+ Time.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ # models (e.g. Pet) or oneOf
191
+ klass = TrinsicApi.const_get(type)
192
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end