{
	"$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.",
	"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."
		},
		"maxDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"description": "The latest date of any draft invoice."
		},
		"minDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"description": "The earliest date of any draft invoice."
		},
		"customers": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals customer resource."
		},
		"accountingYears": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals accounting years resource."
		},
		"periods": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals periods resource."
		},
		"employees": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals employees resource."
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "A reference to the draft invoices totals resource."
		}
	}
}
