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,504 @@
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 `czech-bank-id` Provider which do not directly map to the normalized IdentityData model.
18
+ class CzechBankIdProviderOutput < ApiModelBase
19
+ # The subject identifier for the verified individual.
20
+ attr_accessor :subject_identifier
21
+
22
+ # The individual's full name.
23
+ attr_accessor :full_name
24
+
25
+ # The individual's given or first name.
26
+ attr_accessor :given_name
27
+
28
+ # The individual's family or last name.
29
+ attr_accessor :family_name
30
+
31
+ # The individual's middle name.
32
+ attr_accessor :middle_name
33
+
34
+ # Nickname used by a physical person A casual name, not necessarily the legal given name.
35
+ attr_accessor :nickname
36
+
37
+ # The individual's preferred username. The user has chosen this as the preferred name for logins.
38
+ attr_accessor :preferred_username
39
+
40
+ # The individual's gender. Possible values: - Male - Female - Other Only returned for Identify verifications.
41
+ attr_accessor :gender
42
+
43
+ # The individual's date of birth. This is a string because the value may have reduced precision, such as only a year.
44
+ attr_accessor :date_of_birth
45
+
46
+ # The individual's Czech birth number. This value is written without the traditional forward slash. Czech birth numbers are Czech public-authority identifiers administered through the Ministry of Interior's birth-number register. The Ministry can assign one to Czech citizens and to foreign nationals with temporary or permanent residence in the Czech Republic. For foreign nationals, this is still a Czech birth number in the Czech format, not an identity number from another country. The common current format is YYXXDDSSSC: - YY: Two digit birth year - XX: Encoded birth month, see below for encoding logic - DD: Birth day - SSS: Sequence number - C: Modulo-11 checksum digit. Not present for people born before 1954. The encoded month is MM for men, MM + 50 for women, and can be MM + 20 for men or MM + 70 for women when additional number ranges are needed. Older numbers for people born before 1954 can use YYXXDDSSS and do not use the modulo-11 checksum. Only returned for Identify verifications.
47
+ attr_accessor :birth_number
48
+
49
+ # The individual's age.
50
+ attr_accessor :age
51
+
52
+ # Whether the individual is an adult. In the Czech Republic, legal majority (adulthood) is reached at 18 years old. Only returned for Identify Plus verifications.
53
+ attr_accessor :is_adult
54
+
55
+ # The individual's date of death, if available.
56
+ attr_accessor :date_of_death
57
+
58
+ # The individual's place of birth. Only returned for Identify Plus verifications.
59
+ attr_accessor :birth_place
60
+
61
+ # The individual's country of birth. Only returned for Identify Plus verifications.
62
+ attr_accessor :birth_country
63
+
64
+ # The individual's primary nationality. The value is an ISO 3166-1 alpha-2 country code. Only returned for Identify Plus verifications.
65
+ attr_accessor :primary_nationality
66
+
67
+ # The individual's nationalities.
68
+ attr_accessor :nationalities
69
+
70
+ # The individual's marital status. Possible values: - COHABITATION - MARRIED - DIVORCED - REGISTERED_PARTNERSHIP - REGISTERED_PARTNERSHIP_CANCELED - WIDOWED - SINGLE - PARTNERSHIP - PARTNERSHIP_CANCELED - SEPARATED - REGISTERED_PARTNERSHIP_WIDOWED - LAPSED_MARRIAGE - UNKNOWN Only returned for Identify Plus verifications.
71
+ attr_accessor :marital_status
72
+
73
+ # The individual's email address.
74
+ attr_accessor :email
75
+
76
+ # Whether the individual's email address has been verified.
77
+ attr_accessor :email_verified
78
+
79
+ # The individual's phone number. This value is normalized to E.164 format.
80
+ attr_accessor :phone_number
81
+
82
+ # Whether the individual's phone number has been verified.
83
+ attr_accessor :phone_number_verified
84
+
85
+ # Whether the individual is a politically exposed person. This follows Czech anti-money-laundering rules, indicating a person that is at risk for corruption, bribery or money laundering activities. Mandatory screening of these individuals is required for compliance. Typically set for people such as the Prime Minister, ministers, etc.
86
+ attr_accessor :is_politically_exposed_person
87
+
88
+ # Whether the individual is a person with limited legal capacity.
89
+ attr_accessor :limited_legal_capacity
90
+
91
+ # Metadata about how the identity information was verified for Anti Money Laundering scope. Only returned for Identify AML verifications.
92
+ attr_accessor :verification
93
+
94
+ # The individual's addresses. This can include permanent residence and contact addresses. Only returned for Identify verifications.
95
+ attr_accessor :addresses
96
+
97
+ # The individual's identity documents. This can include document type, country, number, issuer, and validity dates. Only returned for Identify Plus verifications.
98
+ attr_accessor :id_cards
99
+
100
+ # The UTC date and time when the identity data was last updated.
101
+ attr_accessor :updated_at
102
+
103
+ # The individual's time zone. This is represented as a zoneinfo/IANA Time Zone Database value.
104
+ attr_accessor :zone_info
105
+
106
+ # The individual's locale. This is represented as a BCP 47/RFC 5646 language tag. Some values may use an underscore separator, such as cs_CZ.
107
+ attr_accessor :locale
108
+
109
+ # The individual's title prefixes and suffixes. Only returned for Identify verifications.
110
+ attr_accessor :titles
111
+
112
+ # Attribute mapping from ruby-style variable name to JSON key.
113
+ def self.attribute_map
114
+ {
115
+ :'subject_identifier' => :'subjectIdentifier',
116
+ :'full_name' => :'fullName',
117
+ :'given_name' => :'givenName',
118
+ :'family_name' => :'familyName',
119
+ :'middle_name' => :'middleName',
120
+ :'nickname' => :'nickname',
121
+ :'preferred_username' => :'preferredUsername',
122
+ :'gender' => :'gender',
123
+ :'date_of_birth' => :'dateOfBirth',
124
+ :'birth_number' => :'birthNumber',
125
+ :'age' => :'age',
126
+ :'is_adult' => :'isAdult',
127
+ :'date_of_death' => :'dateOfDeath',
128
+ :'birth_place' => :'birthPlace',
129
+ :'birth_country' => :'birthCountry',
130
+ :'primary_nationality' => :'primaryNationality',
131
+ :'nationalities' => :'nationalities',
132
+ :'marital_status' => :'maritalStatus',
133
+ :'email' => :'email',
134
+ :'email_verified' => :'emailVerified',
135
+ :'phone_number' => :'phoneNumber',
136
+ :'phone_number_verified' => :'phoneNumberVerified',
137
+ :'is_politically_exposed_person' => :'isPoliticallyExposedPerson',
138
+ :'limited_legal_capacity' => :'limitedLegalCapacity',
139
+ :'verification' => :'verification',
140
+ :'addresses' => :'addresses',
141
+ :'id_cards' => :'idCards',
142
+ :'updated_at' => :'updatedAt',
143
+ :'zone_info' => :'zoneInfo',
144
+ :'locale' => :'locale',
145
+ :'titles' => :'titles'
146
+ }
147
+ end
148
+
149
+ # Returns attribute mapping this model knows about
150
+ def self.acceptable_attribute_map
151
+ attribute_map
152
+ end
153
+
154
+ # Returns all the JSON keys this model knows about
155
+ def self.acceptable_attributes
156
+ acceptable_attribute_map.values
157
+ end
158
+
159
+ # Attribute type mapping.
160
+ def self.openapi_types
161
+ {
162
+ :'subject_identifier' => :'String',
163
+ :'full_name' => :'String',
164
+ :'given_name' => :'String',
165
+ :'family_name' => :'String',
166
+ :'middle_name' => :'String',
167
+ :'nickname' => :'String',
168
+ :'preferred_username' => :'String',
169
+ :'gender' => :'String',
170
+ :'date_of_birth' => :'String',
171
+ :'birth_number' => :'String',
172
+ :'age' => :'Integer',
173
+ :'is_adult' => :'Boolean',
174
+ :'date_of_death' => :'Date',
175
+ :'birth_place' => :'String',
176
+ :'birth_country' => :'String',
177
+ :'primary_nationality' => :'String',
178
+ :'nationalities' => :'Array<String>',
179
+ :'marital_status' => :'String',
180
+ :'email' => :'String',
181
+ :'email_verified' => :'Boolean',
182
+ :'phone_number' => :'String',
183
+ :'phone_number_verified' => :'Boolean',
184
+ :'is_politically_exposed_person' => :'Boolean',
185
+ :'limited_legal_capacity' => :'Boolean',
186
+ :'verification' => :'CzechBankIdVerification',
187
+ :'addresses' => :'Array<CzechBankIdAddress>',
188
+ :'id_cards' => :'Array<CzechBankIdCard>',
189
+ :'updated_at' => :'Time',
190
+ :'zone_info' => :'String',
191
+ :'locale' => :'String',
192
+ :'titles' => :'Array<CzechBankIdTitle>'
193
+ }
194
+ end
195
+
196
+ # List of attributes with nullable: true
197
+ def self.openapi_nullable
198
+ Set.new([
199
+ :'full_name',
200
+ :'given_name',
201
+ :'family_name',
202
+ :'middle_name',
203
+ :'nickname',
204
+ :'preferred_username',
205
+ :'gender',
206
+ :'date_of_birth',
207
+ :'birth_number',
208
+ :'age',
209
+ :'is_adult',
210
+ :'date_of_death',
211
+ :'birth_place',
212
+ :'birth_country',
213
+ :'primary_nationality',
214
+ :'nationalities',
215
+ :'marital_status',
216
+ :'email',
217
+ :'email_verified',
218
+ :'phone_number',
219
+ :'phone_number_verified',
220
+ :'is_politically_exposed_person',
221
+ :'limited_legal_capacity',
222
+ :'verification',
223
+ :'addresses',
224
+ :'id_cards',
225
+ :'updated_at',
226
+ :'zone_info',
227
+ :'locale',
228
+ :'titles'
229
+ ])
230
+ end
231
+
232
+ # Initializes the object
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ def initialize(attributes = {})
235
+ if (!attributes.is_a?(Hash))
236
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdProviderOutput` initialize method"
237
+ end
238
+
239
+ # check to see if the attribute exists and convert string to symbol for hash key
240
+ acceptable_attribute_map = self.class.acceptable_attribute_map
241
+ attributes = attributes.each_with_object({}) { |(k, v), h|
242
+ if (!acceptable_attribute_map.key?(k.to_sym))
243
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
244
+ end
245
+ h[k.to_sym] = v
246
+ }
247
+
248
+ if attributes.key?(:'subject_identifier')
249
+ self.subject_identifier = attributes[:'subject_identifier']
250
+ else
251
+ self.subject_identifier = nil
252
+ end
253
+
254
+ if attributes.key?(:'full_name')
255
+ self.full_name = attributes[:'full_name']
256
+ end
257
+
258
+ if attributes.key?(:'given_name')
259
+ self.given_name = attributes[:'given_name']
260
+ end
261
+
262
+ if attributes.key?(:'family_name')
263
+ self.family_name = attributes[:'family_name']
264
+ end
265
+
266
+ if attributes.key?(:'middle_name')
267
+ self.middle_name = attributes[:'middle_name']
268
+ end
269
+
270
+ if attributes.key?(:'nickname')
271
+ self.nickname = attributes[:'nickname']
272
+ end
273
+
274
+ if attributes.key?(:'preferred_username')
275
+ self.preferred_username = attributes[:'preferred_username']
276
+ end
277
+
278
+ if attributes.key?(:'gender')
279
+ self.gender = attributes[:'gender']
280
+ end
281
+
282
+ if attributes.key?(:'date_of_birth')
283
+ self.date_of_birth = attributes[:'date_of_birth']
284
+ end
285
+
286
+ if attributes.key?(:'birth_number')
287
+ self.birth_number = attributes[:'birth_number']
288
+ end
289
+
290
+ if attributes.key?(:'age')
291
+ self.age = attributes[:'age']
292
+ end
293
+
294
+ if attributes.key?(:'is_adult')
295
+ self.is_adult = attributes[:'is_adult']
296
+ end
297
+
298
+ if attributes.key?(:'date_of_death')
299
+ self.date_of_death = attributes[:'date_of_death']
300
+ end
301
+
302
+ if attributes.key?(:'birth_place')
303
+ self.birth_place = attributes[:'birth_place']
304
+ end
305
+
306
+ if attributes.key?(:'birth_country')
307
+ self.birth_country = attributes[:'birth_country']
308
+ end
309
+
310
+ if attributes.key?(:'primary_nationality')
311
+ self.primary_nationality = attributes[:'primary_nationality']
312
+ end
313
+
314
+ if attributes.key?(:'nationalities')
315
+ if (value = attributes[:'nationalities']).is_a?(Array)
316
+ self.nationalities = value
317
+ end
318
+ end
319
+
320
+ if attributes.key?(:'marital_status')
321
+ self.marital_status = attributes[:'marital_status']
322
+ end
323
+
324
+ if attributes.key?(:'email')
325
+ self.email = attributes[:'email']
326
+ end
327
+
328
+ if attributes.key?(:'email_verified')
329
+ self.email_verified = attributes[:'email_verified']
330
+ end
331
+
332
+ if attributes.key?(:'phone_number')
333
+ self.phone_number = attributes[:'phone_number']
334
+ end
335
+
336
+ if attributes.key?(:'phone_number_verified')
337
+ self.phone_number_verified = attributes[:'phone_number_verified']
338
+ end
339
+
340
+ if attributes.key?(:'is_politically_exposed_person')
341
+ self.is_politically_exposed_person = attributes[:'is_politically_exposed_person']
342
+ end
343
+
344
+ if attributes.key?(:'limited_legal_capacity')
345
+ self.limited_legal_capacity = attributes[:'limited_legal_capacity']
346
+ end
347
+
348
+ if attributes.key?(:'verification')
349
+ self.verification = attributes[:'verification']
350
+ end
351
+
352
+ if attributes.key?(:'addresses')
353
+ if (value = attributes[:'addresses']).is_a?(Array)
354
+ self.addresses = value
355
+ end
356
+ end
357
+
358
+ if attributes.key?(:'id_cards')
359
+ if (value = attributes[:'id_cards']).is_a?(Array)
360
+ self.id_cards = value
361
+ end
362
+ end
363
+
364
+ if attributes.key?(:'updated_at')
365
+ self.updated_at = attributes[:'updated_at']
366
+ end
367
+
368
+ if attributes.key?(:'zone_info')
369
+ self.zone_info = attributes[:'zone_info']
370
+ end
371
+
372
+ if attributes.key?(:'locale')
373
+ self.locale = attributes[:'locale']
374
+ end
375
+
376
+ if attributes.key?(:'titles')
377
+ if (value = attributes[:'titles']).is_a?(Array)
378
+ self.titles = value
379
+ end
380
+ end
381
+ end
382
+
383
+ # Show invalid properties with the reasons. Usually used together with valid?
384
+ # @return Array for valid properties with the reasons
385
+ def list_invalid_properties
386
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
387
+ invalid_properties = Array.new
388
+ if @subject_identifier.nil?
389
+ invalid_properties.push('invalid value for "subject_identifier", subject_identifier cannot be nil.')
390
+ end
391
+
392
+ invalid_properties
393
+ end
394
+
395
+ # Check to see if the all the properties in the model are valid
396
+ # @return true if the model is valid
397
+ def valid?
398
+ warn '[DEPRECATED] the `valid?` method is obsolete'
399
+ return false if @subject_identifier.nil?
400
+ true
401
+ end
402
+
403
+ # Custom attribute writer method with validation
404
+ # @param [Object] subject_identifier Value to be assigned
405
+ def subject_identifier=(subject_identifier)
406
+ if subject_identifier.nil?
407
+ fail ArgumentError, 'subject_identifier cannot be nil'
408
+ end
409
+
410
+ @subject_identifier = subject_identifier
411
+ end
412
+
413
+ # Checks equality by comparing each attribute.
414
+ # @param [Object] Object to be compared
415
+ def ==(o)
416
+ return true if self.equal?(o)
417
+ self.class == o.class &&
418
+ subject_identifier == o.subject_identifier &&
419
+ full_name == o.full_name &&
420
+ given_name == o.given_name &&
421
+ family_name == o.family_name &&
422
+ middle_name == o.middle_name &&
423
+ nickname == o.nickname &&
424
+ preferred_username == o.preferred_username &&
425
+ gender == o.gender &&
426
+ date_of_birth == o.date_of_birth &&
427
+ birth_number == o.birth_number &&
428
+ age == o.age &&
429
+ is_adult == o.is_adult &&
430
+ date_of_death == o.date_of_death &&
431
+ birth_place == o.birth_place &&
432
+ birth_country == o.birth_country &&
433
+ primary_nationality == o.primary_nationality &&
434
+ nationalities == o.nationalities &&
435
+ marital_status == o.marital_status &&
436
+ email == o.email &&
437
+ email_verified == o.email_verified &&
438
+ phone_number == o.phone_number &&
439
+ phone_number_verified == o.phone_number_verified &&
440
+ is_politically_exposed_person == o.is_politically_exposed_person &&
441
+ limited_legal_capacity == o.limited_legal_capacity &&
442
+ verification == o.verification &&
443
+ addresses == o.addresses &&
444
+ id_cards == o.id_cards &&
445
+ updated_at == o.updated_at &&
446
+ zone_info == o.zone_info &&
447
+ locale == o.locale &&
448
+ titles == o.titles
449
+ end
450
+
451
+ # @see the `==` method
452
+ # @param [Object] Object to be compared
453
+ def eql?(o)
454
+ self == o
455
+ end
456
+
457
+ # Calculates hash code according to all attributes.
458
+ # @return [Integer] Hash code
459
+ def hash
460
+ [subject_identifier, full_name, given_name, family_name, middle_name, nickname, preferred_username, gender, date_of_birth, birth_number, age, is_adult, date_of_death, birth_place, birth_country, primary_nationality, nationalities, marital_status, email, email_verified, phone_number, phone_number_verified, is_politically_exposed_person, limited_legal_capacity, verification, addresses, id_cards, updated_at, zone_info, locale, titles].hash
461
+ end
462
+
463
+ # Builds the object from hash
464
+ # @param [Hash] attributes Model attributes in the form of hash
465
+ # @return [Object] Returns the model itself
466
+ def self.build_from_hash(attributes)
467
+ return nil unless attributes.is_a?(Hash)
468
+ attributes = attributes.transform_keys(&:to_sym)
469
+ transformed_hash = {}
470
+ openapi_types.each_pair do |key, type|
471
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
472
+ transformed_hash["#{key}"] = nil
473
+ elsif type =~ /\AArray<(.*)>/i
474
+ # check to ensure the input is an array given that the attribute
475
+ # is documented as an array but the input is not
476
+ if attributes[attribute_map[key]].is_a?(Array)
477
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
478
+ end
479
+ elsif !attributes[attribute_map[key]].nil?
480
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
481
+ end
482
+ end
483
+ new(transformed_hash)
484
+ end
485
+
486
+ # Returns the object in the form of hash
487
+ # @return [Hash] Returns the object in the form of hash
488
+ def to_hash
489
+ hash = {}
490
+ self.class.attribute_map.each_pair do |attr, param|
491
+ value = self.send(attr)
492
+ if value.nil?
493
+ is_nullable = self.class.openapi_nullable.include?(attr)
494
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
495
+ end
496
+
497
+ hash[param] = _to_hash(value)
498
+ end
499
+ hash
500
+ end
501
+
502
+ end
503
+
504
+ end
@@ -0,0 +1,160 @@
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 CzechBankIdTitle < ApiModelBase
18
+ # The title prefix before the individual's name.
19
+ attr_accessor :title_prefix
20
+
21
+ # The title suffix after the individual's name.
22
+ attr_accessor :title_suffix
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'title_prefix' => :'titlePrefix',
28
+ :'title_suffix' => :'titleSuffix'
29
+ }
30
+ end
31
+
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ acceptable_attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'title_prefix' => :'String',
46
+ :'title_suffix' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ :'title_prefix',
54
+ :'title_suffix'
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CzechBankIdTitle` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CzechBankIdTitle`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'title_prefix')
75
+ self.title_prefix = attributes[:'title_prefix']
76
+ end
77
+
78
+ if attributes.key?(:'title_suffix')
79
+ self.title_suffix = attributes[:'title_suffix']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ warn '[DEPRECATED] the `valid?` method is obsolete'
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ title_prefix == o.title_prefix &&
104
+ title_suffix == o.title_suffix
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [title_prefix, title_suffix].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ attributes = attributes.transform_keys(&:to_sym)
125
+ transformed_hash = {}
126
+ openapi_types.each_pair do |key, type|
127
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = nil
129
+ elsif type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[attribute_map[key]].is_a?(Array)
133
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
134
+ end
135
+ elsif !attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
137
+ end
138
+ end
139
+ new(transformed_hash)
140
+ end
141
+
142
+ # Returns the object in the form of hash
143
+ # @return [Hash] Returns the object in the form of hash
144
+ def to_hash
145
+ hash = {}
146
+ self.class.attribute_map.each_pair do |attr, param|
147
+ value = self.send(attr)
148
+ if value.nil?
149
+ is_nullable = self.class.openapi_nullable.include?(attr)
150
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
151
+ end
152
+
153
+ hash[param] = _to_hash(value)
154
+ end
155
+ hash
156
+ end
157
+
158
+ end
159
+
160
+ end