-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-2445: [AB] Add text-extraction task recommendation to the configu…
…ration response for each requirement
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...i/client/docs/session/retrieve/configuration/capture/task/RequestedIdDocTaskResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...cs/session/retrieve/configuration/capture/task/RequestedSupplementaryDocTaskResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
.../yoti/api/client/docs/session/retrieve/configuration/capture/task/TaskReasonResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...i/client/docs/session/retrieve/configuration/capture/task/TaskRecommendationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |