{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://easykassa.at/schemas/rksv-handover-1.0.json",
 "title": "EasyKassa RKSV Handover",
 "type": "object",
 "required": [
 "schema",
 "schema_version",
 "created_at",
 "company",
 "cash_register",
 "security_device",
 "start_receipt",
 "finanzonline",
 "responsibilities"
 ],
 "properties": {
 "schema": {
 "const": "easykassa-rksv-handover"
 },
 "schema_version": {
 "const": "1.0"
 },
 "created_at": {
 "type": "string",
 "format": "date-time"
 },
 "company": {
 "type": "object",
 "required": [
 "name",
 "location"
 ],
 "properties": {
 "name": {
 "type": "string"
 },
 "tax_number_masked": {
 "type": "string"
 },
 "uid": {
 "type": "string"
 },
 "location": {
 "type": "string"
 }
 },
 "additionalProperties": false
 },
 "cash_register": {
 "type": "object",
 "required": [
 "manufacturer",
 "software",
 "software_version",
 "cash_register_id",
 "installation_type",
 "procedure"
 ],
 "properties": {
 "manufacturer": {
 "type": "string"
 },
 "software": {
 "type": "string"
 },
 "software_version": {
 "type": "string"
 },
 "cash_register_id": {
 "type": "string"
 },
 "installation_type": {
 "enum": [
 "local",
 "cloud",
 "hybrid"
 ]
 },
 "procedure": {
 "enum": [
 "webservice",
 "xml-upload",
 "dialog"
 ]
 }
 },
 "additionalProperties": false
 },
 "security_device": {
 "type": "object",
 "required": [
 "type",
 "trust_service_provider",
 "certificate_serial"
 ],
 "properties": {
 "type": {
 "enum": [
 "card",
 "hsm",
 "cloud"
 ]
 },
 "trust_service_provider": {
 "type": "string"
 },
 "certificate_serial": {
 "type": "string"
 },
 "card_type": {
 "type": "string"
 },
 "reader": {
 "type": "string"
 }
 },
 "additionalProperties": false
 },
 "encryption": {
 "type": "object",
 "properties": {
 "aes_key_present": {
 "type": "boolean"
 },
 "aes_key_storage": {
 "const": "separate-secure-channel"
 },
 "check_value": {
 "type": "string"
 }
 },
 "additionalProperties": false
 },
 "start_receipt": {
 "type": "object",
 "required": [
 "receipt_number",
 "created_at",
 "verification_method",
 "verification_status"
 ],
 "properties": {
 "receipt_number": {
 "type": "string"
 },
 "created_at": {
 "type": "string",
 "format": "date-time"
 },
 "verification_method": {
 "enum": [
 "webservice",
 "file-upload",
 "bmf-app"
 ]
 },
 "verification_status": {
 "enum": [
 "ok",
 "error",
 "pending"
 ]
 },
 "verified_at": {
 "type": [
 "string",
 "null"
 ],
 "format": "date-time"
 }
 },
 "additionalProperties": false
 },
 "finanzonline": {
 "type": "object",
 "required": [
 "register_status",
 "security_device_status",
 "general_credentials_stored_by_easykassa"
 ],
 "properties": {
 "register_status": {
 "type": "string"
 },
 "security_device_status": {
 "type": "string"
 },
 "webservice_user_created": {
 "type": "boolean"
 },
 "general_credentials_stored_by_easykassa": {
 "const": false
 }
 },
 "additionalProperties": false
 },
 "dep": {
 "type": "object",
 "properties": {
 "export_tested": {
 "type": "boolean"
 },
 "backup_created": {
 "type": "boolean"
 },
 "backup_location": {
 "type": "string"
 }
 },
 "additionalProperties": false
 },
 "responsibilities": {
 "type": "object",
 "required": [
 "company",
 "tax_advisor",
 "easykassa"
 ],
 "properties": {
 "company": {
 "type": "string"
 },
 "tax_advisor": {
 "type": "string"
 },
 "easykassa": {
 "type": "string"
 }
 },
 "additionalProperties": false
 },
 "open_items": {
 "type": "array",
 "items": {
 "type": "string"
 }
 }
 },
 "additionalProperties": false
}
