|
19 | 19 | "additionalProperties": false, |
20 | 20 | "required": [ |
21 | 21 | "address", |
22 | | - "identity" |
| 22 | + "identity", |
| 23 | + "risk_classification" |
23 | 24 | ], |
24 | 25 | "properties": { |
25 | 26 | "address": { |
|
111 | 112 | ] |
112 | 113 | }, |
113 | 114 | "supported_documents": { |
114 | | - "description": "Supported documents per service.", |
115 | | - "type": "object", |
116 | | - "properties": { |
117 | | - "idv": { |
118 | | - "type": "object", |
119 | | - "additionalProperties": { |
| 115 | + "description": "Supported documents.", |
| 116 | + "type": "array", |
| 117 | + "items": { |
| 118 | + "type": "object", |
| 119 | + "properties": { |
| 120 | + "additional": { |
| 121 | + "description": "Additional information required by the document type.", |
120 | 122 | "type": "object", |
121 | 123 | "properties": { |
122 | | - "additional": { |
123 | | - "type": "object", |
124 | | - "properties": { |
125 | | - "display_name": { |
126 | | - "type": "string" |
127 | | - }, |
128 | | - "format": { |
129 | | - "type": "string" |
130 | | - } |
131 | | - } |
132 | | - }, |
133 | 124 | "display_name": { |
| 125 | + "description": "Additional display name.", |
134 | 126 | "type": "string" |
135 | 127 | }, |
136 | | - "format": { |
| 128 | + "document_type": { |
| 129 | + "description": "Additional document type.", |
137 | 130 | "type": "string" |
138 | | - } |
139 | | - } |
140 | | - } |
141 | | - }, |
142 | | - "manual": { |
143 | | - "type": "object", |
144 | | - "additionalProperties": { |
145 | | - "type": "object", |
146 | | - "properties": { |
147 | | - "display_name": { |
| 131 | + }, |
| 132 | + "example_format": { |
| 133 | + "description": "Additional example format.", |
148 | 134 | "type": "string" |
149 | | - } |
150 | | - } |
151 | | - } |
152 | | - }, |
153 | | - "onfido": { |
154 | | - "type": "object", |
155 | | - "additionalProperties": { |
156 | | - "type": "object", |
157 | | - "properties": { |
158 | | - "display_name": { |
| 135 | + }, |
| 136 | + "format": { |
| 137 | + "description": "Additional document format.", |
159 | 138 | "type": "string" |
| 139 | + }, |
| 140 | + "sides": { |
| 141 | + "description": "Additional document sides.", |
| 142 | + "type": "array", |
| 143 | + "items": { |
| 144 | + "type": "string" |
| 145 | + } |
160 | 146 | } |
161 | 147 | } |
162 | | - } |
163 | | - } |
164 | | - } |
165 | | - }, |
166 | | - "supported_documents_override": { |
167 | | - "description": "Supported documents override per service.", |
168 | | - "type": "object", |
169 | | - "properties": { |
170 | | - "manual": { |
171 | | - "type": "object", |
172 | | - "additionalProperties": { |
173 | | - "type": "object", |
174 | | - "properties": { |
175 | | - "display_name": { |
176 | | - "type": "string" |
177 | | - } |
| 148 | + }, |
| 149 | + "available_services": { |
| 150 | + "description": "Services that support this document type.", |
| 151 | + "type": "array", |
| 152 | + "items": { |
| 153 | + "type": "string" |
| 154 | + } |
| 155 | + }, |
| 156 | + "display_name": { |
| 157 | + "description": "Display name of the document type.", |
| 158 | + "type": "string" |
| 159 | + }, |
| 160 | + "document_type": { |
| 161 | + "description": "The document type.", |
| 162 | + "type": "string" |
| 163 | + }, |
| 164 | + "example_format": { |
| 165 | + "description": "Example format.", |
| 166 | + "type": "string" |
| 167 | + }, |
| 168 | + "format": { |
| 169 | + "description": "Document format.", |
| 170 | + "type": "string" |
| 171 | + }, |
| 172 | + "has_visual_sample": { |
| 173 | + "description": "A flag to indicate if the document has a visual sample.", |
| 174 | + "type": "boolean" |
| 175 | + }, |
| 176 | + "lifetime_valid": { |
| 177 | + "description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date", |
| 178 | + "type": "boolean" |
| 179 | + }, |
| 180 | + "sides": { |
| 181 | + "description": "Document sides.", |
| 182 | + "type": "array", |
| 183 | + "items": { |
| 184 | + "type": "string" |
178 | 185 | } |
179 | 186 | } |
180 | 187 | } |
181 | 188 | } |
182 | 189 | } |
183 | 190 | } |
| 191 | + }, |
| 192 | + "risk_classification": { |
| 193 | + "description": "Risk classification of the client.", |
| 194 | + "type": "string", |
| 195 | + "enum": [ |
| 196 | + "low", |
| 197 | + "standard", |
| 198 | + "high" |
| 199 | + ] |
184 | 200 | } |
185 | 201 | } |
186 | 202 | }, |
|
192 | 208 | "additionalProperties": false, |
193 | 209 | "required": [ |
194 | 210 | "address", |
195 | | - "identity" |
| 211 | + "identity", |
| 212 | + "risk_classification" |
196 | 213 | ], |
197 | 214 | "properties": { |
198 | 215 | "address": { |
|
284 | 301 | ] |
285 | 302 | }, |
286 | 303 | "supported_documents": { |
287 | | - "description": "Supported documents per service.", |
288 | | - "type": "object", |
289 | | - "properties": { |
290 | | - "idv": { |
291 | | - "type": "object", |
292 | | - "additionalProperties": { |
| 304 | + "description": "Supported documents.", |
| 305 | + "type": "array", |
| 306 | + "items": { |
| 307 | + "type": "object", |
| 308 | + "properties": { |
| 309 | + "additional": { |
| 310 | + "description": "Additional information required by the document type.", |
293 | 311 | "type": "object", |
294 | 312 | "properties": { |
295 | | - "additional": { |
296 | | - "type": "object", |
297 | | - "properties": { |
298 | | - "display_name": { |
299 | | - "type": "string" |
300 | | - }, |
301 | | - "format": { |
302 | | - "type": "string" |
303 | | - } |
304 | | - } |
305 | | - }, |
306 | 313 | "display_name": { |
| 314 | + "description": "Additional display name.", |
307 | 315 | "type": "string" |
308 | 316 | }, |
309 | | - "format": { |
| 317 | + "document_type": { |
| 318 | + "description": "Additional document type.", |
310 | 319 | "type": "string" |
311 | | - } |
312 | | - } |
313 | | - } |
314 | | - }, |
315 | | - "manual": { |
316 | | - "type": "object", |
317 | | - "additionalProperties": { |
318 | | - "type": "object", |
319 | | - "properties": { |
320 | | - "display_name": { |
| 320 | + }, |
| 321 | + "example_format": { |
| 322 | + "description": "Additional example format.", |
321 | 323 | "type": "string" |
322 | | - } |
323 | | - } |
324 | | - } |
325 | | - }, |
326 | | - "onfido": { |
327 | | - "type": "object", |
328 | | - "additionalProperties": { |
329 | | - "type": "object", |
330 | | - "properties": { |
331 | | - "display_name": { |
| 324 | + }, |
| 325 | + "format": { |
| 326 | + "description": "Additional document format.", |
332 | 327 | "type": "string" |
| 328 | + }, |
| 329 | + "sides": { |
| 330 | + "description": "Additional document sides.", |
| 331 | + "type": "array", |
| 332 | + "items": { |
| 333 | + "type": "string" |
| 334 | + } |
333 | 335 | } |
334 | 336 | } |
335 | | - } |
336 | | - } |
337 | | - } |
338 | | - }, |
339 | | - "supported_documents_override": { |
340 | | - "description": "Supported documents override per service.", |
341 | | - "type": "object", |
342 | | - "properties": { |
343 | | - "manual": { |
344 | | - "type": "object", |
345 | | - "additionalProperties": { |
346 | | - "type": "object", |
347 | | - "properties": { |
348 | | - "display_name": { |
349 | | - "type": "string" |
350 | | - } |
| 337 | + }, |
| 338 | + "available_services": { |
| 339 | + "description": "Services that support this document type.", |
| 340 | + "type": "array", |
| 341 | + "items": { |
| 342 | + "type": "string" |
| 343 | + } |
| 344 | + }, |
| 345 | + "display_name": { |
| 346 | + "description": "Display name of the document type.", |
| 347 | + "type": "string" |
| 348 | + }, |
| 349 | + "document_type": { |
| 350 | + "description": "The document type.", |
| 351 | + "type": "string" |
| 352 | + }, |
| 353 | + "example_format": { |
| 354 | + "description": "Example format.", |
| 355 | + "type": "string" |
| 356 | + }, |
| 357 | + "format": { |
| 358 | + "description": "Document format.", |
| 359 | + "type": "string" |
| 360 | + }, |
| 361 | + "has_visual_sample": { |
| 362 | + "description": "A flag to indicate if the document has a visual sample.", |
| 363 | + "type": "boolean" |
| 364 | + }, |
| 365 | + "lifetime_valid": { |
| 366 | + "description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date", |
| 367 | + "type": "boolean" |
| 368 | + }, |
| 369 | + "sides": { |
| 370 | + "description": "Document sides.", |
| 371 | + "type": "array", |
| 372 | + "items": { |
| 373 | + "type": "string" |
351 | 374 | } |
352 | 375 | } |
353 | 376 | } |
354 | 377 | } |
355 | 378 | } |
356 | 379 | } |
| 380 | + }, |
| 381 | + "risk_classification": { |
| 382 | + "description": "Risk classification of the client.", |
| 383 | + "type": "string", |
| 384 | + "enum": [ |
| 385 | + "low", |
| 386 | + "standard", |
| 387 | + "high" |
| 388 | + ] |
357 | 389 | } |
358 | 390 | } |
359 | 391 | }, |
|
0 commit comments