onfido 3.4.0 → 4.6.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 (317) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/Gemfile +1 -0
  4. data/MIGRATION.md +30 -0
  5. data/README.md +14 -12
  6. data/lib/onfido/api/default_api.rb +131 -68
  7. data/lib/onfido/api_client.rb +31 -25
  8. data/lib/onfido/api_error.rb +1 -1
  9. data/lib/onfido/configuration.rb +11 -1
  10. data/lib/onfido/models/address.rb +1 -1
  11. data/lib/onfido/models/address_builder.rb +1 -1
  12. data/lib/onfido/models/address_shared.rb +1 -1
  13. data/lib/onfido/models/addresses_list.rb +1 -1
  14. data/lib/onfido/models/applicant.rb +1 -1
  15. data/lib/onfido/models/applicant_builder.rb +6 -3
  16. data/lib/onfido/models/{consent_item.rb → applicant_consent_builder.rb} +5 -18
  17. data/lib/onfido/models/applicant_consent_name.rb +42 -0
  18. data/lib/onfido/models/applicant_create.rb +1 -1
  19. data/lib/onfido/models/applicant_request.rb +6 -3
  20. data/lib/onfido/models/applicant_response.rb +1 -1
  21. data/lib/onfido/models/applicant_shared.rb +1 -1
  22. data/lib/onfido/models/applicant_update.rb +1 -1
  23. data/lib/onfido/models/applicant_updater.rb +6 -3
  24. data/lib/onfido/models/applicants_list.rb +1 -1
  25. data/lib/onfido/models/check.rb +33 -19
  26. data/lib/onfido/models/check_builder.rb +11 -2
  27. data/lib/onfido/models/check_request.rb +1 -1
  28. data/lib/onfido/models/check_response.rb +24 -19
  29. data/lib/onfido/models/check_shared.rb +14 -5
  30. data/lib/onfido/models/check_status.rb +45 -0
  31. data/lib/onfido/models/checks_list.rb +1 -1
  32. data/lib/onfido/models/complete_task_builder.rb +1 -1
  33. data/lib/onfido/models/complete_task_data_builder.rb +1 -1
  34. data/lib/onfido/models/country_codes.rb +1 -1
  35. data/lib/onfido/models/device_intelligence_breakdown.rb +1 -1
  36. data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
  37. data/lib/onfido/models/device_intelligence_breakdown_breakdown_device.rb +1 -1
  38. data/lib/onfido/models/device_intelligence_breakdown_breakdown_device_breakdown.rb +1 -1
  39. data/lib/onfido/models/device_intelligence_breakdown_properties.rb +1 -1
  40. data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +2 -42
  41. data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
  42. data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +5 -35
  43. data/lib/onfido/models/device_intelligence_report.rb +1 -1
  44. data/lib/onfido/models/document.rb +2 -2
  45. data/lib/onfido/models/document_breakdown.rb +1 -1
  46. data/lib/onfido/models/document_breakdown_age_validation.rb +1 -1
  47. data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +1 -1
  48. data/lib/onfido/models/document_breakdown_compromised_document.rb +1 -1
  49. data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +1 -1
  50. data/lib/onfido/models/document_breakdown_data_comparison.rb +1 -1
  51. data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +1 -1
  52. data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +1 -1
  53. data/lib/onfido/models/document_breakdown_data_consistency.rb +1 -1
  54. data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +1 -1
  55. data/lib/onfido/models/document_breakdown_data_validation.rb +1 -1
  56. data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +1 -1
  57. data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +1 -1
  58. data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +1 -1
  59. data/lib/onfido/models/document_breakdown_image_integrity.rb +1 -1
  60. data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +1 -1
  61. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +1 -1
  62. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +1 -1
  63. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +1 -1
  64. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +1 -1
  65. data/lib/onfido/models/document_breakdown_issuing_authority.rb +1 -1
  66. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +1 -1
  67. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +1 -1
  68. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +1 -1
  69. data/lib/onfido/models/document_breakdown_police_record.rb +1 -1
  70. data/lib/onfido/models/document_breakdown_visual_authenticity.rb +1 -1
  71. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +1 -1
  72. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +1 -1
  73. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +1 -1
  74. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +1 -1
  75. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +1 -1
  76. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +1 -1
  77. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +1 -1
  78. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +1 -1
  79. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +1 -1
  80. data/lib/onfido/models/document_cdq_reasons.rb +1 -1
  81. data/lib/onfido/models/document_iq_reasons.rb +1 -1
  82. data/lib/onfido/models/document_odp_reasons.rb +1 -1
  83. data/lib/onfido/models/document_properties.rb +1 -1
  84. data/lib/onfido/models/document_properties_address_lines.rb +1 -1
  85. data/lib/onfido/models/document_properties_barcode_inner.rb +1 -1
  86. data/lib/onfido/models/document_properties_document_classification.rb +1 -1
  87. data/lib/onfido/models/document_properties_document_numbers_inner.rb +1 -1
  88. data/lib/onfido/models/document_properties_driving_licence_information.rb +1 -1
  89. data/lib/onfido/models/document_properties_extracted_data.rb +1 -1
  90. data/lib/onfido/models/document_properties_nfc.rb +1 -1
  91. data/lib/onfido/models/document_report.rb +1 -1
  92. data/lib/onfido/models/document_response.rb +1 -1
  93. data/lib/onfido/models/document_shared.rb +2 -2
  94. data/lib/onfido/models/document_types.rb +53 -2
  95. data/lib/onfido/models/document_video_report.rb +1 -1
  96. data/lib/onfido/models/document_video_with_address_information_report.rb +1 -1
  97. data/lib/onfido/models/document_with_address_information_report.rb +1 -1
  98. data/lib/onfido/models/document_with_driver_verification_report.rb +1 -1
  99. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +1 -1
  100. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +1 -1
  101. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +1 -1
  102. data/lib/onfido/models/document_with_driving_licence_information_report.rb +1 -1
  103. data/lib/onfido/models/documents_list.rb +1 -1
  104. data/lib/onfido/models/error.rb +1 -1
  105. data/lib/onfido/models/error1.rb +1 -1
  106. data/lib/onfido/models/error_properties.rb +1 -1
  107. data/lib/onfido/models/error_properties1.rb +1 -1
  108. data/lib/onfido/models/extract_request.rb +1 -1
  109. data/lib/onfido/models/extraction.rb +1 -1
  110. data/lib/onfido/models/extraction_document_classification.rb +1 -1
  111. data/lib/onfido/models/extraction_extracted_data.rb +1 -1
  112. data/lib/onfido/models/facial_similarity_motion_breakdown.rb +1 -1
  113. data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +1 -1
  114. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +1 -1
  115. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +1 -1
  116. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  117. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  118. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +1 -1
  119. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +1 -1
  120. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  121. data/lib/onfido/models/facial_similarity_motion_properties.rb +1 -1
  122. data/lib/onfido/models/facial_similarity_motion_report.rb +51 -2
  123. data/lib/onfido/models/facial_similarity_photo_breakdown.rb +1 -1
  124. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +1 -1
  125. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +1 -1
  126. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +1 -1
  127. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +1 -1
  128. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +1 -1
  129. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +1 -1
  130. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  131. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  132. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +1 -1
  133. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +1 -1
  134. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  135. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +1 -1
  136. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +1 -1
  137. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +1 -1
  138. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +1 -1
  139. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  140. data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +1 -1
  141. data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +51 -2
  142. data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
  143. data/lib/onfido/models/facial_similarity_photo_report.rb +51 -2
  144. data/lib/onfido/models/{consents_builder.rb → facial_similarity_report_media.rb} +23 -6
  145. data/lib/onfido/models/facial_similarity_report_shared.rb +253 -0
  146. data/lib/onfido/models/facial_similarity_video_breakdown.rb +1 -1
  147. data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +1 -1
  148. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +1 -1
  149. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +1 -1
  150. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  151. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  152. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +1 -1
  153. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +1 -1
  154. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +1 -1
  155. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  156. data/lib/onfido/models/facial_similarity_video_properties.rb +1 -1
  157. data/lib/onfido/models/facial_similarity_video_report.rb +51 -2
  158. data/lib/onfido/models/id_number.rb +3 -3
  159. data/lib/onfido/models/id_photo.rb +1 -1
  160. data/lib/onfido/models/id_photo_response.rb +1 -1
  161. data/lib/onfido/models/id_photos_list.rb +1 -1
  162. data/lib/onfido/models/identity_enhanced_breakdown.rb +1 -1
  163. data/lib/onfido/models/identity_enhanced_breakdown_address.rb +1 -1
  164. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +1 -1
  165. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +1 -1
  166. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +1 -1
  167. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +1 -1
  168. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +1 -1
  169. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +1 -1
  170. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +1 -1
  171. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +1 -1
  172. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +1 -1
  173. data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +1 -1
  174. data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +1 -1
  175. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +1 -1
  176. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +1 -1
  177. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +1 -1
  178. data/lib/onfido/models/identity_enhanced_properties.rb +1 -1
  179. data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +1 -1
  180. data/lib/onfido/models/identity_enhanced_report.rb +1 -1
  181. data/lib/onfido/models/india_pan_report.rb +1 -1
  182. data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +1 -1
  183. data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +1 -1
  184. data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +1 -1
  185. data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +1 -1
  186. data/lib/onfido/models/india_pan_report_all_of_properties.rb +1 -1
  187. data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +1 -1
  188. data/lib/onfido/models/known_faces_breakdown.rb +1 -1
  189. data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +1 -1
  190. data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +1 -1
  191. data/lib/onfido/models/known_faces_properties.rb +1 -1
  192. data/lib/onfido/models/known_faces_properties_matches_inner.rb +1 -1
  193. data/lib/onfido/models/known_faces_report.rb +1 -1
  194. data/lib/onfido/models/live_photo.rb +1 -1
  195. data/lib/onfido/models/live_photo_response.rb +1 -1
  196. data/lib/onfido/models/live_photos_list.rb +1 -1
  197. data/lib/onfido/models/live_video.rb +1 -1
  198. data/lib/onfido/models/live_videos_list.rb +1 -1
  199. data/lib/onfido/models/location.rb +1 -1
  200. data/lib/onfido/models/location_builder.rb +1 -1
  201. data/lib/onfido/models/location_shared.rb +1 -1
  202. data/lib/onfido/models/motion_capture.rb +1 -1
  203. data/lib/onfido/models/motion_captures_list.rb +1 -1
  204. data/lib/onfido/models/photo_auto_reasons.rb +1 -1
  205. data/lib/onfido/models/photo_reasons.rb +1 -1
  206. data/lib/onfido/models/proof_of_address_breakdown.rb +1 -1
  207. data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +1 -1
  208. data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +1 -1
  209. data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +1 -1
  210. data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +1 -1
  211. data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +1 -1
  212. data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +1 -1
  213. data/lib/onfido/models/proof_of_address_properties.rb +1 -1
  214. data/lib/onfido/models/proof_of_address_report.rb +1 -1
  215. data/lib/onfido/models/repeat_attempts_list.rb +1 -1
  216. data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +1 -1
  217. data/lib/onfido/models/report.rb +1 -1
  218. data/lib/onfido/models/report_document.rb +1 -1
  219. data/lib/onfido/models/report_name.rb +1 -1
  220. data/lib/onfido/models/report_result.rb +1 -1
  221. data/lib/onfido/models/report_shared.rb +1 -1
  222. data/lib/onfido/models/report_status.rb +1 -1
  223. data/lib/onfido/models/report_sub_result.rb +1 -1
  224. data/lib/onfido/models/reports_list.rb +1 -1
  225. data/lib/onfido/models/results_feedback.rb +1 -1
  226. data/lib/onfido/models/sdk_token.rb +1 -1
  227. data/lib/onfido/models/sdk_token_builder.rb +1 -1
  228. data/lib/onfido/models/sdk_token_request.rb +1 -1
  229. data/lib/onfido/models/sdk_token_response.rb +1 -1
  230. data/lib/onfido/models/task.rb +2 -2
  231. data/lib/onfido/models/task_item.rb +23 -2
  232. data/lib/onfido/models/timeline_file_reference.rb +1 -1
  233. data/lib/onfido/models/us_driving_licence_breakdown.rb +1 -1
  234. data/lib/onfido/models/us_driving_licence_breakdown_address.rb +1 -1
  235. data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +1 -1
  236. data/lib/onfido/models/us_driving_licence_breakdown_document.rb +1 -1
  237. data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +1 -1
  238. data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +1 -1
  239. data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +1 -1
  240. data/lib/onfido/models/us_driving_licence_builder.rb +1 -1
  241. data/lib/onfido/models/us_driving_licence_report.rb +1 -1
  242. data/lib/onfido/models/us_driving_licence_shared.rb +1 -1
  243. data/lib/onfido/models/video_reasons.rb +1 -1
  244. data/lib/onfido/models/watchlist_aml_breakdown.rb +1 -1
  245. data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +1 -1
  246. data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +1 -1
  247. data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +1 -1
  248. data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +1 -1
  249. data/lib/onfido/models/watchlist_aml_properties.rb +1 -1
  250. data/lib/onfido/models/watchlist_aml_report.rb +1 -1
  251. data/lib/onfido/models/watchlist_enhanced_breakdown.rb +1 -1
  252. data/lib/onfido/models/watchlist_enhanced_properties.rb +1 -1
  253. data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +1 -1
  254. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +1 -1
  255. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.rb +1 -1
  256. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +1 -1
  257. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +1 -1
  258. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +1 -1
  259. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +1 -1
  260. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +1 -1
  261. data/lib/onfido/models/watchlist_enhanced_report.rb +1 -1
  262. data/lib/onfido/models/watchlist_monitor.rb +1 -1
  263. data/lib/onfido/models/watchlist_monitor_builder.rb +1 -1
  264. data/lib/onfido/models/watchlist_monitor_match.rb +1 -1
  265. data/lib/onfido/models/watchlist_monitor_matches_list.rb +1 -1
  266. data/lib/onfido/models/watchlist_monitor_matches_updater.rb +1 -1
  267. data/lib/onfido/models/watchlist_monitor_response.rb +1 -1
  268. data/lib/onfido/models/watchlist_monitor_shared.rb +1 -1
  269. data/lib/onfido/models/watchlist_monitors_list.rb +1 -1
  270. data/lib/onfido/models/watchlist_peps_only_report.rb +1 -1
  271. data/lib/onfido/models/watchlist_sanctions_only_report.rb +1 -1
  272. data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
  273. data/lib/onfido/models/watchlist_standard_properties.rb +1 -1
  274. data/lib/onfido/models/watchlist_standard_report.rb +1 -1
  275. data/lib/onfido/models/webhook.rb +1 -1
  276. data/lib/onfido/models/webhook_builder.rb +1 -1
  277. data/lib/onfido/models/webhook_create.rb +1 -1
  278. data/lib/onfido/models/webhook_event.rb +1 -1
  279. data/lib/onfido/models/webhook_event_object_status.rb +58 -0
  280. data/lib/onfido/models/webhook_event_payload.rb +3 -4
  281. data/lib/onfido/models/webhook_event_payload_object.rb +24 -3
  282. data/lib/onfido/models/webhook_event_payload_resource.rb +409 -0
  283. data/lib/onfido/models/webhook_event_resource_type.rb +47 -0
  284. data/lib/onfido/models/webhook_event_type.rb +3 -2
  285. data/lib/onfido/models/webhook_resend.rb +1 -1
  286. data/lib/onfido/models/webhook_response.rb +1 -1
  287. data/lib/onfido/models/webhook_shared.rb +1 -1
  288. data/lib/onfido/models/webhook_update.rb +1 -1
  289. data/lib/onfido/models/webhook_updater.rb +1 -1
  290. data/lib/onfido/models/webhooks_list.rb +1 -1
  291. data/lib/onfido/models/webhooks_resend_item.rb +1 -1
  292. data/lib/onfido/models/workflow_run.rb +6 -16
  293. data/lib/onfido/models/workflow_run_builder.rb +3 -2
  294. data/lib/onfido/models/{workflow_run_response_error.rb → workflow_run_error.rb} +4 -5
  295. data/lib/onfido/models/{workflow_run_shared_link.rb → workflow_run_link.rb} +8 -5
  296. data/lib/onfido/models/workflow_run_request.rb +1 -1
  297. data/lib/onfido/models/workflow_run_response.rb +4 -15
  298. data/lib/onfido/models/workflow_run_shared.rb +3 -2
  299. data/lib/onfido/models/workflow_run_status.rb +47 -0
  300. data/lib/onfido/version.rb +2 -2
  301. data/lib/onfido.rb +12 -5
  302. data/onfido.gemspec +1 -1
  303. data/spec/{webhook_event_verifier_spec.rb → classic_webhook_event_verifier_spec.rb} +4 -4
  304. data/spec/integrations/applicant_spec.rb +5 -1
  305. data/spec/integrations/check_spec.rb +4 -4
  306. data/spec/integrations/document_spec.rb +1 -1
  307. data/spec/integrations/qualified_electronic_signature_spec.rb +1 -1
  308. data/spec/integrations/report_schema_spec.rb +17 -0
  309. data/spec/integrations/report_spec.rb +4 -2
  310. data/spec/integrations/workflow_run_spec.rb +14 -3
  311. data/spec/media/studio_webhook_event_with_list_in_output.json +31 -0
  312. data/spec/media/studio_webhook_event_with_object_in_output.json +264 -0
  313. data/spec/shared_contexts/with_check.rb +1 -0
  314. data/spec/shared_contexts/with_document.rb +1 -1
  315. data/spec/spec_helper.rb +3 -3
  316. data/spec/studio_webhook_event_verifier_spec.rb +78 -0
  317. metadata +42 -28
@@ -0,0 +1,264 @@
1
+ {
2
+ "payload": {
3
+ "resource_type": "workflow_task",
4
+ "action": "workflow_task.completed",
5
+ "object": {
6
+ "id": "document_check_75329",
7
+ "task_spec_id": "document_check_75329",
8
+ "task_def_id": "document_check",
9
+ "workflow_run_id": "b48fdff9-66a1-405d-9912-54780799bd68",
10
+ "status": "completed",
11
+ "completed_at_iso8601": "2024-12-18T18:13:13Z",
12
+ "href": "https://api.eu.onfido.com/v3.6/workflow_runs/b48fdff9-66a1-405d-9912-54780799bd68/tasks/document_check_75329"
13
+ },
14
+ "resource": {
15
+ "task_def_version": null,
16
+ "task_def_id": "document_check",
17
+ "updated_at": "2024-12-18T18:13:13Z",
18
+ "id": "document_check_75329",
19
+ "output": {
20
+ "status": "complete",
21
+ "result": "clear",
22
+ "sub_result": "clear",
23
+ "uuid": "95c8cc09-db72-42ff-85ef-ee6c82020a24",
24
+ "properties": {
25
+ "date_of_birth": "1990-01-01",
26
+ "date_of_expiry": "2031-05-28",
27
+ "document_numbers": [
28
+ {
29
+ "type": "document_number",
30
+ "value": "999999999"
31
+ }
32
+ ],
33
+ "document_type": "passport",
34
+ "first_name": "Jane",
35
+ "issuing_country": "GBR",
36
+ "last_name": "Doe",
37
+ "document_number": "999999999"
38
+ },
39
+ "breakdown": {
40
+ "data_validation": {
41
+ "result": "clear",
42
+ "breakdown": {
43
+ "mrz": {
44
+ "result": "clear",
45
+ "properties": {}
46
+ },
47
+ "expiry_date": {
48
+ "result": "clear",
49
+ "properties": {}
50
+ },
51
+ "document_expiration": {
52
+ "result": "clear",
53
+ "properties": {}
54
+ },
55
+ "document_numbers": {
56
+ "result": "clear",
57
+ "properties": {}
58
+ },
59
+ "date_of_birth": {
60
+ "result": "clear",
61
+ "properties": {}
62
+ },
63
+ "gender": {
64
+ "result": "clear",
65
+ "properties": {}
66
+ }
67
+ }
68
+ },
69
+ "visual_authenticity": {
70
+ "result": "clear",
71
+ "breakdown": {
72
+ "face_detection": {
73
+ "result": "clear",
74
+ "properties": {}
75
+ },
76
+ "other": {
77
+ "result": "clear",
78
+ "properties": {}
79
+ },
80
+ "digital_tampering": {
81
+ "result": "clear",
82
+ "properties": {}
83
+ },
84
+ "original_document_present": {
85
+ "result": "clear",
86
+ "properties": {}
87
+ },
88
+ "security_features": {
89
+ "result": "clear",
90
+ "properties": {}
91
+ },
92
+ "template": {
93
+ "result": "clear",
94
+ "properties": {}
95
+ },
96
+ "picture_face_integrity": {
97
+ "result": "clear",
98
+ "properties": {}
99
+ },
100
+ "fonts": {
101
+ "result": "clear",
102
+ "properties": {}
103
+ }
104
+ }
105
+ },
106
+ "compromised_document": {
107
+ "result": "clear",
108
+ "breakdown": {
109
+ "repeat_attempts": {
110
+ "result": "clear",
111
+ "properties": {}
112
+ },
113
+ "document_database": {
114
+ "result": "clear",
115
+ "properties": {}
116
+ }
117
+ }
118
+ },
119
+ "data_consistency": {
120
+ "result": "clear",
121
+ "breakdown": {
122
+ "nationality": {
123
+ "result": "clear",
124
+ "properties": {}
125
+ },
126
+ "last_name": {
127
+ "result": "clear",
128
+ "properties": {}
129
+ },
130
+ "first_name": {
131
+ "result": "clear",
132
+ "properties": {}
133
+ },
134
+ "multiple_data_sources_present": {
135
+ "result": "clear",
136
+ "properties": {}
137
+ },
138
+ "gender": {
139
+ "result": "clear",
140
+ "properties": {}
141
+ },
142
+ "date_of_birth": {
143
+ "result": "clear",
144
+ "properties": {}
145
+ },
146
+ "document_type": {
147
+ "result": "clear",
148
+ "properties": {}
149
+ },
150
+ "issuing_country": {
151
+ "result": "clear",
152
+ "properties": {}
153
+ },
154
+ "document_numbers": {
155
+ "result": "clear",
156
+ "properties": {}
157
+ },
158
+ "date_of_expiry": {
159
+ "result": "clear",
160
+ "properties": {}
161
+ }
162
+ }
163
+ },
164
+ "data_comparison": {
165
+ "result": "clear",
166
+ "breakdown": {
167
+ "date_of_birth": {
168
+ "result": "clear",
169
+ "properties": {}
170
+ },
171
+ "first_name": {
172
+ "result": "clear",
173
+ "properties": {}
174
+ },
175
+ "document_numbers": {
176
+ "result": "clear",
177
+ "properties": {}
178
+ },
179
+ "document_type": {
180
+ "result": "clear",
181
+ "properties": {}
182
+ },
183
+ "last_name": {
184
+ "result": "clear",
185
+ "properties": {}
186
+ },
187
+ "date_of_expiry": {
188
+ "result": "clear",
189
+ "properties": {}
190
+ },
191
+ "gender": {
192
+ "result": "clear",
193
+ "properties": {}
194
+ },
195
+ "issuing_country": {
196
+ "result": "clear",
197
+ "properties": {}
198
+ }
199
+ }
200
+ },
201
+ "image_integrity": {
202
+ "result": "clear",
203
+ "breakdown": {
204
+ "colour_picture": {
205
+ "result": "clear",
206
+ "properties": {}
207
+ },
208
+ "supported_document": {
209
+ "result": "clear",
210
+ "properties": {}
211
+ },
212
+ "conclusive_document_quality": {
213
+ "result": "clear",
214
+ "properties": {}
215
+ },
216
+ "image_quality": {
217
+ "result": "clear",
218
+ "properties": {}
219
+ }
220
+ }
221
+ },
222
+ "police_record": {
223
+ "result": "clear",
224
+ "breakdown": {
225
+ "document_has_not_been_recorded_as_lost,_stolen_or_compromised": {
226
+ "result": "clear",
227
+ "properties": {}
228
+ }
229
+ }
230
+ },
231
+ "age_validation": {
232
+ "result": "clear",
233
+ "breakdown": {
234
+ "minimum_accepted_age": {
235
+ "result": "clear",
236
+ "properties": {}
237
+ }
238
+ }
239
+ }
240
+ },
241
+ "repeat_attempts": {
242
+ "report_id": "00000000-0000-0000-0000-000000000000",
243
+ "repeat_attempts": [],
244
+ "attempts_count": 1,
245
+ "attempts_clear_rate": 0,
246
+ "unique_mismatches_count": 0
247
+ }
248
+ },
249
+ "workflow_run_id": "b48fdff9-66a1-405d-9912-54780799bd68",
250
+ "input": {
251
+ "document_ids": [
252
+ {
253
+ "checksum_sha256": "hiwV2PLmeQZzeySPGGwVL48sxVXcyfpXy9LDl1u3lWU=",
254
+ "id": "7af75a3a-ba34-4aa5-9e3e-096c9f56256b",
255
+ "type": "document_photo"
256
+ }
257
+ ],
258
+ "first_name": "Jane",
259
+ "last_name": "Doe"
260
+ },
261
+ "created_at": "2024-12-18T18:13:11Z"
262
+ }
263
+ }
264
+ }
@@ -10,6 +10,7 @@ RSpec.shared_context 'with check', shared_context: :metadata do
10
10
  applicant_id: applicant_id,
11
11
  document_ids: [document_id],
12
12
  report_names: [Onfido::ReportName::DOCUMENT, Onfido::ReportName::IDENTITY_ENHANCED],
13
+ privacy_notices_read_consent_given: true
13
14
  })
14
15
  end
15
16
 
@@ -8,6 +8,6 @@ RSpec.shared_context 'with document', shared_context: :metadata do
8
8
  let(:document_file_name) { 'sample_driving_licence.png' }
9
9
  let(:document_file) { File.open("spec/integrations/media/#{document_file_name}") }
10
10
 
11
- let(:document) { onfido_api.upload_document('passport', applicant_id, document_file) }
11
+ let(:document) { onfido_api.upload_document(Onfido::DocumentTypes::PASSPORT, applicant_id, document_file) }
12
12
  let!(:document_id) { document.id }
13
13
  end
data/spec/spec_helper.rb CHANGED
@@ -65,7 +65,7 @@ RSpec.configure do |config|
65
65
  Kernel.srand config.seed
66
66
  end
67
67
 
68
- def repeat_request_until_status_changes(expected_status, max_retries = 10,
68
+ def repeat_request_until_status_changes(expected_status, max_retries = 15,
69
69
  interval = 1, &proc)
70
70
  # expected_status --> desired status
71
71
  # max_retries --> how many times to retry the request
@@ -86,7 +86,7 @@ def repeat_request_until_status_changes(expected_status, max_retries = 10,
86
86
  instance
87
87
  end
88
88
 
89
- def repeat_request_until_task_output_changes(max_retries = 10,
89
+ def repeat_request_until_task_output_changes(max_retries = 15,
90
90
  interval = 1, &proc)
91
91
  # max_retries --> how many times to retry the request
92
92
  # interval --> how many seconds to wait until the next retry
@@ -106,7 +106,7 @@ def repeat_request_until_task_output_changes(max_retries = 10,
106
106
  instance
107
107
  end
108
108
 
109
- def repeat_request_unti_http_code_changes(max_retries = 10,
109
+ def repeat_request_unti_http_code_changes(max_retries = 15,
110
110
  interval = 1, &proc)
111
111
  # max_retries --> how many times to retry the request
112
112
  # interval --> how many seconds to wait until the next retry
@@ -0,0 +1,78 @@
1
+ require 'onfido/webhook_event_verifier'
2
+ require 'spec_helper'
3
+
4
+ describe Onfido::WebhookEventVerifier do
5
+ subject { described_class.new('YKOC6mkBxi6yK2zlUIrLMvsJMFEZObP5') }
6
+ describe "#read_payload" do
7
+ let(:event_body) { '{"payload":{"resource_type":"workflow_task","action":"workflow_task.started","object":{"id":"profile_1eb92","task_spec_id":"profile_1eb92","task_def_id":"profile_data","workflow_run_id":"bc77c6e5-753a-4580-96a6-aaed3e5a8d19","status":"started","started_at_iso8601":"2024-07-10T12:49:09Z","href":"https://api.eu.onfido.com/v3.6/workflow_runs/bc77c6e5-753a-4580-96a6-aaed3e5a8d19/tasks/profile_1eb92"},"resource":{"created_at":"2024-07-10T12:49:09Z","id":"profile_1eb92","workflow_run_id":"bc77c6e5-753a-4580-96a6-aaed3e5a8d19","updated_at":"2024-07-10T12:49:09Z","input":{},"task_def_version":null,"task_def_id":"profile_data","output":null}}}' }
8
+ let(:sig) { "c95a5b785484f6fa1bc25f381b5595d66bf85cb442eefb06aa007802ee6a4dfa" }
9
+ it "raises an exception when the signature is invalid" do
10
+ expect do
11
+ subject.read_payload(event_body, "c95a5b785484f6fa1bc25f381b5595d66bf85cb442eefb06aa007802ee6a4dfb")
12
+ end.to raise_error(Onfido::OnfidoInvalidSignatureError, "Invalid signature for webhook event")
13
+ end
14
+
15
+ it "returns the decoded event payload" do
16
+ expected_payload = JSON.parse(event_body)["payload"]
17
+ expected_webhook_event = Onfido::WebhookEvent.new({ payload: Onfido::WebhookEventPayload.build_from_hash(expected_payload) })
18
+
19
+ webhook_event = subject.read_payload(event_body, sig)
20
+ expect(webhook_event.payload).to eq(expected_webhook_event.payload)
21
+ expect(webhook_event.payload.resource_type).to eq(Onfido::WebhookEventResourceType::WORKFLOW_TASK)
22
+ expect(webhook_event.payload.action).to eq(Onfido::WebhookEventType::WORKFLOW_TASK_STARTED)
23
+
24
+ expect(webhook_event.payload.object.id).to eq('profile_1eb92')
25
+ expect(webhook_event.payload.object.status).to eq(Onfido::WebhookEventObjectStatus::STARTED)
26
+ expect(webhook_event.payload.object.started_at_iso8601).to eq(Time.parse('2024-07-10T12:49:09Z'))
27
+ expect(webhook_event.payload.object.href).to eq('https://api.eu.onfido.com/v3.6/workflow_runs/bc77c6e5-753a-4580-96a6-aaed3e5a8d19/tasks/profile_1eb92')
28
+
29
+ expect(webhook_event.payload.resource.created_at).to eq(Time.parse('2024-07-10T12:49:09Z'))
30
+ expect(webhook_event.payload.resource.id).to eq('profile_1eb92')
31
+ expect(webhook_event.payload.resource.workflow_run_id).to eq('bc77c6e5-753a-4580-96a6-aaed3e5a8d19')
32
+ expect(webhook_event.payload.resource.updated_at).to eq(Time.parse('2024-07-10T12:49:09Z'))
33
+ expect(webhook_event.payload.resource.input).to eq({})
34
+ expect(webhook_event.payload.resource.task_def_version).to eq(nil)
35
+ expect(webhook_event.payload.resource.task_def_id).to eq('profile_data')
36
+ expect(webhook_event.payload.resource.output).to eq(nil)
37
+ end
38
+
39
+ context "when webhook event output is an object" do
40
+ it "is able to decode and read the output field" do
41
+ signature = "e3e5565647f5ccf07b2fd8ac22eab94a0a0619413d981fb768295c820523f7d7"
42
+
43
+ event = subject.read_payload(File.read('spec/media/studio_webhook_event_with_object_in_output.json'), signature)
44
+
45
+ expect(event.payload.resource.output['properties']).to eq({
46
+ "date_of_birth" => "1990-01-01",
47
+ "date_of_expiry" => "2031-05-28",
48
+ "document_number" => "999999999",
49
+ "document_numbers" => [
50
+ {
51
+ "type"=>"document_number",
52
+ "value"=>"999999999"
53
+ }
54
+ ],
55
+ "document_type" => "passport",
56
+ "first_name" => "Jane",
57
+ "issuing_country" => "GBR",
58
+ "last_name" => "Doe",
59
+ })
60
+ end
61
+ end
62
+
63
+ context "when webhook event output is an array" do
64
+ it "is able to decode and read the output field" do
65
+ signature = "f3a5170acfcecf8c1bf6d9cb9995c0d9dec941af83056a721530f8de7af2c293"
66
+ event = subject.read_payload(File.read('spec/media/studio_webhook_event_with_list_in_output.json'), signature)
67
+
68
+ expect(event.payload.resource.output).to eq([
69
+ {
70
+ "checksum_sha256"=>"hiwV2PLmeQZzeySPGGwVL48sxVXcyfpXy9LDl1u3lWU=",
71
+ "id"=>"7af75a3a-ba34-4aa5-9e3e-096c9f56256b",
72
+ "type"=>"document_photo"
73
+ }
74
+ ])
75
+ end
76
+ end
77
+ end
78
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onfido
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-20 00:00:00.000000000 Z
11
+ date: 2025-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -130,6 +130,7 @@ files:
130
130
  - CHANGELOG.md
131
131
  - Gemfile
132
132
  - LICENSE
133
+ - MIGRATION.md
133
134
  - README.md
134
135
  - Rakefile
135
136
  - lib/onfido.rb
@@ -143,6 +144,8 @@ files:
143
144
  - lib/onfido/models/addresses_list.rb
144
145
  - lib/onfido/models/applicant.rb
145
146
  - lib/onfido/models/applicant_builder.rb
147
+ - lib/onfido/models/applicant_consent_builder.rb
148
+ - lib/onfido/models/applicant_consent_name.rb
146
149
  - lib/onfido/models/applicant_create.rb
147
150
  - lib/onfido/models/applicant_request.rb
148
151
  - lib/onfido/models/applicant_response.rb
@@ -155,11 +158,10 @@ files:
155
158
  - lib/onfido/models/check_request.rb
156
159
  - lib/onfido/models/check_response.rb
157
160
  - lib/onfido/models/check_shared.rb
161
+ - lib/onfido/models/check_status.rb
158
162
  - lib/onfido/models/checks_list.rb
159
163
  - lib/onfido/models/complete_task_builder.rb
160
164
  - lib/onfido/models/complete_task_data_builder.rb
161
- - lib/onfido/models/consent_item.rb
162
- - lib/onfido/models/consents_builder.rb
163
165
  - lib/onfido/models/country_codes.rb
164
166
  - lib/onfido/models/device_intelligence_breakdown.rb
165
167
  - lib/onfido/models/device_intelligence_breakdown_breakdown.rb
@@ -270,6 +272,8 @@ files:
270
272
  - lib/onfido/models/facial_similarity_photo_fully_auto_report.rb
271
273
  - lib/onfido/models/facial_similarity_photo_properties.rb
272
274
  - lib/onfido/models/facial_similarity_photo_report.rb
275
+ - lib/onfido/models/facial_similarity_report_media.rb
276
+ - lib/onfido/models/facial_similarity_report_shared.rb
273
277
  - lib/onfido/models/facial_similarity_video_breakdown.rb
274
278
  - lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb
275
279
  - lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb
@@ -403,8 +407,11 @@ files:
403
407
  - lib/onfido/models/webhook_builder.rb
404
408
  - lib/onfido/models/webhook_create.rb
405
409
  - lib/onfido/models/webhook_event.rb
410
+ - lib/onfido/models/webhook_event_object_status.rb
406
411
  - lib/onfido/models/webhook_event_payload.rb
407
412
  - lib/onfido/models/webhook_event_payload_object.rb
413
+ - lib/onfido/models/webhook_event_payload_resource.rb
414
+ - lib/onfido/models/webhook_event_resource_type.rb
408
415
  - lib/onfido/models/webhook_event_type.rb
409
416
  - lib/onfido/models/webhook_resend.rb
410
417
  - lib/onfido/models/webhook_response.rb
@@ -415,14 +422,16 @@ files:
415
422
  - lib/onfido/models/webhooks_resend_item.rb
416
423
  - lib/onfido/models/workflow_run.rb
417
424
  - lib/onfido/models/workflow_run_builder.rb
425
+ - lib/onfido/models/workflow_run_error.rb
426
+ - lib/onfido/models/workflow_run_link.rb
418
427
  - lib/onfido/models/workflow_run_request.rb
419
428
  - lib/onfido/models/workflow_run_response.rb
420
- - lib/onfido/models/workflow_run_response_error.rb
421
429
  - lib/onfido/models/workflow_run_shared.rb
422
- - lib/onfido/models/workflow_run_shared_link.rb
430
+ - lib/onfido/models/workflow_run_status.rb
423
431
  - lib/onfido/version.rb
424
432
  - lib/onfido/webhook_event_verifier.rb
425
433
  - onfido.gemspec
434
+ - spec/classic_webhook_event_verifier_spec.rb
426
435
  - spec/integrations/address_picker_spec.rb
427
436
  - spec/integrations/applicant_spec.rb
428
437
  - spec/integrations/check_spec.rb
@@ -443,6 +452,8 @@ files:
443
452
  - spec/integrations/webhook_spec.rb
444
453
  - spec/integrations/workflow_run_output_spec.rb
445
454
  - spec/integrations/workflow_run_spec.rb
455
+ - spec/media/studio_webhook_event_with_list_in_output.json
456
+ - spec/media/studio_webhook_event_with_object_in_output.json
446
457
  - spec/shared_contexts/with_applicant.rb
447
458
  - spec/shared_contexts/with_check.rb
448
459
  - spec/shared_contexts/with_document.rb
@@ -450,12 +461,12 @@ files:
450
461
  - spec/shared_contexts/with_onfido.rb
451
462
  - spec/shared_contexts/with_workflow_run.rb
452
463
  - spec/spec_helper.rb
453
- - spec/webhook_event_verifier_spec.rb
464
+ - spec/studio_webhook_event_verifier_spec.rb
454
465
  homepage: https://github.com/onfido/onfido-ruby
455
466
  licenses:
456
467
  - MIT
457
468
  metadata: {}
458
- post_install_message:
469
+ post_install_message:
459
470
  rdoc_options: []
460
471
  require_paths:
461
472
  - lib
@@ -471,35 +482,38 @@ required_rubygems_version: !ruby/object:Gem::Requirement
471
482
  version: '0'
472
483
  requirements: []
473
484
  rubygems_version: 3.1.6
474
- signing_key:
485
+ signing_key:
475
486
  specification_version: 4
476
487
  summary: The official Ruby library for integrating with the Onfido API.
477
488
  test_files:
489
+ - spec/classic_webhook_event_verifier_spec.rb
490
+ - spec/integrations/live_video_spec.rb
478
491
  - spec/integrations/document_spec.rb
492
+ - spec/integrations/live_photo_spec.rb
493
+ - spec/integrations/report_schema_spec.rb
479
494
  - spec/integrations/qualified_electronic_signature_spec.rb
480
- - spec/integrations/workflow_run_output_spec.rb
481
- - spec/integrations/check_spec.rb
482
- - spec/integrations/watchlist_monitor_spec.rb
483
- - spec/integrations/applicant_spec.rb
484
- - spec/integrations/media/sample_driving_licence.png
485
- - spec/integrations/media/sample_photo.png
486
- - spec/integrations/tasks_spec.rb
487
- - spec/integrations/live_video_spec.rb
488
495
  - spec/integrations/motion_capture_spec.rb
489
- - spec/integrations/sdk_token_spec.rb
496
+ - spec/integrations/tasks_spec.rb
490
497
  - spec/integrations/workflow_run_spec.rb
491
- - spec/integrations/extraction_spec.rb
492
- - spec/integrations/address_picker_spec.rb
493
- - spec/integrations/id_photo_spec.rb
494
- - spec/integrations/report_schema_spec.rb
495
498
  - spec/integrations/webhook_spec.rb
496
- - spec/integrations/live_photo_spec.rb
497
499
  - spec/integrations/report_spec.rb
498
- - spec/shared_contexts/with_check.rb
500
+ - spec/integrations/address_picker_spec.rb
501
+ - spec/integrations/check_spec.rb
502
+ - spec/integrations/sdk_token_spec.rb
503
+ - spec/integrations/extraction_spec.rb
504
+ - spec/integrations/workflow_run_output_spec.rb
505
+ - spec/integrations/applicant_spec.rb
506
+ - spec/integrations/media/sample_photo.png
507
+ - spec/integrations/media/sample_driving_licence.png
508
+ - spec/integrations/id_photo_spec.rb
509
+ - spec/integrations/watchlist_monitor_spec.rb
510
+ - spec/media/studio_webhook_event_with_list_in_output.json
511
+ - spec/media/studio_webhook_event_with_object_in_output.json
512
+ - spec/shared_contexts/with_workflow_run.rb
513
+ - spec/shared_contexts/with_applicant.rb
499
514
  - spec/shared_contexts/with_live_photo.rb
500
515
  - spec/shared_contexts/with_document.rb
516
+ - spec/shared_contexts/with_check.rb
501
517
  - spec/shared_contexts/with_onfido.rb
502
- - spec/shared_contexts/with_workflow_run.rb
503
- - spec/shared_contexts/with_applicant.rb
504
518
  - spec/spec_helper.rb
505
- - spec/webhook_event_verifier_spec.rb
519
+ - spec/studio_webhook_event_verifier_spec.rb