{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/unece/UneceTTObjectEvent",
	"title": "UneceTTObjectEvent",
	"description": "Information about an event concerning one or more physical or digital Track and Trace (TT) objects identified by\ninstance or class level identifiers.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/unece/UneceContextType",
			"description": "JSON-LD Context."
		},
		"type": {
			"const": "TTObjectEvent",
			"description": "JSON-LD Type."
		},
		"actionCode": {
			"type": "string",
			"description": "The code specifying the action for this TT object event."
		},
		"businessRelatedLocation": {
			"$ref": "https://schema.twindev.org/unece/UneceTTLocation",
			"description": "The business location related to this TT object event."
		},
		"businessStepCode": {
			"type": "string",
			"description": "The code specifying the business step for this TT object event."
		},
		"destinationRelatedParty": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTTParty"
			},
			"description": "A destination related party for this TT object event."
		},
		"dispositionCode": {
			"type": "string",
			"description": "The code specifying the disposition related to this TT object event."
		},
		"identifier": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The identifier for this TT object event."
		},
		"objectInstanceId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "An instance identifier for an object of this TT object event."
		},
		"occurrenceDateTime": {
			"type": "string",
			"description": "The date, time, date time, or other date time value at which this TT object event occurred.",
			"format": "date-time"
		},
		"quantitySpecifiedEventElement": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceEventElement"
			},
			"description": "A quantity event element specified for this TT object event."
		},
		"readPointRelatedLocation": {
			"$ref": "https://schema.twindev.org/unece/UneceTTLocation",
			"description": "The read point related location of this TT object event."
		},
		"recordedDateTime": {
			"type": "string",
			"description": "The date, time, date time, or other date time value at which this TT object event was recorded.",
			"format": "date-time"
		},
		"relatedCertification": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceSpecifiedCertification"
			},
			"description": "A certification related to this TT object event."
		},
		"sourceRelatedParty": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTTParty"
			},
			"description": "A source related party for this TT object event."
		},
		"specifiedError": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceError"
			},
			"description": "A declared error specified for this TT object event."
		},
		"specifiedTradeTransaction": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTTTradeTransaction"
			},
			"description": "A trade transaction specified for this TT object event."
		}
	},
	"required": ["type", "actionCode", "occurrenceDateTime", "recordedDateTime"]
}
