{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SubscriptionDetail",
    "type": "object",
    "additionalProperties": false,
    "description": "TAnalytics-v3 .. Subscription Detail",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v3/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": ["SUBSCRIPTION_DETAIL"]
        },
        "schema_definition": {
            "type": "string",
            "enum": ["SubscriptionDetail"]
        },
        "car_id": {
            "type": "string",
            "description": "Unique identifier for each car. Could be VIN / IMEI / BTID or a combination of these fields"
        },
        "purchase_time": {
            "type": "integer",
            "description": "purchase time epoch"
        },
        "order_id": {
            "type": "string",
            "description": "order id associated"
        },
        "purchase_id": {
            "type": "string",
            "description": "purchase id associated"
        },
        "region": {
            "type": "string",
            "description": "Region is defined by the Region the Vehicle will be sold into - NA, EU, IL etc"
        },
        "features": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "List of Applicable features,e.g.[INFO_NAV_CONNECTIVITY,INFO_NAV_MAP_UPDATE,INFO_NAV_SELF_LEARNING,INFO_NAV_TRAFFIC]"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "car_id",
        "purchase_time",
        "order_id",
        "purchase_id",
        "region",
        "features"
    ]
}