Skip to content

Commit d181a6f

Browse files
authored
Release 24.9 (#79)
* Update documentation * Update dependencies * Add checksumValidation * Add test for Code39 type without checksum * Update version to 24.9.0
1 parent dd536c0 commit d181a6f

File tree

14 files changed

+136
-61
lines changed

14 files changed

+136
-61
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 24.8.0
8+
- SDK version: 24.9.0
99

1010
## Demo applications
1111

@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
6868
<dependency>
6969
<groupId>com.aspose</groupId>
7070
<artifactId>aspose-barcode-cloud</artifactId>
71-
<version>24.8.0</version>
71+
<version>24.9.0</version>
7272
<scope>compile</scope>
7373
</dependency>
7474
```
@@ -83,7 +83,7 @@ mvn clean package
8383

8484
Then manually install the following JARs:
8585

86-
- `target/aspose-barcode-cloud-24.8.0.jar`
86+
- `target/aspose-barcode-cloud-24.9.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started

docs/BarcodeApi.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
## getBarcodeGenerate
1717

18-
> File getBarcodeGenerate(type, text, twoDDisplayText, textLocation, textAlignment, textColor, fontSizeMode, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, format)
18+
> File getBarcodeGenerate(type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, format)
1919
2020
Generate barcode.
2121

@@ -61,8 +61,7 @@ Name | Type | Description | Notes
6161
**twoDDisplayText** | **String**| Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional]
6262
**textLocation** | **String**| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] [enum: Below, Above, None]
6363
**textAlignment** | **String**| Text alignment. | [optional] [enum: Left, Center, Right]
64-
**textColor** | **String**| Specify the displaying CodeText&#39;s Color. Default value: Color.Black. | [optional]
65-
**fontSizeMode** | **String**| 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] [enum: Auto, Manual]
64+
**textColor** | **String**| Specify the displaying CodeText&#39;s Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
6665
**noWrap** | **Boolean**| Specify word wraps (line breaks) within text. Default value: false. | [optional]
6766
**resolution** | **Double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. | [optional]
6867
**resolutionX** | **Double**| DEPRECATED: Use &#39;Resolution&#39; instead. | [optional]
@@ -75,9 +74,9 @@ Name | Type | Description | Notes
7574
**imageHeight** | **Double**| Height of the barcode image in given units. Default units: pixel. | [optional]
7675
**imageWidth** | **Double**| Width of the barcode image in given units. Default units: pixel. | [optional]
7776
**rotationAngle** | **Double**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]
78-
**backColor** | **String**| Background color of the barcode image. Default value: Color.White. | [optional]
79-
**barColor** | **String**| Bars color. Default value: Color.Black. | [optional]
80-
**borderColor** | **String**| Border color. Default value: Color.Black. | [optional]
77+
**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]
78+
**barColor** | **String**| Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
79+
**borderColor** | **String**| Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
8180
**borderWidth** | **Double**| Border width. Default value: 0. Ignored if Visible is set to false. | [optional]
8281
**borderDashStyle** | **String**| Border dash style. Default value: BorderDashStyle.Solid. | [optional] [enum: Solid, Dash, Dot, DashDot, DashDotDot]
8382
**borderVisible** | **Boolean**| Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional]
@@ -318,7 +317,7 @@ Name | Type | Description | Notes
318317

319318
## putBarcodeGenerateFile
320319

321-
> ResultImageInfo putBarcodeGenerateFile(name, type, text, twoDDisplayText, textLocation, textAlignment, textColor, fontSizeMode, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, storage, folder, format)
320+
> ResultImageInfo putBarcodeGenerateFile(name, type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, storage, folder, format)
322321
323322
Generate barcode and save on server (from query params or from file with json or xml content)
324323

@@ -366,8 +365,7 @@ Name | Type | Description | Notes
366365
**twoDDisplayText** | **String**| Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional]
367366
**textLocation** | **String**| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] [enum: Below, Above, None]
368367
**textAlignment** | **String**| Text alignment. | [optional] [enum: Left, Center, Right]
369-
**textColor** | **String**| Specify the displaying CodeText&#39;s Color. Default value: Color.Black. | [optional]
370-
**fontSizeMode** | **String**| 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] [enum: Auto, Manual]
368+
**textColor** | **String**| Specify the displaying CodeText&#39;s Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
371369
**noWrap** | **Boolean**| Specify word wraps (line breaks) within text. Default value: false. | [optional]
372370
**resolution** | **Double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. | [optional]
373371
**resolutionX** | **Double**| DEPRECATED: Use &#39;Resolution&#39; instead. | [optional]
@@ -380,9 +378,9 @@ Name | Type | Description | Notes
380378
**imageHeight** | **Double**| Height of the barcode image in given units. Default units: pixel. | [optional]
381379
**imageWidth** | **Double**| Width of the barcode image in given units. Default units: pixel. | [optional]
382380
**rotationAngle** | **Double**| BarCode image rotation angle, measured in degree, e.g. RotationAngle &#x3D; 0 or RotationAngle &#x3D; 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional]
383-
**backColor** | **String**| Background color of the barcode image. Default value: Color.White. | [optional]
384-
**barColor** | **String**| Bars color. Default value: Color.Black. | [optional]
385-
**borderColor** | **String**| Border color. Default value: Color.Black. | [optional]
381+
**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]
382+
**barColor** | **String**| Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
383+
**borderColor** | **String**| Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
386384
**borderWidth** | **Double**| Border width. Default value: 0. Ignored if Visible is set to false. | [optional]
387385
**borderDashStyle** | **String**| Border dash style. Default value: BorderDashStyle.Solid. | [optional] [enum: Solid, Dash, Dot, DashDot, DashDotDot]
388386
**borderVisible** | **Boolean**| Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional]
@@ -512,7 +510,7 @@ Name | Type | Description | Notes
512510

513511
## scanBarcode
514512

515-
> BarcodeResponseList scanBarcode(imageFile, decodeTypes, timeout)
513+
> BarcodeResponseList scanBarcode(imageFile, decodeTypes, timeout, checksumValidation)
516514
517515
Quickly scan a barcode from an image.
518516

@@ -555,6 +553,7 @@ Name | Type | Description | Notes
555553
**imageFile** | **File**| Image as file |
556554
**decodeTypes** | [**List&lt;DecodeBarcodeType&gt;**](DecodeBarcodeType.md)| Types of barcode to recognize | [optional]
557555
**timeout** | **Integer**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
556+
**checksumValidation** | **String**| Checksum validation setting. Default is ON. | [optional] [enum: Default, On, Off]
558557

559558
### scanBarcode return type
560559

docs/CaptionParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**text** | **String** | Caption text. | [optional]
88
**alignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional]
9-
**color** | **String** | Text color. | [optional]
9+
**color** | **String** | Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
1010
**visible** | **Boolean** | Is caption visible. | [optional]
1111
**font** | [**FontParams**](FontParams.md) | Font. | [optional]
1212
**padding** | [**Padding**](Padding.md) | Padding. | [optional]

docs/GeneratorParams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**twoDDisplayText** | **String** | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional]
1010
**textLocation** | [**CodeLocation**](CodeLocation.md) | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional]
1111
**textAlignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional]
12-
**textColor** | **String** | Specify the displaying CodeText&#39;s Color. Default value: Color.Black. | [optional]
12+
**textColor** | **String** | Specify the displaying CodeText&#39;s Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
1313
**font** | [**FontParams**](FontParams.md) | Specify the displaying Text&#39;s font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto. | [optional]
1414
**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]
1515
**noWrap** | **Boolean** | Specify word wraps (line breaks) within text. Default value: false. | [optional]
@@ -27,9 +27,9 @@ Name | Type | Description | Notes
2727
**padding** | [**Padding**](Padding.md) | Barcode paddings. Default value: 5pt 5pt 5pt 5pt. | [optional]
2828
**captionAbove** | [**CaptionParams**](CaptionParams.md) | Additional caption above barcode. | [optional]
2929
**captionBelow** | [**CaptionParams**](CaptionParams.md) | Additional caption below barcode. | [optional]
30-
**backColor** | **String** | Background color of the barcode image. Default value: Color.White. | [optional]
31-
**barColor** | **String** | Bars color. Default value: Color.Black. | [optional]
32-
**borderColor** | **String** | Border color. Default value: Color.Black. | [optional]
30+
**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]
31+
**barColor** | **String** | Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
32+
**borderColor** | **String** | Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional]
3333
**borderWidth** | **Double** | Border width. Default value: 0. Ignored if Visible is set to false. | [optional]
3434
**borderDashStyle** | [**BorderDashStyle**](BorderDashStyle.md) | Border dash style. Default value: BorderDashStyle.Solid. | [optional]
3535
**borderVisible** | **Boolean** | Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional]
@@ -58,7 +58,7 @@ Name | Type | Description | Notes
5858
**postal** | [**PostalParams**](PostalParams.md) | Postal params. | [optional]
5959
**QR** | [**QrParams**](QrParams.md) | QR params. | [optional]
6060
**patchCode** | [**PatchCodeParams**](PatchCodeParams.md) | PatchCode params. | [optional]
61-
**code128** | [**Code128Params**](Code128Params.md) | Code128 params. | [optional]
61+
**code128** | [**Code128Params**](Code128Params.md) | Code128 parameters | [optional]
6262
**hanXin** | [**HanXinParams**](HanXinParams.md) | HanXin params. | [optional]
6363

6464

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>aspose-barcode-cloud</artifactId>
77
<packaging>jar</packaging>
88
<name>aspose-barcode-cloud</name>
9-
<version>24.8.0</version>
9+
<version>24.9.0</version>
1010
<url>https://www.aspose.cloud</url>
1111
<description>Aspose.BarCode Cloud SDK for Java</description>
1212
<scm>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/** ApiClient. */
4242
public class ApiClient {
4343
public final String apiVersion = "v3.0";
44-
public final String clientVersion = "24.8.0";
44+
public final String clientVersion = "24.9.0";
4545

4646
private String baseUrl = "https://api.aspose.cloud";
4747
private String tokenUrl = baseUrl + "/connect/token";
@@ -85,7 +85,7 @@ protected ApiClient() {
8585
json = new JSON();
8686

8787
// Set default User-Agent.
88-
setUserAgent("Swagger-Codegen/24.8.0/java");
88+
setUserAgent("Swagger-Codegen/24.9.0/java");
8989

9090
addDefaultHeader("x-aspose-client", "java sdk");
9191
addDefaultHeader("x-aspose-client-version", clientVersion);

src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ protected com.squareup.okhttp.Call getBarcodeGenerateCall(
100100
queryParams.addAll(apiClient.parameterToPair("TextColor", request.textColor));
101101
}
102102

103-
if (request.fontSizeMode != null) {
104-
queryParams.addAll(apiClient.parameterToPair("FontSizeMode", request.fontSizeMode));
105-
}
106-
107103
if (request.noWrap != null) {
108104
queryParams.addAll(apiClient.parameterToPair("NoWrap", request.noWrap));
109105
}
@@ -1300,10 +1296,6 @@ protected com.squareup.okhttp.Call putBarcodeGenerateFileCall(
13001296
queryParams.addAll(apiClient.parameterToPair("TextColor", request.textColor));
13011297
}
13021298

1303-
if (request.fontSizeMode != null) {
1304-
queryParams.addAll(apiClient.parameterToPair("FontSizeMode", request.fontSizeMode));
1305-
}
1306-
13071299
if (request.noWrap != null) {
13081300
queryParams.addAll(apiClient.parameterToPair("NoWrap", request.noWrap));
13091301
}
@@ -1987,6 +1979,10 @@ protected com.squareup.okhttp.Call scanBarcodeCall(
19871979
formParams.put("timeout", request.timeout);
19881980
}
19891981

1982+
if (request.checksumValidation != null) {
1983+
formParams.put("checksumValidation", request.checksumValidation);
1984+
}
1985+
19901986
final String[] accepts = {"application/json"};
19911987
final String accept = apiClient.selectHeaderAccept(accepts);
19921988
if (accept != null) {

src/main/java/com/aspose/barcode/cloud/model/CaptionParams.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public void setAlignment(TextAlignment alignment) {
6060
}
6161

6262
/**
63-
* Text color.
63+
* Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like:
64+
* #FF0000, #00FF00, #0000FF
6465
*
6566
* @return color
6667
*/

src/main/java/com/aspose/barcode/cloud/model/GeneratorParams.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ public void setTextAlignment(TextAlignment textAlignment) {
251251
}
252252

253253
/**
254-
* Specify the displaying CodeText&#39;s Color. Default value: Color.Black.
254+
* Specify the displaying CodeText&#39;s Color. Default value: black. Use named colors like:
255+
* red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
255256
*
256257
* @return textColor
257258
*/
@@ -514,7 +515,8 @@ public void setCaptionBelow(CaptionParams captionBelow) {
514515
}
515516

516517
/**
517-
* Background color of the barcode image. Default value: Color.White.
518+
* Background color of the barcode image. Default value: white. Use named colors like: red,
519+
* green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF
518520
*
519521
* @return backColor
520522
*/
@@ -528,7 +530,8 @@ public void setBackColor(String backColor) {
528530
}
529531

530532
/**
531-
* Bars color. Default value: Color.Black.
533+
* Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors
534+
* like: #FF0000, #00FF00, #0000FF
532535
*
533536
* @return barColor
534537
*/
@@ -542,7 +545,8 @@ public void setBarColor(String barColor) {
542545
}
543546

544547
/**
545-
* Border color. Default value: Color.Black.
548+
* Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors
549+
* like: #FF0000, #00FF00, #0000FF
546550
*
547551
* @return borderColor
548552
*/
@@ -965,7 +969,7 @@ public void setPatchCode(PatchCodeParams patchCode) {
965969
}
966970

967971
/**
968-
* Code128 params.
972+
* Code128 parameters
969973
*
970974
* @return code128
971975
*/

0 commit comments

Comments
 (0)