1
1
package com .yoti .api .client .sandbox .docs .request ;
2
2
3
+ import static com .yoti .api .client .docs .DocScanConstants .FACE_COMPARISON ;
3
4
import static com .yoti .api .client .docs .DocScanConstants .ID_DOCUMENT_AUTHENTICITY ;
4
5
import static com .yoti .api .client .docs .DocScanConstants .ID_DOCUMENT_COMPARISON ;
5
6
import static com .yoti .api .client .docs .DocScanConstants .ID_DOCUMENT_FACE_MATCH ;
14
15
import com .yoti .api .client .sandbox .docs .request .check .SandboxDocumentAuthenticityCheck ;
15
16
import com .yoti .api .client .sandbox .docs .request .check .SandboxDocumentTextDataCheck ;
16
17
import com .yoti .api .client .sandbox .docs .request .check .SandboxDocumentFaceMatchCheck ;
18
+ import com .yoti .api .client .sandbox .docs .request .check .SandboxFaceComparisonCheck ;
17
19
import com .yoti .api .client .sandbox .docs .request .check .SandboxIdDocumentComparisonCheck ;
18
20
import com .yoti .api .client .sandbox .docs .request .check .SandboxLivenessCheck ;
19
21
import com .yoti .api .client .sandbox .docs .request .check .SandboxSupplementaryDocumentTextDataCheck ;
@@ -46,6 +48,9 @@ public class SandboxCheckReports {
46
48
@ JsonProperty (THIRD_PARTY_IDENTITY )
47
49
private final SandboxThirdPartyIdentityCheck thirdPartyIdentityCheck ;
48
50
51
+ @ JsonProperty (FACE_COMPARISON )
52
+ private final SandboxFaceComparisonCheck faceComparisonCheck ;
53
+
49
54
@ JsonProperty ("async_report_delay" )
50
55
private final Integer asyncReportDelay ;
51
56
@@ -56,6 +61,7 @@ public class SandboxCheckReports {
56
61
List <SandboxIdDocumentComparisonCheck > idDocumentComparisonChecks ,
57
62
List <SandboxSupplementaryDocumentTextDataCheck > supplementaryDocumentTextDataChecks ,
58
63
SandboxThirdPartyIdentityCheck thirdPartyIdentityCheck ,
64
+ SandboxFaceComparisonCheck faceComparisonCheck ,
59
65
Integer asyncReportsDelay ) {
60
66
this .documentTextDataChecks = documentTextDataChecks ;
61
67
this .documentAuthenticityChecks = documentAuthenticityChecks ;
@@ -64,6 +70,7 @@ public class SandboxCheckReports {
64
70
this .idDocumentComparisonChecks = idDocumentComparisonChecks ;
65
71
this .supplementaryDocumentTextDataChecks = supplementaryDocumentTextDataChecks ;
66
72
this .thirdPartyIdentityCheck = thirdPartyIdentityCheck ;
73
+ this .faceComparisonCheck = faceComparisonCheck ;
67
74
this .asyncReportDelay = asyncReportsDelay ;
68
75
}
69
76
@@ -97,6 +104,10 @@ public SandboxThirdPartyIdentityCheck getThirdPartyIdentityCheck() {
97
104
return thirdPartyIdentityCheck ;
98
105
}
99
106
107
+ public SandboxFaceComparisonCheck getFaceComparisonCheck () {
108
+ return faceComparisonCheck ;
109
+ }
110
+
100
111
public Integer getAsyncReportDelay () {
101
112
return asyncReportDelay ;
102
113
}
@@ -120,6 +131,8 @@ public static class Builder {
120
131
121
132
private SandboxThirdPartyIdentityCheck thirdPartyIdentityCheck ;
122
133
134
+ private SandboxFaceComparisonCheck faceComparisonCheck ;
135
+
123
136
private Integer asyncReportDelay ;
124
137
125
138
private Builder () {}
@@ -159,14 +172,19 @@ public Builder withThirdPartyIdentityCheck(SandboxThirdPartyIdentityCheck thirdP
159
172
return this ;
160
173
}
161
174
175
+ public Builder withFaceComparisonCheck (SandboxFaceComparisonCheck faceComparisonCheck ) {
176
+ this .faceComparisonCheck = faceComparisonCheck ;
177
+ return this ;
178
+ }
179
+
162
180
public Builder withAsyncReportDelay (int asyncReportDelay ) {
163
181
this .asyncReportDelay = asyncReportDelay ;
164
182
return this ;
165
183
}
166
184
167
185
public SandboxCheckReports build () {
168
186
return new SandboxCheckReports (textDataCheck , documentAuthenticityCheck , livenessCheck , documentFaceMatchCheck , idDocumentComparisonCheck ,
169
- supplementaryDocumentTextDataCheck , thirdPartyIdentityCheck , asyncReportDelay );
187
+ supplementaryDocumentTextDataCheck , thirdPartyIdentityCheck , faceComparisonCheck , asyncReportDelay );
170
188
}
171
189
172
190
}
0 commit comments