7
7
import static com .yoti .api .client .docs .DocScanConstants .ID_DOCUMENT_TEXT_DATA_CHECK ;
8
8
import static com .yoti .api .client .docs .DocScanConstants .LIVENESS ;
9
9
import static com .yoti .api .client .docs .DocScanConstants .SUPPLEMENTARY_DOCUMENT_TEXT_DATA_CHECK ;
10
+ import static com .yoti .api .client .docs .DocScanConstants .SYNECTICS_IDENTITY_FRAUD ;
10
11
import static com .yoti .api .client .docs .DocScanConstants .THIRD_PARTY_IDENTITY ;
11
12
12
13
import java .util .ArrayList ;
19
20
import com .yoti .api .client .sandbox .docs .request .check .SandboxIdDocumentComparisonCheck ;
20
21
import com .yoti .api .client .sandbox .docs .request .check .SandboxLivenessCheck ;
21
22
import com .yoti .api .client .sandbox .docs .request .check .SandboxSupplementaryDocumentTextDataCheck ;
23
+ import com .yoti .api .client .sandbox .docs .request .check .SandboxSynecticsIdentityFraudCheck ;
22
24
import com .yoti .api .client .sandbox .docs .request .check .SandboxThirdPartyIdentityCheck ;
23
25
24
26
import com .fasterxml .jackson .annotation .JsonInclude ;
@@ -51,6 +53,9 @@ public class SandboxCheckReports {
51
53
@ JsonProperty (FACE_COMPARISON )
52
54
private final SandboxFaceComparisonCheck faceComparisonCheck ;
53
55
56
+ @ JsonProperty (SYNECTICS_IDENTITY_FRAUD )
57
+ private final List <SandboxSynecticsIdentityFraudCheck > synecticsIdentityFraudChecks ;
58
+
54
59
@ JsonProperty ("async_report_delay" )
55
60
private final Integer asyncReportDelay ;
56
61
@@ -62,6 +67,7 @@ public class SandboxCheckReports {
62
67
List <SandboxSupplementaryDocumentTextDataCheck > supplementaryDocumentTextDataChecks ,
63
68
SandboxThirdPartyIdentityCheck thirdPartyIdentityCheck ,
64
69
SandboxFaceComparisonCheck faceComparisonCheck ,
70
+ List <SandboxSynecticsIdentityFraudCheck > synecticsIdentityFraudChecks ,
65
71
Integer asyncReportsDelay ) {
66
72
this .documentTextDataChecks = documentTextDataChecks ;
67
73
this .documentAuthenticityChecks = documentAuthenticityChecks ;
@@ -71,6 +77,7 @@ public class SandboxCheckReports {
71
77
this .supplementaryDocumentTextDataChecks = supplementaryDocumentTextDataChecks ;
72
78
this .thirdPartyIdentityCheck = thirdPartyIdentityCheck ;
73
79
this .faceComparisonCheck = faceComparisonCheck ;
80
+ this .synecticsIdentityFraudChecks = synecticsIdentityFraudChecks ;
74
81
this .asyncReportDelay = asyncReportsDelay ;
75
82
}
76
83
@@ -108,6 +115,10 @@ public SandboxFaceComparisonCheck getFaceComparisonCheck() {
108
115
return faceComparisonCheck ;
109
116
}
110
117
118
+ public List <SandboxSynecticsIdentityFraudCheck > getSynecticsIdentityFraudChecks () {
119
+ return synecticsIdentityFraudChecks ;
120
+ }
121
+
111
122
public Integer getAsyncReportDelay () {
112
123
return asyncReportDelay ;
113
124
}
@@ -133,6 +144,8 @@ public static class Builder {
133
144
134
145
private SandboxFaceComparisonCheck faceComparisonCheck ;
135
146
147
+ private List <SandboxSynecticsIdentityFraudCheck > synecticsIdentityFraudChecks = new ArrayList <>();
148
+
136
149
private Integer asyncReportDelay ;
137
150
138
151
private Builder () {}
@@ -177,14 +190,19 @@ public Builder withFaceComparisonCheck(SandboxFaceComparisonCheck faceComparison
177
190
return this ;
178
191
}
179
192
193
+ public Builder withSynecticsIdentityFraudCheck (SandboxSynecticsIdentityFraudCheck synecticsIdentityFraudCheck ) {
194
+ this .synecticsIdentityFraudChecks .add (synecticsIdentityFraudCheck );
195
+ return this ;
196
+ }
197
+
180
198
public Builder withAsyncReportDelay (int asyncReportDelay ) {
181
199
this .asyncReportDelay = asyncReportDelay ;
182
200
return this ;
183
201
}
184
202
185
203
public SandboxCheckReports build () {
186
204
return new SandboxCheckReports (textDataCheck , documentAuthenticityCheck , livenessCheck , documentFaceMatchCheck , idDocumentComparisonCheck ,
187
- supplementaryDocumentTextDataCheck , thirdPartyIdentityCheck , faceComparisonCheck , asyncReportDelay );
205
+ supplementaryDocumentTextDataCheck , thirdPartyIdentityCheck , faceComparisonCheck , synecticsIdentityFraudChecks , asyncReportDelay );
188
206
}
189
207
190
208
}
0 commit comments