{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "EntityCall",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "Analytics-v2 .. Entity Call object",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "ENTITY_CALL"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "EntityCall"
            ]
        },
        "trigger" : {
            "$ref": "/resources/schema/analytics/client/v2/EntityCallTriggerType.json",
            "description" : "Where does entity call done from. NAV_END - When user click on entity call from the NAV_END"
        },
        "action" : {
            "$ref" : "/resources/schema/analytics/client/v2/ClickActionType.json",
            "description" : "Required .. User clicks on Call button on the Place Details page - log Click. Log Select or Cancel depending on user choice to Call or Cancel in the following popup."
        },
        "entity_id" : {
            "type" : "string",
            "description" : "Entity ID of the address or POI if is_sponsored is false."
        },
        "merchant_id" : {
            "type" : "string",
            "description" : "Merchant ID offering the coupon."
        },
        "distance" : {
            "type" : "number",
            "description" : "Required .. Calculated distance."
        },
        "category_id" : {
            "type" : "string",
            "description" : "Category ID of entity"
        },
        "category" : {
            "type" : "string",
            "description" : "Required .. Category like Address, Thai, Coffee, etc displayed on Place Details"
        },
        "is_sponsored" : {
            "type" : "boolean",
            "description" : "Whether advertised or organic if resulted from a search"
        },
        "search_id" : {
            "type" : "string",
            "description" : "LogID of Search that led to the detail page if from search result"
        },
        "coupon_detail_id" : {
            "type" : "string",
            "description" : "LogID of CouponDetails that led to the detail page if from coupons page"
        },
        "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."
        },
        "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",
        "distance",
        "category",
        "is_sponsored"
    ]
}