@@ -103,6 +103,11 @@ public class ProcessParams {
103103 @ SerializedName (SERIALIZED_NAME_CHECK_REQUIRED_TEXT_FIELDS )
104104 private Boolean checkRequiredTextFields = false ;
105105
106+ public static final String SERIALIZED_NAME_RETURN_CROPPED_BARCODE = "returnCroppedBarcode" ;
107+
108+ @ SerializedName (SERIALIZED_NAME_RETURN_CROPPED_BARCODE )
109+ private Boolean returnCroppedBarcode = false ;
110+
106111 public static final String SERIALIZED_NAME_IMAGE_Q_A = "imageQA" ;
107112
108113 @ SerializedName (SERIALIZED_NAME_IMAGE_Q_A )
@@ -454,6 +459,25 @@ public void setCheckRequiredTextFields(Boolean checkRequiredTextFields) {
454459 this .checkRequiredTextFields = checkRequiredTextFields ;
455460 }
456461
462+ public ProcessParams withReturnCroppedBarcode (Boolean returnCroppedBarcode ) {
463+ this .returnCroppedBarcode = returnCroppedBarcode ;
464+ return this ;
465+ }
466+
467+ /**
468+ * When enabled, returns cropped barcode images for unknown documents
469+ *
470+ * @return returnCroppedBarcode
471+ */
472+ @ javax .annotation .Nullable
473+ public Boolean getReturnCroppedBarcode () {
474+ return returnCroppedBarcode ;
475+ }
476+
477+ public void setReturnCroppedBarcode (Boolean returnCroppedBarcode ) {
478+ this .returnCroppedBarcode = returnCroppedBarcode ;
479+ }
480+
457481 public ProcessParams withImageQA (ImageQA imageQA ) {
458482 this .imageQA = imageQA ;
459483 return this ;
@@ -499,6 +523,7 @@ public boolean equals(java.lang.Object o) {
499523 && Objects .equals (
500524 this .generateDoublePageSpreadImage , processParams .generateDoublePageSpreadImage )
501525 && Objects .equals (this .checkRequiredTextFields , processParams .checkRequiredTextFields )
526+ && Objects .equals (this .returnCroppedBarcode , processParams .returnCroppedBarcode )
502527 && Objects .equals (this .imageQA , processParams .imageQA );
503528 }
504529
@@ -521,6 +546,7 @@ public int hashCode() {
521546 updateOCRValidityByGlare ,
522547 generateDoublePageSpreadImage ,
523548 checkRequiredTextFields ,
549+ returnCroppedBarcode ,
524550 imageQA );
525551 }
526552
@@ -550,6 +576,9 @@ public String toString() {
550576 sb .append (" checkRequiredTextFields: " )
551577 .append (toIndentedString (checkRequiredTextFields ))
552578 .append ("\n " );
579+ sb .append (" returnCroppedBarcode: " )
580+ .append (toIndentedString (returnCroppedBarcode ))
581+ .append ("\n " );
553582 sb .append (" imageQA: " ).append (toIndentedString (imageQA )).append ("\n " );
554583 sb .append ("}" );
555584 return sb .toString ();
0 commit comments