{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-user-eligible-companies-response-schema.json",
  "title": "UserEligibleCompaniesResponse",
  "description": "Список компаний",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/raiffeisen-ru-treasury-digital-connection-openapi.yml#/components/schemas/UserEligibleCompaniesResponse",
  "type": "object",
  "required": [
    "companies",
    "offset",
    "limit",
    "totalCount"
  ],
  "properties": {
    "companies": {
      "items": {
        "$ref": "#/$defs/UserCompany"
      },
      "type": "array",
      "description": "Компании"
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "Смещение, с которого взяты элементы"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Количество переданных элементов"
    },
    "totalCount": {
      "type": "integer",
      "format": "int32",
      "description": "Общее количество элементов"
    }
  },
  "$defs": {
    "UserCompany": {
      "type": "object",
      "required": [
        "cnum",
        "companyName",
        "inn",
        "canSignTreasuryAgreementDocument"
      ],
      "properties": {
        "cnum": {
          "type": "string",
          "description": "Уникальный идентификатор клиента"
        },
        "companyName": {
          "type": "string",
          "description": "Наименование компании"
        },
        "inn": {
          "type": "string",
          "description": "ИНН компании"
        },
        "kpp": {
          "type": "string",
          "description": "КПП компании"
        },
        "canSignTreasuryAgreementDocument": {
          "type": "boolean",
          "description": "Может ли пользователь подписать документ"
        }
      }
    }
  }
}