

{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"Verification",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Verification object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["VERIFICATION"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["Verification"]
		},
		"action":{
			"type": "string",
			"description": "Log RESEND, DONE, BACK, NEXT when the corresponding button is clicked;Log DISPLAY when the page is displayed"
		},
		"status":{
			"type":"string",
			"description":"Whether phone verification or pin verification was SUCCESS or FAILURE"
		},
		"type":{
			"type":"string",
			"description":"Type of verification - PTN or PIN"
		},
		"caused_by":{
			"type":"string",
			"description":"Reason for failuer (ex: incorrect phone number, pin entered incorrectly)"
		}
	},
	"required":[
		"log_context",
	        "event_name",
        	"schema_definition",		
		"action",
		"type"
	]
}