{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/IdentityDocument", "title": "Identity document", "type": "object", "properties": { "Id": { "type": "string", "description": "Unique identifier of the document.", "format": "uuid" }, "CustomerId": { "type": "string", "description": "Identifier of the `Customer`.", "format": "uuid" }, "Type": { "title": "Document type", "allOf": [ { "$ref": "#/components/schemas/IdentityDocumentTypeEnum" } ], "description": "Type of the document.\n\nIdentityCard\n\nPassport\n\nVisa\n\nDriversLicense", "x-enumNames": [ "IdentityCard", "Passport", "Visa", "DriversLicense" ], "x-enumDescriptions": [ "", "", "", "" ] }, "Number": { "type": "string", "description": "Number of the document (e.g. passport number).", "nullable": true }, "Expiration": { "type": "string", "description": "Expiration date in ISO 8601 format.", "format": "date", "nullable": true }, "Issuance": { "type": "string", "description": "Date of issuance in ISO 8601 format.", "format": "date", "nullable": true }, "IssuingCountryCode": { "type": "string", "description": "ISO 3166-1 code of the `Country`.", "nullable": true }, "IssuingCountrySubdivisionCode": { "type": "string", "description": "Identifier of the country subdivision where the document was issued (province, state or region).", "nullable": true }, "IssuingCity": { "type": "string", "description": "City where the document was issued.", "nullable": true }, "IdentityDocumentSupportNumber": { "type": "string", "description": "Identity document support number. Only required for Spanish identity cards in Spanish hotels.", "nullable": true } }, "additionalProperties": false, "x-schema-id": "IdentityDocument" }