cloudmersive-documentai-api-client 2.2.0 → 2.2.1
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.
- checksums.yaml +4 -4
- data/README.md +24 -10
- data/cloudmersive-documentai-api-client.gemspec +3 -3
- data/docs/AdvancedExtractClassificationRequest.md +3 -0
- data/docs/AdvancedExtractFieldsRequest.md +3 -0
- data/docs/AnalyzeApi.md +58 -2
- data/docs/DocumentAdvancedClassificationResult.md +1 -0
- data/docs/DocumentPolicyRequest.md +1 -0
- data/docs/DocumentQuestionAnswerItem.md +11 -0
- data/docs/DocumentQuestionAnswersResult.md +10 -0
- data/docs/DocumentQuestionBoolean.md +9 -0
- data/docs/DocumentQuestionChoiceItem.md +9 -0
- data/docs/DocumentQuestionFreeResponse.md +9 -0
- data/docs/DocumentQuestionMultipleChoice.md +10 -0
- data/docs/DocumentQuestionsRequest.md +12 -0
- data/docs/ExtractApi.md +76 -14
- data/docs/ExtractFieldsAdvancedResponse.md +10 -0
- data/docs/FieldAdvancedValue.md +9 -0
- data/docs/FieldValue.md +2 -1
- data/docs/RunBatchJobApi.md +9 -9
- data/docs/SplitDocumentResponse.md +9 -0
- data/docs/SubDocument.md +11 -0
- data/lib/cloudmersive-documentai-api-client/api/analyze_api.rb +54 -4
- data/lib/cloudmersive-documentai-api-client/api/extract_api.rb +85 -25
- data/lib/cloudmersive-documentai-api-client/api/run_batch_job_api.rb +14 -14
- data/lib/cloudmersive-documentai-api-client/api_client.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/api_error.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/configuration.rb +3 -3
- data/lib/cloudmersive-documentai-api-client/models/advanced_extract_classification_request.rb +36 -6
- data/lib/cloudmersive-documentai-api-client/models/advanced_extract_fields_request.rb +36 -6
- data/lib/cloudmersive-documentai-api-client/models/document_advanced_classification_result.rb +16 -6
- data/lib/cloudmersive-documentai-api-client/models/document_categories.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_classification_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_policy_request.rb +16 -6
- data/lib/cloudmersive-documentai-api-client/models/document_policy_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_question_answer_item.rb +216 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_answers_result.rb +207 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_boolean.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_choice_item.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_free_response.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_multiple_choice.rb +208 -0
- data/lib/cloudmersive-documentai-api-client/models/document_questions_request.rb +246 -0
- data/lib/cloudmersive-documentai-api-client/models/extract_barcodes_ai_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_document_batch_job_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_document_job_status_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_advanced_response.rb +208 -0
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_and_tables_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_tables_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_text_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extracted_barcode_item.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extracted_text_page.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/field_advanced_value.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/field_to_extract.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/field_value.rb +19 -7
- data/lib/cloudmersive-documentai-api-client/models/policy_rule.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/policy_rule_violation.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/split_document_response.rb +198 -0
- data/lib/cloudmersive-documentai-api-client/models/sub_document.rb +231 -0
- data/lib/cloudmersive-documentai-api-client/models/summarize_document_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result_cell.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result_row.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/version.rb +3 -3
- data/lib/cloudmersive-documentai-api-client.rb +13 -2
- data/spec/api/analyze_api_spec.rb +15 -3
- data/spec/api/extract_api_spec.rb +28 -13
- data/spec/api/run_batch_job_api_spec.rb +8 -8
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/advanced_extract_classification_request_spec.rb +20 -2
- data/spec/models/advanced_extract_fields_request_spec.rb +20 -2
- data/spec/models/document_advanced_classification_result_spec.rb +8 -2
- data/spec/models/document_categories_spec.rb +2 -2
- data/spec/models/document_classification_result_spec.rb +2 -2
- data/spec/models/document_policy_request_spec.rb +8 -2
- data/spec/models/document_policy_result_spec.rb +2 -2
- data/spec/models/document_question_answer_item_spec.rb +59 -0
- data/spec/models/document_question_answers_result_spec.rb +53 -0
- data/spec/models/document_question_boolean_spec.rb +47 -0
- data/spec/models/document_question_choice_item_spec.rb +47 -0
- data/spec/models/document_question_free_response_spec.rb +47 -0
- data/spec/models/document_question_multiple_choice_spec.rb +53 -0
- data/spec/models/document_questions_request_spec.rb +65 -0
- data/spec/models/extract_barcodes_ai_response_spec.rb +2 -2
- data/spec/models/extract_document_batch_job_result_spec.rb +2 -2
- data/spec/models/extract_document_job_status_result_spec.rb +2 -2
- data/spec/models/extract_fields_advanced_response_spec.rb +53 -0
- data/spec/models/extract_fields_and_tables_response_spec.rb +2 -2
- data/spec/models/extract_fields_response_spec.rb +2 -2
- data/spec/models/extract_tables_response_spec.rb +2 -2
- data/spec/models/extract_text_response_spec.rb +2 -2
- data/spec/models/extracted_barcode_item_spec.rb +2 -2
- data/spec/models/extracted_text_page_spec.rb +2 -2
- data/spec/models/field_advanced_value_spec.rb +47 -0
- data/spec/models/field_to_extract_spec.rb +2 -2
- data/spec/models/field_value_spec.rb +8 -2
- data/spec/models/policy_rule_spec.rb +2 -2
- data/spec/models/policy_rule_violation_spec.rb +2 -2
- data/spec/models/split_document_response_spec.rb +47 -0
- data/spec/models/sub_document_spec.rb +59 -0
- data/spec/models/summarize_document_response_spec.rb +2 -2
- data/spec/models/table_result_cell_spec.rb +2 -2
- data/spec/models/table_result_row_spec.rb +2 -2
- data/spec/models/table_result_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +36 -3
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionFreeResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionFreeResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionFreeResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionFreeResponse' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionFreeResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionFreeResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "question_id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "question_text"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionMultipleChoice
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionMultipleChoice' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionMultipleChoice.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionMultipleChoice' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionMultipleChoice' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionMultipleChoice)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "question_id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "question_text"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "response_choices"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionsRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionsRequest' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionsRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "input_file"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "questions_yes_no"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "questions_multiple_choice"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "questions_free_response"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "recognition_mode"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::ExtractFieldsAdvancedResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ExtractFieldsAdvancedResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::ExtractFieldsAdvancedResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ExtractFieldsAdvancedResponse' do
|
|
31
|
+
it 'should create an instance of ExtractFieldsAdvancedResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::ExtractFieldsAdvancedResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "results"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "confidence_score"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::FieldAdvancedValue
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'FieldAdvancedValue' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::FieldAdvancedValue.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of FieldAdvancedValue' do
|
|
31
|
+
it 'should create an instance of FieldAdvancedValue' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::FieldAdvancedValue)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "field_name"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "field_string_value"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -44,4 +44,10 @@ describe 'FieldValue' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "additional_field_string_values"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::SplitDocumentResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'SplitDocumentResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::SplitDocumentResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of SplitDocumentResponse' do
|
|
31
|
+
it 'should create an instance of SplitDocumentResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::SplitDocumentResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "sub_documents"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::SubDocument
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'SubDocument' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::SubDocument.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of SubDocument' do
|
|
31
|
+
it 'should create an instance of SubDocument' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::SubDocument)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "start_page"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "end_page"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "document_description"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "file_bytes"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|