Skip to content

Commit 9e87951

Browse files
ivankamkinIvan KamkinDenis-Averin
authored
Release 22.10 (#47)
Add bytearray type to make a difference between filename and image bytes in Python 2 Pdf417MacroTerminator enum added Co-authored-by: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Co-authored-by: Denis Averin <denis.averin@aspose.com>
1 parent 3353cc5 commit 9e87951

11 files changed

Lines changed: 154 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- Package version: 22.9.0
8+
- Package version: 22.10.0
99

1010
## Demo applications
1111

@@ -188,6 +188,7 @@ Class | Method | HTTP request | Description
188188
- [PatchFormat](docs/PatchFormat.md)
189189
- [Pdf417CompactionMode](docs/Pdf417CompactionMode.md)
190190
- [Pdf417ErrorLevel](docs/Pdf417ErrorLevel.md)
191+
- [Pdf417MacroTerminator](docs/Pdf417MacroTerminator.md)
191192
- [Pdf417Params](docs/Pdf417Params.md)
192193
- [PostalParams](docs/PostalParams.md)
193194
- [PresetType](docs/PresetType.md)

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
from aspose_barcode_cloud.models.patch_format import PatchFormat
9494
from aspose_barcode_cloud.models.pdf417_compaction_mode import Pdf417CompactionMode
9595
from aspose_barcode_cloud.models.pdf417_error_level import Pdf417ErrorLevel
96+
from aspose_barcode_cloud.models.pdf417_macro_terminator import Pdf417MacroTerminator
9697
from aspose_barcode_cloud.models.pdf417_params import Pdf417Params
9798
from aspose_barcode_cloud.models.postal_params import PostalParams
9899
from aspose_barcode_cloud.models.preset_type import PresetType

aspose_barcode_cloud/api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9191
self.rest_client = RESTClientObject(configuration)
9292
self.default_headers = {
9393
"x-aspose-client": "python sdk",
94-
"x-aspose-client-version": "22.9.0",
94+
"x-aspose-client-version": "22.10.0",
9595
}
9696
if header_name is not None:
9797
self.default_headers[header_name] = header_value
9898
self.cookie = cookie
9999
# Set default User-Agent.
100-
self.user_agent = "Aspose-Barcode-SDK/22.9.0/python"
100+
self.user_agent = "Aspose-Barcode-SDK/22.10.0/python"
101101

102102
def __del__(self):
103103
self.rest_client.close()
@@ -207,7 +207,7 @@ def __call_api(
207207
if _return_http_data_only:
208208
return return_data
209209
else:
210-
return return_data, response_data.status, response_data.getheaders()
210+
return (return_data, response_data.status, response_data.getheaders())
211211

212212
def sanitize_for_serialization(self, obj):
213213
"""Builds a JSON POST object.

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def to_debug_report(self):
286286
"OS: {env}\n"
287287
"Python Version: {pyversion}\n"
288288
"Version of the API: 3.0\n"
289-
"SDK Package Version: 22.9.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 22.10.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
from aspose_barcode_cloud.models.patch_format import PatchFormat
8181
from aspose_barcode_cloud.models.pdf417_compaction_mode import Pdf417CompactionMode
8282
from aspose_barcode_cloud.models.pdf417_error_level import Pdf417ErrorLevel
83+
from aspose_barcode_cloud.models.pdf417_macro_terminator import Pdf417MacroTerminator
8384
from aspose_barcode_cloud.models.pdf417_params import Pdf417Params
8485
from aspose_barcode_cloud.models.postal_params import PostalParams
8586
from aspose_barcode_cloud.models.preset_type import PresetType
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# coding: utf-8
2+
3+
"""
4+
5+
Copyright (c) 2022 Aspose.BarCode for Cloud
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
"""
26+
27+
28+
import pprint
29+
import re # noqa: F401
30+
31+
import six
32+
33+
34+
class Pdf417MacroTerminator(object):
35+
"""NOTE: This class is auto generated by the swagger code generator program.
36+
37+
Do not edit the class manually.
38+
"""
39+
40+
"""
41+
allowed enum values
42+
"""
43+
AUTO = "Auto"
44+
NONE = "None"
45+
SET = "Set"
46+
47+
"""
48+
Attributes:
49+
swagger_types (dict): The key is attribute name
50+
and the value is attribute type.
51+
attribute_map (dict): The key is attribute name
52+
and the value is json key in definition.
53+
"""
54+
swagger_types = {}
55+
56+
attribute_map = {}
57+
58+
def __init__(self): # noqa: E501
59+
"""Pdf417MacroTerminator - a model defined in Swagger""" # noqa: E501
60+
self.discriminator = None
61+
62+
def to_dict(self):
63+
"""Returns the model properties as a dict"""
64+
result = {}
65+
66+
for attr, _ in six.iteritems(self.swagger_types):
67+
value = getattr(self, attr)
68+
if isinstance(value, list):
69+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
70+
elif hasattr(value, "to_dict"):
71+
result[attr] = value.to_dict()
72+
elif isinstance(value, dict):
73+
result[attr] = dict(
74+
map(
75+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
76+
value.items(),
77+
)
78+
)
79+
else:
80+
result[attr] = value
81+
if issubclass(Pdf417MacroTerminator, dict):
82+
for key, value in self.items():
83+
result[key] = value
84+
85+
return result
86+
87+
def to_str(self):
88+
"""Returns the string representation of the model"""
89+
return pprint.pformat(self.to_dict())
90+
91+
def __repr__(self):
92+
"""For `print` and `pprint`"""
93+
return self.to_str()
94+
95+
def __eq__(self, other):
96+
"""Returns true if both objects are equal"""
97+
if not isinstance(other, Pdf417MacroTerminator):
98+
return False
99+
100+
return self.__dict__ == other.__dict__
101+
102+
def __ne__(self, other):
103+
"""Returns true if both objects are not equal"""
104+
return not self == other

aspose_barcode_cloud/models/pdf417_params.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Pdf417Params(object):
6565
"macro_addressee": "str",
6666
"macro_eci_encoding": "ECIEncodings",
6767
"code128_emulation": "Code128Emulation",
68+
"pdf417_macro_terminator": "Pdf417MacroTerminator",
6869
}
6970

7071
attribute_map = {
@@ -88,6 +89,7 @@ class Pdf417Params(object):
8889
"macro_addressee": "MacroAddressee",
8990
"macro_eci_encoding": "MacroECIEncoding",
9091
"code128_emulation": "Code128Emulation",
92+
"pdf417_macro_terminator": "Pdf417MacroTerminator",
9193
}
9294

9395
def __init__(
@@ -112,6 +114,7 @@ def __init__(
112114
macro_addressee=None,
113115
macro_eci_encoding=None,
114116
code128_emulation=None,
117+
pdf417_macro_terminator=None,
115118
): # noqa: E501
116119
"""Pdf417Params - a model defined in Swagger""" # noqa: E501
117120

@@ -135,6 +138,7 @@ def __init__(
135138
self._macro_addressee = None
136139
self._macro_eci_encoding = None
137140
self._code128_emulation = None
141+
self._pdf417_macro_terminator = None
138142
self.discriminator = None
139143

140144
if aspect_ratio is not None:
@@ -177,6 +181,8 @@ def __init__(
177181
self.macro_eci_encoding = macro_eci_encoding
178182
if code128_emulation is not None:
179183
self.code128_emulation = code128_emulation
184+
if pdf417_macro_terminator is not None:
185+
self.pdf417_macro_terminator = pdf417_macro_terminator
180186

181187
@property
182188
def aspect_ratio(self):
@@ -638,6 +644,29 @@ def code128_emulation(self, code128_emulation):
638644

639645
self._code128_emulation = code128_emulation
640646

647+
@property
648+
def pdf417_macro_terminator(self):
649+
"""Gets the pdf417_macro_terminator of this Pdf417Params. # noqa: E501
650+
651+
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. # noqa: E501
652+
653+
:return: The pdf417_macro_terminator of this Pdf417Params. # noqa: E501
654+
:rtype: Pdf417MacroTerminator
655+
"""
656+
return self._pdf417_macro_terminator
657+
658+
@pdf417_macro_terminator.setter
659+
def pdf417_macro_terminator(self, pdf417_macro_terminator):
660+
"""Sets the pdf417_macro_terminator of this Pdf417Params.
661+
662+
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. # noqa: E501
663+
664+
:param pdf417_macro_terminator: The pdf417_macro_terminator of this Pdf417Params. # noqa: E501
665+
:type: Pdf417MacroTerminator
666+
"""
667+
668+
self._pdf417_macro_terminator = pdf417_macro_terminator
669+
641670
def to_dict(self):
642671
"""Returns the model properties as a dict"""
643672
result = {}

docs/Pdf417MacroTerminator.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Pdf417MacroTerminator
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/Pdf417Params.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
2323
**macro_addressee** | **str** | Macro Pdf417 barcode addressee name | [optional]
2424
**macro_eci_encoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. | [optional]
2525
**code128_emulation** | [**Code128Emulation**](Code128Emulation.md) | Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. | [optional]
26+
**pdf417_macro_terminator** | [**Pdf417MacroTerminator**](Pdf417MacroTerminator.md) | Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. | [optional]
2627

2728
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2829

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from setuptools import setup, find_packages
3030

3131
NAME = "aspose-barcode-cloud"
32-
VERSION = "22.9.0"
32+
VERSION = "22.10.0"
3333
# To install the library, run the following
3434
#
3535
# python setup.py install

0 commit comments

Comments
 (0)