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,404 @@
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 `indonesia-dukcapil-match` Provider which do not directly map to the normalized IdentityData model.
18
+ class IndonesiaDukcapilMatchProviderOutput < ApiModelBase
19
+ # NIK submitted for this Dukcapil match and the assessment result returned for that value.
20
+ attr_accessor :national_id_number
21
+
22
+ # Full name submitted for this Dukcapil match and the assessment result returned for that value.
23
+ attr_accessor :full_name
24
+
25
+ # Date of birth submitted for this Dukcapil match and the assessment result returned for that value.
26
+ attr_accessor :date_of_birth
27
+
28
+ # Two-digit Indonesian government administrative region code for the province, extracted from digits 1-2 of the submitted NIK number. Source system: Kode Wilayah Administrasi Pemerintahan, maintained by Indonesia's Ministry of Home Affairs. The first digit indicates the island group: 1-2 Sumatra, 3-4 Java, 5 Bali and Nusa Tenggara, 6 Kalimantan, 7 Sulawesi, 8 Maluku, and 9 Papua. The second digit follows the province creation order.
29
+ attr_accessor :province_code
30
+
31
+ # Four-digit Indonesian government administrative region code for the regency or city, extracted from digits 1-4 of the submitted NIK number. Source system: Kode Wilayah Administrasi Pemerintahan, maintained by Indonesia's Ministry of Home Affairs. Format: two-digit province code followed by a two-digit regency or city sequence; suffixes 01-69 identify regencies and suffixes 71-99 identify cities. The NIK stores this value without dot separators.
32
+ attr_accessor :regency_or_city_code
33
+
34
+ # Six-digit Indonesian government administrative region code for the district (kecamatan), extracted from digits 1-6 of the submitted NIK number. Source system: Kode Wilayah Administrasi Pemerintahan, maintained by Indonesia's Ministry of Home Affairs. Format: two-digit province code, two-digit regency or city code, and two-digit district sequence. The NIK stores this value without dot separators.
35
+ attr_accessor :district_code
36
+
37
+ # Sex extracted from the birth-day portion of the submitted NIK number. Known values: - Male: The encoded day value is 40 or lower. - Female: The encoded day value is greater than 40.
38
+ attr_accessor :sex_national_id_number
39
+
40
+ # Four-digit issuance serial number extracted from digits 13-16 of the submitted NIK number.
41
+ attr_accessor :serial_number
42
+
43
+ # The phone number submitted for this verification, if provided. Format: international E.164 phone number.
44
+ attr_accessor :phone_number
45
+
46
+ # The consent timestamp submitted for this verification.
47
+ attr_accessor :consent_given_at
48
+
49
+ # The email address submitted for this verification, if provided.
50
+ attr_accessor :email
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'national_id_number' => :'nationalIdNumber',
56
+ :'full_name' => :'fullName',
57
+ :'date_of_birth' => :'dateOfBirth',
58
+ :'province_code' => :'provinceCode',
59
+ :'regency_or_city_code' => :'regencyOrCityCode',
60
+ :'district_code' => :'districtCode',
61
+ :'sex_national_id_number' => :'sexNationalIdNumber',
62
+ :'serial_number' => :'serialNumber',
63
+ :'phone_number' => :'phoneNumber',
64
+ :'consent_given_at' => :'consentGivenAt',
65
+ :'email' => :'email'
66
+ }
67
+ end
68
+
69
+ # Returns attribute mapping this model knows about
70
+ def self.acceptable_attribute_map
71
+ attribute_map
72
+ end
73
+
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ acceptable_attribute_map.values
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.openapi_types
81
+ {
82
+ :'national_id_number' => :'IndonesiaDukcapilMatchNationalIdNumberField',
83
+ :'full_name' => :'IndonesiaDukcapilMatchFullNameField',
84
+ :'date_of_birth' => :'IndonesiaDukcapilMatchDateOfBirthField',
85
+ :'province_code' => :'String',
86
+ :'regency_or_city_code' => :'String',
87
+ :'district_code' => :'String',
88
+ :'sex_national_id_number' => :'String',
89
+ :'serial_number' => :'String',
90
+ :'phone_number' => :'String',
91
+ :'consent_given_at' => :'Time',
92
+ :'email' => :'String'
93
+ }
94
+ end
95
+
96
+ # List of attributes with nullable: true
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'phone_number',
100
+ :'email'
101
+ ])
102
+ end
103
+
104
+ # Initializes the object
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ def initialize(attributes = {})
107
+ if (!attributes.is_a?(Hash))
108
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndonesiaDukcapilMatchProviderOutput` initialize method"
109
+ end
110
+
111
+ # check to see if the attribute exists and convert string to symbol for hash key
112
+ acceptable_attribute_map = self.class.acceptable_attribute_map
113
+ attributes = attributes.each_with_object({}) { |(k, v), h|
114
+ if (!acceptable_attribute_map.key?(k.to_sym))
115
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndonesiaDukcapilMatchProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
116
+ end
117
+ h[k.to_sym] = v
118
+ }
119
+
120
+ if attributes.key?(:'national_id_number')
121
+ self.national_id_number = attributes[:'national_id_number']
122
+ else
123
+ self.national_id_number = nil
124
+ end
125
+
126
+ if attributes.key?(:'full_name')
127
+ self.full_name = attributes[:'full_name']
128
+ else
129
+ self.full_name = nil
130
+ end
131
+
132
+ if attributes.key?(:'date_of_birth')
133
+ self.date_of_birth = attributes[:'date_of_birth']
134
+ else
135
+ self.date_of_birth = nil
136
+ end
137
+
138
+ if attributes.key?(:'province_code')
139
+ self.province_code = attributes[:'province_code']
140
+ else
141
+ self.province_code = nil
142
+ end
143
+
144
+ if attributes.key?(:'regency_or_city_code')
145
+ self.regency_or_city_code = attributes[:'regency_or_city_code']
146
+ else
147
+ self.regency_or_city_code = nil
148
+ end
149
+
150
+ if attributes.key?(:'district_code')
151
+ self.district_code = attributes[:'district_code']
152
+ else
153
+ self.district_code = nil
154
+ end
155
+
156
+ if attributes.key?(:'sex_national_id_number')
157
+ self.sex_national_id_number = attributes[:'sex_national_id_number']
158
+ else
159
+ self.sex_national_id_number = nil
160
+ end
161
+
162
+ if attributes.key?(:'serial_number')
163
+ self.serial_number = attributes[:'serial_number']
164
+ else
165
+ self.serial_number = nil
166
+ end
167
+
168
+ if attributes.key?(:'phone_number')
169
+ self.phone_number = attributes[:'phone_number']
170
+ end
171
+
172
+ if attributes.key?(:'consent_given_at')
173
+ self.consent_given_at = attributes[:'consent_given_at']
174
+ else
175
+ self.consent_given_at = nil
176
+ end
177
+
178
+ if attributes.key?(:'email')
179
+ self.email = attributes[:'email']
180
+ end
181
+ end
182
+
183
+ # Show invalid properties with the reasons. Usually used together with valid?
184
+ # @return Array for valid properties with the reasons
185
+ def list_invalid_properties
186
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
187
+ invalid_properties = Array.new
188
+ if @national_id_number.nil?
189
+ invalid_properties.push('invalid value for "national_id_number", national_id_number cannot be nil.')
190
+ end
191
+
192
+ if @full_name.nil?
193
+ invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
194
+ end
195
+
196
+ if @date_of_birth.nil?
197
+ invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
198
+ end
199
+
200
+ if @province_code.nil?
201
+ invalid_properties.push('invalid value for "province_code", province_code cannot be nil.')
202
+ end
203
+
204
+ if @regency_or_city_code.nil?
205
+ invalid_properties.push('invalid value for "regency_or_city_code", regency_or_city_code cannot be nil.')
206
+ end
207
+
208
+ if @district_code.nil?
209
+ invalid_properties.push('invalid value for "district_code", district_code cannot be nil.')
210
+ end
211
+
212
+ if @sex_national_id_number.nil?
213
+ invalid_properties.push('invalid value for "sex_national_id_number", sex_national_id_number cannot be nil.')
214
+ end
215
+
216
+ if @serial_number.nil?
217
+ invalid_properties.push('invalid value for "serial_number", serial_number cannot be nil.')
218
+ end
219
+
220
+ if @consent_given_at.nil?
221
+ invalid_properties.push('invalid value for "consent_given_at", consent_given_at cannot be nil.')
222
+ end
223
+
224
+ invalid_properties
225
+ end
226
+
227
+ # Check to see if the all the properties in the model are valid
228
+ # @return true if the model is valid
229
+ def valid?
230
+ warn '[DEPRECATED] the `valid?` method is obsolete'
231
+ return false if @national_id_number.nil?
232
+ return false if @full_name.nil?
233
+ return false if @date_of_birth.nil?
234
+ return false if @province_code.nil?
235
+ return false if @regency_or_city_code.nil?
236
+ return false if @district_code.nil?
237
+ return false if @sex_national_id_number.nil?
238
+ return false if @serial_number.nil?
239
+ return false if @consent_given_at.nil?
240
+ true
241
+ end
242
+
243
+ # Custom attribute writer method with validation
244
+ # @param [Object] national_id_number Value to be assigned
245
+ def national_id_number=(national_id_number)
246
+ if national_id_number.nil?
247
+ fail ArgumentError, 'national_id_number cannot be nil'
248
+ end
249
+
250
+ @national_id_number = national_id_number
251
+ end
252
+
253
+ # Custom attribute writer method with validation
254
+ # @param [Object] full_name Value to be assigned
255
+ def full_name=(full_name)
256
+ if full_name.nil?
257
+ fail ArgumentError, 'full_name cannot be nil'
258
+ end
259
+
260
+ @full_name = full_name
261
+ end
262
+
263
+ # Custom attribute writer method with validation
264
+ # @param [Object] date_of_birth Value to be assigned
265
+ def date_of_birth=(date_of_birth)
266
+ if date_of_birth.nil?
267
+ fail ArgumentError, 'date_of_birth cannot be nil'
268
+ end
269
+
270
+ @date_of_birth = date_of_birth
271
+ end
272
+
273
+ # Custom attribute writer method with validation
274
+ # @param [Object] province_code Value to be assigned
275
+ def province_code=(province_code)
276
+ if province_code.nil?
277
+ fail ArgumentError, 'province_code cannot be nil'
278
+ end
279
+
280
+ @province_code = province_code
281
+ end
282
+
283
+ # Custom attribute writer method with validation
284
+ # @param [Object] regency_or_city_code Value to be assigned
285
+ def regency_or_city_code=(regency_or_city_code)
286
+ if regency_or_city_code.nil?
287
+ fail ArgumentError, 'regency_or_city_code cannot be nil'
288
+ end
289
+
290
+ @regency_or_city_code = regency_or_city_code
291
+ end
292
+
293
+ # Custom attribute writer method with validation
294
+ # @param [Object] district_code Value to be assigned
295
+ def district_code=(district_code)
296
+ if district_code.nil?
297
+ fail ArgumentError, 'district_code cannot be nil'
298
+ end
299
+
300
+ @district_code = district_code
301
+ end
302
+
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] sex_national_id_number Value to be assigned
305
+ def sex_national_id_number=(sex_national_id_number)
306
+ if sex_national_id_number.nil?
307
+ fail ArgumentError, 'sex_national_id_number cannot be nil'
308
+ end
309
+
310
+ @sex_national_id_number = sex_national_id_number
311
+ end
312
+
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] serial_number Value to be assigned
315
+ def serial_number=(serial_number)
316
+ if serial_number.nil?
317
+ fail ArgumentError, 'serial_number cannot be nil'
318
+ end
319
+
320
+ @serial_number = serial_number
321
+ end
322
+
323
+ # Custom attribute writer method with validation
324
+ # @param [Object] consent_given_at Value to be assigned
325
+ def consent_given_at=(consent_given_at)
326
+ if consent_given_at.nil?
327
+ fail ArgumentError, 'consent_given_at cannot be nil'
328
+ end
329
+
330
+ @consent_given_at = consent_given_at
331
+ end
332
+
333
+ # Checks equality by comparing each attribute.
334
+ # @param [Object] Object to be compared
335
+ def ==(o)
336
+ return true if self.equal?(o)
337
+ self.class == o.class &&
338
+ national_id_number == o.national_id_number &&
339
+ full_name == o.full_name &&
340
+ date_of_birth == o.date_of_birth &&
341
+ province_code == o.province_code &&
342
+ regency_or_city_code == o.regency_or_city_code &&
343
+ district_code == o.district_code &&
344
+ sex_national_id_number == o.sex_national_id_number &&
345
+ serial_number == o.serial_number &&
346
+ phone_number == o.phone_number &&
347
+ consent_given_at == o.consent_given_at &&
348
+ email == o.email
349
+ end
350
+
351
+ # @see the `==` method
352
+ # @param [Object] Object to be compared
353
+ def eql?(o)
354
+ self == o
355
+ end
356
+
357
+ # Calculates hash code according to all attributes.
358
+ # @return [Integer] Hash code
359
+ def hash
360
+ [national_id_number, full_name, date_of_birth, province_code, regency_or_city_code, district_code, sex_national_id_number, serial_number, phone_number, consent_given_at, email].hash
361
+ end
362
+
363
+ # Builds the object from hash
364
+ # @param [Hash] attributes Model attributes in the form of hash
365
+ # @return [Object] Returns the model itself
366
+ def self.build_from_hash(attributes)
367
+ return nil unless attributes.is_a?(Hash)
368
+ attributes = attributes.transform_keys(&:to_sym)
369
+ transformed_hash = {}
370
+ openapi_types.each_pair do |key, type|
371
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
372
+ transformed_hash["#{key}"] = nil
373
+ elsif type =~ /\AArray<(.*)>/i
374
+ # check to ensure the input is an array given that the attribute
375
+ # is documented as an array but the input is not
376
+ if attributes[attribute_map[key]].is_a?(Array)
377
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
378
+ end
379
+ elsif !attributes[attribute_map[key]].nil?
380
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
381
+ end
382
+ end
383
+ new(transformed_hash)
384
+ end
385
+
386
+ # Returns the object in the form of hash
387
+ # @return [Hash] Returns the object in the form of hash
388
+ def to_hash
389
+ hash = {}
390
+ self.class.attribute_map.each_pair do |attr, param|
391
+ value = self.send(attr)
392
+ if value.nil?
393
+ is_nullable = self.class.openapi_nullable.include?(attr)
394
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
395
+ end
396
+
397
+ hash[param] = _to_hash(value)
398
+ end
399
+ hash
400
+ end
401
+
402
+ end
403
+
404
+ end
@@ -0,0 +1,238 @@
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 `indonesia-nik-lookup` Provider which do not directly map to the normalized IdentityData model.
18
+ class IndonesiaNikMatch < ApiModelBase
19
+ # Full name match result from Indonesia NIK verification.
20
+ attr_accessor :full_name
21
+
22
+ # Date of birth match result from Indonesia NIK verification.
23
+ attr_accessor :date_of_birth
24
+
25
+ # NIK number match result from Indonesia NIK verification. NIK stands for Nomor Induk Kependudukan. It is Indonesia's unique population identity number, issued by Indonesia's population administration and civil registration authority (Dukcapil) under the Ministry of Home Affairs. A NIK has 16 digits: - Digits 1-2 are the province code. - Digits 3-4 are the regency or city code within that province. - Digits 5-6 are the district code within that regency or city. - Digits 7-12 encode date of birth as DDMMYY. For female NIK holders, the day is increased by 40. - Digits 13-16 are an issuance serial number.
26
+ attr_accessor :national_id_number
27
+
28
+ # Two-digit province code extracted from digits 1-2 of the NIK number.
29
+ attr_accessor :province_code
30
+
31
+ # Four-digit regency or city code extracted from digits 1-4 of the NIK number, including the province code prefix.
32
+ attr_accessor :regency_or_city_code
33
+
34
+ # Six-digit district code extracted from digits 1-6 of the NIK number, including province and regency/city code prefixes.
35
+ attr_accessor :district_code
36
+
37
+ # Date of birth extracted from digits 7-12 of the NIK number. The NIK encodes date of birth as DDMMYY. For female NIK holders, the encoded day is increased by 40 before being stored in the NIK number.
38
+ attr_accessor :date_of_birth_national_id_number
39
+
40
+ # Sex extracted from the birth-day portion of the NIK number. The encoded day value is increased by 40 for female NIK holders.
41
+ attr_accessor :sex_national_id_number
42
+
43
+ # Four-digit issuance serial number extracted from digits 13-16 of the NIK number.
44
+ attr_accessor :serial_number
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'full_name' => :'fullName',
50
+ :'date_of_birth' => :'dateOfBirth',
51
+ :'national_id_number' => :'nationalIdNumber',
52
+ :'province_code' => :'provinceCode',
53
+ :'regency_or_city_code' => :'regencyOrCityCode',
54
+ :'district_code' => :'districtCode',
55
+ :'date_of_birth_national_id_number' => :'dateOfBirthNationalIdNumber',
56
+ :'sex_national_id_number' => :'sexNationalIdNumber',
57
+ :'serial_number' => :'serialNumber'
58
+ }
59
+ end
60
+
61
+ # Returns attribute mapping this model knows about
62
+ def self.acceptable_attribute_map
63
+ attribute_map
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ acceptable_attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'full_name' => :'IndonesiaNikMatchField',
75
+ :'date_of_birth' => :'IndonesiaNikMatchField',
76
+ :'national_id_number' => :'IndonesiaNikMatchField',
77
+ :'province_code' => :'String',
78
+ :'regency_or_city_code' => :'String',
79
+ :'district_code' => :'String',
80
+ :'date_of_birth_national_id_number' => :'Date',
81
+ :'sex_national_id_number' => :'String',
82
+ :'serial_number' => :'String'
83
+ }
84
+ end
85
+
86
+ # List of attributes with nullable: true
87
+ def self.openapi_nullable
88
+ Set.new([
89
+ :'full_name',
90
+ :'date_of_birth',
91
+ :'national_id_number',
92
+ :'province_code',
93
+ :'regency_or_city_code',
94
+ :'district_code',
95
+ :'date_of_birth_national_id_number',
96
+ :'sex_national_id_number',
97
+ :'serial_number'
98
+ ])
99
+ end
100
+
101
+ # Initializes the object
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ def initialize(attributes = {})
104
+ if (!attributes.is_a?(Hash))
105
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndonesiaNikMatch` initialize method"
106
+ end
107
+
108
+ # check to see if the attribute exists and convert string to symbol for hash key
109
+ acceptable_attribute_map = self.class.acceptable_attribute_map
110
+ attributes = attributes.each_with_object({}) { |(k, v), h|
111
+ if (!acceptable_attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndonesiaNikMatch`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
113
+ end
114
+ h[k.to_sym] = v
115
+ }
116
+
117
+ if attributes.key?(:'full_name')
118
+ self.full_name = attributes[:'full_name']
119
+ end
120
+
121
+ if attributes.key?(:'date_of_birth')
122
+ self.date_of_birth = attributes[:'date_of_birth']
123
+ end
124
+
125
+ if attributes.key?(:'national_id_number')
126
+ self.national_id_number = attributes[:'national_id_number']
127
+ end
128
+
129
+ if attributes.key?(:'province_code')
130
+ self.province_code = attributes[:'province_code']
131
+ end
132
+
133
+ if attributes.key?(:'regency_or_city_code')
134
+ self.regency_or_city_code = attributes[:'regency_or_city_code']
135
+ end
136
+
137
+ if attributes.key?(:'district_code')
138
+ self.district_code = attributes[:'district_code']
139
+ end
140
+
141
+ if attributes.key?(:'date_of_birth_national_id_number')
142
+ self.date_of_birth_national_id_number = attributes[:'date_of_birth_national_id_number']
143
+ end
144
+
145
+ if attributes.key?(:'sex_national_id_number')
146
+ self.sex_national_id_number = attributes[:'sex_national_id_number']
147
+ end
148
+
149
+ if attributes.key?(:'serial_number')
150
+ self.serial_number = attributes[:'serial_number']
151
+ end
152
+ end
153
+
154
+ # Show invalid properties with the reasons. Usually used together with valid?
155
+ # @return Array for valid properties with the reasons
156
+ def list_invalid_properties
157
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
158
+ invalid_properties = Array.new
159
+ invalid_properties
160
+ end
161
+
162
+ # Check to see if the all the properties in the model are valid
163
+ # @return true if the model is valid
164
+ def valid?
165
+ warn '[DEPRECATED] the `valid?` method is obsolete'
166
+ true
167
+ end
168
+
169
+ # Checks equality by comparing each attribute.
170
+ # @param [Object] Object to be compared
171
+ def ==(o)
172
+ return true if self.equal?(o)
173
+ self.class == o.class &&
174
+ full_name == o.full_name &&
175
+ date_of_birth == o.date_of_birth &&
176
+ national_id_number == o.national_id_number &&
177
+ province_code == o.province_code &&
178
+ regency_or_city_code == o.regency_or_city_code &&
179
+ district_code == o.district_code &&
180
+ date_of_birth_national_id_number == o.date_of_birth_national_id_number &&
181
+ sex_national_id_number == o.sex_national_id_number &&
182
+ serial_number == o.serial_number
183
+ end
184
+
185
+ # @see the `==` method
186
+ # @param [Object] Object to be compared
187
+ def eql?(o)
188
+ self == o
189
+ end
190
+
191
+ # Calculates hash code according to all attributes.
192
+ # @return [Integer] Hash code
193
+ def hash
194
+ [full_name, date_of_birth, national_id_number, province_code, regency_or_city_code, district_code, date_of_birth_national_id_number, sex_national_id_number, serial_number].hash
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def self.build_from_hash(attributes)
201
+ return nil unless attributes.is_a?(Hash)
202
+ attributes = attributes.transform_keys(&:to_sym)
203
+ transformed_hash = {}
204
+ openapi_types.each_pair do |key, type|
205
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
206
+ transformed_hash["#{key}"] = nil
207
+ elsif type =~ /\AArray<(.*)>/i
208
+ # check to ensure the input is an array given that the attribute
209
+ # is documented as an array but the input is not
210
+ if attributes[attribute_map[key]].is_a?(Array)
211
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
212
+ end
213
+ elsif !attributes[attribute_map[key]].nil?
214
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
215
+ end
216
+ end
217
+ new(transformed_hash)
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ end
237
+
238
+ end