{ "type": "object", "required": ["type", "timeframe", "value", "operation"], "properties": { "type": { "type": "string", "enum": ["total_payments_value"] }, "timeframe": { "type": "string", "enum": ["last_week", "last_month", "last_quarter", "last_6_months","last_year"] }, "value": { "type": "integer" }, "operation": { "$ref": "#/definitions/operations" } } }