{
    "$schema": "http://json-schema.org/draft-04/schema",
    "title": "Revenue",
    "description": "Describes information about revenue",
    "type": "object",
    "properties": {
        "scope": {
            "description": "scope of the revenue result",
            "enum": [
                "company",
                "city",
                "station",
                "pump"
            ]
        },
        "id": {
            "description": "unique identifier for the scope of the revenue result",
            "type": "string"
        },
        "fuel": {
            "description": "fuel type for the revenue result",
            "type": "array",
            "items": {
                "description": "fuel type included in the revenue result",
                "enum": [
                    "any",
                    "regular",
                    "premium",
                    "diesel"
                ]
            }
        },
        "from": {
            "description": "timestamp at beginning of interval for which revenue was collected",
            "type": "string"
        },
        "to": {
            "description": "timestamp at end of interval for which revenue was collected",
            "type": "string"
        },
        "amount": {
            "description": "revenue amount being reported",
            "type": "number"
        }
    },
    "required": [
        "scope",
        "id",
        "fuel",
        "amount"
    ]
}