Skip to content

Commit

Permalink
Add checksumValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Sep 25, 2024
1 parent ef390d1 commit b47dc5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ Name | Type | Description | Notes
**imageFile** | **Buffer**| Image as file |
**decodeTypes** | **Array<DecodeBarcodeType>**| Types of barcode to recognize | [optional]
**timeout** | **number**| 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]
**checksumValidation** | 'Default', 'On', 'Off' | Checksum validation setting. Default is ON. | [optional]

#### BarcodeApi.scanBarcode return type

Expand Down
4 changes: 4 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,10 @@ export class BarcodeApi {
formParams.push(['timeout', ObjectSerializer.serialize(request.timeout, 'number')]);
}

if (request.checksumValidation != null) {
formParams.push(['checksumValidation', ObjectSerializer.serialize(request.checksumValidation, 'string')]);
}

const requestOptions: HttpOptions = {
method: 'POST',
qs: queryParameters,
Expand Down
4 changes: 4 additions & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4892,6 +4892,10 @@ export class ScanBarcodeRequest {
Try reducing the image size to avoid timeout.
*/
'timeout'?: number;
/**
* Checksum validation setting. Default is ON.
*/
'checksumValidation'?: 'Default' | 'On' | 'Off';

/**
* @param imageFile Image as file
Expand Down

0 comments on commit b47dc5d

Please sign in to comment.