{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"SavePersistentLocation",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. Save Persistent Location object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["SAVE_PERSISTENT_LOCATION"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["SavePersistentLocation"]
		},
		"type":{
			"$ref":"/resources/schema/analytics/client/v3/PersistentLocationType.json",
			"description":"Required .. Type of persistent location"
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v3/SettingType.json",
			"description":"Required .. Type of persistent location"
		},
		"entity_id":{
			"type":"string",
			"description":"Required .. Entity ID of the address or POI being set"
		},
		"always_send_eta":{
			"$ref":"/resources/schema/analytics/client/v3/SettingType.json",
			"description":"Whether Always Send ETA option is set on or off"
		},
		"number_of_people":{
			"type":"number",
			"description":"Number of people to whom ETA will be sent if AlwaysSendEta option is set ON"
		},
		"search_id":{
			"type":"string",
			"description":"LogID of Search if a search was initiated to fetch the location"
		},
		"old_entity_id":{
			"type":"string",
			"description":"If editing Home or Work, EntityID of the previous address"
		},
		"status":{
			"$ref":"/resources/schema/analytics/client/v3/StatusType.json",
			"description":"Required .. Whether successfully saved or not"
		},
		"label":{
			"type": "string",
			"description":"Label of the location given by the user. Would be different from type if custom label."
		},
		"destination_id":{
			"type": "string",
			"description":"If it’s a server provided key destination then send associated destination id"
		},
		"impression_id":{
            "type": "string",
            "description":"If it’s a server provided key destination then unique id for each impression"
        },
        "address":{
            "type": "string",
            "description":"Address string of the persistant location"
        },
		"interaction_method": {
			"$ref": "/resources/schema/analytics/client/v3/InteractionMethodValues.json",
			"description": "for each user interaction log the interation method"
		}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"type",
		"entity_id",
		"status",
		"destination_id",
		"impression_id",
		"address",
		"always_send_eta",
		"number_of_people"
	]
}