lib/yoti/doc_scan/session/retrieve/resource_response.rb in yoti-1.9.0 vs lib/yoti/doc_scan/session/retrieve/resource_response.rb in yoti-1.10.0

- old
+ new

@@ -24,9 +24,11 @@ Validation.assert_is_a(Array, resource['tasks'], 'tasks') @tasks = resource['tasks'].map do |task| case task['type'] when Constants::ID_DOCUMENT_TEXT_DATA_EXTRACTION TextExtractionTaskResponse.new(task) + when Constants::SUPPLEMENTARY_DOCUMENT_TEXT_DATA_EXTRACTION + SupplementaryDocumentTextExtractionTaskResponse.new(task) else TaskResponse.new(task) end end end