From b594d77ddd02acfd64fab8fbfad6ff62c035e7b6 Mon Sep 17 00:00:00 2001 From: Github Workflow Date: Wed, 13 Nov 2024 06:23:28 +0000 Subject: [PATCH] JSON Schema Update --- config/v3/kyc_auth_status/receive.json | 252 ++++++++++++++----------- 1 file changed, 142 insertions(+), 110 deletions(-) diff --git a/config/v3/kyc_auth_status/receive.json b/config/v3/kyc_auth_status/receive.json index 33edf427..354357d1 100644 --- a/config/v3/kyc_auth_status/receive.json +++ b/config/v3/kyc_auth_status/receive.json @@ -19,7 +19,8 @@ "additionalProperties": false, "required": [ "address", - "identity" + "identity", + "risk_classification" ], "properties": { "address": { @@ -111,76 +112,91 @@ ] }, "supported_documents": { - "description": "Supported documents per service.", - "type": "object", - "properties": { - "idv": { - "type": "object", - "additionalProperties": { + "description": "Supported documents.", + "type": "array", + "items": { + "type": "object", + "properties": { + "additional": { + "description": "Additional information required by the document type.", "type": "object", "properties": { - "additional": { - "type": "object", - "properties": { - "display_name": { - "type": "string" - }, - "format": { - "type": "string" - } - } - }, "display_name": { + "description": "Additional display name.", "type": "string" }, - "format": { + "document_type": { + "description": "Additional document type.", "type": "string" - } - } - } - }, - "manual": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { + }, + "example_format": { + "description": "Additional example format.", "type": "string" - } - } - } - }, - "onfido": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { + }, + "format": { + "description": "Additional document format.", "type": "string" + }, + "sides": { + "description": "Additional document sides.", + "type": "array", + "items": { + "type": "string" + } } } - } - } - } - }, - "supported_documents_override": { - "description": "Supported documents override per service.", - "type": "object", - "properties": { - "manual": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { - "type": "string" - } + }, + "available_services": { + "description": "Services that support this document type.", + "type": "array", + "items": { + "type": "string" + } + }, + "display_name": { + "description": "Display name of the document type.", + "type": "string" + }, + "document_type": { + "description": "The document type.", + "type": "string" + }, + "example_format": { + "description": "Example format.", + "type": "string" + }, + "format": { + "description": "Document format.", + "type": "string" + }, + "has_visual_sample": { + "description": "A flag to indicate if the document has a visual sample.", + "type": "boolean" + }, + "lifetime_valid": { + "description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date", + "type": "boolean" + }, + "sides": { + "description": "Document sides.", + "type": "array", + "items": { + "type": "string" } } } } } } + }, + "risk_classification": { + "description": "Risk classification of the client.", + "type": "string", + "enum": [ + "low", + "standard", + "high" + ] } } }, @@ -192,7 +208,8 @@ "additionalProperties": false, "required": [ "address", - "identity" + "identity", + "risk_classification" ], "properties": { "address": { @@ -284,76 +301,91 @@ ] }, "supported_documents": { - "description": "Supported documents per service.", - "type": "object", - "properties": { - "idv": { - "type": "object", - "additionalProperties": { + "description": "Supported documents.", + "type": "array", + "items": { + "type": "object", + "properties": { + "additional": { + "description": "Additional information required by the document type.", "type": "object", "properties": { - "additional": { - "type": "object", - "properties": { - "display_name": { - "type": "string" - }, - "format": { - "type": "string" - } - } - }, "display_name": { + "description": "Additional display name.", "type": "string" }, - "format": { + "document_type": { + "description": "Additional document type.", "type": "string" - } - } - } - }, - "manual": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { + }, + "example_format": { + "description": "Additional example format.", "type": "string" - } - } - } - }, - "onfido": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { + }, + "format": { + "description": "Additional document format.", "type": "string" + }, + "sides": { + "description": "Additional document sides.", + "type": "array", + "items": { + "type": "string" + } } } - } - } - } - }, - "supported_documents_override": { - "description": "Supported documents override per service.", - "type": "object", - "properties": { - "manual": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "display_name": { - "type": "string" - } + }, + "available_services": { + "description": "Services that support this document type.", + "type": "array", + "items": { + "type": "string" + } + }, + "display_name": { + "description": "Display name of the document type.", + "type": "string" + }, + "document_type": { + "description": "The document type.", + "type": "string" + }, + "example_format": { + "description": "Example format.", + "type": "string" + }, + "format": { + "description": "Document format.", + "type": "string" + }, + "has_visual_sample": { + "description": "A flag to indicate if the document has a visual sample.", + "type": "boolean" + }, + "lifetime_valid": { + "description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date", + "type": "boolean" + }, + "sides": { + "description": "Document sides.", + "type": "array", + "items": { + "type": "string" } } } } } } + }, + "risk_classification": { + "description": "Risk classification of the client.", + "type": "string", + "enum": [ + "low", + "standard", + "high" + ] } } },