Skip to content

Commit 947c275

Browse files
Release 26.5.0
Release 26.5.0
2 parents fca89c4 + 1b6b0b3 commit 947c275

6 files changed

Lines changed: 29 additions & 21 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Packagist Version](https://img.shields.io/packagist/v/aspose/barcode-cloud-php)](https://packagist.org/packages/aspose/barcode-cloud-php)
88

99
- API version: 4.0
10-
- Package version: 26.4.0
10+
- Package version: 26.5.0
1111
- Supported PHP versions: ">=8.0"
1212

1313
## SDK and API Version Compatibility:

docs/Api/GenerateApi.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Aspose\BarCode\GenerateApi
22

3+
4+
35
All URIs are relative to https://api.aspose.cloud/v4.0, except if the operation defines another base path.
46

57
| Method | HTTP request | Description |
@@ -34,14 +36,14 @@ $apiInstance = new Aspose\BarCode\Api\GenerateApi(
3436
new GuzzleHttp\Client(),
3537
$config
3638
);
37-
$barcode_type = new \Aspose\BarCode\Model\EncodeBarcodeType(); // EncodeBarcodeType | Type of barcode to generate.
39+
$barcode_type = new \Aspose\BarCode\Model\EncodeBarcodeType(); // \Aspose\BarCode\Model\EncodeBarcodeType | Type of barcode to generate.
3840
$data = 'data_example'; // string | String represents data to encode
39-
$data_type = new \Aspose\BarCode\Model\EncodeDataType(); // EncodeDataType | Type of data to encode. Default value: StringData.
40-
$image_format = new \Aspose\BarCode\Model\BarcodeImageFormat(); // BarcodeImageFormat | Barcode output image format. Default value: png
41-
$text_location = new \Aspose\BarCode\Model\CodeLocation(); // CodeLocation | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes.
41+
$data_type = new \Aspose\BarCode\Model\EncodeDataType(); // \Aspose\BarCode\Model\EncodeDataType | Type of data to encode. Default value: StringData.
42+
$image_format = new \Aspose\BarCode\Model\BarcodeImageFormat(); // \Aspose\BarCode\Model\BarcodeImageFormat | Barcode output image format. Default value: png
43+
$text_location = new \Aspose\BarCode\Model\CodeLocation(); // \Aspose\BarCode\Model\CodeLocation | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes.
4244
$foreground_color = 'Black'; // string | Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black.
4345
$background_color = 'White'; // string | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White.
44-
$units = new \Aspose\BarCode\Model\GraphicsUnit(); // GraphicsUnit | Common Units for all measuring in query. Default units: pixel.
46+
$units = new \Aspose\BarCode\Model\GraphicsUnit(); // \Aspose\BarCode\Model\GraphicsUnit | Common Units for all measuring in query. Default units: pixel.
4547
$resolution = 3.4; // float | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot.
4648
$image_height = 3.4; // float | Height of the barcode image in given units. Default units: pixel. Decimal separator is dot.
4749
$image_width = 3.4; // float | Width of the barcode image in given units. Default units: pixel. Decimal separator is dot.
@@ -59,14 +61,14 @@ try {
5961

6062
| Name | Type | Description | Notes |
6163
| ------------- | ------------- | ------------- | ------------- |
62-
| **barcode_type** | [**EncodeBarcodeType**](../Model/.md)| Type of barcode to generate. | |
64+
| **barcode_type** | [**\Aspose\BarCode\Model\EncodeBarcodeType**](../Model/.md)| Type of barcode to generate. | |
6365
| **data** | **string**| String represents data to encode | |
64-
| **data_type** | [**EncodeDataType**](../Model/.md)| Type of data to encode. Default value: StringData. | [optional] |
65-
| **image_format** | [**BarcodeImageFormat**](../Model/.md)| Barcode output image format. Default value: png | [optional] |
66-
| **text_location** | [**CodeLocation**](../Model/.md)| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes. | [optional] |
66+
| **data_type** | [**\Aspose\BarCode\Model\EncodeDataType**](../Model/.md)| Type of data to encode. Default value: StringData. | [optional] |
67+
| **image_format** | [**\Aspose\BarCode\Model\BarcodeImageFormat**](../Model/.md)| Barcode output image format. Default value: png | [optional] |
68+
| **text_location** | [**\Aspose\BarCode\Model\CodeLocation**](../Model/.md)| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D Barcodes. | [optional] |
6769
| **foreground_color** | **string**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to 'Black'] |
6870
| **background_color** | **string**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to 'White'] |
69-
| **units** | [**GraphicsUnit**](../Model/.md)| Common Units for all measuring in query. Default units: pixel. | [optional] |
71+
| **units** | [**\Aspose\BarCode\Model\GraphicsUnit**](../Model/.md)| Common Units for all measuring in query. Default units: pixel. | [optional] |
7072
| **resolution** | **float**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional] |
7173
| **image_height** | **float**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] |
7274
| **image_width** | **float**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] |

docs/Api/RecognizeApi.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Aspose\BarCode\RecognizeApi
22

3+
4+
35
All URIs are relative to https://api.aspose.cloud/v4.0, except if the operation defines another base path.
46

57
| Method | HTTP request | Description |
@@ -34,10 +36,10 @@ $apiInstance = new Aspose\BarCode\Api\RecognizeApi(
3436
new GuzzleHttp\Client(),
3537
$config
3638
);
37-
$barcode_type = new \Aspose\BarCode\Model\DecodeBarcodeType(); // DecodeBarcodeType | Type of barcode to recognize
39+
$barcode_type = new \Aspose\BarCode\Model\DecodeBarcodeType(); // \Aspose\BarCode\Model\DecodeBarcodeType | Type of barcode to recognize
3840
$file_url = 'file_url_example'; // string | Url to barcode image
39-
$recognition_mode = new \Aspose\BarCode\Model\RecognitionMode(); // RecognitionMode | Recognition mode
40-
$recognition_image_kind = new \Aspose\BarCode\Model\RecognitionImageKind(); // RecognitionImageKind | Image kind for recognition
41+
$recognition_mode = new \Aspose\BarCode\Model\RecognitionMode(); // \Aspose\BarCode\Model\RecognitionMode | Recognition mode
42+
$recognition_image_kind = new \Aspose\BarCode\Model\RecognitionImageKind(); // \Aspose\BarCode\Model\RecognitionImageKind | Image kind for recognition
4143

4244
try {
4345
$result = $apiInstance->recognize($barcode_type, $file_url, $recognition_mode, $recognition_image_kind);
@@ -51,10 +53,10 @@ try {
5153

5254
| Name | Type | Description | Notes |
5355
| ------------- | ------------- | ------------- | ------------- |
54-
| **barcode_type** | [**DecodeBarcodeType**](../Model/.md)| Type of barcode to recognize | |
56+
| **barcode_type** | [**\Aspose\BarCode\Model\DecodeBarcodeType**](../Model/.md)| Type of barcode to recognize | |
5557
| **file_url** | **string**| Url to barcode image | |
56-
| **recognition_mode** | [**RecognitionMode**](../Model/.md)| Recognition mode | [optional] |
57-
| **recognition_image_kind** | [**RecognitionImageKind**](../Model/.md)| Image kind for recognition | [optional] |
58+
| **recognition_mode** | [**\Aspose\BarCode\Model\RecognitionMode**](../Model/.md)| Recognition mode | [optional] |
59+
| **recognition_image_kind** | [**\Aspose\BarCode\Model\RecognitionImageKind**](../Model/.md)| Image kind for recognition | [optional] |
5860

5961
### Return type
6062

@@ -157,7 +159,7 @@ $apiInstance = new Aspose\BarCode\Api\RecognizeApi(
157159
$config
158160
);
159161
$barcode_type = new \Aspose\BarCode\Model\DecodeBarcodeType(); // \Aspose\BarCode\Model\DecodeBarcodeType
160-
$file = "/path/to/file.txt"; // \SplFileObject | Barcode image file
162+
$file = '/path/to/file.txt'; // \SplFileObject | Barcode image file
161163
$recognition_mode = new \Aspose\BarCode\Model\RecognitionMode(); // \Aspose\BarCode\Model\RecognitionMode
162164
$recognition_image_kind = new \Aspose\BarCode\Model\RecognitionImageKind(); // \Aspose\BarCode\Model\RecognitionImageKind
163165

docs/Api/ScanApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Aspose\BarCode\ScanApi
22

3+
4+
35
All URIs are relative to https://api.aspose.cloud/v4.0, except if the operation defines another base path.
46

57
| Method | HTTP request | Description |
@@ -150,7 +152,7 @@ $apiInstance = new Aspose\BarCode\Api\ScanApi(
150152
new GuzzleHttp\Client(),
151153
$config
152154
);
153-
$file = "/path/to/file.txt"; // \SplFileObject | Barcode image file
155+
$file = '/path/to/file.txt'; // \SplFileObject | Barcode image file
154156

155157
try {
156158
$result = $apiInstance->scanMultipart($file);

src/Aspose/BarCode/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Configuration implements JsonSerializable
2020
*
2121
* @var string
2222
*/
23-
protected $clientVersion = '26.4.0';
23+
protected $clientVersion = '26.5.0';
2424

2525
/**
2626
* ClientId for API

src/Aspose/BarCode/ObjectSerializer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986):
292292
throw new \InvalidArgumentException('Invalid type');
293293
}
294294

295-
$castBool = function ($v) { return $v ? 'true' : 'false'; };
295+
$castBool = function ($v) {
296+
return $v ? 'true' : 'false';
297+
};
296298

297299
$qs = '';
298300
foreach ($params as $k => $v) {

0 commit comments

Comments
 (0)