{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ariregister-rik-ee/json-schema/ariregister-rik-ee-company-related-persons-response-schema.json",
  "title": "CompanyRelatedPersonsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ariregister-rik-ee-openapi.yml#/components/schemas/CompanyRelatedPersonsResponse",
  "properties": {
    "legalEntityName": {
      "type": "string",
      "title": "Legalentityname",
      "description": "Company Business Name"
    },
    "registryCode": {
      "type": "integer",
      "title": "Registrycode",
      "description": "Company registration code"
    },
    "companyId": {
      "type": "integer",
      "title": "Companyid",
      "description": "Internal Company ID"
    },
    "vatID": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vatid",
      "description": "VAT identification number"
    },
    "relatedPersons": {
      "anyOf": [
        {
          "$ref": "#/$defs/DetailDataRelatedPersons"
        },
        {
          "type": "null"
        }
      ],
      "description": "Related persons"
    }
  },
  "type": "object",
  "required": [
    "legalEntityName",
    "registryCode",
    "companyId"
  ],
  "$defs": {
    "BuildingAssociationMember": {
      "properties": {
        "membershipNumber": {
          "type": "string",
          "title": "Membershipnumber",
          "description": "Membership Number"
        },
        "area": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "float",
          "title": "Area",
          "description": "Area"
        },
        "taxRateNumerator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Taxratenumerator",
          "description": "Tax rate numerator"
        },
        "taxRateDenominator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Taxratedenominator",
          "description": "Tax rate denominator"
        },
        "members": {
          "items": {
            "$ref": "#/$defs/BuildingAssociationParticipant"
          },
          "type": "array",
          "title": "Members",
          "description": "Building association members"
        },
        "restrictions": {
          "items": {
            "$ref": "#/$defs/BuildingAssociationRestriction"
          },
          "type": "array",
          "title": "Restrictions",
          "description": "Building association restrictions"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "membershipNumber",
        "members",
        "restrictions"
      ],
      "title": "BuildingAssociationMember"
    },
    "BuildingAssociationParticipant": {
      "properties": {
        "person": {
          "$ref": "#/$defs/PersonTypeInfo",
          "description": "Person information"
        },
        "contribution": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "float",
          "title": "Contribution",
          "description": "Installment"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email",
          "description": "E-mail address"
        },
        "address": {
          "$ref": "#/$defs/FullAddress",
          "description": "Full address"
        },
        "ownershipType": {
          "type": "string",
          "title": "Ownershiptype",
          "description": "Type of Ownership"
        },
        "ownershipTypeAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ownershiptypeastext",
          "description": "Ownership type as text"
        },
        "fractionNumerator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Fractionnumerator",
          "description": "Fraction numerator"
        },
        "fractionDenominator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Fractiondenominator",
          "description": "Fraction denominator"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Groupid",
          "description": "Group ID"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "person",
        "address",
        "ownershipType"
      ],
      "title": "BuildingAssociationParticipant"
    },
    "BuildingAssociationRestriction": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type",
          "description": "Type"
        },
        "typeAsText": {
          "type": "string",
          "title": "Typeastext",
          "description": "Type as text"
        },
        "content": {
          "type": "string",
          "title": "Content",
          "description": "Content"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "type",
        "typeAsText",
        "content"
      ],
      "title": "BuildingAssociationRestriction"
    },
    "DetailDataPartialPledge": {
      "properties": {
        "partialPledgesORTransfers": {
          "type": "string",
          "title": "Partialpledgesortransfers",
          "description": "Partial pledge or conditional transfer"
        },
        "owner": {
          "$ref": "#/$defs/PersonTypeInfo",
          "description": "Owner information"
        },
        "size": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "double",
          "title": "Size",
          "description": "Part size"
        },
        "rank": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Rank",
          "description": "Partial pledge ranking"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "Partial pledge description"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "partialPledgesORTransfers",
        "owner"
      ],
      "title": "DetailDataPartialPledge"
    },
    "DetailDataRelatedPersons": {
      "properties": {
        "representationRights": {
          "$ref": "#/$defs/RepresentationRights",
          "description": "Representation rights"
        },
        "personsOnCard": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/PersonsOnCard"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Personsoncard",
          "description": "Persons entered on the card"
        },
        "representationRightNormalRulings": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/RepresentationRightNormalRuling"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Representationrightnormalrulings",
          "description": "Normal ruling of the right of representation"
        },
        "representationRightSpecialConditions": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/RecordType"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Representationrightspecialconditions",
          "description": "Special conditions for the right of representation"
        },
        "partialPledgesAndTransfers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/DetailDataPartialPledge"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Partialpledgesandtransfers",
          "description": "Partial pledges and conditional transfers"
        },
        "shareholders": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/NonCardRelatedPerson"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shareholders",
          "description": "Shareholders"
        },
        "nonCardRelatedPersons": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/NonCardRelatedPerson"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Noncardrelatedpersons",
          "description": "Related persons not on the card"
        },
        "buildingAssociationMembers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/BuildingAssociationMember"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Buildingassociationmembers",
          "description": "Building association members"
        }
      },
      "type": "object",
      "required": [
        "representationRights",
        "personsOnCard"
      ],
      "title": "DetailDataRelatedPersons"
    },
    "FullAddress": {
      "properties": {
        "country": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Country",
          "description": "Country"
        },
        "countryAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Countryastext",
          "description": "Country as text"
        },
        "address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address",
          "description": "Address"
        },
        "postalCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Postalcode",
          "description": "Zip code"
        },
        "ehak": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Ehak",
          "description": "EHAK code"
        },
        "ehakAsText": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Ehakastext",
          "description": "EHAK as text"
        },
        "adsAdobId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adsadobid",
          "description": "Address: ADOBID"
        },
        "adsNormalizedFullAddressSuffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adsnormalizedfulladdresssuffix",
          "description": "Normalized ADS address text suffix (e.g. mailbox number)"
        },
        "adsType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adstype",
          "description": "Address type: 0 - fullADS, 1 - semiADS, 2 - noADS"
        },
        "adsOid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adsoid",
          "description": "Address: ADS OID"
        },
        "adrId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adrid",
          "description": "Address: ADR ID"
        },
        "adsNormalizedFullAddress": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adsnormalizedfulladdress",
          "description": "Address: ADS normalized full address"
        },
        "adsCodeAddress": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adscodeaddress",
          "description": "Address: ADS code address"
        },
        "loadingDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Loadingdate",
          "description": "Date of loading data from KR"
        }
      },
      "type": "object",
      "title": "FullAddress"
    },
    "NonCardRelatedPerson": {
      "properties": {
        "person": {
          "$ref": "#/$defs/PersonRolesInfo",
          "description": "Person roles information"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email",
          "description": "E-mail address"
        },
        "address": {
          "$ref": "#/$defs/FullAddress",
          "description": "Full address"
        },
        "is_gov_institution": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Gov Institution",
          "description": "Is government institution"
        },
        "company_registry_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Registry Status",
          "description": "Juridical person's registry status"
        },
        "has_active_tradebans": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Active Tradebans",
          "description": "Does the person have active trade bans"
        },
        "sharePercentage": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "double",
          "title": "Sharepercentage",
          "description": "Share Percentage"
        },
        "shareSize": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "double",
          "title": "Sharesize",
          "description": "Share Size"
        },
        "shareCurrency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sharecurrency",
          "description": "Share currency"
        },
        "shareCurrencyAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sharecurrencyastext",
          "description": "Share Currency as text"
        },
        "shareOwnershipType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shareownershiptype",
          "description": "Type of Ownership"
        },
        "shareOwnershipTypeAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shareownershiptypeastext",
          "description": "Ownership type as text"
        },
        "shareFractionNumerator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Sharefractionnumerator",
          "description": "Fraction numerator"
        },
        "shareFractionDenominator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Sharefractiondenominator",
          "description": "Fraction denominator"
        },
        "expirationDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expirationdate",
          "description": "Expiration Date"
        },
        "authoritySource": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authoritysource",
          "description": "Authority Source"
        },
        "authoritySourceAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authoritysourceastext",
          "description": "Authority source as text"
        },
        "authoritySourceDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authoritysourcedate",
          "description": "Authority Source Date"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Groupid",
          "description": "Group ID"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "person",
        "address"
      ],
      "title": "NonCardRelatedPerson"
    },
    "PersonRolesInfo": {
      "properties": {
        "role": {
          "type": "string",
          "title": "Role",
          "description": "Person Role"
        },
        "roleAsText": {
          "type": "string",
          "title": "Roleastext",
          "description": "Person role as text"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Connection start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Connection end date"
        },
        "type": {
          "type": "string",
          "title": "Type",
          "description": "Person Type"
        },
        "firstName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Firstname",
          "description": "First name"
        },
        "surnameLegalEntityName": {
          "type": "string",
          "title": "Surnamelegalentityname",
          "description": "Family name or business name"
        },
        "identityCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Identitycode",
          "description": "ID code or registry code"
        },
        "foreignCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncode",
          "description": "Foreign ID code"
        },
        "foreignCodeCountry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncodecountry",
          "description": "Country of Foreign ID code"
        },
        "foreignCodeCountryAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncodecountryastext",
          "description": "Country of foreign ID code as text"
        },
        "birthday": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Birthday",
          "description": "Date of birth"
        },
        "share": {
          "anyOf": [
            {
              "$ref": "#/$defs/ShareData"
            },
            {
              "type": "null"
            }
          ],
          "description": "Share ownership data (O, OSAN, S)"
        }
      },
      "type": "object",
      "required": [
        "role",
        "roleAsText",
        "type",
        "surnameLegalEntityName",
        "identityCode"
      ],
      "title": "PersonRolesInfo"
    },
    "PersonTypeInfo": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type",
          "description": "Person Type"
        },
        "firstName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Firstname",
          "description": "First name"
        },
        "surnameLegalEntityName": {
          "type": "string",
          "title": "Surnamelegalentityname",
          "description": "Family name or business name"
        },
        "identityCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Identitycode",
          "description": "ID code or registry code"
        },
        "foreignCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncode",
          "description": "Foreign ID code"
        },
        "foreignCodeCountry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncodecountry",
          "description": "Country of Foreign ID code"
        },
        "foreignCodeCountryAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Foreigncodecountryastext",
          "description": "Country of foreign ID code as text"
        },
        "birthday": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Birthday",
          "description": "Date of birth"
        }
      },
      "type": "object",
      "required": [
        "type",
        "surnameLegalEntityName"
      ],
      "title": "PersonTypeInfo"
    },
    "PersonsOnCard": {
      "properties": {
        "person": {
          "$ref": "#/$defs/PersonRolesInfo",
          "description": "Person roles information"
        },
        "address": {
          "$ref": "#/$defs/FullAddress",
          "description": "Full address"
        },
        "is_gov_institution": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Gov Institution",
          "description": "Is government institution"
        },
        "company_registry_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Registry Status",
          "description": "Juridical person's registry status"
        },
        "has_active_tradebans": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Active Tradebans",
          "description": "Does the person have active trade bans"
        },
        "expirationDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expirationdate",
          "description": "Expiration Date"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email",
          "description": "E-mail address"
        },
        "cardNumber": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Cardnumber",
          "description": "Card number"
        },
        "cardType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardtype",
          "description": "Card type"
        },
        "entryNumber": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Entrynumber",
          "description": "Entry number"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "required": [
        "person",
        "address"
      ],
      "title": "PersonsOnCard"
    },
    "RecordType": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type",
          "description": "Type"
        },
        "typeAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Typeastext",
          "description": "Type as text"
        },
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content",
          "description": "Content"
        },
        "cardNumber": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Cardnumber",
          "description": "Card number"
        },
        "cardType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cardtype",
          "description": "Card type"
        },
        "entryNumber": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Entrynumber",
          "description": "Entry number"
        },
        "recordId": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "format": "int64",
          "title": "Recordid",
          "description": "ID"
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Startdate",
          "description": "Start date"
        },
        "endDate": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enddate",
          "description": "Ending date"
        }
      },
      "type": "object",
      "title": "RecordType"
    },
    "RepresentationRightNormalRuling": {
      "properties": {
        "role": {
          "type": "string",
          "title": "Role",
          "description": "Role of the person"
        },
        "content": {
          "type": "string",
          "title": "Content",
          "description": "Content"
        }
      },
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "title": "RepresentationRightNormalRuling"
    },
    "RepresentationRights": {
      "properties": {
        "persons": {
          "items": {
            "$ref": "#/$defs/RepresentationRightsPerson"
          },
          "type": "array",
          "title": "Persons",
          "description": "Persons"
        },
        "representationRightSpecialConditions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Representationrightspecialconditions",
          "description": "Special conditions for the right of representation"
        },
        "representationRightGroups": {
          "items": {
            "$ref": "#/$defs/RepresentationRightsGroup"
          },
          "type": "array",
          "title": "Representationrightgroups",
          "description": "Joint representation law groups. Each group shows a combination of persons, all of whom jointly (together) have the right to represent the company. Has meaning especially if the representatives do not have the right of exclusive representation."
        }
      },
      "type": "object",
      "required": [
        "persons",
        "representationRightSpecialConditions",
        "representationRightGroups"
      ],
      "title": "RepresentationRights"
    },
    "RepresentationRightsGroup": {
      "properties": {
        "groupNumber": {
          "type": "integer",
          "title": "Groupnumber",
          "description": "Group number"
        },
        "persons": {
          "items": {
            "$ref": "#/$defs/RepresentationRightsPerson"
          },
          "type": "array",
          "title": "Persons",
          "description": "Persons in the group"
        }
      },
      "type": "object",
      "required": [
        "groupNumber",
        "persons"
      ],
      "title": "RepresentationRightsGroup"
    },
    "RepresentationRightsPerson": {
      "properties": {
        "firstName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Firstname",
          "description": "First name"
        },
        "surnameLegalEntityName": {
          "type": "string",
          "title": "Surnamelegalentityname",
          "description": "Family name or Business name"
        },
        "entityCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entitycode",
          "description": "Personal code or Company Code"
        },
        "entityCodeCountry": {
          "type": "string",
          "title": "Entitycodecountry",
          "description": "Country of the Entity Code (ISO 3166-1 alpha-3)"
        },
        "entityCodeCountryAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entitycodecountryastext",
          "description": "Country of the Entity Code as text"
        },
        "birthday": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Birthday",
          "description": "Date of birth"
        },
        "personType": {
          "type": "string",
          "title": "Persontype",
          "description": "Person Type"
        },
        "role": {
          "type": "string",
          "title": "Role",
          "description": "Role of the person"
        },
        "roleAsText": {
          "type": "string",
          "title": "Roleastext",
          "description": "Role as Text"
        },
        "exclusiveRightOfRepresentation": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Exclusiverightofrepresentation",
          "description": "Existence of exclusive right of representation"
        }
      },
      "type": "object",
      "required": [
        "surnameLegalEntityName",
        "entityCodeCountry",
        "personType",
        "role",
        "roleAsText"
      ],
      "title": "RepresentationRightsPerson"
    },
    "ShareData": {
      "properties": {
        "sharePercentage": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "double",
          "title": "Sharepercentage",
          "description": "Share Percentage"
        },
        "shareSize": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "format": "double",
          "title": "Sharesize",
          "description": "Share Size"
        },
        "shareCurrency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sharecurrency",
          "description": "Share currency"
        },
        "shareCurrencyAsText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sharecurrencyastext",
          "description": "Share Currency as text"
        }
      },
      "type": "object",
      "title": "ShareData"
    }
  }
}