{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
        "confidence": {
            "type": "string"
        },
        "data_type": {
            "enum": [
                "financial_payment"
            ]
        },
        "properties": {
            "properties": {
                "csv_line_number": {
                    "description": "If the source for the data is a CSV file, you can optionally include the line number of the CSV from which this data was retrieved",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "currency": {
                    "description": "The currency of the payment (three letter symbol, e.g. USD, GBP, EUR)",
                    "type": "string"
                },
                "date": {
                    "_format": "date",
                    "description": "The date on which the payment was made",
                    "type": "string"
                },
                "department_name": {
                    "description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "description": {
                    "description": "The description of the transaction as given in the raw data",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "entity_name": {
                    "description": "The name of the government entity that made the payment, e.g. Environment Agency",
                    "type": "string"
                },
                "entity_uri": {
                    "description": "A unique URL (ideally a dereferencable URI) for the government entity",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "expense_area": {
                    "description": "category (in words) of the expenditure",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "expense_type": {
                    "description": "The type of expense -- can be either capital, revenue (i.e. current expenditure) or null",
                    "enum": [
                        "capital",
                        "revenue",
                        null
                    ]
                },
                "jurisdiction": {
                    "description": "The jurisdiction of the body that made the payment, eg. UK, France, Delaware, Manchester",
                    "type": "string"
                },
                "more_details_url": {
                    "description": "A url from which more details can be seen (may be the same as the source_url)",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "payee_name": {
                    "description": "The name of the payee (the entity that received the money)",
                    "type": "string"
                },
                "transaction_number": {
                    "description": "The unique identifier for the transaction, scoped to this bot",
                    "type": "string"
                },
                "value": {
                    "description": "The amount transacted (e.g. 19.95)",
                    "type": "string"
                }
            },
            "required": [
                "value",
                "payee_name",
                "date",
                "currency"
            ],
            "type": "object"
        },
        "source_url": {
            "type": "string"
        }
    },
    "required": [
        "data_type",
        "properties",
        "source_url",
        "confidence"
    ],
    "type": "object"
}