{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ViewCouponInfo",
    "type": "object",
    "additionalProperties": false,
    "description": "TAnalytics-v2 .. Log when user clicks on a specific coupon to get more info. May be an expired coupon.",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v2/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "VIEW_COUPON_INFO"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "ViewCouponInfo"
            ]
        },
        "action": {
            "$ref": "/resources/schema/analytics/client/v2/ClickActionType.json",
            "description": "Required .. User clicks on View Coupon Info - log Click.Log Back when user clicks to exit the info screen"
        },
        "entity_id": {
            "type": "string",
            "description": "Required .. Entity_id of the POI"
        },
        "business_name": {
            "type": "string",
            "description": "Required ..The name of the business offering the coupon"
        },
        "dest_lat": {
            "type": "number",
            "description": "Required .. Latitude of destination."
        },
        "dest_lon": {
            "type": "number",
            "description": "Required .. Longitude of destination."
        },
        "coupon_id": {
            "type": "string",
            "description": "Required .. CouponID of Coupon that that was clicked to redeem."
        },
        "coupon_detail_id": {
            "type": "string",
            "description": "Required .. LogID of CouponDetails that led to the click on redeem"
        },
        "search_id": {
            "type": "string",
            "description": "Log ID of the search event that led to the click on redeem"
        },
        "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",
        "entity_id",
        "business_name",
        "dest_lat",
        "dest_lon",
        "coupon_id",
        "coupon_detail_id",
        "is_active"
    ]
}