Skip to content

Commit

Permalink
SDK-2445: [AB] Add text-extraction task recommendation to the configu…
Browse files Browse the repository at this point in the history
…ration response for each requirement
  • Loading branch information
MrBurtyyy committed Aug 9, 2024
1 parent 4244aef commit 3389aa9
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
package com.yoti.api.client.docs.session.retrieve.configuration.capture.task;

import com.fasterxml.jackson.annotation.JsonProperty;

public class RequestedIdDocTaskResponse extends RequestedTaskResponse {

@JsonProperty("recommendation")
private TaskRecommendationResponse recommendation;

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

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
package com.yoti.api.client.docs.session.retrieve.configuration.capture.task;

import com.fasterxml.jackson.annotation.JsonProperty;

public class RequestedSupplementaryDocTaskResponse extends RequestedTaskResponse {

@JsonProperty("recommendation")
private TaskRecommendationResponse recommendation;

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

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

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.configuration.capture.task;

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 3389aa9

Please sign in to comment.