trinsic_api 3.1.0.pre.preview1 → 3.2.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 (281) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AgeOverOutput.md +20 -0
  3. data/docs/AppleWalletDigitalIdBirthDate.md +20 -0
  4. data/docs/AppleWalletDigitalIdCredential.md +54 -0
  5. data/docs/AppleWalletProviderOutput.md +4 -0
  6. data/docs/BrazilCnhFacialBiometryOutput.md +24 -0
  7. data/docs/BrazilCnhMatchFieldDateOnly.md +20 -0
  8. data/docs/BrazilCnhMatchFieldString.md +20 -0
  9. data/docs/BrazilCnhProviderOutput.md +48 -0
  10. data/docs/CreateDirectProviderSessionRequest.md +1 -1
  11. data/docs/CreateHostedProviderSessionRequest.md +1 -1
  12. data/docs/CzechBankIdAddress.md +36 -0
  13. data/docs/CzechBankIdCard.md +30 -0
  14. data/docs/CzechBankIdProviderOutput.md +78 -0
  15. data/docs/CzechBankIdTitle.md +20 -0
  16. data/docs/CzechBankIdVerification.md +22 -0
  17. data/docs/DiiaIssuerOutput.md +28 -0
  18. data/docs/DiiaProviderOutput.md +20 -0
  19. data/docs/DiiaSubjectOutput.md +26 -0
  20. data/docs/EudiAgeVerificationCredential.md +22 -0
  21. data/docs/EudiPidCredential.md +70 -0
  22. data/docs/FranceIdentiteProviderOutput.md +4 -0
  23. data/docs/GoogleWalletIdPassCredential.md +40 -0
  24. data/docs/GoogleWalletProviderOutput.md +4 -0
  25. data/docs/IdemiaPreviewProviderAddress.md +32 -0
  26. data/docs/IdemiaPreviewProviderOutput.md +76 -0
  27. data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +20 -0
  28. data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +20 -0
  29. data/docs/IndiaDigilockerAadhaarMatchProviderOutput.md +20 -0
  30. data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +20 -0
  31. data/docs/IndonesiaDukcapilMatchFullNameField.md +20 -0
  32. data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +20 -0
  33. data/docs/IndonesiaDukcapilMatchProviderOutput.md +38 -0
  34. data/docs/IndonesiaNikMatch.md +34 -0
  35. data/docs/IndonesiaNikMatchField.md +20 -0
  36. data/docs/InteracAddress.md +26 -0
  37. data/docs/InteracProviderOutput.md +34 -0
  38. data/docs/Iso180132BiometricDataBlockProduct.md +20 -0
  39. data/docs/Iso180132BiometricGroupTemplate.md +18 -0
  40. data/docs/Iso180132BiometricTemplate.md +24 -0
  41. data/docs/Iso180132BiometricTemplateHeader.md +36 -0
  42. data/docs/Iso180132BiometricValidityPeriod.md +20 -0
  43. data/docs/Iso180135AamvaDomesticDrivingPrivilege.md +22 -0
  44. data/docs/Iso180135AamvaDomesticVehicleClass.md +24 -0
  45. data/docs/Iso180135AamvaDomesticVehicleEndorsement.md +20 -0
  46. data/docs/Iso180135AamvaDomesticVehicleRestriction.md +20 -0
  47. data/docs/Iso180135AamvaNamespaceOutput.md +70 -0
  48. data/docs/Iso180135AamvaWeightRange.md +20 -0
  49. data/docs/Iso180135DrivingPrivilege.md +24 -0
  50. data/docs/Iso180135DrivingPrivilegeCode.md +22 -0
  51. data/docs/Iso180135MobileDriversLicenseCredential.md +20 -0
  52. data/docs/Iso180135StandardNamespaceOutput.md +86 -0
  53. data/docs/ItsmeAddress.md +28 -0
  54. data/docs/ItsmeProviderOutput.md +19 -1
  55. data/docs/KenyaNidMatch2DateOfBirthField.md +20 -0
  56. data/docs/KenyaNidMatch2FullNameField.md +20 -0
  57. data/docs/KenyaNidMatch2NationalIdNumberField.md +20 -0
  58. data/docs/KenyaNidMatch2ProviderOutput.md +24 -0
  59. data/docs/KenyaNidMatch2SexField.md +20 -0
  60. data/docs/LloydsSmartIdProviderOutput.md +2 -2
  61. data/docs/MexicoCurpProviderOutput.md +23 -1
  62. data/docs/NigeriaNinLookup2Input.md +1 -1
  63. data/docs/NigeriaNinLookup2ProviderOutput.md +2 -2
  64. data/docs/NigeriaNinMatch2DateOfBirthField.md +20 -0
  65. data/docs/NigeriaNinMatch2FullNameField.md +20 -0
  66. data/docs/NigeriaNinMatch2Input.md +1 -1
  67. data/docs/NigeriaNinMatch2NationalIdNumberField.md +20 -0
  68. data/docs/NigeriaNinMatch2PhoneNumberField.md +20 -0
  69. data/docs/NigeriaNinMatch2ProviderOutput.md +26 -0
  70. data/docs/NigeriaNinMatch2SexField.md +20 -0
  71. data/docs/PhilippinesPhilsysMatchProviderOutput.md +26 -0
  72. data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
  73. data/docs/ProviderInput.md +0 -6
  74. data/docs/ProviderOutput.md +37 -3
  75. data/docs/SamsungWalletProviderOutput.md +2 -0
  76. data/docs/SouthAfricaNidLookup2Input.md +1 -1
  77. data/docs/SouthAfricaNidLookup2ProviderOutput.md +36 -0
  78. data/docs/SouthAfricaNidMatch2DateOfBirthField.md +20 -0
  79. data/docs/SouthAfricaNidMatch2FullNameField.md +20 -0
  80. data/docs/SouthAfricaNidMatch2Input.md +2 -4
  81. data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +20 -0
  82. data/docs/SouthAfricaNidMatch2ProviderOutput.md +26 -0
  83. data/docs/SouthAfricaNidMatch2SexField.md +20 -0
  84. data/docs/UAEPassProviderOutput.md +62 -0
  85. data/docs/UgandaNidMatch2DateOfBirthField.md +20 -0
  86. data/docs/UgandaNidMatch2Input.md +1 -1
  87. data/docs/UgandaNidMatch2NationalIdNumberField.md +20 -0
  88. data/docs/UgandaNidMatch2ProviderOutput.md +22 -0
  89. data/docs/UgandaNidMatch2SecondaryIdNumberField.md +20 -0
  90. data/docs/VerimiAddressOutput.md +28 -0
  91. data/docs/VerimiProviderOutput.md +68 -0
  92. data/docs/YotiDeeplinkProviderOutput.md +2 -2
  93. data/docs/YotiProviderOutput.md +2 -2
  94. data/docs/ZimbabweNidLookup2Input.md +1 -1
  95. data/docs/ZimbabweNidLookup2ProviderOutput.md +34 -0
  96. data/lib/trinsic_api/models/age_over_output.rb +193 -0
  97. data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +177 -0
  98. data/lib/trinsic_api/models/apple_wallet_digital_id_credential.rb +350 -0
  99. data/lib/trinsic_api/models/apple_wallet_provider_output.rb +23 -1
  100. data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +198 -0
  101. data/lib/trinsic_api/models/brazil_cnh_match_field_date_only.rb +176 -0
  102. data/lib/trinsic_api/models/brazil_cnh_match_field_string.rb +160 -0
  103. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +315 -0
  104. data/lib/trinsic_api/models/create_direct_provider_session_request.rb +1 -1
  105. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
  106. data/lib/trinsic_api/models/czech_bank_id_address.rb +296 -0
  107. data/lib/trinsic_api/models/czech_bank_id_card.rb +279 -0
  108. data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +504 -0
  109. data/lib/trinsic_api/models/czech_bank_id_title.rb +160 -0
  110. data/lib/trinsic_api/models/czech_bank_id_verification.rb +203 -0
  111. data/lib/trinsic_api/models/diia_issuer_output.rb +204 -0
  112. data/lib/trinsic_api/models/diia_provider_output.rb +193 -0
  113. data/lib/trinsic_api/models/diia_subject_output.rb +193 -0
  114. data/lib/trinsic_api/models/{south_africa_nid_biometric2_input.rb → eudi_age_verification_credential.rb} +31 -30
  115. data/lib/trinsic_api/models/eudi_pid_credential.rb +438 -0
  116. data/lib/trinsic_api/models/france_identite_provider_output.rb +23 -1
  117. data/lib/trinsic_api/models/google_wallet_id_pass_credential.rb +273 -0
  118. data/lib/trinsic_api/models/google_wallet_provider_output.rb +23 -1
  119. data/lib/trinsic_api/models/idemia_preview_provider_address.rb +226 -0
  120. data/lib/trinsic_api/models/idemia_preview_provider_output.rb +469 -0
  121. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +192 -0
  122. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +192 -0
  123. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_provider_output.rb +161 -0
  124. data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +192 -0
  125. data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +192 -0
  126. data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +192 -0
  127. data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +404 -0
  128. data/lib/trinsic_api/models/indonesia_nik_match.rb +238 -0
  129. data/lib/trinsic_api/models/indonesia_nik_match_field.rb +192 -0
  130. data/lib/trinsic_api/models/{kenya_nid_biometric2_input.rb → interac_address.rb} +50 -30
  131. data/lib/trinsic_api/models/interac_provider_output.rb +237 -0
  132. data/lib/trinsic_api/models/iso180132_biometric_data_block_product.rb +193 -0
  133. data/lib/trinsic_api/models/iso180132_biometric_group_template.rb +168 -0
  134. data/lib/trinsic_api/models/iso180132_biometric_template.rb +231 -0
  135. data/lib/trinsic_api/models/iso180132_biometric_template_header.rb +297 -0
  136. data/lib/trinsic_api/models/iso180132_biometric_validity_period.rb +193 -0
  137. data/lib/trinsic_api/models/iso180135_aamva_domestic_driving_privilege.rb +176 -0
  138. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_class.rb +215 -0
  139. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_endorsement.rb +177 -0
  140. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_restriction.rb +177 -0
  141. data/lib/trinsic_api/models/iso180135_aamva_namespace_output.rb +438 -0
  142. data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → iso180135_aamva_weight_range.rb} +37 -33
  143. data/lib/trinsic_api/models/iso180135_driving_privilege.rb +201 -0
  144. data/lib/trinsic_api/models/iso180135_driving_privilege_code.rb +188 -0
  145. data/lib/trinsic_api/models/iso180135_mobile_drivers_license_credential.rb +161 -0
  146. data/lib/trinsic_api/models/iso180135_standard_namespace_output.rb +528 -0
  147. data/lib/trinsic_api/models/itsme_address.rb +204 -0
  148. data/lib/trinsic_api/models/itsme_provider_output.rb +104 -5
  149. data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +192 -0
  150. data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +192 -0
  151. data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +192 -0
  152. data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +215 -0
  153. data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +192 -0
  154. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +8 -8
  155. data/lib/trinsic_api/models/mexico_curp_provider_output.rb +126 -5
  156. data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +1 -1
  157. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +1 -1
  158. data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +192 -0
  159. data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +192 -0
  160. data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +1 -1
  161. data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +192 -0
  162. data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +192 -0
  163. data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +226 -0
  164. data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +192 -0
  165. data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +226 -0
  166. data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +8 -8
  167. data/lib/trinsic_api/models/provider_input.rb +1 -34
  168. data/lib/trinsic_api/models/provider_output.rb +203 -16
  169. data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +12 -1
  170. data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +1 -1
  171. data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +377 -0
  172. data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +192 -0
  173. data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +192 -0
  174. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +6 -17
  175. data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +192 -0
  176. data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +226 -0
  177. data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +192 -0
  178. data/lib/trinsic_api/models/uae_pass_provider_output.rb +394 -0
  179. data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +192 -0
  180. data/lib/trinsic_api/models/uganda_nid_match2_input.rb +1 -1
  181. data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +192 -0
  182. data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +220 -0
  183. data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +192 -0
  184. data/lib/trinsic_api/models/verimi_address_output.rb +204 -0
  185. data/lib/trinsic_api/models/verimi_provider_output.rb +425 -0
  186. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +8 -8
  187. data/lib/trinsic_api/models/yoti_provider_output.rb +8 -8
  188. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +1 -1
  189. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +334 -0
  190. data/lib/trinsic_api/version.rb +1 -1
  191. data/lib/trinsic_api.rb +73 -3
  192. data/spec/models/age_over_output_spec.rb +42 -0
  193. data/spec/models/apple_wallet_digital_id_birth_date_spec.rb +42 -0
  194. data/spec/models/apple_wallet_digital_id_credential_spec.rb +144 -0
  195. data/spec/models/apple_wallet_provider_output_spec.rb +12 -0
  196. data/spec/models/brazil_cnh_facial_biometry_output_spec.rb +54 -0
  197. data/spec/models/brazil_cnh_match_field_date_only_spec.rb +42 -0
  198. data/spec/models/brazil_cnh_match_field_string_spec.rb +42 -0
  199. data/spec/models/brazil_cnh_provider_output_spec.rb +126 -0
  200. data/spec/models/czech_bank_id_address_spec.rb +90 -0
  201. data/spec/models/czech_bank_id_card_spec.rb +72 -0
  202. data/spec/models/czech_bank_id_provider_output_spec.rb +216 -0
  203. data/spec/models/czech_bank_id_title_spec.rb +42 -0
  204. data/spec/models/{kenya_nid_biometric2_input_spec.rb → czech_bank_id_verification_spec.rb} +9 -9
  205. data/spec/models/diia_issuer_output_spec.rb +66 -0
  206. data/spec/models/diia_provider_output_spec.rb +42 -0
  207. data/spec/models/diia_subject_output_spec.rb +60 -0
  208. data/spec/models/{south_africa_nid_biometric2_input_spec.rb → eudi_age_verification_credential_spec.rb} +9 -9
  209. data/spec/models/eudi_pid_credential_spec.rb +192 -0
  210. data/spec/models/france_identite_provider_output_spec.rb +12 -0
  211. data/spec/models/google_wallet_id_pass_credential_spec.rb +102 -0
  212. data/spec/models/google_wallet_provider_output_spec.rb +12 -0
  213. data/spec/models/idemia_preview_provider_address_spec.rb +78 -0
  214. data/spec/models/idemia_preview_provider_output_spec.rb +210 -0
  215. data/spec/models/india_digilocker_aadhaar_match_date_of_birth_field_spec.rb +42 -0
  216. data/spec/models/india_digilocker_aadhaar_match_full_name_field_spec.rb +42 -0
  217. data/spec/models/india_digilocker_aadhaar_match_provider_output_spec.rb +42 -0
  218. data/spec/models/indonesia_dukcapil_match_date_of_birth_field_spec.rb +42 -0
  219. data/spec/models/indonesia_dukcapil_match_full_name_field_spec.rb +42 -0
  220. data/spec/models/indonesia_dukcapil_match_national_id_number_field_spec.rb +42 -0
  221. data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +96 -0
  222. data/spec/models/indonesia_nik_match_field_spec.rb +42 -0
  223. data/spec/models/indonesia_nik_match_spec.rb +84 -0
  224. data/spec/models/interac_address_spec.rb +60 -0
  225. data/spec/models/interac_provider_output_spec.rb +84 -0
  226. data/spec/models/iso180132_biometric_data_block_product_spec.rb +42 -0
  227. data/spec/models/iso180132_biometric_group_template_spec.rb +36 -0
  228. data/spec/models/iso180132_biometric_template_header_spec.rb +90 -0
  229. data/spec/models/iso180132_biometric_template_spec.rb +54 -0
  230. data/spec/models/iso180132_biometric_validity_period_spec.rb +42 -0
  231. data/spec/models/iso180135_aamva_domestic_driving_privilege_spec.rb +48 -0
  232. data/spec/models/iso180135_aamva_domestic_vehicle_class_spec.rb +54 -0
  233. data/spec/models/iso180135_aamva_domestic_vehicle_endorsement_spec.rb +42 -0
  234. data/spec/models/iso180135_aamva_domestic_vehicle_restriction_spec.rb +42 -0
  235. data/spec/models/iso180135_aamva_namespace_output_spec.rb +192 -0
  236. data/spec/models/iso180135_aamva_weight_range_spec.rb +42 -0
  237. data/spec/models/{nigeria_nin_biometric2_input_spec.rb → iso180135_driving_privilege_code_spec.rb} +9 -9
  238. data/spec/models/iso180135_driving_privilege_spec.rb +54 -0
  239. data/spec/models/iso180135_mobile_drivers_license_credential_spec.rb +42 -0
  240. data/spec/models/iso180135_standard_namespace_output_spec.rb +240 -0
  241. data/spec/models/itsme_address_spec.rb +66 -0
  242. data/spec/models/itsme_provider_output_spec.rb +54 -0
  243. data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +42 -0
  244. data/spec/models/kenya_nid_match2_full_name_field_spec.rb +42 -0
  245. data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +42 -0
  246. data/spec/models/kenya_nid_match2_provider_output_spec.rb +54 -0
  247. data/spec/models/kenya_nid_match2_sex_field_spec.rb +42 -0
  248. data/spec/models/lloyds_smart_id_provider_output_spec.rb +1 -1
  249. data/spec/models/mexico_curp_provider_output_spec.rb +66 -0
  250. data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +42 -0
  251. data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +42 -0
  252. data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +42 -0
  253. data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +42 -0
  254. data/spec/models/nigeria_nin_match2_provider_output_spec.rb +60 -0
  255. data/spec/models/nigeria_nin_match2_sex_field_spec.rb +42 -0
  256. data/spec/models/philippines_philsys_match_provider_output_spec.rb +60 -0
  257. data/spec/models/post_office_easy_id_provider_output_spec.rb +1 -1
  258. data/spec/models/provider_input_spec.rb +0 -18
  259. data/spec/models/provider_output_spec.rb +108 -6
  260. data/spec/models/samsung_wallet_provider_output_spec.rb +6 -0
  261. data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +90 -0
  262. data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +42 -0
  263. data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +42 -0
  264. data/spec/models/south_africa_nid_match2_input_spec.rb +0 -6
  265. data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +42 -0
  266. data/spec/models/south_africa_nid_match2_provider_output_spec.rb +60 -0
  267. data/spec/models/south_africa_nid_match2_sex_field_spec.rb +42 -0
  268. data/spec/models/uae_pass_provider_output_spec.rb +168 -0
  269. data/spec/models/uganda_nid_match2_date_of_birth_field_spec.rb +42 -0
  270. data/spec/models/uganda_nid_match2_national_id_number_field_spec.rb +42 -0
  271. data/spec/models/uganda_nid_match2_provider_output_spec.rb +48 -0
  272. data/spec/models/uganda_nid_match2_secondary_id_number_field_spec.rb +42 -0
  273. data/spec/models/verimi_address_output_spec.rb +66 -0
  274. data/spec/models/verimi_provider_output_spec.rb +186 -0
  275. data/spec/models/yoti_deeplink_provider_output_spec.rb +1 -1
  276. data/spec/models/yoti_provider_output_spec.rb +1 -1
  277. data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +84 -0
  278. metadata +466 -186
  279. data/docs/KenyaNidBiometric2Input.md +0 -22
  280. data/docs/NigeriaNinBiometric2Input.md +0 -22
  281. data/docs/SouthAfricaNidBiometric2Input.md +0 -22
@@ -0,0 +1,315 @@
1
+ =begin
2
+ #Trinsic API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ # Exposed properties for the `brazil-digital-cnh` Provider which do not directly map to the normalized IdentityData model.
18
+ class BrazilCnhProviderOutput < ApiModelBase
19
+ # Full name decoded from the CNH QR Code and whether it matched the government database.
20
+ attr_accessor :full_name
21
+
22
+ # Similarity score for the decoded full name from the CNH QR Code. Ranges from 0.0 to 1.0, where 1.0 is an exact match.
23
+ attr_accessor :full_name_similarity
24
+
25
+ # Source identity document number/reference for the CNH record, decoded from the CNH QR Code.
26
+ attr_accessor :origin_document
27
+
28
+ # Date of birth decoded from the CNH QR Code and whether it matched the government database.
29
+ attr_accessor :date_of_birth
30
+
31
+ # Mother's full name decoded from the CNH QR Code.
32
+ attr_accessor :mother_full_name
33
+
34
+ # Father's full name decoded from the CNH QR Code.
35
+ attr_accessor :father_full_name
36
+
37
+ # Driver license category decoded from the CNH QR Code. Known values: - A: Two- or three-wheeled motor vehicles, with or without a sidecar. - B: Motor vehicles outside category A up to 3,500 kg, with capacity for up to eight passengers besides the driver, and without articulation or trailer. - C: Category B vehicles and rigid cargo vehicles above 3,500 kg. - D: Category C vehicles and passenger vehicles with capacity above eight passengers besides the driver. - E: Category D vehicles, trailers, semi-trailers, and articulated buses.
38
+ attr_accessor :category
39
+
40
+ # National Registry (Registro Nacional de Habilitacao) number decoded from the CNH QR Code and whether it matched the government database. Is an 11-character ID with the format XXXXXXXXX@@: - XXXXXXXXX: Base characters. The value is unique to the driver for their lifetime. - @@: Security check digits
41
+ attr_accessor :registration_number
42
+
43
+ # Whether the National Registry number satisfies the CNH modulo-11 check digit routine.
44
+ attr_accessor :registration_number_check_digits_valid
45
+
46
+ # Date when the driver was first licensed, decoded from the CNH QR Code.
47
+ attr_accessor :first_issue_date
48
+
49
+ # CNH observations decoded from the QR Code. May include EAR for paid driving activity and one or more restriction codes: - A: Corrective lenses required. - B: Hearing prosthesis required. - C: Left-side accelerator required. - D: Automatic transmission vehicle required. - E: Steering-wheel grip, handle, or knob required. - F: Power steering vehicle required. - G: Manual clutch, automated clutch, or automatic transmission vehicle required. - H: Hand accelerator and brake required. - I: Dashboard control adaptations to the steering wheel required. - J: Dashboard control adaptations for lower limbs or other body parts required. - K: Gear-shift lever extension and/or fixed height/depth compensation cushions required. - L: Pedal extensions and floor elevation and/or fixed height/depth compensation cushions required. - M: Motorcycle with adapted gear-shift pedal required. - N: Motorcycle with adapted rear-brake pedal required. - O: Motorcycle with adapted front-brake handle required. - P: Motorcycle with adapted clutch handle required. - Q: Motorcycle with sidecar or tricycle required. - R: Scooter with sidecar or tricycle required. - S: Motorcycle with automated gear shifting required. - T: Driving on highways and high-speed roads prohibited. - U: Driving after sunset prohibited. - V: Helmet with visor and unrestricted field of vision required. - X: Other restrictions.
50
+ attr_accessor :observations
51
+
52
+ # City where the CNH was issued, decoded from the QR Code.
53
+ attr_accessor :issue_city
54
+
55
+ # Brazilian state where the CNH was issued, decoded from the QR Code. Format is a two-letter Brazilian state abbreviation when present.
56
+ attr_accessor :issue_state
57
+
58
+ # Numeric security validation code decoded from the CNH QR Code. This is an 11-digit code generated from Departamento Estadual de Trânsito (State Traffic Department or DETRAN) owned data for each CNH and used to validate the document. The algorithm is proprietary, so no further information is available on this number.
59
+ attr_accessor :validation_number
60
+
61
+ # Registro Nacional de Condutores Habilitados (RENACH) form number decoded from the CNH QR Code. Is an 11-character ID with the format FFXXXXXXXX@: - FF: The issuing federation unit abbreviation. It identifies the state where the driver was licensed or last had record changes. - XXXXXXXXX: Serial number - @: Modulo-11 security check digit
62
+ attr_accessor :renach_number
63
+
64
+ # Facial biometric comparison result if submitted and available.
65
+ attr_accessor :facial_biometry
66
+
67
+ # Attribute mapping from ruby-style variable name to JSON key.
68
+ def self.attribute_map
69
+ {
70
+ :'full_name' => :'fullName',
71
+ :'full_name_similarity' => :'fullNameSimilarity',
72
+ :'origin_document' => :'originDocument',
73
+ :'date_of_birth' => :'dateOfBirth',
74
+ :'mother_full_name' => :'motherFullName',
75
+ :'father_full_name' => :'fatherFullName',
76
+ :'category' => :'category',
77
+ :'registration_number' => :'registrationNumber',
78
+ :'registration_number_check_digits_valid' => :'registrationNumberCheckDigitsValid',
79
+ :'first_issue_date' => :'firstIssueDate',
80
+ :'observations' => :'observations',
81
+ :'issue_city' => :'issueCity',
82
+ :'issue_state' => :'issueState',
83
+ :'validation_number' => :'validationNumber',
84
+ :'renach_number' => :'renachNumber',
85
+ :'facial_biometry' => :'facialBiometry'
86
+ }
87
+ end
88
+
89
+ # Returns attribute mapping this model knows about
90
+ def self.acceptable_attribute_map
91
+ attribute_map
92
+ end
93
+
94
+ # Returns all the JSON keys this model knows about
95
+ def self.acceptable_attributes
96
+ acceptable_attribute_map.values
97
+ end
98
+
99
+ # Attribute type mapping.
100
+ def self.openapi_types
101
+ {
102
+ :'full_name' => :'BrazilCnhMatchFieldString',
103
+ :'full_name_similarity' => :'Float',
104
+ :'origin_document' => :'String',
105
+ :'date_of_birth' => :'BrazilCnhMatchFieldDateOnly',
106
+ :'mother_full_name' => :'String',
107
+ :'father_full_name' => :'String',
108
+ :'category' => :'String',
109
+ :'registration_number' => :'BrazilCnhMatchFieldString',
110
+ :'registration_number_check_digits_valid' => :'Boolean',
111
+ :'first_issue_date' => :'Date',
112
+ :'observations' => :'String',
113
+ :'issue_city' => :'String',
114
+ :'issue_state' => :'String',
115
+ :'validation_number' => :'String',
116
+ :'renach_number' => :'String',
117
+ :'facial_biometry' => :'BrazilCnhFacialBiometryOutput'
118
+ }
119
+ end
120
+
121
+ # List of attributes with nullable: true
122
+ def self.openapi_nullable
123
+ Set.new([
124
+ :'full_name',
125
+ :'full_name_similarity',
126
+ :'origin_document',
127
+ :'date_of_birth',
128
+ :'mother_full_name',
129
+ :'father_full_name',
130
+ :'category',
131
+ :'registration_number',
132
+ :'registration_number_check_digits_valid',
133
+ :'first_issue_date',
134
+ :'observations',
135
+ :'issue_city',
136
+ :'issue_state',
137
+ :'validation_number',
138
+ :'renach_number',
139
+ :'facial_biometry'
140
+ ])
141
+ end
142
+
143
+ # Initializes the object
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ def initialize(attributes = {})
146
+ if (!attributes.is_a?(Hash))
147
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::BrazilCnhProviderOutput` initialize method"
148
+ end
149
+
150
+ # check to see if the attribute exists and convert string to symbol for hash key
151
+ acceptable_attribute_map = self.class.acceptable_attribute_map
152
+ attributes = attributes.each_with_object({}) { |(k, v), h|
153
+ if (!acceptable_attribute_map.key?(k.to_sym))
154
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCnhProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
155
+ end
156
+ h[k.to_sym] = v
157
+ }
158
+
159
+ if attributes.key?(:'full_name')
160
+ self.full_name = attributes[:'full_name']
161
+ end
162
+
163
+ if attributes.key?(:'full_name_similarity')
164
+ self.full_name_similarity = attributes[:'full_name_similarity']
165
+ end
166
+
167
+ if attributes.key?(:'origin_document')
168
+ self.origin_document = attributes[:'origin_document']
169
+ end
170
+
171
+ if attributes.key?(:'date_of_birth')
172
+ self.date_of_birth = attributes[:'date_of_birth']
173
+ end
174
+
175
+ if attributes.key?(:'mother_full_name')
176
+ self.mother_full_name = attributes[:'mother_full_name']
177
+ end
178
+
179
+ if attributes.key?(:'father_full_name')
180
+ self.father_full_name = attributes[:'father_full_name']
181
+ end
182
+
183
+ if attributes.key?(:'category')
184
+ self.category = attributes[:'category']
185
+ end
186
+
187
+ if attributes.key?(:'registration_number')
188
+ self.registration_number = attributes[:'registration_number']
189
+ end
190
+
191
+ if attributes.key?(:'registration_number_check_digits_valid')
192
+ self.registration_number_check_digits_valid = attributes[:'registration_number_check_digits_valid']
193
+ end
194
+
195
+ if attributes.key?(:'first_issue_date')
196
+ self.first_issue_date = attributes[:'first_issue_date']
197
+ end
198
+
199
+ if attributes.key?(:'observations')
200
+ self.observations = attributes[:'observations']
201
+ end
202
+
203
+ if attributes.key?(:'issue_city')
204
+ self.issue_city = attributes[:'issue_city']
205
+ end
206
+
207
+ if attributes.key?(:'issue_state')
208
+ self.issue_state = attributes[:'issue_state']
209
+ end
210
+
211
+ if attributes.key?(:'validation_number')
212
+ self.validation_number = attributes[:'validation_number']
213
+ end
214
+
215
+ if attributes.key?(:'renach_number')
216
+ self.renach_number = attributes[:'renach_number']
217
+ end
218
+
219
+ if attributes.key?(:'facial_biometry')
220
+ self.facial_biometry = attributes[:'facial_biometry']
221
+ end
222
+ end
223
+
224
+ # Show invalid properties with the reasons. Usually used together with valid?
225
+ # @return Array for valid properties with the reasons
226
+ def list_invalid_properties
227
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
228
+ invalid_properties = Array.new
229
+ invalid_properties
230
+ end
231
+
232
+ # Check to see if the all the properties in the model are valid
233
+ # @return true if the model is valid
234
+ def valid?
235
+ warn '[DEPRECATED] the `valid?` method is obsolete'
236
+ true
237
+ end
238
+
239
+ # Checks equality by comparing each attribute.
240
+ # @param [Object] Object to be compared
241
+ def ==(o)
242
+ return true if self.equal?(o)
243
+ self.class == o.class &&
244
+ full_name == o.full_name &&
245
+ full_name_similarity == o.full_name_similarity &&
246
+ origin_document == o.origin_document &&
247
+ date_of_birth == o.date_of_birth &&
248
+ mother_full_name == o.mother_full_name &&
249
+ father_full_name == o.father_full_name &&
250
+ category == o.category &&
251
+ registration_number == o.registration_number &&
252
+ registration_number_check_digits_valid == o.registration_number_check_digits_valid &&
253
+ first_issue_date == o.first_issue_date &&
254
+ observations == o.observations &&
255
+ issue_city == o.issue_city &&
256
+ issue_state == o.issue_state &&
257
+ validation_number == o.validation_number &&
258
+ renach_number == o.renach_number &&
259
+ facial_biometry == o.facial_biometry
260
+ end
261
+
262
+ # @see the `==` method
263
+ # @param [Object] Object to be compared
264
+ def eql?(o)
265
+ self == o
266
+ end
267
+
268
+ # Calculates hash code according to all attributes.
269
+ # @return [Integer] Hash code
270
+ def hash
271
+ [full_name, full_name_similarity, origin_document, date_of_birth, mother_full_name, father_full_name, category, registration_number, registration_number_check_digits_valid, first_issue_date, observations, issue_city, issue_state, validation_number, renach_number, facial_biometry].hash
272
+ end
273
+
274
+ # Builds the object from hash
275
+ # @param [Hash] attributes Model attributes in the form of hash
276
+ # @return [Object] Returns the model itself
277
+ def self.build_from_hash(attributes)
278
+ return nil unless attributes.is_a?(Hash)
279
+ attributes = attributes.transform_keys(&:to_sym)
280
+ transformed_hash = {}
281
+ openapi_types.each_pair do |key, type|
282
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
283
+ transformed_hash["#{key}"] = nil
284
+ elsif type =~ /\AArray<(.*)>/i
285
+ # check to ensure the input is an array given that the attribute
286
+ # is documented as an array but the input is not
287
+ if attributes[attribute_map[key]].is_a?(Array)
288
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
289
+ end
290
+ elsif !attributes[attribute_map[key]].nil?
291
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
292
+ end
293
+ end
294
+ new(transformed_hash)
295
+ end
296
+
297
+ # Returns the object in the form of hash
298
+ # @return [Hash] Returns the object in the form of hash
299
+ def to_hash
300
+ hash = {}
301
+ self.class.attribute_map.each_pair do |attr, param|
302
+ value = self.send(attr)
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
308
+ hash[param] = _to_hash(value)
309
+ end
310
+ hash
311
+ end
312
+
313
+ end
314
+
315
+ end
@@ -30,7 +30,7 @@ module TrinsicApi
30
30
  # Whether the session should fall back to a Trinsic-hosted UI in certain instances. Specifically, fallback will occur if any of the following are true: - You attempted to launch a provider which requires a capability you did not express support for - In this case, Trinsic's hosted UI will perform the necessary capability - You attempted to launch a provider which requires input, and the input was either not provided or incomplete - In this case, Trinsic's hosted UI will collect the necessary input from the user If fallback occurs, the session's NextStep will always be LaunchBrowser, and the CollectionMethod will always be CaptureRedirect. If this field is set to `true`, you must also: 1. Set the `RedirectUrl` field to a non-empty value 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
31
31
  attr_accessor :fallback_to_hosted_ui
32
32
 
33
- # Preferences for languages to show first if the session falls back to the Trinsic-hosted UI. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English. This only will be used if the session falls back to the Trinsic-hosted UI.
33
+ # Preferences for languages to show first in supported provider launch flows and, if the session falls back, in the Trinsic-hosted UI. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
34
34
  attr_accessor :browser_languages
35
35
 
36
36
  # Provider-specific input for those providers which require it.
@@ -24,7 +24,7 @@ module TrinsicApi
24
24
  # The Redirect URL to which the user should be sent after the session is complete.
25
25
  attr_accessor :redirect_url
26
26
 
27
- # Preferences for languages to show first in the Hosted UI. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
27
+ # Preferences for languages to show first in the Hosted UI and supported provider launch flows. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
28
28
  attr_accessor :browser_languages
29
29
 
30
30
  # Provider-specific input for those providers which require it. <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation, and will instead always redirect the user to a hosted interface to collect input. If you need to collect input from the user yourself, please use the Create Direct Session endpoint instead.
@@ -0,0 +1,296 @@
1
+ =begin
2
+ #Trinsic API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class CzechBankIdAddress < ApiModelBase
18
+ # The address type. Possible values are: - PERMANENT_RESIDENCE - SECONDARY_RESIDENCE - UNKNOWN
19
+ attr_accessor :type
20
+
21
+ # The street name. This is usually present, but unused for small villages.
22
+ attr_accessor :street
23
+
24
+ # The address land registry number. This is usually present, but unused for small houses.
25
+ attr_accessor :building_apartment
26
+
27
+ # The additional address house number. This is usually present, but unused for small villages.
28
+ attr_accessor :street_number
29
+
30
+ # The house evidence number. This is rarely used in suburbs. An evidence number is used for addresses that are residential, temporary or non-residential buildings, e.g. cabins, garages etc.
31
+ attr_accessor :evidence_number
32
+
33
+ # The city name.
34
+ attr_accessor :city
35
+
36
+ # The city area name. This is usually present.
37
+ attr_accessor :city_area
38
+
39
+ # The zip of the address.
40
+ attr_accessor :zipcode
41
+
42
+ # The country code in ISO 3166-1 alpha-2 format.
43
+ attr_accessor :country
44
+
45
+ # The address identifier in the Czech RUIAN address register. RUIAN is the Czech Register of Territorial Identification, Addresses, and Real Estate. This value identifies the address record in that register and can be used to reconcile the address against Czech government address data.
46
+ attr_accessor :ruian_reference
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'type' => :'type',
52
+ :'street' => :'street',
53
+ :'building_apartment' => :'buildingApartment',
54
+ :'street_number' => :'streetNumber',
55
+ :'evidence_number' => :'evidenceNumber',
56
+ :'city' => :'city',
57
+ :'city_area' => :'cityArea',
58
+ :'zipcode' => :'zipcode',
59
+ :'country' => :'country',
60
+ :'ruian_reference' => :'ruianReference'
61
+ }
62
+ end
63
+
64
+ # Returns attribute mapping this model knows about
65
+ def self.acceptable_attribute_map
66
+ attribute_map
67
+ end
68
+
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ acceptable_attribute_map.values
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.openapi_types
76
+ {
77
+ :'type' => :'String',
78
+ :'street' => :'String',
79
+ :'building_apartment' => :'String',
80
+ :'street_number' => :'String',
81
+ :'evidence_number' => :'String',
82
+ :'city' => :'String',
83
+ :'city_area' => :'String',
84
+ :'zipcode' => :'String',
85
+ :'country' => :'String',
86
+ :'ruian_reference' => :'String'
87
+ }
88
+ end
89
+
90
+ # List of attributes with nullable: true
91
+ def self.openapi_nullable
92
+ Set.new([
93
+ :'type',
94
+ :'street',
95
+ :'building_apartment',
96
+ :'street_number',
97
+ :'evidence_number',
98
+ :'city_area',
99
+ :'ruian_reference'
100
+ ])
101
+ end
102
+
103
+ # Initializes the object
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ def initialize(attributes = {})
106
+ if (!attributes.is_a?(Hash))
107
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdAddress` initialize method"
108
+ end
109
+
110
+ # check to see if the attribute exists and convert string to symbol for hash key
111
+ acceptable_attribute_map = self.class.acceptable_attribute_map
112
+ attributes = attributes.each_with_object({}) { |(k, v), h|
113
+ if (!acceptable_attribute_map.key?(k.to_sym))
114
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
115
+ end
116
+ h[k.to_sym] = v
117
+ }
118
+
119
+ if attributes.key?(:'type')
120
+ self.type = attributes[:'type']
121
+ end
122
+
123
+ if attributes.key?(:'street')
124
+ self.street = attributes[:'street']
125
+ end
126
+
127
+ if attributes.key?(:'building_apartment')
128
+ self.building_apartment = attributes[:'building_apartment']
129
+ end
130
+
131
+ if attributes.key?(:'street_number')
132
+ self.street_number = attributes[:'street_number']
133
+ end
134
+
135
+ if attributes.key?(:'evidence_number')
136
+ self.evidence_number = attributes[:'evidence_number']
137
+ end
138
+
139
+ if attributes.key?(:'city')
140
+ self.city = attributes[:'city']
141
+ else
142
+ self.city = nil
143
+ end
144
+
145
+ if attributes.key?(:'city_area')
146
+ self.city_area = attributes[:'city_area']
147
+ end
148
+
149
+ if attributes.key?(:'zipcode')
150
+ self.zipcode = attributes[:'zipcode']
151
+ else
152
+ self.zipcode = nil
153
+ end
154
+
155
+ if attributes.key?(:'country')
156
+ self.country = attributes[:'country']
157
+ else
158
+ self.country = nil
159
+ end
160
+
161
+ if attributes.key?(:'ruian_reference')
162
+ self.ruian_reference = attributes[:'ruian_reference']
163
+ end
164
+ end
165
+
166
+ # Show invalid properties with the reasons. Usually used together with valid?
167
+ # @return Array for valid properties with the reasons
168
+ def list_invalid_properties
169
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
170
+ invalid_properties = Array.new
171
+ if @city.nil?
172
+ invalid_properties.push('invalid value for "city", city cannot be nil.')
173
+ end
174
+
175
+ if @zipcode.nil?
176
+ invalid_properties.push('invalid value for "zipcode", zipcode cannot be nil.')
177
+ end
178
+
179
+ if @country.nil?
180
+ invalid_properties.push('invalid value for "country", country cannot be nil.')
181
+ end
182
+
183
+ invalid_properties
184
+ end
185
+
186
+ # Check to see if the all the properties in the model are valid
187
+ # @return true if the model is valid
188
+ def valid?
189
+ warn '[DEPRECATED] the `valid?` method is obsolete'
190
+ return false if @city.nil?
191
+ return false if @zipcode.nil?
192
+ return false if @country.nil?
193
+ true
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] city Value to be assigned
198
+ def city=(city)
199
+ if city.nil?
200
+ fail ArgumentError, 'city cannot be nil'
201
+ end
202
+
203
+ @city = city
204
+ end
205
+
206
+ # Custom attribute writer method with validation
207
+ # @param [Object] zipcode Value to be assigned
208
+ def zipcode=(zipcode)
209
+ if zipcode.nil?
210
+ fail ArgumentError, 'zipcode cannot be nil'
211
+ end
212
+
213
+ @zipcode = zipcode
214
+ end
215
+
216
+ # Custom attribute writer method with validation
217
+ # @param [Object] country Value to be assigned
218
+ def country=(country)
219
+ if country.nil?
220
+ fail ArgumentError, 'country cannot be nil'
221
+ end
222
+
223
+ @country = country
224
+ end
225
+
226
+ # Checks equality by comparing each attribute.
227
+ # @param [Object] Object to be compared
228
+ def ==(o)
229
+ return true if self.equal?(o)
230
+ self.class == o.class &&
231
+ type == o.type &&
232
+ street == o.street &&
233
+ building_apartment == o.building_apartment &&
234
+ street_number == o.street_number &&
235
+ evidence_number == o.evidence_number &&
236
+ city == o.city &&
237
+ city_area == o.city_area &&
238
+ zipcode == o.zipcode &&
239
+ country == o.country &&
240
+ ruian_reference == o.ruian_reference
241
+ end
242
+
243
+ # @see the `==` method
244
+ # @param [Object] Object to be compared
245
+ def eql?(o)
246
+ self == o
247
+ end
248
+
249
+ # Calculates hash code according to all attributes.
250
+ # @return [Integer] Hash code
251
+ def hash
252
+ [type, street, building_apartment, street_number, evidence_number, city, city_area, zipcode, country, ruian_reference].hash
253
+ end
254
+
255
+ # Builds the object from hash
256
+ # @param [Hash] attributes Model attributes in the form of hash
257
+ # @return [Object] Returns the model itself
258
+ def self.build_from_hash(attributes)
259
+ return nil unless attributes.is_a?(Hash)
260
+ attributes = attributes.transform_keys(&:to_sym)
261
+ transformed_hash = {}
262
+ openapi_types.each_pair do |key, type|
263
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
264
+ transformed_hash["#{key}"] = nil
265
+ elsif type =~ /\AArray<(.*)>/i
266
+ # check to ensure the input is an array given that the attribute
267
+ # is documented as an array but the input is not
268
+ if attributes[attribute_map[key]].is_a?(Array)
269
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
270
+ end
271
+ elsif !attributes[attribute_map[key]].nil?
272
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
273
+ end
274
+ end
275
+ new(transformed_hash)
276
+ end
277
+
278
+ # Returns the object in the form of hash
279
+ # @return [Hash] Returns the object in the form of hash
280
+ def to_hash
281
+ hash = {}
282
+ self.class.attribute_map.each_pair do |attr, param|
283
+ value = self.send(attr)
284
+ if value.nil?
285
+ is_nullable = self.class.openapi_nullable.include?(attr)
286
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
287
+ end
288
+
289
+ hash[param] = _to_hash(value)
290
+ end
291
+ hash
292
+ end
293
+
294
+ end
295
+
296
+ end