Skip to content

Commit c49e194

Browse files
authored
Update 20.10 (#4)
* Update 20.10
1 parent 4118e6b commit c49e194

21 files changed

+736
-54
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ format:
88
.PHONY: test
99
test:
1010
composer test
11+
12+
.PHONY: update
13+
update:
14+
composer update
15+
composer validate

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.BarCode Cloud SDK for PHP
22

33
- API version: 3.0
4-
- Package version: 20.8.0
4+
- Package version: 20.10.0
55

66
Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
77

@@ -63,7 +63,7 @@ All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed und
6363

6464
- [**Website**](https://www.aspose.cloud)
6565
- [**Product Home**](https://products.aspose.cloud/barcode/cloud)
66-
- [**Documentation**](https://docs.aspose.cloud/display/barcodecloud/Home)
66+
- [**Documentation**](https://docs.aspose.cloud/barcode/)
6767
- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
6868
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
6969
- [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-barcode-product-family/)
@@ -98,12 +98,13 @@ Class | Method | HTTP request | Description
9898

9999
## Documentation For Models
100100

101+
- [ApiError](docs/Model/ApiError.md)
102+
- [ApiErrorResponse](docs/Model/ApiErrorResponse.md)
101103
- [AustralianPostParams](docs/Model/AustralianPostParams.md)
102104
- [AutoSizeMode](docs/Model/AutoSizeMode.md)
103105
- [AvailableGraphicsUnit](docs/Model/AvailableGraphicsUnit.md)
104106
- [AztecParams](docs/Model/AztecParams.md)
105107
- [AztecSymbolMode](docs/Model/AztecSymbolMode.md)
106-
- [BarCodeErrorResponse](docs/Model/BarCodeErrorResponse.md)
107108
- [BarcodeResponse](docs/Model/BarcodeResponse.md)
108109
- [BarcodeResponseList](docs/Model/BarcodeResponseList.md)
109110
- [BorderDashStyle](docs/Model/BorderDashStyle.md)

docs/Api/BarcodeApi.md

Lines changed: 17 additions & 9 deletions
Large diffs are not rendered by default.

docs/Model/ApiError.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ApiError
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**code** | **string** | | [optional]
7+
**message** | **string** | | [optional]
8+
**description** | **string** | | [optional]
9+
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
10+
**inner_error** | [**\Aspose\BarCode\Model\ApiError**](ApiError.md) | | [optional]
11+
12+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
13+
14+

docs/Model/BarCodeErrorResponse.md renamed to docs/Model/ApiErrorResponse.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# BarCodeErrorResponse
1+
# ApiErrorResponse
22

33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**error** | [**\Aspose\BarCode\Model\Error**](Error.md) | Error | [optional]
6+
**request_id** | **string** | | [optional]
7+
**error** | [**\Aspose\BarCode\Model\ApiError**](ApiError.md) | | [optional]
78

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

docs/Model/GeneratorParams.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Name | Type | Description | Notes
3939
**validate_text** | **bool** | Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. | [optional]
4040
**supplement_data** | **string** | Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. | [optional]
4141
**supplement_space** | **double** | Space between main the BarCode and supplement BarCode. | [optional]
42+
**bar_width_reduction** | **double** | Bars reduction value that is used to compensate ink spread while printing. | [optional]
4243
**australian_post** | [**\Aspose\BarCode\Model\AustralianPostParams**](AustralianPostParams.md) | AustralianPost params. | [optional]
4344
**aztec** | [**\Aspose\BarCode\Model\AztecParams**](AztecParams.md) | Aztec params. | [optional]
4445
**codabar** | [**\Aspose\BarCode\Model\CodabarParams**](CodabarParams.md) | Codabar params. | [optional]

docs/Model/Pdf417Params.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
1313
**macro_segments_count** | **int** | Macro Pdf417 barcode segments count. | [optional]
1414
**rows** | **int** | Rows count. | [optional]
1515
**truncate** | **bool** | Whether Pdf417 symbology type of BarCode is truncated (to reduce space). | [optional]
16+
**pdf417_eci_encoding** | [**\Aspose\BarCode\Model\ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. | [optional]
17+
**is_reader_initialization** | **bool** | Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization | [optional]
1618

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

docs/Model/ReaderParams.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Name | Type | Description | Notes
3232
**scan_window_sizes** | **int[]** | Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional]
3333
**similarity** | **double** | Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional]
3434
**skip_diagonal_search** | **bool** | Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. | [optional]
35+
**read_tiny_barcodes** | **bool** | Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. | [optional]
3536
**australian_post_encoding_table** | [**\Aspose\BarCode\Model\CustomerInformationInterpretingType**](CustomerInformationInterpretingType.md) | Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. | [optional]
3637

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

src/Aspose/BarCode/BarcodeApi.php

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function getBarcodeGenerateWithHttpInfo(Requests\GetBarcodeGenerateReques
168168
$e->setResponseObject($data);
169169
break;
170170
case 400:
171-
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\BarCodeErrorResponse', $e->getResponseHeaders());
171+
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\ApiErrorResponse', $e->getResponseHeaders());
172172
$e->setResponseObject($data);
173173
break;
174174
}
@@ -602,6 +602,16 @@ protected function GetBarcodeGenerateRequest(Requests\GetBarcodeGenerateRequest
602602
}
603603
}
604604
// query params
605+
if (isset($request->bar_width_reduction)) {
606+
$localName = lcfirst('BarWidthReduction');
607+
$localValue = is_bool($request->bar_width_reduction) ? ($request->bar_width_reduction ? 'true' : 'false') : $request->bar_width_reduction;
608+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
609+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($localValue), $resourcePath);
610+
} else {
611+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
612+
}
613+
}
614+
// query params
605615
if (isset($request->format)) {
606616
$localName = lcfirst('format');
607617
$localValue = is_bool($request->format) ? ($request->format ? 'true' : 'false') : $request->format;
@@ -1171,6 +1181,16 @@ protected function GetBarcodeRecognizeRequest(Requests\GetBarcodeRecognizeReques
11711181
}
11721182
}
11731183
// query params
1184+
if (isset($request->read_tiny_barcodes)) {
1185+
$localName = lcfirst('ReadTinyBarcodes');
1186+
$localValue = is_bool($request->read_tiny_barcodes) ? ($request->read_tiny_barcodes ? 'true' : 'false') : $request->read_tiny_barcodes;
1187+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
1188+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($localValue), $resourcePath);
1189+
} else {
1190+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
1191+
}
1192+
}
1193+
// query params
11741194
if (isset($request->australian_post_encoding_table)) {
11751195
$localName = lcfirst('AustralianPostEncodingTable');
11761196
$localValue = is_bool($request->australian_post_encoding_table) ? ($request->australian_post_encoding_table ? 'true' : 'false') : $request->australian_post_encoding_table;
@@ -1760,6 +1780,16 @@ protected function PostBarcodeRecognizeFromUrlOrContentRequest(Requests\PostBarc
17601780
}
17611781
}
17621782
// query params
1783+
if (isset($request->read_tiny_barcodes)) {
1784+
$localName = lcfirst('ReadTinyBarcodes');
1785+
$localValue = is_bool($request->read_tiny_barcodes) ? ($request->read_tiny_barcodes ? 'true' : 'false') : $request->read_tiny_barcodes;
1786+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
1787+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($localValue), $resourcePath);
1788+
} else {
1789+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
1790+
}
1791+
}
1792+
// query params
17631793
if (isset($request->australian_post_encoding_table)) {
17641794
$localName = lcfirst('AustralianPostEncodingTable');
17651795
$localValue = is_bool($request->australian_post_encoding_table) ? ($request->australian_post_encoding_table ? 'true' : 'false') : $request->australian_post_encoding_table;
@@ -1812,7 +1842,7 @@ protected function PostBarcodeRecognizeFromUrlOrContentRequest(Requests\PostBarc
18121842
} else {
18131843
$headers = $this->headerSelector->selectHeaders(
18141844
['application/json'],
1815-
['application/octet-stream', 'multipart/form-data']
1845+
['multipart/form-data', 'application/octet-stream']
18161846
);
18171847
}
18181848

@@ -2235,7 +2265,7 @@ public function putBarcodeGenerateFileWithHttpInfo(Requests\PutBarcodeGenerateFi
22352265
$e->setResponseObject($data);
22362266
break;
22372267
case 400:
2238-
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\BarCodeErrorResponse', $e->getResponseHeaders());
2268+
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\ApiErrorResponse', $e->getResponseHeaders());
22392269
$e->setResponseObject($data);
22402270
break;
22412271
}
@@ -2678,6 +2708,16 @@ protected function PutBarcodeGenerateFileRequest(Requests\PutBarcodeGenerateFile
26782708
}
26792709
}
26802710
// query params
2711+
if (isset($request->bar_width_reduction)) {
2712+
$localName = lcfirst('BarWidthReduction');
2713+
$localValue = is_bool($request->bar_width_reduction) ? ($request->bar_width_reduction ? 'true' : 'false') : $request->bar_width_reduction;
2714+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
2715+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($localValue), $resourcePath);
2716+
} else {
2717+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
2718+
}
2719+
}
2720+
// query params
26812721
if (isset($request->storage)) {
26822722
$localName = lcfirst('storage');
26832723
$localValue = is_bool($request->storage) ? ($request->storage ? 'true' : 'false') : $request->storage;
@@ -3170,7 +3210,7 @@ public function putGenerateMultipleWithHttpInfo(Requests\PutGenerateMultipleRequ
31703210
$e->setResponseObject($data);
31713211
break;
31723212
case 400:
3173-
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\BarCodeErrorResponse', $e->getResponseHeaders());
3213+
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\Aspose\BarCode\Model\ApiErrorResponse', $e->getResponseHeaders());
31743214
$e->setResponseObject($data);
31753215
break;
31763216
}

src/Aspose/BarCode/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Configuration implements JsonSerializable
4646
*
4747
* @var string
4848
*/
49-
protected $clientVersion = '20.8.0';
49+
protected $clientVersion = '20.10.0';
5050

5151
/*
5252
* AppKey for API
@@ -362,7 +362,7 @@ public static function toDebugReport()
362362
$report .= ' OS: ' . php_uname() . PHP_EOL;
363363
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
364364
$report .= ' OpenAPI Spec Version: 3.0' . PHP_EOL;
365-
$report .= ' SDK Package Version: 20.8.0' . PHP_EOL;
365+
$report .= ' SDK Package Version: 20.10.0' . PHP_EOL;
366366
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
367367

368368
return $report;

0 commit comments

Comments
 (0)