Skip to content

Commit

Permalink
2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Oct 27, 2019
1 parent 9ed5465 commit 1a03630
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
unset
2.4.5
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The powerful Optical Character Recognition (OCR) APIs let you convert scanned im
This Python package provides a native API client for [Cloudmersive OCR](https://www.cloudmersive.com/ocr-api)

- API version: v1
- Package version: 2.1.4
- Package version: 2.1.5
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_ocr_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/2.1.4/python'
self.user_agent = 'Swagger-Codegen/2.1.5/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_ocr_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 2.1.4".\
"SDK Package Version: 2.1.5".\
format(env=sys.platform, pyversion=sys.version)
30 changes: 29 additions & 1 deletion cloudmersive_ocr_api_client/models/receipt_recognition_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ReceiptRecognitionResult(object):
'address_string': 'str',
'phone_number': 'str',
'receipt_items': 'list[ReceiptLineItem]',
'receipt_sub_total': 'float',
'receipt_total': 'float'
}

Expand All @@ -51,10 +52,11 @@ class ReceiptRecognitionResult(object):
'address_string': 'AddressString',
'phone_number': 'PhoneNumber',
'receipt_items': 'ReceiptItems',
'receipt_sub_total': 'ReceiptSubTotal',
'receipt_total': 'ReceiptTotal'
}

def __init__(self, successful=None, timestamp=None, business_name=None, business_website=None, address_string=None, phone_number=None, receipt_items=None, receipt_total=None): # noqa: E501
def __init__(self, successful=None, timestamp=None, business_name=None, business_website=None, address_string=None, phone_number=None, receipt_items=None, receipt_sub_total=None, receipt_total=None): # noqa: E501
"""ReceiptRecognitionResult - a model defined in Swagger""" # noqa: E501

self._successful = None
Expand All @@ -64,6 +66,7 @@ def __init__(self, successful=None, timestamp=None, business_name=None, business
self._address_string = None
self._phone_number = None
self._receipt_items = None
self._receipt_sub_total = None
self._receipt_total = None
self.discriminator = None

Expand All @@ -81,6 +84,8 @@ def __init__(self, successful=None, timestamp=None, business_name=None, business
self.phone_number = phone_number
if receipt_items is not None:
self.receipt_items = receipt_items
if receipt_sub_total is not None:
self.receipt_sub_total = receipt_sub_total
if receipt_total is not None:
self.receipt_total = receipt_total

Expand Down Expand Up @@ -245,6 +250,29 @@ def receipt_items(self, receipt_items):

self._receipt_items = receipt_items

@property
def receipt_sub_total(self):
"""Gets the receipt_sub_total of this ReceiptRecognitionResult. # noqa: E501
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. # noqa: E501
:return: The receipt_sub_total of this ReceiptRecognitionResult. # noqa: E501
:rtype: float
"""
return self._receipt_sub_total

@receipt_sub_total.setter
def receipt_sub_total(self, receipt_sub_total):
"""Sets the receipt_sub_total of this ReceiptRecognitionResult.
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. # noqa: E501
:param receipt_sub_total: The receipt_sub_total of this ReceiptRecognitionResult. # noqa: E501
:type: float
"""

self._receipt_sub_total = receipt_sub_total

@property
def receipt_total(self):
"""Gets the receipt_total of this ReceiptRecognitionResult. # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions docs/ReceiptRecognitionResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**address_string** | **str** | The address of the business printed on the receipt (if included on the receipt) | [optional]
**phone_number** | **str** | The phone number printed on the receipt (if included on the receipt) | [optional]
**receipt_items** | [**list[ReceiptLineItem]**](ReceiptLineItem.md) | The individual line items comprising the order; does not include total (see ReceiptTotal) | [optional]
**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]
**receipt_total** | **float** | The total monetary value of the receipt (if included on the receipt) | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion packageconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName" : "cloudmersive_ocr_api_client",
"packageName" : "cloudmersive_ocr_api_client",
"packageVersion": "2.1.4",
"packageVersion": "2.1.5",
"packageUrl": "https://www.cloudmersive.com/ocr-api"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudmersive_ocr_api_client"
VERSION = "2.1.4"
VERSION = "2.1.5"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit 1a03630

Please sign in to comment.