Skip to content

Commit d5da728

Browse files
committed
SDK-2445: [AB] Add text-extraction task recommendation to the GET session endpoint
1 parent 4244aef commit d5da728

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed

yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/retrieve/IdDocTextExtractionTaskResponse.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22

33
import java.util.List;
44

5+
import com.fasterxml.jackson.annotation.JsonProperty;
6+
57
public class IdDocTextExtractionTaskResponse extends TaskResponse {
68

9+
@JsonProperty("recommendation")
10+
private TaskRecommendationResponse recommendation;
11+
12+
/**
13+
* The recommendation for the task
14+
*
15+
* @return the recommendation
16+
*/
17+
public TaskRecommendationResponse getRecommendation() {
18+
return recommendation;
19+
}
20+
721
public List<GeneratedTextDataCheckResponse> getGeneratedTextDataChecks() {
822
return filterGeneratedChecksByType(GeneratedTextDataCheckResponse.class);
923
}

yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/retrieve/SupplementaryDocumentTextExtractionTaskResponse.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22

33
import java.util.List;
44

5+
import com.fasterxml.jackson.annotation.JsonProperty;
6+
57
public class SupplementaryDocumentTextExtractionTaskResponse extends TaskResponse {
68

9+
@JsonProperty("recommendation")
10+
private TaskRecommendationResponse recommendation;
11+
12+
/**
13+
* The recommendation for the task
14+
*
15+
* @return the recommendation
16+
*/
17+
public TaskRecommendationResponse getRecommendation() {
18+
return recommendation;
19+
}
20+
721
public List<GeneratedSupplementaryDocumentTextDataCheckResponse> getGeneratedTextDataChecks() {
822
return filterGeneratedChecksByType(GeneratedSupplementaryDocumentTextDataCheckResponse.class);
923
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.yoti.api.client.docs.session.retrieve;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
public class TaskReasonResponse {
6+
7+
@JsonProperty("value")
8+
private String value;
9+
10+
@JsonProperty("detail")
11+
private String detail;
12+
13+
/**
14+
* The reason for the recommendation
15+
*
16+
* @return the reason value
17+
*/
18+
public String getValue() {
19+
return value;
20+
}
21+
22+
/**
23+
* The fine-grained details for the reason of the recommendation
24+
*
25+
* @return the details
26+
*/
27+
public String getDetail() {
28+
return detail;
29+
}
30+
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.yoti.api.client.docs.session.retrieve;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
public class TaskRecommendationResponse {
6+
7+
@JsonProperty("value")
8+
private String value;
9+
10+
@JsonProperty("reason")
11+
private TaskReasonResponse reason;
12+
13+
/**
14+
* The recommendation value
15+
*
16+
* @return the value
17+
*/
18+
public String getValue() {
19+
return value;
20+
}
21+
22+
/**
23+
* The reason for the recommendation
24+
*
25+
* @return the reason
26+
*/
27+
public TaskReasonResponse getReason() {
28+
return reason;
29+
}
30+
31+
}

0 commit comments

Comments
 (0)