{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"PinDetails",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Pin Details object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["PIN_DETAILS"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["PinDetails"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/ClickActionType.json",
			"description":"Required .. Log Click when user clicks on a search result pin"
		},
		"entity_id":{
			"type":"string",
			"description":"Entity ID of the address or POI that was tapped on. Required when is_sponsored is false."
		},
        	"merchant_id" : {
            		"type" : "string",
            		"description" : "identifier of the merchant offering the coupon"
        	},
        	"business_name" : {
            		"type" : "string",
            		"description" : "The name of the business offering the coupon"
        	},
		"dest_lat":{
	    		"type":"number",
            		"description":"Latitude of destination."
		},
		"dest_lon":{
            		"type":"number",
            		"description":"Longitude of destination."
		},
        	"iid" : {
            		"type" : "string",
            		"description" : "Required .. The Identifier of the Impression associated with the place"
        	},
        	"distance" : {
            		"type" : "number",
            		"description" : "Required .. Calculated distance displayed for the selected destination on the details page, in miles."
        	},
        	"is_sponsored" : {
            		"type" : "boolean",
            		"description" : "Whether advertised or organic result"
        	},
        	"search_id" : {
            		"type" : "string",
            		"description" : "The LogID of the Search from which this result was selected to view details"
        	},
        	"coupon_flag" : {
            		"type" : "boolean",
            		"description" : "Whether a coupon is associated with the POI or not"
        	},
        	"is_active" : {
            		"type" : "boolean",
            		"description" : "Whether a coupon is active/redeemable or not. If grayed out due to maxed out redeems, status should reflect inactive."
        	}		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"iid",
		"distance",
		"is_sponsored"
	]
}