Skip to content

Commit

Permalink
SDK-2445: [AB] Add text-extraction task recommendation to the GET ses…
Browse files Browse the repository at this point in the history
…sion endpoint
  • Loading branch information
MrBurtyyy committed Aug 13, 2024
1 parent 4244aef commit d5da728
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class IdDocTextExtractionTaskResponse extends TaskResponse {

@JsonProperty("recommendation")
private TaskRecommendationResponse recommendation;

/**
* The recommendation for the task
*
* @return the recommendation
*/
public TaskRecommendationResponse getRecommendation() {
return recommendation;
}

public List<GeneratedTextDataCheckResponse> getGeneratedTextDataChecks() {
return filterGeneratedChecksByType(GeneratedTextDataCheckResponse.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SupplementaryDocumentTextExtractionTaskResponse extends TaskResponse {

@JsonProperty("recommendation")
private TaskRecommendationResponse recommendation;

/**
* The recommendation for the task
*
* @return the recommendation
*/
public TaskRecommendationResponse getRecommendation() {
return recommendation;
}

public List<GeneratedSupplementaryDocumentTextDataCheckResponse> getGeneratedTextDataChecks() {
return filterGeneratedChecksByType(GeneratedSupplementaryDocumentTextDataCheckResponse.class);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.yoti.api.client.docs.session.retrieve;

import com.fasterxml.jackson.annotation.JsonProperty;

public class TaskReasonResponse {

@JsonProperty("value")
private String value;

@JsonProperty("detail")
private String detail;

/**
* The reason for the recommendation
*
* @return the reason value
*/
public String getValue() {
return value;
}

/**
* The fine-grained details for the reason of the recommendation
*
* @return the details
*/
public String getDetail() {
return detail;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.yoti.api.client.docs.session.retrieve;

import com.fasterxml.jackson.annotation.JsonProperty;

public class TaskRecommendationResponse {

@JsonProperty("value")
private String value;

@JsonProperty("reason")
private TaskReasonResponse reason;

/**
* The recommendation value
*
* @return the value
*/
public String getValue() {
return value;
}

/**
* The reason for the recommendation
*
* @return the reason
*/
public TaskReasonResponse getReason() {
return reason;
}

}

0 comments on commit d5da728

Please sign in to comment.