{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/unece/UnecePayloadInstance",
	"title": "UnecePayloadInstance",
	"description": "An individual set of transmitted data in an XHE (Exchange Header Envelope).",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/unece/UneceContextType",
			"description": "JSON-LD Context."
		},
		"type": {
			"const": "PayloadInstance",
			"description": "JSON-LD Type."
		},
		"contentTypeCode": {
			"type": "string",
			"description": "The code specifying the content type of this XHE payload instance."
		},
		"customizationId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The customization identifier for this XHE payload instance."
		},
		"decryptionKeyReference": {
			"$ref": "https://schema.twindev.org/unece/UneceXHEReference",
			"description": "The reference to the decryption key for this XHE payload instance."
		},
		"decryptionReference": {
			"$ref": "https://schema.twindev.org/unece/UneceXHEReference",
			"description": "The reference to the decryption for this XHE payload instance."
		},
		"description": {
			"type": "string",
			"description": "A textual description of this XHE payload instance."
		},
		"documentTypeCode": {
			"$ref": "https://schema.twindev.org/unece/UneceDocumentCodeList",
			"description": "The code specifying the document type for this XHE payload instance."
		},
		"encryptedIndicator": {
			"type": "boolean",
			"description": "The indication of whether or not this XHE payload instance is encrypted."
		},
		"encryptionHashValue": {
			"type": "string",
			"description": "The encryption hash value, expressed as text, for this XHE payload instance."
		},
		"encryptionMethod": {
			"type": "string",
			"description": "The encryption method, expressed as text, for this XHE payload instance."
		},
		"encryptionMethodCode": {
			"type": "string",
			"description": "The code specifying the encryption method for this XHE payload instance."
		},
		"handlingServiceId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The handling service identifier for this XHE payload instance."
		},
		"identifier": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The identifier of this XHE payload instance."
		},
		"payloadReference": {
			"$ref": "https://schema.twindev.org/unece/UneceXHEReference",
			"description": "The reference to the payload for this XHE payload instance."
		},
		"profileExecutionId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The profile execution identifier for this XHE payload instance."
		},
		"profileId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The profile identifier for this XHE payload instance."
		},
		"relevantReference": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceXHEReference"
			},
			"description": "A reference relevant to this XHE payload instance."
		},
		"validationTypeCode": {
			"type": "string",
			"description": "The code specifying the validation type of this XHE payload instance."
		},
		"validationVersionId": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The validation version identifier for this XHE payload instance."
		}
	},
	"required": ["type", "encryptedIndicator"]
}
