{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Draft invoice totals GET schema",
	"description": "A schema for retrieval of the totals of draft invoices for a single employee and acccounting year.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#get-invoices-totals-drafts",
	"properties": {
		"netAmountInBaseCurrency": {
			"type": "number",
			"maxDecimal": 2,
			"description": "The total invoice amount for all draft invoices in the base currency of the agreement before all taxes and discounts have been applied."
		},
		"invoiceCount": {
			"type": "integer",
			"description": "The number of draft invoices."
		},
		"customers": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals customers resource."
		},
		"periods": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals periods resource."
		},
		"accountingYear": {
			"title": "Accounting year",
			"type": "object",
			"description": "A specific accounting year on the agreement.",
			"properties": {
				"year": {
					"type": "string",
					"pattern": "^(19|20)\\d{2}([a-j])?|^(19|20)\\d{2}(/(19|20)\\d{2})?",
					"sortable": true,
					"filterable": true,
					"description": "The calendar year or years spanned by the accounting year in the format YYYY or YYYY/YYYY."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique link reference to the accounting year item."
				}
			}
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the current resource."
		}
	}
}
