{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"EditPersistentLocation",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Edit Persistent Location object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["EDIT_PERSISTENT_LOCATION"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["EditPersistentLocation"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/ClickActionType.json",
			"description":"Required .. Whether clicked on Edit, Delete or clicked Back"
		},
		"type":{
			"$ref":"/resources/schema/analytics/client/v2/PersistentLocationType.json",
			"description":"Required .. Type of persistent location"
		},
		"trigger":{
			"$ref":"/resources/schema/analytics/client/v2/ActivityTriggerType.json",
			"description":"Where the persistent location setting was clicked from"
		},
		"label":{
			"type": "string",
			"description":"Label of the location given by the user. Would be different from type if custom label."
		},
		"caused_by":{
			"$ref":"/resources/schema/analytics/client/v2/PersistentLocationCausedBy.json",
			"description":"gives extra context for persistent location"
		},
		"old_destination_id":{
			"type": "string",
			"description":"destination id of the previous address"
		},
		"new_destination_id":{
			"type": "string",
			"description":"destination id of the new address entered"
		},
		"impression_id":{
            "type": "string",
            "description":"If it’s a server provided key destination then unique id for each impression"
        },
        "old_address":{
            "type": "string",
            "description":"Address string of the old location"
        },
        "new_address":{
            "type": "string",
            "description":"Address string of the new location"
        },
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"type"
	]
}