{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Accounting Year totals schema",
	"description": "A schema for retrieving the total amount of an accounting year.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#get-accounts-accountnumber-accounting-years-accountingyear-totals",
	"properties": {
		"totalInBaseCurrency": {
			"type": "number",
			"maxDecimal": 2,
			"description": "The total entry amount in base currency for the accounting year."
		},
		"account": {
			"type": "object",
			"description": "The account used.",
			"properties": {
				"accountNumber": {
					"type": "integer",
					"description": "The account number."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique reference to the account resource.",
					"required": true
				}
			}
		},
		"fromDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"description": "The first date in the period formatted according to ISO-8601 (YYYY-MM-DD)."
		},
		"toDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"description": "The last date in the period formatted according to ISO-8601 (YYYY-MM-DD)."
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "The unique self reference of the resource.",
			"required": true
		}
	}
}