Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "4204f00",
"long_sha": "4204f00a2c7f0f5bd61da3b5442d8eb613418e9e",
"version": ""
"version": "v6.0.0"
},
"release": "v7.0.0"
}
2 changes: 2 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ensuring a smooth transition between versions.
- **All API methods**: All API method calls now use request builder pattern with `.execute()`
- This change enables backward compatibility when new optional parameters are added
- Example migration:

```java
// Before (v6.x)
List<WorkflowRun> runs = api.listWorkflowRuns(applicantId, status, page, perPage);
Expand All @@ -25,6 +26,7 @@ ensuring a smooth transition between versions.
.perPage(perPage)
.execute();
```

- Documents
- Driving licence information properties removed from general `DocumentProperties`
and moved to new `DocumentPropertiesWithDrivingLicenceInformation` class
Expand Down
12 changes: 10 additions & 2 deletions src/test/java/com/onfido/integration/WorkflowRunTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ public void findWorkflowRunTest() throws Exception {

@Test
public void evidenceWorkflowRunTest() throws Exception {
byte[] byteArray = onfido.downloadSignedEvidenceFile(workflowRunId).execute().getByteArray();
FileTransfer evidenceFile =
(FileTransfer)
repeatRequestUntilHttpCodeChanges(
"downloadSignedEvidenceFile",
new UUID[] {workflowRunId},
MAX_RETRIES,
SLEEP_TIME * 2);

byte[] byteArray = evidenceFile.getByteArray();

Assertions.assertEquals("%PDF", new String(byteArray, 0, 4));
Assertions.assertTrue(byteArray.length > 0);
Expand Down Expand Up @@ -118,7 +126,7 @@ public void findTimelineFileTest() throws Exception {
"findTimelineFile",
new UUID[] {workflowRunId, timelineFileId},
MAX_RETRIES,
SLEEP_TIME * 2);
SLEEP_TIME);

byte[] byteArray = download.getByteArray();

Expand Down