Skip to content

Commit bbb1bc3

Browse files
add public url
1 parent 400ae35 commit bbb1bc3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/main/java/com/mindee/WorkflowOptions.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/main/java/com/mindee/http/MindeeHttpApi.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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<>();

0 commit comments

Comments
 (0)