{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"PlanCancel",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Plan Cancel object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["PLAN_CANCEL"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["PlanCancel"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/PlanCancelActionType.json",
			"description":"Required .. Log Click when user clicks on the cancel option. Confirm when user clicks Yes to confirm cancellation. Back when user clicks No to keep the current plan."
		},
		"status":{
			"$ref":"/resources/schema/analytics/client/v2/StatusType.json",
			"description":"If action is confirm, then whether successfully cancelled or not"
		},
		"caused_by":{
			"type":"string",
			"description":"Response when user tries to cancel."
		}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action"
	]
}