Skip to content

Commit a0dfa27

Browse files
authored
Release 24.9 (#41)
* Update documentation * Add checksumValidation * Add tests for Code39 type without checksum * Update version to 1.24.9
1 parent 9573366 commit a0dfa27

File tree

12 files changed

+82
-53
lines changed

12 files changed

+82
-53
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 1.24.9
4+
5+
* Update documentation
6+
7+
* Add checksumValidation to Scan
8+
9+
* Add tests for Code39 type without checksum
10+
311
## 1.24.8
412

513
* August 2024 Release

Code39.jpg

24.2 KB
Loading

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Dart test](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml)
44

55
- API version: 3.0
6-
- SDK version: 1.24.8
6+
- SDK version: 1.24.9
77

88
This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily
99

@@ -34,7 +34,7 @@ Add this dependency to your *pubspec.yaml*:
3434

3535
```yaml
3636
dependencies:
37-
aspose_barcode_cloud: 1.24.8
37+
aspose_barcode_cloud: 1.24.9
3838
```
3939
4040
## Sample usage

doc/api/BarcodeApi.md

Lines changed: 24 additions & 26 deletions
Large diffs are not rendered by default.

doc/models/CaptionParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
---- | ---- | ----------- | -----
1414
**text** | **String** | Caption text. | [optional] [default to null]
1515
**alignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional] [default to null]
16-
**color** | **String** | Text color. | [optional] [default to null]
16+
**color** | **String** | Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null]
1717
**visible** | **bool** | Is caption visible. | [optional] [default to null]
1818
**font** | [**FontParams**](FontParams.md) | Font. | [optional] [default to null]
1919
**padding** | [**Padding**](Padding.md) | Padding. | [optional] [default to null]

doc/models/GeneratorParams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
**twoDDisplayText** | **String** | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional] [default to null]
1717
**textLocation** | [**CodeLocation**](CodeLocation.md) | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] [default to null]
1818
**textAlignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional] [default to null]
19-
**textColor** | **String** | Specify the displaying CodeText's Color. Default value: Color.Black. | [optional] [default to null]
19+
**textColor** | **String** | Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null]
2020
**font** | [**FontParams**](FontParams.md) | Specify the displaying Text's font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto. | [optional] [default to null]
2121
**fontSizeMode** | [**FontMode**](FontMode.md) | Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto. | [optional] [default to null]
2222
**noWrap** | **bool** | Specify word wraps (line breaks) within text. Default value: false. | [optional] [default to null]
@@ -34,9 +34,9 @@ Name | Type | Description | Notes
3434
**padding** | [**Padding**](Padding.md) | Barcode paddings. Default value: 5pt 5pt 5pt 5pt. | [optional] [default to null]
3535
**captionAbove** | [**CaptionParams**](CaptionParams.md) | Additional caption above barcode. | [optional] [default to null]
3636
**captionBelow** | [**CaptionParams**](CaptionParams.md) | Additional caption below barcode. | [optional] [default to null]
37-
**backColor** | **String** | Background color of the barcode image. Default value: Color.White. | [optional] [default to null]
38-
**barColor** | **String** | Bars color. Default value: Color.Black. | [optional] [default to null]
39-
**borderColor** | **String** | Border color. Default value: Color.Black. | [optional] [default to null]
37+
**backColor** | **String** | Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null]
38+
**barColor** | **String** | Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null]
39+
**borderColor** | **String** | Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null]
4040
**borderWidth** | **double** | Border width. Default value: 0. Ignored if Visible is set to false. | [optional] [default to null]
4141
**borderDashStyle** | [**BorderDashStyle**](BorderDashStyle.md) | Border dash style. Default value: BorderDashStyle.Solid. | [optional] [default to null]
4242
**borderVisible** | **bool** | Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional] [default to null]
@@ -65,6 +65,6 @@ Name | Type | Description | Notes
6565
**postal** | [**PostalParams**](PostalParams.md) | Postal params. | [optional] [default to null]
6666
**QR** | [**QrParams**](QrParams.md) | QR params. | [optional] [default to null]
6767
**patchCode** | [**PatchCodeParams**](PatchCodeParams.md) | PatchCode params. | [optional] [default to null]
68-
**code128** | [**Code128Params**](Code128Params.md) | Code128 params. | [optional] [default to null]
68+
**code128** | [**Code128Params**](Code128Params.md) | Code128 parameters | [optional] [default to null]
6969
**hanXin** | [**HanXinParams**](HanXinParams.md) | HanXin params. | [optional] [default to null]
7070

lib/src/api/barcode_api.dart

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class BarcodeApi {
2121
String? textLocation,
2222
String? textAlignment,
2323
String? textColor,
24-
String? fontSizeMode,
2524
bool? noWrap,
2625
double? resolution,
2726
double? resolutionX,
@@ -80,10 +79,6 @@ class BarcodeApi {
8079
queryParams.addAll(
8180
convertParametersForCollectionFormat("", "TextColor", textColor));
8281
}
83-
if (fontSizeMode != null) {
84-
queryParams.addAll(convertParametersForCollectionFormat(
85-
"", "FontSizeMode", fontSizeMode));
86-
}
8782
if (noWrap != null) {
8883
queryParams
8984
.addAll(convertParametersForCollectionFormat("", "NoWrap", noWrap));
@@ -751,7 +746,6 @@ class BarcodeApi {
751746
String? textLocation,
752747
String? textAlignment,
753748
String? textColor,
754-
String? fontSizeMode,
755749
bool? noWrap,
756750
double? resolution,
757751
double? resolutionX,
@@ -813,10 +807,6 @@ class BarcodeApi {
813807
queryParams.addAll(
814808
convertParametersForCollectionFormat("", "TextColor", textColor));
815809
}
816-
if (fontSizeMode != null) {
817-
queryParams.addAll(convertParametersForCollectionFormat(
818-
"", "FontSizeMode", fontSizeMode));
819-
}
820810
if (noWrap != null) {
821811
queryParams
822812
.addAll(convertParametersForCollectionFormat("", "NoWrap", noWrap));
@@ -1064,7 +1054,9 @@ class BarcodeApi {
10641054
/// Quickly scan a barcode from an image.
10651055
///
10661056
Future<BarcodeResponseList> scanBarcode(MultipartFile imageFile,
1067-
{List<DecodeBarcodeType>? decodeTypes, int? timeout}) async {
1057+
{List<DecodeBarcodeType>? decodeTypes,
1058+
int? timeout,
1059+
String? checksumValidation}) async {
10681060
// ignore: prefer_final_locals
10691061
Object? postBody;
10701062

@@ -1102,6 +1094,13 @@ class BarcodeApi {
11021094
mp.fields['timeout'] = [parameterToString(timeout)];
11031095
}
11041096

1097+
if (checksumValidation != null) {
1098+
hasFields = true;
1099+
mp.fields['checksumValidation'] = [
1100+
parameterToString(checksumValidation)
1101+
];
1102+
}
1103+
11051104
if (hasFields) {
11061105
postBody = mp;
11071106
}
@@ -1112,6 +1111,10 @@ class BarcodeApi {
11121111
if (timeout != null) {
11131112
formParams['timeout'] = parameterToString(timeout);
11141113
}
1114+
if (checksumValidation != null) {
1115+
formParams['checksumValidation'] =
1116+
parameterToString(checksumValidation);
1117+
}
11151118
}
11161119

11171120
final response = await _apiClient.invokeAPI(

lib/src/api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'api_helper.dart';
1010
import 'auth/authentication.dart';
1111

1212
/// Current SDK Version
13-
const SDK_VERSION = "1.24.8";
13+
const SDK_VERSION = "1.24.9";
1414

1515
/// ApiClient is responsible for making HTTP requests to the API.
1616
class ApiClient {

lib/src/model/caption_params.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CaptionParams {
1010
/// Text alignment.
1111
TextAlignment? alignment;
1212

13-
/// Text color.
13+
/// Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
1414
String? color;
1515

1616
/// Is caption visible.

lib/src/model/generator_params.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GeneratorParams {
1919
/// Text alignment.
2020
TextAlignment? textAlignment;
2121

22-
/// Specify the displaying CodeText's Color. Default value: Color.Black.
22+
/// Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
2323
String? textColor;
2424

2525
/// Specify the displaying Text's font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto.
@@ -73,13 +73,13 @@ class GeneratorParams {
7373
/// Additional caption below barcode.
7474
CaptionParams? captionBelow;
7575

76-
/// Background color of the barcode image. Default value: Color.White.
76+
/// Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
7777
String? backColor;
7878

79-
/// Bars color. Default value: Color.Black.
79+
/// Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
8080
String? barColor;
8181

82-
/// Border color. Default value: Color.Black.
82+
/// Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
8383
String? borderColor;
8484

8585
/// Border width. Default value: 0. Ignored if Visible is set to false.
@@ -166,7 +166,7 @@ class GeneratorParams {
166166
/// PatchCode params.
167167
PatchCodeParams? patchCode;
168168

169-
/// Code128 params.
169+
/// Code128 parameters
170170
Code128Params? code128;
171171

172172
/// HanXin params.

0 commit comments

Comments
 (0)