File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,30 @@ public class WorkflowOptions {
1818 * Priority to give to the execution.
1919 */
2020 ExecutionPriority priority ;
21+
2122 /**
2223 * Whether to include the full text data for async APIs.
2324 * This performs a full OCR operation on the server and will increase response time and payload
2425 * size.
2526 */
2627 Boolean fullText ;
2728
29+ /**
30+ * A unique, encrypted URL for accessing the document validation interface without requiring
31+ * authentication.
32+ */
33+ String publicUrl ;
34+
2835 @ Builder
2936 private WorkflowOptions (
3037 String alias ,
3138 ExecutionPriority priority ,
32- Boolean fullText
39+ Boolean fullText ,
40+ String publicUrl
3341 ) {
3442 this .alias = alias ;
3543 this .priority = priority ;
3644 this .fullText = fullText == null ? Boolean .FALSE : fullText ;
45+ this .publicUrl = publicUrl ;
3746 }
3847}
Original file line number Diff line number Diff line change @@ -415,6 +415,12 @@ private HttpEntity buildHttpBody(
415415 requestParameters .getWorkflowOptions ().getAlias ().toLowerCase ()
416416 );
417417 }
418+ if (requestParameters .getWorkflowOptions ().getPublicUrl () != null ) {
419+ builder .addTextBody (
420+ "public_url" ,
421+ requestParameters .getWorkflowOptions ().getPublicUrl ()
422+ );
423+ }
418424 return builder .build ();
419425 } else if (requestParameters .getFileUrl () != null ) {
420426 Map <String , URL > urlMap = new HashMap <>();
You can’t perform that action at this time.
0 commit comments