Creates an instance of LocalResponse.
Deserialize the loaded local response into a product response class.
Typically used when dealing with V2 webhook callbacks to parse the raw JSON payload pushed to your endpoint into a typed response object.
Pass the response class that matches the product you used when enqueuing
the document. All product response classes are exported from the mindee
package and can be used here:
mindee.product.ExtractionResponsemindee.product.ClassificationResponsemindee.product.OcrResponsemindee.product.CropResponsemindee.product.SplitResponseA class that extends BaseResponse.
The constructor of the product response class into which the payload should be deserialized.
An instance of responseClass populated with the webhook payload.
Returns the HMAC signature of the local response from the secret key provided.
Secret key, either a string or a byte/byte array.
The HMAC signature of the local response.
Checks if the HMAC signature of the local response is valid.
Secret key, either a string or a byte/byte array.
The signature to be compared with.
True if the HMAC signature is valid.
Local response loaded from a file. Note: Has to be initialized through init() before use.