diff --git a/README.md b/README.md index 3dd0a77..3bf51bd 100644 --- a/README.md +++ b/README.md @@ -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.2.0 +- Package version: 2.2.1 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/cloudmersive_ocr_api_client/api_client.py b/cloudmersive_ocr_api_client/api_client.py index 5006181..b334472 100644 --- a/cloudmersive_ocr_api_client/api_client.py +++ b/cloudmersive_ocr_api_client/api_client.py @@ -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.2.0/python' + self.user_agent = 'Swagger-Codegen/2.2.1/python' def __del__(self): if self._pool is not None: diff --git a/cloudmersive_ocr_api_client/configuration.py b/cloudmersive_ocr_api_client/configuration.py index 96d5255..f761f83 100644 --- a/cloudmersive_ocr_api_client/configuration.py +++ b/cloudmersive_ocr_api_client/configuration.py @@ -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.2.0".\ + "SDK Package Version: 2.2.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudmersive_ocr_api_client/models/form_field_definition.py b/cloudmersive_ocr_api_client/models/form_field_definition.py index 1646d3c..de2f5c7 100644 --- a/cloudmersive_ocr_api_client/models/form_field_definition.py +++ b/cloudmersive_ocr_api_client/models/form_field_definition.py @@ -35,6 +35,7 @@ class FormFieldDefinition(object): 'left_anchor': 'str', 'top_anchor': 'str', 'bottom_anchor': 'str', + 'alternate_anchor': 'str', 'anchor_mode': 'str', 'data_type': 'str', 'target_digit_count': 'int', @@ -55,6 +56,7 @@ class FormFieldDefinition(object): 'left_anchor': 'LeftAnchor', 'top_anchor': 'TopAnchor', 'bottom_anchor': 'BottomAnchor', + 'alternate_anchor': 'AlternateAnchor', 'anchor_mode': 'AnchorMode', 'data_type': 'DataType', 'target_digit_count': 'TargetDigitCount', @@ -70,13 +72,14 @@ class FormFieldDefinition(object): 'options': 'Options' } - def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anchor=None, anchor_mode=None, data_type=None, target_digit_count=None, minimum_character_count=None, allow_numeric_digits=None, vertical_alignment_type=None, horizontal_alignment_type=None, target_field_width_relative=None, target_field_height_relative=None, target_field_horizontal_adjustment=None, target_field_vertical_adjustment=None, ignore=None, options=None): # noqa: E501 + def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anchor=None, alternate_anchor=None, anchor_mode=None, data_type=None, target_digit_count=None, minimum_character_count=None, allow_numeric_digits=None, vertical_alignment_type=None, horizontal_alignment_type=None, target_field_width_relative=None, target_field_height_relative=None, target_field_horizontal_adjustment=None, target_field_vertical_adjustment=None, ignore=None, options=None): # noqa: E501 """FormFieldDefinition - a model defined in Swagger""" # noqa: E501 self._field_id = None self._left_anchor = None self._top_anchor = None self._bottom_anchor = None + self._alternate_anchor = None self._anchor_mode = None self._data_type = None self._target_digit_count = None @@ -100,6 +103,8 @@ def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anch self.top_anchor = top_anchor if bottom_anchor is not None: self.bottom_anchor = bottom_anchor + if alternate_anchor is not None: + self.alternate_anchor = alternate_anchor if anchor_mode is not None: self.anchor_mode = anchor_mode if data_type is not None: @@ -219,6 +224,29 @@ def bottom_anchor(self, bottom_anchor): self._bottom_anchor = bottom_anchor + @property + def alternate_anchor(self): + """Gets the alternate_anchor of this FormFieldDefinition. # noqa: E501 + + Optional - alterate match text for the specified anchor # noqa: E501 + + :return: The alternate_anchor of this FormFieldDefinition. # noqa: E501 + :rtype: str + """ + return self._alternate_anchor + + @alternate_anchor.setter + def alternate_anchor(self, alternate_anchor): + """Sets the alternate_anchor of this FormFieldDefinition. + + Optional - alterate match text for the specified anchor # noqa: E501 + + :param alternate_anchor: The alternate_anchor of this FormFieldDefinition. # noqa: E501 + :type: str + """ + + self._alternate_anchor = alternate_anchor + @property def anchor_mode(self): """Gets the anchor_mode of this FormFieldDefinition. # noqa: E501 diff --git a/docs/FormFieldDefinition.md b/docs/FormFieldDefinition.md index bb2f35d..976b678 100644 --- a/docs/FormFieldDefinition.md +++ b/docs/FormFieldDefinition.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **left_anchor** | **str** | Optional - the left-hand anchor of the field | [optional] **top_anchor** | **str** | Optional - the top anchor of the field | [optional] **bottom_anchor** | **str** | Optional - the bottom anchor of the field | [optional] +**alternate_anchor** | **str** | Optional - alterate match text for the specified anchor | [optional] **anchor_mode** | **str** | Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match) and Horizontal (anchor must be laid out horizontally). Default is Partial. | [optional] **data_type** | **str** | The data type of the field; possible values are INTEGER (Integer value), STRING (Arbitrary string value, spaces are permitted), DATE (Date in a structured format), DECIMAL (Decimal number), ALPHANUMERIC (Continuous alphanumeric string with no spaces), STRINGNOWHITESPACE (A string that contains no whitespace characters), SERIALNUMBER (A serial-number style string that contains letters and numbers, and certain symbols; must contain at least one number), ALPHAONLY (Alphabet characters only, no numbers or symbols or whitespace) | [optional] **target_digit_count** | **int** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional] diff --git a/packageconfig.json b/packageconfig.json index 0470e69..fa168a8 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,6 +1,6 @@ { "projectName" : "cloudmersive_ocr_api_client", "packageName" : "cloudmersive_ocr_api_client", - "packageVersion": "2.2.0", + "packageVersion": "2.2.1", "packageUrl": "https://www.cloudmersive.com/ocr-api" } \ No newline at end of file diff --git a/setup.py b/setup.py index ac707be..6e9d16e 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudmersive_ocr_api_client" -VERSION = "2.2.0" +VERSION = "2.2.1" # To install the library, run the following # # python setup.py install