Skip to content

Commit 4e018a6

Browse files
committed
Add checksumValidation
1 parent 0c5bfef commit 4e018a6

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/BarcodeApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ Name | Type | Description | Notes
510510

511511
## scanBarcode
512512

513-
> BarcodeResponseList scanBarcode(imageFile, decodeTypes, timeout)
513+
> BarcodeResponseList scanBarcode(imageFile, decodeTypes, timeout, checksumValidation)
514514
515515
Quickly scan a barcode from an image.
516516

@@ -553,6 +553,7 @@ Name | Type | Description | Notes
553553
**imageFile** | **File**| Image as file |
554554
**decodeTypes** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md)| Types of barcode to recognize | [optional]
555555
**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]
556557

557558
### scanBarcode return type
558559

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,10 @@ protected com.squareup.okhttp.Call scanBarcodeCall(
19791979
formParams.put("timeout", request.timeout);
19801980
}
19811981

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

src/main/java/com/aspose/barcode/cloud/requests/ScanBarcodeRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public class ScanBarcodeRequest {
4545
*/
4646
public Integer timeout;
4747

48+
/** Checksum validation setting. Default is ON.. */
49+
public String checksumValidation;
50+
4851
/**
4952
* Quickly scan a barcode from an image..
5053
*

0 commit comments

Comments
 (0)