onfido 3.4.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/MIGRATION.md +30 -0
  4. data/README.md +2 -2
  5. data/lib/onfido/api/default_api.rb +68 -68
  6. data/lib/onfido/api_client.rb +31 -25
  7. data/lib/onfido/api_error.rb +1 -1
  8. data/lib/onfido/configuration.rb +11 -1
  9. data/lib/onfido/models/address.rb +1 -1
  10. data/lib/onfido/models/address_builder.rb +1 -1
  11. data/lib/onfido/models/address_shared.rb +1 -1
  12. data/lib/onfido/models/addresses_list.rb +1 -1
  13. data/lib/onfido/models/applicant.rb +1 -1
  14. data/lib/onfido/models/applicant_builder.rb +6 -3
  15. data/lib/onfido/models/{consent_item.rb → applicant_consent_builder.rb} +5 -18
  16. data/lib/onfido/models/applicant_consent_name.rb +42 -0
  17. data/lib/onfido/models/applicant_create.rb +1 -1
  18. data/lib/onfido/models/applicant_request.rb +6 -3
  19. data/lib/onfido/models/applicant_response.rb +1 -1
  20. data/lib/onfido/models/applicant_shared.rb +1 -1
  21. data/lib/onfido/models/applicant_update.rb +1 -1
  22. data/lib/onfido/models/applicant_updater.rb +6 -3
  23. data/lib/onfido/models/applicants_list.rb +1 -1
  24. data/lib/onfido/models/check.rb +33 -19
  25. data/lib/onfido/models/check_builder.rb +11 -2
  26. data/lib/onfido/models/check_request.rb +1 -1
  27. data/lib/onfido/models/check_response.rb +24 -19
  28. data/lib/onfido/models/check_shared.rb +14 -5
  29. data/lib/onfido/models/check_status.rb +45 -0
  30. data/lib/onfido/models/checks_list.rb +1 -1
  31. data/lib/onfido/models/complete_task_builder.rb +1 -1
  32. data/lib/onfido/models/complete_task_data_builder.rb +1 -1
  33. data/lib/onfido/models/country_codes.rb +1 -1
  34. data/lib/onfido/models/device_intelligence_breakdown.rb +1 -1
  35. data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
  36. data/lib/onfido/models/device_intelligence_breakdown_breakdown_device.rb +1 -1
  37. data/lib/onfido/models/device_intelligence_breakdown_breakdown_device_breakdown.rb +1 -1
  38. data/lib/onfido/models/device_intelligence_breakdown_properties.rb +1 -1
  39. data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +2 -42
  40. data/lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb +1 -1
  41. data/lib/onfido/models/device_intelligence_breakdown_properties_ip.rb +5 -35
  42. data/lib/onfido/models/device_intelligence_report.rb +1 -1
  43. data/lib/onfido/models/document.rb +2 -2
  44. data/lib/onfido/models/document_breakdown.rb +1 -1
  45. data/lib/onfido/models/document_breakdown_age_validation.rb +1 -1
  46. data/lib/onfido/models/document_breakdown_age_validation_breakdown.rb +1 -1
  47. data/lib/onfido/models/document_breakdown_compromised_document.rb +1 -1
  48. data/lib/onfido/models/document_breakdown_compromised_document_breakdown.rb +1 -1
  49. data/lib/onfido/models/document_breakdown_data_comparison.rb +1 -1
  50. data/lib/onfido/models/document_breakdown_data_comparison_breakdown.rb +1 -1
  51. data/lib/onfido/models/document_breakdown_data_comparison_breakdown_issuing_country.rb +1 -1
  52. data/lib/onfido/models/document_breakdown_data_consistency.rb +1 -1
  53. data/lib/onfido/models/document_breakdown_data_consistency_breakdown.rb +1 -1
  54. data/lib/onfido/models/document_breakdown_data_validation.rb +1 -1
  55. data/lib/onfido/models/document_breakdown_data_validation_breakdown.rb +1 -1
  56. data/lib/onfido/models/document_breakdown_data_validation_breakdown_document_expiration.rb +1 -1
  57. data/lib/onfido/models/document_breakdown_data_validation_breakdown_expiry_date.rb +1 -1
  58. data/lib/onfido/models/document_breakdown_image_integrity.rb +1 -1
  59. data/lib/onfido/models/document_breakdown_image_integrity_breakdown.rb +1 -1
  60. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_colour_picture.rb +1 -1
  61. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_conclusive_document_quality.rb +1 -1
  62. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_image_quality.rb +1 -1
  63. data/lib/onfido/models/document_breakdown_image_integrity_breakdown_supported_document.rb +1 -1
  64. data/lib/onfido/models/document_breakdown_issuing_authority.rb +1 -1
  65. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown.rb +1 -1
  66. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_active_authentication.rb +1 -1
  67. data/lib/onfido/models/document_breakdown_issuing_authority_breakdown_nfc_passive_authentication.rb +1 -1
  68. data/lib/onfido/models/document_breakdown_police_record.rb +1 -1
  69. data/lib/onfido/models/document_breakdown_visual_authenticity.rb +1 -1
  70. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown.rb +1 -1
  71. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_digital_tampering.rb +1 -1
  72. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_face_detection.rb +1 -1
  73. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_fonts.rb +1 -1
  74. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_original_document_present.rb +1 -1
  75. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_other.rb +1 -1
  76. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_picture_face_integrity.rb +1 -1
  77. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_security_features.rb +1 -1
  78. data/lib/onfido/models/document_breakdown_visual_authenticity_breakdown_template.rb +1 -1
  79. data/lib/onfido/models/document_cdq_reasons.rb +1 -1
  80. data/lib/onfido/models/document_iq_reasons.rb +1 -1
  81. data/lib/onfido/models/document_odp_reasons.rb +1 -1
  82. data/lib/onfido/models/document_properties.rb +3 -5
  83. data/lib/onfido/models/document_properties_address_lines.rb +1 -1
  84. data/lib/onfido/models/{document_properties_barcode_inner.rb → document_properties_barcode.rb} +4 -4
  85. data/lib/onfido/models/document_properties_document_classification.rb +1 -1
  86. data/lib/onfido/models/document_properties_document_numbers_inner.rb +1 -1
  87. data/lib/onfido/models/document_properties_driving_licence_information.rb +1 -1
  88. data/lib/onfido/models/document_properties_extracted_data.rb +1 -1
  89. data/lib/onfido/models/document_properties_nfc.rb +1 -1
  90. data/lib/onfido/models/document_report.rb +1 -1
  91. data/lib/onfido/models/document_response.rb +1 -1
  92. data/lib/onfido/models/document_shared.rb +2 -2
  93. data/lib/onfido/models/document_types.rb +7 -2
  94. data/lib/onfido/models/document_video_report.rb +1 -1
  95. data/lib/onfido/models/document_video_with_address_information_report.rb +1 -1
  96. data/lib/onfido/models/document_with_address_information_report.rb +1 -1
  97. data/lib/onfido/models/document_with_driver_verification_report.rb +1 -1
  98. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +3 -5
  99. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.rb +1 -1
  100. data/lib/onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.rb +1 -1
  101. data/lib/onfido/models/document_with_driving_licence_information_report.rb +1 -1
  102. data/lib/onfido/models/documents_list.rb +1 -1
  103. data/lib/onfido/models/error.rb +1 -1
  104. data/lib/onfido/models/error1.rb +1 -1
  105. data/lib/onfido/models/error_properties.rb +1 -1
  106. data/lib/onfido/models/error_properties1.rb +1 -1
  107. data/lib/onfido/models/extract_request.rb +1 -1
  108. data/lib/onfido/models/extraction.rb +1 -1
  109. data/lib/onfido/models/extraction_document_classification.rb +1 -1
  110. data/lib/onfido/models/extraction_extracted_data.rb +1 -1
  111. data/lib/onfido/models/facial_similarity_motion_breakdown.rb +1 -1
  112. data/lib/onfido/models/facial_similarity_motion_breakdown_face_comparison.rb +1 -1
  113. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity.rb +1 -1
  114. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown.rb +1 -1
  115. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  116. data/lib/onfido/models/facial_similarity_motion_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  117. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity.rb +1 -1
  118. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown.rb +1 -1
  119. data/lib/onfido/models/facial_similarity_motion_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  120. data/lib/onfido/models/facial_similarity_motion_properties.rb +1 -1
  121. data/lib/onfido/models/facial_similarity_motion_report.rb +1 -1
  122. data/lib/onfido/models/facial_similarity_photo_breakdown.rb +1 -1
  123. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison.rb +1 -1
  124. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown.rb +1 -1
  125. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match.rb +1 -1
  126. data/lib/onfido/models/facial_similarity_photo_breakdown_face_comparison_breakdown_face_match_properties.rb +1 -1
  127. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity.rb +1 -1
  128. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown.rb +1 -1
  129. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  130. data/lib/onfido/models/facial_similarity_photo_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  131. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity.rb +1 -1
  132. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown.rb +1 -1
  133. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  134. data/lib/onfido/models/facial_similarity_photo_breakdown_visual_authenticity_breakdown_spoofing_detection_properties.rb +1 -1
  135. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown.rb +1 -1
  136. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity.rb +1 -1
  137. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown.rb +1 -1
  138. data/lib/onfido/models/facial_similarity_photo_fully_auto_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  139. data/lib/onfido/models/facial_similarity_photo_fully_auto_properties.rb +1 -1
  140. data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +1 -1
  141. data/lib/onfido/models/facial_similarity_photo_properties.rb +1 -1
  142. data/lib/onfido/models/facial_similarity_photo_report.rb +1 -1
  143. data/lib/onfido/models/facial_similarity_video_breakdown.rb +1 -1
  144. data/lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb +1 -1
  145. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb +1 -1
  146. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown.rb +1 -1
  147. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_face_detected.rb +1 -1
  148. data/lib/onfido/models/facial_similarity_video_breakdown_image_integrity_breakdown_source_integrity.rb +1 -1
  149. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity.rb +1 -1
  150. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown.rb +1 -1
  151. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_liveness_detected.rb +1 -1
  152. data/lib/onfido/models/facial_similarity_video_breakdown_visual_authenticity_breakdown_spoofing_detection.rb +1 -1
  153. data/lib/onfido/models/facial_similarity_video_properties.rb +1 -1
  154. data/lib/onfido/models/facial_similarity_video_report.rb +1 -1
  155. data/lib/onfido/models/id_number.rb +1 -1
  156. data/lib/onfido/models/id_photo.rb +1 -1
  157. data/lib/onfido/models/id_photo_response.rb +1 -1
  158. data/lib/onfido/models/id_photos_list.rb +1 -1
  159. data/lib/onfido/models/identity_enhanced_breakdown.rb +1 -1
  160. data/lib/onfido/models/identity_enhanced_breakdown_address.rb +1 -1
  161. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown.rb +1 -1
  162. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies.rb +1 -1
  163. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_credit_agencies_properties.rb +1 -1
  164. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_telephone_database.rb +1 -1
  165. data/lib/onfido/models/identity_enhanced_breakdown_address_breakdown_voting_register.rb +1 -1
  166. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth.rb +1 -1
  167. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown.rb +1 -1
  168. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_credit_agencies.rb +1 -1
  169. data/lib/onfido/models/identity_enhanced_breakdown_date_of_birth_breakdown_voting_register.rb +1 -1
  170. data/lib/onfido/models/identity_enhanced_breakdown_mortality.rb +1 -1
  171. data/lib/onfido/models/identity_enhanced_breakdown_sources.rb +1 -1
  172. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown.rb +1 -1
  173. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources.rb +1 -1
  174. data/lib/onfido/models/identity_enhanced_breakdown_sources_breakdown_total_sources_properties.rb +1 -1
  175. data/lib/onfido/models/identity_enhanced_properties.rb +1 -1
  176. data/lib/onfido/models/identity_enhanced_properties_matched_addresses_inner.rb +1 -1
  177. data/lib/onfido/models/identity_enhanced_report.rb +1 -1
  178. data/lib/onfido/models/india_pan_report.rb +1 -1
  179. data/lib/onfido/models/india_pan_report_all_of_breakdown.rb +1 -1
  180. data/lib/onfido/models/india_pan_report_all_of_breakdown_device.rb +1 -1
  181. data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown.rb +1 -1
  182. data/lib/onfido/models/india_pan_report_all_of_breakdown_device_breakdown_pan_valid.rb +1 -1
  183. data/lib/onfido/models/india_pan_report_all_of_properties.rb +1 -1
  184. data/lib/onfido/models/india_pan_report_all_of_properties_device.rb +1 -1
  185. data/lib/onfido/models/known_faces_breakdown.rb +1 -1
  186. data/lib/onfido/models/known_faces_breakdown_image_integrity.rb +1 -1
  187. data/lib/onfido/models/known_faces_breakdown_previously_seen_faces.rb +1 -1
  188. data/lib/onfido/models/known_faces_properties.rb +1 -1
  189. data/lib/onfido/models/known_faces_properties_matches_inner.rb +1 -1
  190. data/lib/onfido/models/known_faces_report.rb +1 -1
  191. data/lib/onfido/models/live_photo.rb +1 -1
  192. data/lib/onfido/models/live_photo_response.rb +1 -1
  193. data/lib/onfido/models/live_photos_list.rb +1 -1
  194. data/lib/onfido/models/live_video.rb +1 -1
  195. data/lib/onfido/models/live_videos_list.rb +1 -1
  196. data/lib/onfido/models/location.rb +1 -1
  197. data/lib/onfido/models/location_builder.rb +1 -1
  198. data/lib/onfido/models/location_shared.rb +1 -1
  199. data/lib/onfido/models/motion_capture.rb +1 -1
  200. data/lib/onfido/models/motion_captures_list.rb +1 -1
  201. data/lib/onfido/models/photo_auto_reasons.rb +1 -1
  202. data/lib/onfido/models/photo_reasons.rb +1 -1
  203. data/lib/onfido/models/proof_of_address_breakdown.rb +1 -1
  204. data/lib/onfido/models/proof_of_address_breakdown_data_comparison.rb +1 -1
  205. data/lib/onfido/models/proof_of_address_breakdown_data_comparison_breakdown.rb +1 -1
  206. data/lib/onfido/models/proof_of_address_breakdown_document_classification.rb +1 -1
  207. data/lib/onfido/models/proof_of_address_breakdown_document_classification_breakdown.rb +1 -1
  208. data/lib/onfido/models/proof_of_address_breakdown_image_integrity.rb +1 -1
  209. data/lib/onfido/models/proof_of_address_breakdown_image_integrity_breakdown.rb +1 -1
  210. data/lib/onfido/models/proof_of_address_properties.rb +1 -1
  211. data/lib/onfido/models/proof_of_address_report.rb +1 -1
  212. data/lib/onfido/models/repeat_attempts_list.rb +1 -1
  213. data/lib/onfido/models/repeat_attempts_list_repeat_attempts_inner.rb +1 -1
  214. data/lib/onfido/models/report.rb +1 -1
  215. data/lib/onfido/models/report_document.rb +1 -1
  216. data/lib/onfido/models/report_name.rb +1 -1
  217. data/lib/onfido/models/report_result.rb +1 -1
  218. data/lib/onfido/models/report_shared.rb +1 -1
  219. data/lib/onfido/models/report_status.rb +1 -1
  220. data/lib/onfido/models/report_sub_result.rb +1 -1
  221. data/lib/onfido/models/reports_list.rb +1 -1
  222. data/lib/onfido/models/results_feedback.rb +1 -1
  223. data/lib/onfido/models/sdk_token.rb +1 -1
  224. data/lib/onfido/models/sdk_token_builder.rb +1 -1
  225. data/lib/onfido/models/sdk_token_request.rb +1 -1
  226. data/lib/onfido/models/sdk_token_response.rb +1 -1
  227. data/lib/onfido/models/task.rb +1 -1
  228. data/lib/onfido/models/task_item.rb +23 -2
  229. data/lib/onfido/models/timeline_file_reference.rb +1 -1
  230. data/lib/onfido/models/us_driving_licence_breakdown.rb +1 -1
  231. data/lib/onfido/models/us_driving_licence_breakdown_address.rb +1 -1
  232. data/lib/onfido/models/us_driving_licence_breakdown_address_breakdown.rb +1 -1
  233. data/lib/onfido/models/us_driving_licence_breakdown_document.rb +1 -1
  234. data/lib/onfido/models/us_driving_licence_breakdown_document_breakdown.rb +1 -1
  235. data/lib/onfido/models/us_driving_licence_breakdown_personal.rb +1 -1
  236. data/lib/onfido/models/us_driving_licence_breakdown_personal_breakdown.rb +1 -1
  237. data/lib/onfido/models/us_driving_licence_builder.rb +1 -1
  238. data/lib/onfido/models/us_driving_licence_report.rb +1 -1
  239. data/lib/onfido/models/us_driving_licence_shared.rb +1 -1
  240. data/lib/onfido/models/video_reasons.rb +1 -1
  241. data/lib/onfido/models/watchlist_aml_breakdown.rb +1 -1
  242. data/lib/onfido/models/watchlist_aml_breakdown_adverse_media.rb +1 -1
  243. data/lib/onfido/models/watchlist_aml_breakdown_legal_and_regulatory_warnings.rb +1 -1
  244. data/lib/onfido/models/watchlist_aml_breakdown_politically_exposed_person.rb +1 -1
  245. data/lib/onfido/models/watchlist_aml_breakdown_sanction.rb +1 -1
  246. data/lib/onfido/models/watchlist_aml_properties.rb +1 -1
  247. data/lib/onfido/models/watchlist_aml_report.rb +1 -1
  248. data/lib/onfido/models/watchlist_enhanced_breakdown.rb +1 -1
  249. data/lib/onfido/models/watchlist_enhanced_properties.rb +1 -1
  250. data/lib/onfido/models/watchlist_enhanced_properties_records_inner.rb +1 -1
  251. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_address_inner.rb +1 -1
  252. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_alias_inner.rb +1 -1
  253. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_associate_inner.rb +1 -1
  254. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_attribute_inner.rb +1 -1
  255. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner.rb +1 -1
  256. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_event_inner_source.rb +1 -1
  257. data/lib/onfido/models/watchlist_enhanced_properties_records_inner_source_inner.rb +1 -1
  258. data/lib/onfido/models/watchlist_enhanced_report.rb +1 -1
  259. data/lib/onfido/models/watchlist_monitor.rb +1 -1
  260. data/lib/onfido/models/watchlist_monitor_builder.rb +1 -1
  261. data/lib/onfido/models/watchlist_monitor_match.rb +1 -1
  262. data/lib/onfido/models/watchlist_monitor_matches_list.rb +1 -1
  263. data/lib/onfido/models/watchlist_monitor_matches_updater.rb +1 -1
  264. data/lib/onfido/models/watchlist_monitor_response.rb +1 -1
  265. data/lib/onfido/models/watchlist_monitor_shared.rb +1 -1
  266. data/lib/onfido/models/watchlist_monitors_list.rb +1 -1
  267. data/lib/onfido/models/watchlist_peps_only_report.rb +1 -1
  268. data/lib/onfido/models/watchlist_sanctions_only_report.rb +1 -1
  269. data/lib/onfido/models/watchlist_standard_breakdown.rb +1 -1
  270. data/lib/onfido/models/watchlist_standard_properties.rb +1 -1
  271. data/lib/onfido/models/watchlist_standard_report.rb +1 -1
  272. data/lib/onfido/models/webhook.rb +1 -1
  273. data/lib/onfido/models/webhook_builder.rb +1 -1
  274. data/lib/onfido/models/webhook_create.rb +1 -1
  275. data/lib/onfido/models/webhook_event.rb +1 -1
  276. data/lib/onfido/models/webhook_event_object_status.rb +58 -0
  277. data/lib/onfido/models/webhook_event_payload.rb +3 -4
  278. data/lib/onfido/models/webhook_event_payload_object.rb +24 -3
  279. data/lib/onfido/models/webhook_event_payload_resource.rb +380 -0
  280. data/lib/onfido/models/webhook_event_resource_type.rb +45 -0
  281. data/lib/onfido/models/webhook_event_type.rb +1 -1
  282. data/lib/onfido/models/webhook_resend.rb +1 -1
  283. data/lib/onfido/models/webhook_response.rb +1 -1
  284. data/lib/onfido/models/webhook_shared.rb +1 -1
  285. data/lib/onfido/models/webhook_update.rb +1 -1
  286. data/lib/onfido/models/webhook_updater.rb +1 -1
  287. data/lib/onfido/models/webhooks_list.rb +1 -1
  288. data/lib/onfido/models/webhooks_resend_item.rb +1 -1
  289. data/lib/onfido/models/workflow_run.rb +6 -16
  290. data/lib/onfido/models/workflow_run_builder.rb +3 -2
  291. data/lib/onfido/models/{workflow_run_response_error.rb → workflow_run_error.rb} +4 -5
  292. data/lib/onfido/models/{workflow_run_shared_link.rb → workflow_run_link.rb} +8 -5
  293. data/lib/onfido/models/workflow_run_request.rb +1 -1
  294. data/lib/onfido/models/workflow_run_response.rb +4 -15
  295. data/lib/onfido/models/workflow_run_shared.rb +3 -2
  296. data/lib/onfido/models/workflow_run_status.rb +47 -0
  297. data/lib/onfido/version.rb +2 -2
  298. data/lib/onfido.rb +11 -6
  299. data/onfido.gemspec +1 -1
  300. data/spec/{webhook_event_verifier_spec.rb → classic_webhook_event_verifier_spec.rb} +4 -4
  301. data/spec/integrations/applicant_spec.rb +5 -1
  302. data/spec/integrations/check_spec.rb +4 -4
  303. data/spec/integrations/document_spec.rb +1 -1
  304. data/spec/integrations/qualified_electronic_signature_spec.rb +1 -1
  305. data/spec/integrations/report_schema_spec.rb +17 -0
  306. data/spec/integrations/workflow_run_spec.rb +3 -3
  307. data/spec/shared_contexts/with_check.rb +1 -0
  308. data/spec/shared_contexts/with_document.rb +1 -1
  309. data/spec/studio_webhook_event_verifier_spec.rb +39 -0
  310. metadata +31 -23
  311. data/lib/onfido/models/consents_builder.rb +0 -205
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3.6
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
9
+ Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -51,7 +51,7 @@ module Onfido
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
@@ -126,7 +126,7 @@ module Onfido
126
126
  # header parameters
127
127
  header_params = opts[:header_params] || {}
128
128
  # HTTP header 'Accept' (if needed)
129
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
130
130
  # HTTP header 'Content-Type'
131
131
  content_type = @api_client.select_header_content_type(['application/json'])
132
132
  if !content_type.nil?
@@ -194,7 +194,7 @@ module Onfido
194
194
  # header parameters
195
195
  header_params = opts[:header_params] || {}
196
196
  # HTTP header 'Accept' (if needed)
197
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
198
198
  # HTTP header 'Content-Type'
199
199
  content_type = @api_client.select_header_content_type(['application/json'])
200
200
  if !content_type.nil?
@@ -262,7 +262,7 @@ module Onfido
262
262
  # header parameters
263
263
  header_params = opts[:header_params] || {}
264
264
  # HTTP header 'Accept' (if needed)
265
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
266
266
  # HTTP header 'Content-Type'
267
267
  content_type = @api_client.select_header_content_type(['application/json'])
268
268
  if !content_type.nil?
@@ -330,7 +330,7 @@ module Onfido
330
330
  # header parameters
331
331
  header_params = opts[:header_params] || {}
332
332
  # HTTP header 'Accept' (if needed)
333
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
334
334
 
335
335
  # form parameters
336
336
  form_params = opts[:form_params] || {}
@@ -393,7 +393,7 @@ module Onfido
393
393
  # header parameters
394
394
  header_params = opts[:header_params] || {}
395
395
  # HTTP header 'Accept' (if needed)
396
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
397
397
  # HTTP header 'Content-Type'
398
398
  content_type = @api_client.select_header_content_type(['application/json'])
399
399
  if !content_type.nil?
@@ -461,7 +461,7 @@ module Onfido
461
461
  # header parameters
462
462
  header_params = opts[:header_params] || {}
463
463
  # HTTP header 'Accept' (if needed)
464
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
464
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
465
465
  # HTTP header 'Content-Type'
466
466
  content_type = @api_client.select_header_content_type(['application/json'])
467
467
  if !content_type.nil?
@@ -529,7 +529,7 @@ module Onfido
529
529
  # header parameters
530
530
  header_params = opts[:header_params] || {}
531
531
  # HTTP header 'Accept' (if needed)
532
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
532
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
533
533
  # HTTP header 'Content-Type'
534
534
  content_type = @api_client.select_header_content_type(['application/json'])
535
535
  if !content_type.nil?
@@ -597,7 +597,7 @@ module Onfido
597
597
  # header parameters
598
598
  header_params = opts[:header_params] || {}
599
599
  # HTTP header 'Accept' (if needed)
600
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
600
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
601
601
 
602
602
  # form parameters
603
603
  form_params = opts[:form_params] || {}
@@ -660,7 +660,7 @@ module Onfido
660
660
  # header parameters
661
661
  header_params = opts[:header_params] || {}
662
662
  # HTTP header 'Accept' (if needed)
663
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
663
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
664
664
 
665
665
  # form parameters
666
666
  form_params = opts[:form_params] || {}
@@ -723,7 +723,7 @@ module Onfido
723
723
  # header parameters
724
724
  header_params = opts[:header_params] || {}
725
725
  # HTTP header 'Accept' (if needed)
726
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
726
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
727
727
 
728
728
  # form parameters
729
729
  form_params = opts[:form_params] || {}
@@ -786,7 +786,7 @@ module Onfido
786
786
  # header parameters
787
787
  header_params = opts[:header_params] || {}
788
788
  # HTTP header 'Accept' (if needed)
789
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json'])
789
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept']
790
790
 
791
791
  # form parameters
792
792
  form_params = opts[:form_params] || {}
@@ -849,7 +849,7 @@ module Onfido
849
849
  # header parameters
850
850
  header_params = opts[:header_params] || {}
851
851
  # HTTP header 'Accept' (if needed)
852
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
852
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
853
853
 
854
854
  # form parameters
855
855
  form_params = opts[:form_params] || {}
@@ -912,7 +912,7 @@ module Onfido
912
912
  # header parameters
913
913
  header_params = opts[:header_params] || {}
914
914
  # HTTP header 'Accept' (if needed)
915
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
915
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
916
916
 
917
917
  # form parameters
918
918
  form_params = opts[:form_params] || {}
@@ -975,7 +975,7 @@ module Onfido
975
975
  # header parameters
976
976
  header_params = opts[:header_params] || {}
977
977
  # HTTP header 'Accept' (if needed)
978
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
978
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
979
979
 
980
980
  # form parameters
981
981
  form_params = opts[:form_params] || {}
@@ -1038,7 +1038,7 @@ module Onfido
1038
1038
  # header parameters
1039
1039
  header_params = opts[:header_params] || {}
1040
1040
  # HTTP header 'Accept' (if needed)
1041
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
1041
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
1042
1042
 
1043
1043
  # form parameters
1044
1044
  form_params = opts[:form_params] || {}
@@ -1101,7 +1101,7 @@ module Onfido
1101
1101
  # header parameters
1102
1102
  header_params = opts[:header_params] || {}
1103
1103
  # HTTP header 'Accept' (if needed)
1104
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
1104
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
1105
1105
 
1106
1106
  # form parameters
1107
1107
  form_params = opts[:form_params] || {}
@@ -1164,7 +1164,7 @@ module Onfido
1164
1164
  # header parameters
1165
1165
  header_params = opts[:header_params] || {}
1166
1166
  # HTTP header 'Accept' (if needed)
1167
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
1167
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
1168
1168
 
1169
1169
  # form parameters
1170
1170
  form_params = opts[:form_params] || {}
@@ -1227,7 +1227,7 @@ module Onfido
1227
1227
  # header parameters
1228
1228
  header_params = opts[:header_params] || {}
1229
1229
  # HTTP header 'Accept' (if needed)
1230
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
1230
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
1231
1231
 
1232
1232
  # form parameters
1233
1233
  form_params = opts[:form_params] || {}
@@ -1290,7 +1290,7 @@ module Onfido
1290
1290
  # header parameters
1291
1291
  header_params = opts[:header_params] || {}
1292
1292
  # HTTP header 'Accept' (if needed)
1293
- header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json'])
1293
+ header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept']
1294
1294
 
1295
1295
  # form parameters
1296
1296
  form_params = opts[:form_params] || {}
@@ -1361,7 +1361,7 @@ module Onfido
1361
1361
  # header parameters
1362
1362
  header_params = opts[:header_params] || {}
1363
1363
  # HTTP header 'Accept' (if needed)
1364
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json'])
1364
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept']
1365
1365
 
1366
1366
  # form parameters
1367
1367
  form_params = opts[:form_params] || {}
@@ -1424,7 +1424,7 @@ module Onfido
1424
1424
  # header parameters
1425
1425
  header_params = opts[:header_params] || {}
1426
1426
  # HTTP header 'Accept' (if needed)
1427
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json'])
1427
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept']
1428
1428
 
1429
1429
  # form parameters
1430
1430
  form_params = opts[:form_params] || {}
@@ -1487,7 +1487,7 @@ module Onfido
1487
1487
  # header parameters
1488
1488
  header_params = opts[:header_params] || {}
1489
1489
  # HTTP header 'Accept' (if needed)
1490
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1490
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1491
1491
  # HTTP header 'Content-Type'
1492
1492
  content_type = @api_client.select_header_content_type(['application/json'])
1493
1493
  if !content_type.nil?
@@ -1556,7 +1556,7 @@ module Onfido
1556
1556
  # header parameters
1557
1557
  header_params = opts[:header_params] || {}
1558
1558
  # HTTP header 'Accept' (if needed)
1559
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1559
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1560
1560
 
1561
1561
  # form parameters
1562
1562
  form_params = opts[:form_params] || {}
@@ -1619,7 +1619,7 @@ module Onfido
1619
1619
  # header parameters
1620
1620
  header_params = opts[:header_params] || {}
1621
1621
  # HTTP header 'Accept' (if needed)
1622
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1622
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1623
1623
 
1624
1624
  # form parameters
1625
1625
  form_params = opts[:form_params] || {}
@@ -1682,7 +1682,7 @@ module Onfido
1682
1682
  # header parameters
1683
1683
  header_params = opts[:header_params] || {}
1684
1684
  # HTTP header 'Accept' (if needed)
1685
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1685
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1686
1686
 
1687
1687
  # form parameters
1688
1688
  form_params = opts[:form_params] || {}
@@ -1745,7 +1745,7 @@ module Onfido
1745
1745
  # header parameters
1746
1746
  header_params = opts[:header_params] || {}
1747
1747
  # HTTP header 'Accept' (if needed)
1748
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1748
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1749
1749
 
1750
1750
  # form parameters
1751
1751
  form_params = opts[:form_params] || {}
@@ -1808,7 +1808,7 @@ module Onfido
1808
1808
  # header parameters
1809
1809
  header_params = opts[:header_params] || {}
1810
1810
  # HTTP header 'Accept' (if needed)
1811
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1812
1812
 
1813
1813
  # form parameters
1814
1814
  form_params = opts[:form_params] || {}
@@ -1871,7 +1871,7 @@ module Onfido
1871
1871
  # header parameters
1872
1872
  header_params = opts[:header_params] || {}
1873
1873
  # HTTP header 'Accept' (if needed)
1874
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1874
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1875
1875
 
1876
1876
  # form parameters
1877
1877
  form_params = opts[:form_params] || {}
@@ -1934,7 +1934,7 @@ module Onfido
1934
1934
  # header parameters
1935
1935
  header_params = opts[:header_params] || {}
1936
1936
  # HTTP header 'Accept' (if needed)
1937
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1937
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1938
1938
 
1939
1939
  # form parameters
1940
1940
  form_params = opts[:form_params] || {}
@@ -1997,7 +1997,7 @@ module Onfido
1997
1997
  # header parameters
1998
1998
  header_params = opts[:header_params] || {}
1999
1999
  # HTTP header 'Accept' (if needed)
2000
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2000
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2001
2001
 
2002
2002
  # form parameters
2003
2003
  form_params = opts[:form_params] || {}
@@ -2060,7 +2060,7 @@ module Onfido
2060
2060
  # header parameters
2061
2061
  header_params = opts[:header_params] || {}
2062
2062
  # HTTP header 'Accept' (if needed)
2063
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2063
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2064
2064
 
2065
2065
  # form parameters
2066
2066
  form_params = opts[:form_params] || {}
@@ -2129,7 +2129,7 @@ module Onfido
2129
2129
  # header parameters
2130
2130
  header_params = opts[:header_params] || {}
2131
2131
  # HTTP header 'Accept' (if needed)
2132
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2133
2133
 
2134
2134
  # form parameters
2135
2135
  form_params = opts[:form_params] || {}
@@ -2198,7 +2198,7 @@ module Onfido
2198
2198
  # header parameters
2199
2199
  header_params = opts[:header_params] || {}
2200
2200
  # HTTP header 'Accept' (if needed)
2201
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json'])
2201
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept']
2202
2202
 
2203
2203
  # form parameters
2204
2204
  form_params = opts[:form_params] || {}
@@ -2261,7 +2261,7 @@ module Onfido
2261
2261
  # header parameters
2262
2262
  header_params = opts[:header_params] || {}
2263
2263
  # HTTP header 'Accept' (if needed)
2264
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2264
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2265
2265
 
2266
2266
  # form parameters
2267
2267
  form_params = opts[:form_params] || {}
@@ -2324,7 +2324,7 @@ module Onfido
2324
2324
  # header parameters
2325
2325
  header_params = opts[:header_params] || {}
2326
2326
  # HTTP header 'Accept' (if needed)
2327
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2328
2328
 
2329
2329
  # form parameters
2330
2330
  form_params = opts[:form_params] || {}
@@ -2387,7 +2387,7 @@ module Onfido
2387
2387
  # header parameters
2388
2388
  header_params = opts[:header_params] || {}
2389
2389
  # HTTP header 'Accept' (if needed)
2390
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2391
2391
 
2392
2392
  # form parameters
2393
2393
  form_params = opts[:form_params] || {}
@@ -2450,7 +2450,7 @@ module Onfido
2450
2450
  # header parameters
2451
2451
  header_params = opts[:header_params] || {}
2452
2452
  # HTTP header 'Accept' (if needed)
2453
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2454
2454
 
2455
2455
  # form parameters
2456
2456
  form_params = opts[:form_params] || {}
@@ -2513,7 +2513,7 @@ module Onfido
2513
2513
  # header parameters
2514
2514
  header_params = opts[:header_params] || {}
2515
2515
  # HTTP header 'Accept' (if needed)
2516
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2516
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2517
2517
  # HTTP header 'Content-Type'
2518
2518
  content_type = @api_client.select_header_content_type(['application/json'])
2519
2519
  if !content_type.nil?
@@ -2584,7 +2584,7 @@ module Onfido
2584
2584
  # header parameters
2585
2585
  header_params = opts[:header_params] || {}
2586
2586
  # HTTP header 'Accept' (if needed)
2587
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2587
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2588
2588
 
2589
2589
  # form parameters
2590
2590
  form_params = opts[:form_params] || {}
@@ -2648,7 +2648,7 @@ module Onfido
2648
2648
  # header parameters
2649
2649
  header_params = opts[:header_params] || {}
2650
2650
  # HTTP header 'Accept' (if needed)
2651
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2651
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2652
2652
 
2653
2653
  # form parameters
2654
2654
  form_params = opts[:form_params] || {}
@@ -2712,7 +2712,7 @@ module Onfido
2712
2712
  # header parameters
2713
2713
  header_params = opts[:header_params] || {}
2714
2714
  # HTTP header 'Accept' (if needed)
2715
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2715
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2716
2716
 
2717
2717
  # form parameters
2718
2718
  form_params = opts[:form_params] || {}
@@ -2776,7 +2776,7 @@ module Onfido
2776
2776
  # header parameters
2777
2777
  header_params = opts[:header_params] || {}
2778
2778
  # HTTP header 'Accept' (if needed)
2779
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2779
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2780
2780
 
2781
2781
  # form parameters
2782
2782
  form_params = opts[:form_params] || {}
@@ -2840,7 +2840,7 @@ module Onfido
2840
2840
  # header parameters
2841
2841
  header_params = opts[:header_params] || {}
2842
2842
  # HTTP header 'Accept' (if needed)
2843
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2843
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2844
2844
 
2845
2845
  # form parameters
2846
2846
  form_params = opts[:form_params] || {}
@@ -2904,7 +2904,7 @@ module Onfido
2904
2904
  # header parameters
2905
2905
  header_params = opts[:header_params] || {}
2906
2906
  # HTTP header 'Accept' (if needed)
2907
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2907
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2908
2908
 
2909
2909
  # form parameters
2910
2910
  form_params = opts[:form_params] || {}
@@ -2968,7 +2968,7 @@ module Onfido
2968
2968
  # header parameters
2969
2969
  header_params = opts[:header_params] || {}
2970
2970
  # HTTP header 'Accept' (if needed)
2971
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2971
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2972
2972
 
2973
2973
  # form parameters
2974
2974
  form_params = opts[:form_params] || {}
@@ -3031,7 +3031,7 @@ module Onfido
3031
3031
  # header parameters
3032
3032
  header_params = opts[:header_params] || {}
3033
3033
  # HTTP header 'Accept' (if needed)
3034
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3034
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3035
3035
 
3036
3036
  # form parameters
3037
3037
  form_params = opts[:form_params] || {}
@@ -3095,7 +3095,7 @@ module Onfido
3095
3095
  # header parameters
3096
3096
  header_params = opts[:header_params] || {}
3097
3097
  # HTTP header 'Accept' (if needed)
3098
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3098
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3099
3099
 
3100
3100
  # form parameters
3101
3101
  form_params = opts[:form_params] || {}
@@ -3158,7 +3158,7 @@ module Onfido
3158
3158
  # header parameters
3159
3159
  header_params = opts[:header_params] || {}
3160
3160
  # HTTP header 'Accept' (if needed)
3161
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3161
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3162
3162
 
3163
3163
  # form parameters
3164
3164
  form_params = opts[:form_params] || {}
@@ -3221,7 +3221,7 @@ module Onfido
3221
3221
  # header parameters
3222
3222
  header_params = opts[:header_params] || {}
3223
3223
  # HTTP header 'Accept' (if needed)
3224
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3224
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3225
3225
 
3226
3226
  # form parameters
3227
3227
  form_params = opts[:form_params] || {}
@@ -3288,7 +3288,7 @@ module Onfido
3288
3288
  # header parameters
3289
3289
  header_params = opts[:header_params] || {}
3290
3290
  # HTTP header 'Accept' (if needed)
3291
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3291
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3292
3292
 
3293
3293
  # form parameters
3294
3294
  form_params = opts[:form_params] || {}
@@ -3345,7 +3345,7 @@ module Onfido
3345
3345
  # header parameters
3346
3346
  header_params = opts[:header_params] || {}
3347
3347
  # HTTP header 'Accept' (if needed)
3348
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3348
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3349
3349
 
3350
3350
  # form parameters
3351
3351
  form_params = opts[:form_params] || {}
@@ -3421,7 +3421,7 @@ module Onfido
3421
3421
  # header parameters
3422
3422
  header_params = opts[:header_params] || {}
3423
3423
  # HTTP header 'Accept' (if needed)
3424
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3424
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3425
3425
 
3426
3426
  # form parameters
3427
3427
  form_params = opts[:form_params] || {}
@@ -3478,7 +3478,7 @@ module Onfido
3478
3478
  # header parameters
3479
3479
  header_params = opts[:header_params] || {}
3480
3480
  # HTTP header 'Accept' (if needed)
3481
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json'])
3481
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
3482
3482
 
3483
3483
  # form parameters
3484
3484
  form_params = opts[:form_params] || {}
@@ -3541,7 +3541,7 @@ module Onfido
3541
3541
  # header parameters
3542
3542
  header_params = opts[:header_params] || {}
3543
3543
  # HTTP header 'Accept' (if needed)
3544
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3544
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3545
3545
  # HTTP header 'Content-Type'
3546
3546
  content_type = @api_client.select_header_content_type(['application/json'])
3547
3547
  if !content_type.nil?
@@ -3609,7 +3609,7 @@ module Onfido
3609
3609
  # header parameters
3610
3610
  header_params = opts[:header_params] || {}
3611
3611
  # HTTP header 'Accept' (if needed)
3612
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3613
3613
  # HTTP header 'Content-Type'
3614
3614
  content_type = @api_client.select_header_content_type(['application/json'])
3615
3615
  if !content_type.nil?
@@ -3677,7 +3677,7 @@ module Onfido
3677
3677
  # header parameters
3678
3678
  header_params = opts[:header_params] || {}
3679
3679
  # HTTP header 'Accept' (if needed)
3680
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3681
3681
 
3682
3682
  # form parameters
3683
3683
  form_params = opts[:form_params] || {}
@@ -3740,7 +3740,7 @@ module Onfido
3740
3740
  # header parameters
3741
3741
  header_params = opts[:header_params] || {}
3742
3742
  # HTTP header 'Accept' (if needed)
3743
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3743
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3744
3744
 
3745
3745
  # form parameters
3746
3746
  form_params = opts[:form_params] || {}
@@ -3803,7 +3803,7 @@ module Onfido
3803
3803
  # header parameters
3804
3804
  header_params = opts[:header_params] || {}
3805
3805
  # HTTP header 'Accept' (if needed)
3806
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3806
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3807
3807
 
3808
3808
  # form parameters
3809
3809
  form_params = opts[:form_params] || {}
@@ -3872,7 +3872,7 @@ module Onfido
3872
3872
  # header parameters
3873
3873
  header_params = opts[:header_params] || {}
3874
3874
  # HTTP header 'Accept' (if needed)
3875
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3875
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3876
3876
  # HTTP header 'Content-Type'
3877
3877
  content_type = @api_client.select_header_content_type(['application/json'])
3878
3878
  if !content_type.nil?
@@ -3946,7 +3946,7 @@ module Onfido
3946
3946
  # header parameters
3947
3947
  header_params = opts[:header_params] || {}
3948
3948
  # HTTP header 'Accept' (if needed)
3949
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3949
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3950
3950
  # HTTP header 'Content-Type'
3951
3951
  content_type = @api_client.select_header_content_type(['application/json'])
3952
3952
  if !content_type.nil?
@@ -4020,7 +4020,7 @@ module Onfido
4020
4020
  # header parameters
4021
4021
  header_params = opts[:header_params] || {}
4022
4022
  # HTTP header 'Accept' (if needed)
4023
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4023
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4024
4024
  # HTTP header 'Content-Type'
4025
4025
  content_type = @api_client.select_header_content_type(['application/json'])
4026
4026
  if !content_type.nil?
@@ -4058,7 +4058,7 @@ module Onfido
4058
4058
 
4059
4059
  # Upload a document
4060
4060
  # Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
4061
- # @param type [String] The type of document
4061
+ # @param type [DocumentTypes] The type of document
4062
4062
  # @param applicant_id [String] The ID of the applicant whose document is being uploaded.
4063
4063
  # @param file [File] The file to be uploaded.
4064
4064
  # @param [Hash] opts the optional parameters
@@ -4075,7 +4075,7 @@ module Onfido
4075
4075
 
4076
4076
  # Upload a document
4077
4077
  # Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
4078
- # @param type [String] The type of document
4078
+ # @param type [DocumentTypes] The type of document
4079
4079
  # @param applicant_id [String] The ID of the applicant whose document is being uploaded.
4080
4080
  # @param file [File] The file to be uploaded.
4081
4081
  # @param [Hash] opts the optional parameters
@@ -4118,7 +4118,7 @@ module Onfido
4118
4118
  # header parameters
4119
4119
  header_params = opts[:header_params] || {}
4120
4120
  # HTTP header 'Accept' (if needed)
4121
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4122
4122
  # HTTP header 'Content-Type'
4123
4123
  content_type = @api_client.select_header_content_type(['multipart/form-data'])
4124
4124
  if !content_type.nil?
@@ -4192,7 +4192,7 @@ module Onfido
4192
4192
  # header parameters
4193
4193
  header_params = opts[:header_params] || {}
4194
4194
  # HTTP header 'Accept' (if needed)
4195
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4196
4196
  # HTTP header 'Content-Type'
4197
4197
  content_type = @api_client.select_header_content_type(['multipart/form-data'])
4198
4198
  if !content_type.nil?
@@ -4262,7 +4262,7 @@ module Onfido
4262
4262
  # header parameters
4263
4263
  header_params = opts[:header_params] || {}
4264
4264
  # HTTP header 'Accept' (if needed)
4265
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4266
4266
  # HTTP header 'Content-Type'
4267
4267
  content_type = @api_client.select_header_content_type(['multipart/form-data'])
4268
4268
  if !content_type.nil?