{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/gaia-x-loire/GaiaXRegistrationNumber",
	"title": "GaiaXRegistrationNumber",
	"description": "Registration Number as defined by the Gaia-X ontology.\nhttps://docs.gaia-x.eu/ontology/development/classes/RegistrationNumber/",
	"type": "object",
	"properties": {
		"type": {
			"anyOf": [
				{
					"const": "RegistrationNumber"
				},
				{
					"const": "LocalRegistrationNumber"
				},
				{
					"const": "EORI"
				},
				{
					"const": "EUID"
				},
				{
					"const": "LeiCode"
				},
				{
					"const": "TaxID"
				},
				{
					"const": "VatID"
				}
			],
			"description": "JSON-LD Type."
		},
		"local": {
			"type": "string",
			"description": "Local Registration."
		},
		"countryCode": {
			"type": "string",
			"description": "Country code. See https://docs.gaia-x.eu/ontology/development/enums/CountryNameAlpha2/"
		},
		"subdivisionCountryCode": {
			"type": "string",
			"description": "Subdivision country code.\nSee https://docs.gaia-x.eu/ontology/development/enums/RegionCode/"
		},
		"vatID": {
			"type": "string",
			"description": "The VAT identification number."
		},
		"leiCode": {
			"type": "string",
			"description": "Unique LEI number as defined by GLEIF."
		},
		"eori": {
			"type": "string",
			"description": "The Economic Operators Registration and Identification number (EORI)."
		},
		"country": {
			"type": "string",
			"description": "The country where the EORI is registered written in plain english"
		},
		"euid": {
			"type": "string",
			"description": "The European Unique Identifier (EUID) for business located in the European Ec."
		},
		"taxId": {
			"type": "string",
			"description": "The company tax ID."
		}
	},
	"required": ["type"]
}
