Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK-2445: [AB] Add text-extraction task recommendation to the GET session endpoint #451

Merged
merged 1 commit into from
Aug 13, 2024
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
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;
}

}