{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Customer Contact PUT Schema",
	"description": "A schema for updating a customer contact.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#put-customers-customernumber-contacts/:contactNumber",
	"properties": {
		"customerContactNumber": {
			"type": "integer",
			"required": true,
			"description": "Customer contact number."
		},
		"email": {
			"type": "string",
			"maxLength": 255,
			"description": "Customer contact e-mail address. This is where copies of sales documents are sent."
		},
		"name": {
			"type": "string",
			"maxLength": 255,
			"description": "Customer contact name.",
			"required": true
		},
		"phone": {
			"type": "string",
			"maxLength": 50,
			"description": "Customer contact phone number."
		},
		"eInvoiceId": {
			"type": "string",
			"maxLength": 50,
			"description": "Electronic invoicing Id. This will appear on EAN invoices in the field <cbc:ID>."
		},
		"notes": {
			"type": "string",
			"maxLength": 2000,
			"description": "Any notes you need to keep on a contact person."
		},
		"emailNotifications": {
			"type": "array",
			"items": {
				"enum": ["invoices", "orders", "quotations", "reminders"]
			},
			"uniqueItems": true,
			"description": "This array specifies what events the contact person should recieve email notifications on. Note that limited plans only have access to invoice notifications."
		},
		"customer": {
			"type": "object",
			"description": "The customer this contact belongs to.",
			"properties": {
				"customerNumber": {
					"type": "integer",
					"maximum": 999999999,
					"minimum": 1,
					"description": "The customer number is a positive unique numerical identifier with a maximum of 9 digits."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique reference to the customer resource."
				}
			}
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "The unique self reference of the customer contact."
		}
	}
}
