cloudmersive-ocr-api-client 1.4.3 → 1.4.4
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 +4 -4
- data/cloudmersive-ocr-api-client.gemspec +1 -1
- data/docs/ReceiptRecognitionResult.md +1 -0
- data/lib/cloudmersive-ocr-api-client/api/image_ocr_api.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/api/pdf_ocr_api.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/api/preprocessing_api.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/api/receipts_api.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/business_card_recognition_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/field_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/form_definition_template.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/form_field_definition.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/form_recognition_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/form_table_column_definition.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/form_table_definition.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/get_page_angle_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/image_to_lines_with_location_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/image_to_text_response.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/image_to_words_with_location_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_line_element.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_page_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_lines_with_location.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_words_with_location.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_photo_text_element.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/ocr_word_element.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/pdf_to_lines_with_location_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/pdf_to_text_response.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/pdf_to_words_with_location_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/photo_to_words_with_location_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/point.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/receipt_line_item.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/receipt_recognition_result.rb +12 -2
- data/lib/cloudmersive-ocr-api-client/models/table_cell_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/table_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/models/table_row_result.rb +1 -1
- data/lib/cloudmersive-ocr-api-client/version.rb +2 -2
- data/lib/cloudmersive-ocr-api-client.rb +1 -1
- data/spec/api/image_ocr_api_spec.rb +1 -1
- data/spec/api/pdf_ocr_api_spec.rb +1 -1
- data/spec/api/preprocessing_api_spec.rb +1 -1
- data/spec/api/receipts_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/business_card_recognition_result_spec.rb +1 -1
- data/spec/models/field_result_spec.rb +1 -1
- data/spec/models/form_definition_template_spec.rb +1 -1
- data/spec/models/form_field_definition_spec.rb +1 -1
- data/spec/models/form_recognition_result_spec.rb +1 -1
- data/spec/models/form_table_column_definition_spec.rb +1 -1
- data/spec/models/form_table_definition_spec.rb +1 -1
- data/spec/models/get_page_angle_result_spec.rb +1 -1
- data/spec/models/image_to_lines_with_location_result_spec.rb +1 -1
- data/spec/models/image_to_text_response_spec.rb +1 -1
- data/spec/models/image_to_words_with_location_result_spec.rb +1 -1
- data/spec/models/ocr_line_element_spec.rb +1 -1
- data/spec/models/ocr_page_result_spec.rb +1 -1
- data/spec/models/ocr_page_result_with_lines_with_location_spec.rb +1 -1
- data/spec/models/ocr_page_result_with_words_with_location_spec.rb +1 -1
- data/spec/models/ocr_photo_text_element_spec.rb +1 -1
- data/spec/models/ocr_word_element_spec.rb +1 -1
- data/spec/models/pdf_to_lines_with_location_result_spec.rb +1 -1
- data/spec/models/pdf_to_text_response_spec.rb +1 -1
- data/spec/models/pdf_to_words_with_location_result_spec.rb +1 -1
- data/spec/models/photo_to_words_with_location_result_spec.rb +1 -1
- data/spec/models/point_spec.rb +1 -1
- data/spec/models/receipt_line_item_spec.rb +1 -1
- data/spec/models/receipt_recognition_result_spec.rb +7 -1
- data/spec/models/table_cell_result_spec.rb +1 -1
- data/spec/models/table_result_spec.rb +1 -1
- data/spec/models/table_row_result_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +15 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39a76aae84407c0b7be71b0433b53fcc8af93fb01dc71103963e68760a612c59
|
|
4
|
+
data.tar.gz: 7991e99a4843e9012de6a473fe294d1d674bf36acf267501507aca606707c365
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54de214d868a48bcc13f161e80522347f226bb12357dc8f3a873fa8d977170782feead44d34cf00f1882a3c8ada6c247689780fd4397b1de3a3639c76a46f9c6
|
|
7
|
+
data.tar.gz: ccb7e8a4206aaad3b077b970afadab43ec764bf26aa3fdf37215df2e5819654eda8beefe0cf5e14fe71ad84420cec148692294c7f7c8dfbc6eccfa1b8d04ca7c
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The powerful Optical Character Recognition (OCR) APIs let you convert scanned im
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: v1
|
|
10
|
-
- Package version: 1.4.
|
|
10
|
+
- Package version: 1.4.4
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,15 +23,15 @@ gem build cloudmersive-ocr-api-client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./cloudmersive-ocr-api-client-1.4.
|
|
26
|
+
gem install ./cloudmersive-ocr-api-client-1.4.4.gem
|
|
27
27
|
```
|
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-ocr-api-client-1.4.
|
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-ocr-api-client-1.4.4.gem` to install the development dependencies)
|
|
29
29
|
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
31
31
|
|
|
32
32
|
Finally add this to the Gemfile:
|
|
33
33
|
|
|
34
|
-
gem 'cloudmersive-ocr-api-client', '~> 1.4.
|
|
34
|
+
gem 'cloudmersive-ocr-api-client', '~> 1.4.4'
|
|
35
35
|
|
|
36
36
|
### Install from Git
|
|
37
37
|
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**address_string** | **String** | The address of the business printed on the receipt (if included on the receipt) | [optional]
|
|
11
11
|
**phone_number** | **String** | The phone number printed on the receipt (if included on the receipt) | [optional]
|
|
12
12
|
**receipt_items** | [**Array<ReceiptLineItem>**](ReceiptLineItem.md) | The individual line items comprising the order; does not include total (see ReceiptTotal) | [optional]
|
|
13
|
+
**receipt_sub_total** | **Float** | Optional; if available, the monetary value of the receipt subtotal - typically not including specialized line items such as Tax. If this value is not available, it will be 0. | [optional]
|
|
13
14
|
**receipt_total** | **Float** | The total monetary value of the receipt (if included on the receipt) | [optional]
|
|
14
15
|
|
|
15
16
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -36,6 +36,9 @@ module CloudmersiveOcrApiClient
|
|
|
36
36
|
# The individual line items comprising the order; does not include total (see ReceiptTotal)
|
|
37
37
|
attr_accessor :receipt_items
|
|
38
38
|
|
|
39
|
+
# Optional; if available, the monetary value of the receipt subtotal - typically not including specialized line items such as Tax. If this value is not available, it will be 0.
|
|
40
|
+
attr_accessor :receipt_sub_total
|
|
41
|
+
|
|
39
42
|
# The total monetary value of the receipt (if included on the receipt)
|
|
40
43
|
attr_accessor :receipt_total
|
|
41
44
|
|
|
@@ -50,6 +53,7 @@ module CloudmersiveOcrApiClient
|
|
|
50
53
|
:'address_string' => :'AddressString',
|
|
51
54
|
:'phone_number' => :'PhoneNumber',
|
|
52
55
|
:'receipt_items' => :'ReceiptItems',
|
|
56
|
+
:'receipt_sub_total' => :'ReceiptSubTotal',
|
|
53
57
|
:'receipt_total' => :'ReceiptTotal'
|
|
54
58
|
}
|
|
55
59
|
end
|
|
@@ -64,6 +68,7 @@ module CloudmersiveOcrApiClient
|
|
|
64
68
|
:'address_string' => :'String',
|
|
65
69
|
:'phone_number' => :'String',
|
|
66
70
|
:'receipt_items' => :'Array<ReceiptLineItem>',
|
|
71
|
+
:'receipt_sub_total' => :'Float',
|
|
67
72
|
:'receipt_total' => :'Float'
|
|
68
73
|
}
|
|
69
74
|
end
|
|
@@ -106,6 +111,10 @@ module CloudmersiveOcrApiClient
|
|
|
106
111
|
end
|
|
107
112
|
end
|
|
108
113
|
|
|
114
|
+
if attributes.has_key?(:'ReceiptSubTotal')
|
|
115
|
+
self.receipt_sub_total = attributes[:'ReceiptSubTotal']
|
|
116
|
+
end
|
|
117
|
+
|
|
109
118
|
if attributes.has_key?(:'ReceiptTotal')
|
|
110
119
|
self.receipt_total = attributes[:'ReceiptTotal']
|
|
111
120
|
end
|
|
@@ -137,6 +146,7 @@ module CloudmersiveOcrApiClient
|
|
|
137
146
|
address_string == o.address_string &&
|
|
138
147
|
phone_number == o.phone_number &&
|
|
139
148
|
receipt_items == o.receipt_items &&
|
|
149
|
+
receipt_sub_total == o.receipt_sub_total &&
|
|
140
150
|
receipt_total == o.receipt_total
|
|
141
151
|
end
|
|
142
152
|
|
|
@@ -149,7 +159,7 @@ module CloudmersiveOcrApiClient
|
|
|
149
159
|
# Calculates hash code according to all attributes.
|
|
150
160
|
# @return [Fixnum] Hash code
|
|
151
161
|
def hash
|
|
152
|
-
[successful, timestamp, business_name, business_website, address_string, phone_number, receipt_items, receipt_total].hash
|
|
162
|
+
[successful, timestamp, business_name, business_website, address_string, phone_number, receipt_items, receipt_sub_total, receipt_total].hash
|
|
153
163
|
end
|
|
154
164
|
|
|
155
165
|
# Builds the object from hash
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module CloudmersiveOcrApiClient
|
|
14
|
-
VERSION = "1.4.
|
|
14
|
+
VERSION = "1.4.4"
|
|
15
15
|
end
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/models/point_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,6 +74,12 @@ describe 'ReceiptRecognitionResult' do
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
describe 'test attribute "receipt_sub_total"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
77
83
|
describe 'test attribute "receipt_total"' do
|
|
78
84
|
it 'should work' do
|
|
79
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-ocr-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -34,42 +34,42 @@ dependencies:
|
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - "~>"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '2.1'
|
|
40
37
|
- - ">="
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: 2.1.0
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '2.1'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - "~>"
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: '2.1'
|
|
50
47
|
- - ">="
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: 2.1.0
|
|
50
|
+
- - "~>"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '2.1'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: rspec
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
|
-
- - "~>"
|
|
58
|
-
- !ruby/object:Gem::Version
|
|
59
|
-
version: '3.6'
|
|
60
57
|
- - ">="
|
|
61
58
|
- !ruby/object:Gem::Version
|
|
62
59
|
version: 3.6.0
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '3.6'
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- - "~>"
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.6'
|
|
70
67
|
- - ">="
|
|
71
68
|
- !ruby/object:Gem::Version
|
|
72
69
|
version: 3.6.0
|
|
70
|
+
- - "~>"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '3.6'
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: vcr
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -322,8 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
322
322
|
- !ruby/object:Gem::Version
|
|
323
323
|
version: '0'
|
|
324
324
|
requirements: []
|
|
325
|
-
|
|
326
|
-
rubygems_version: 2.7.6
|
|
325
|
+
rubygems_version: 3.0.3
|
|
327
326
|
signing_key:
|
|
328
327
|
specification_version: 4
|
|
329
328
|
summary: Convert scanned documents and images to text.
|