{
  "openapi": "3.0.4",
  "info": {
    "title": "api.ros.bclogia.cz",
    "description": "Rozhraní pro uživatele. Přístupový token získáte metodou auth/login.",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Přihlásí uživatele a vydá přístupový a obnovovací token.",
        "requestBody": {
          "description": "Uživatelské jméno, heslo a případně token captcha.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Přihlášení proběhlo, vrací tokeny.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Chybí jméno nebo heslo, případně nelze určit firmu.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Neplatné přihlašovací údaje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Vymění obnovovací token za nový pár tokenů.",
        "requestBody": {
          "description": "Obnovovací token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tokeny byly obnoveny.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Obnovovací token je neplatný nebo vypršel.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Odhlásí uživatele a zneplatní obnovovací token.",
        "requestBody": {
          "description": "Obnovovací token, který se má zneplatnit.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Odhlášení proběhlo."
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/calculation/import": {
      "post": {
        "tags": [
          "Calculations"
        ],
        "summary": "Naimportuje kalkulaci jednoho provozu.",
        "description": "\r\nPožadavek obsahuje hlavičku kalkulace a tři bloky řádků: odpady, druhotné suroviny a ostatní služby\r\n            (počet řádků není omezen). Ukládají se jen zadané hodnoty; součty, náklady, tržby ani marže se nepřepočítávají.\r\n\r\nKalkulace se identifikuje IČ zákazníka, obdobím, divizí a provozem. Pokud už taková kalkulace existuje,\r\n            nahradí se celá (hlavička i všechny řádky), její identifikátor zůstane zachován a odpověď má\r\n            `replaced` = `true`. Při chybě zůstane původní kalkulace beze změny.\r\n\r\nČísla řádků jsou nepovinná; řádky bez čísla se číslují podle pořadí v poli od 1. Čísla řádků musí být\r\n            v rámci bloku jedinečná.",
        "requestBody": {
          "description": "Hlavička kalkulace a řádky jednotlivých bloků.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalculationImportRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CalculationImportRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CalculationImportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existující kalkulace byla nahrazena.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              }
            }
          },
          "201": {
            "description": "Kalkulace byla nově uložena.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek, například chybné IČ, období mimo pořadí, neznámé zařazení, chybějící nebo neexistující ID odpadu.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Kalkulaci se nepodařilo uložit; původní data zůstala beze změny.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí stránku seznamu firem podle zadaných parametrů.",
        "description": "Seznam je připravený (odpověď má `cached = true`), takže volání mají dva druhy.\r\n            \r\nPrvní volání (bez hlavičky `x-request-id`) spustí dotaz do databáze podle výběrových parametrů\r\n(`OrganizationName`, `CompanyRegistrationNumber` a další), výsledek připraví na serveru, vždy\r\nvrátí první stranu (`Skip` se ignoruje) a v odpovědi je `requestId`.\r\n            \r\nDalší volání pošlete s hodnotou `requestId` v hlavičce `x-request-id` a se stále stejnými výběrovými\r\nparametry: databáze se nepoužije a na výsledek se uplatní jen `Skip`, `Take` a `Sorted` nad připraveným\r\nvýsledkem. Jiný výběr získáte novým prvním voláním (bez `x-request-id`). Pošlete-li s platným\r\n`x-request-id` jiné výběrové parametry, než s jakými byl výběr připraven, výsledek zůstane původní a\r\nodpověď obsahuje upozornění `SELECTION_PARAMETERS_IGNORED`.\r\n            \r\nPokud platnost výsledku vypršela, výběr se obnoví: připraví se znovu podle výběrových parametrů v tomto volání,\r\nvrátí se požadovaná strana z nových dat, nové `requestId` a zpráva `CACHE_EXPIRED_RELOADED`. Proto\r\nvýběrové parametry posílejte pořád stejné; bez nich by se výběr obnovil bez filtru.\r\n            \r\nŘadit lze podle názvů polí z odpovědi; směr je `Ascending` (výchozí) nebo `Descending`\r\n(přijímá se i `asc`/`desc`).\r\n            \r\nPočet souběžně otevřených výběrů je omezen (výchozí 5 na uživatele). Každé první volání jeden založí;\r\nvýběr se uvolní smazáním (`DELETE sessions/{requestId}`) nebo vypršením platnosti, která se\r\nkaždým použitím prodlužuje. Při dosažení limitu se vrátí `429` se seznamem otevřených výběrů.\r\nPo úspěšném založení, změně nebo odstranění firmy se výběr určený hlavičkou `x-request-id` zruší.",
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "description": "Identifikátor výsledku z odpovědi na první volání (`requestId`). Pro další strany ho posílejte\r\nv hlavičce `x-request-id` (se stejnými výběrovými parametry); pro první volání ho vynechte.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Výběrové parametry (v každém volání stejné), `Skip` a `Take` pro stránkování a `Sorted` pro řazení.\r\nS platným `x-request-id` se výběrové parametry na výsledek neuplatní, použijí se až při obnově vypršelého výběru.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu firem.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Máte otevřený nejvyšší povolený počet výběrů (kód `SessionLimitExceeded`); nepotřebný smažte.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/row": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí jednu firmu ve tvaru položky seznamu.",
        "description": "Odpověď má stejný tvar jako seznam, ale s nejvýše jedním záznamem. Neexistující firma vrátí\r\nprázdný výsledek (`count = 0`).",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "Číselné ID firmy.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Culture",
            "in": "query",
            "description": "Jazyk zpráv (cs, sk, en); výchozí cs.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Firma ve tvaru položky seznamu.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí detail firmy podle jejího číselného ID.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "Číselné ID firmy.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Detail firmy.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Firma nenalezena.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Companies"
        ],
        "summary": "Změní firmu.",
        "description": "\r\nZměna je úplná (PUT): pošlete všechny hodnoty firmy; hodnota, kterou nepošlete, se vymaže. Nejprve proto\r\n            firmu načtěte, upravte a pošlete celou. Identita firmy se bere z parametru `CompanyId`.\r\n\r\nV požadavku se ignorují hodnoty `CompanyId`, `OrganizationIdentifier`, `CreatedAt`,\r\n            `ChangedAt`, `RowVersion`, `Invalidated`, `PremisesCount` a `IsLockedByOwner`. Typ firmy\r\n            (`CompanyType`) nelze změnit: nezadaný se ponechá, jiný než uložený vrátí chybu `CompanyTypeChange`.\r\n            Číslo provozovny a sídlo (`PremisesNumber`, `ParentOrganization`) změnit lze; kontroly hlídají jedinečnost\r\n            sídla a čísla provozovny. Odpověď obsahuje celý uložený záznam. Poslední zápis vyhrává, souběžné změny se nehlídají.\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "Číselné ID firmy.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Úplná data firmy.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Firma byla změněna; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. změna typu firmy).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Firma nenalezena.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firmu nelze změnit.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Odstraní firmu tak, že ji nahradí jinou firmou.",
        "description": "Odstranění vyžaduje firmu k náhradě. Firmu nelze odstranit, pokud je uzamčena vlastníkem, má návazné firmy\r\nnebo provozovny, nebo je zároveň nahrazující a nahrazovaná. Firma k náhradě musí existovat a nesmí být shodná\r\ns odstraňovanou firmou.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "Číselné ID odstraňované firmy.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ReplacementCompanyId",
            "in": "query",
            "description": "Číselné ID firmy, která odstraňovanou firmu nahradí.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Firma byla odstraněna."
          },
          "400": {
            "description": "Firma k náhradě neexistuje nebo je shodná s odstraňovanou firmou.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Firma nenalezena.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Firmu nelze odstranit (uzamčená firma, návazné firmy nebo provozovny, cyklus v náhradách).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/exists": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Zjistí, zda firma s daným číselným ID existuje.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "Číselné ID firmy.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hodnota `true` nebo `false`.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/company": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí podnikající firmu s IČ.",
        "description": "\r\nVšechny hodnoty se předávají již dohledané; systém nic nedohledává (údaje z registru, adresu, město, ulici,\r\n            sídlo ani číslo provozovny). Před voláním je zjistěte: adresu, město a ulici metodou pro dohledání geografie adresy,\r\n            sídlo a číslo další provozovny metodami pro seznam sídel a provozoven podle IČ.\r\n\r\nSídlo nebo provozovna: číslo provozovny 0 nebo prázdné znamená sídlo. U provozovny zadejte její číslo\r\n            a identifikátor organizace sídla (`ParentOrganization`). Zakládá-li se druhé sídlo se stejným IČ nebo provozovna\r\n            se stejným číslem, vrátí se chyba. Zbývající hodnoty firmy se doplní výchozími hodnotami a lze je změnit změnou firmy.\r\n\r\nPotvrzení. Pokud systém najde upozornění, které může uživatel potvrdit (jiná firma se stejným IČ, rodným\r\n            číslem nebo DIČ; IČ či DIČ ze seznamu chráněných hodnot), firmu nezaloží a vrátí `409` s kódem\r\n            `ConfirmationRequired`, seznamem upozornění (`warnings`) a tokenem (`confirmationToken`). Po schválení\r\n            uživatelem zopakujte stejný požadavek a token pošlete v hlavičce `X-Confirmation-Token`. Token platí jen\r\n            pro tato data, pro vás jako volajícího a omezenou dobu; pokud se data změní nebo se najde nové upozornění, vrátí se\r\n            znovu `409` s novým tokenem. Chybu (`400`) potvrdit nelze, je třeba opravit data. Provozovna má stejné IČ\r\n            jako sídlo, takže založení provozovny vždy vyžaduje potvrzení duplicity IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nové firmy.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Firma byla založena; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. chybí adresa, sídlo neexistuje, neplatné IČ).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/company-noid": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí podnikající firmu bez IČ.",
        "description": "\r\nStejné jako založení firmy s IČ, jen se IČ nezadává. Všechny hodnoty se předávají již dohledané; systém nic\r\n            nedohledává. Číslo provozovny 0 nebo prázdné znamená sídlo; u provozovny zadejte její číslo a identifikátor\r\n            organizace sídla (`ParentOrganization`), kterým je platná firma bez IČ.\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nové firmy.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewWithoutRegistrationNumberModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewWithoutRegistrationNumberModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewWithoutRegistrationNumberModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Firma byla založena; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. chybí adresa, sídlo neexistuje).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/foreign": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí podnikající zahraniční subjekt.",
        "description": "\r\nStejné údaje jako při založení firmy s IČ, jen se IČ nezadává. Všechny hodnoty se předávají již dohledané;\r\n            systém nic nedohledává. Stát zadejte kódem země subjektu. Číslo provozovny 0 nebo prázdné znamená sídlo; u provozovny\r\n            zadejte její číslo a identifikátor organizace sídla (`ParentOrganization`), kterým je platný zahraniční subjekt.\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nového subjektu.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewForeignModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewForeignModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewForeignModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Subjekt byl založen; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. sídlo neexistuje).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/municipality": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí podnikající obec s IČ.",
        "description": "\r\nStejné údaje i chování jako při založení firmy s IČ. Všechny hodnoty se předávají již dohledané; systém nic\r\n            nedohledává. Číslo provozovny 0 nebo prázdné znamená sídlo; u provozovny zadejte její číslo a identifikátor\r\n            organizace sídla (`ParentOrganization`).\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nové obce.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewMunicipalityModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewMunicipalityModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewMunicipalityModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Obec byla založena; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. chybí adresa, sídlo neexistuje, neplatné IČ).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/citizen": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí nepodnikajícího občana obce.",
        "description": "\r\nStejné údaje jako při založení firmy s IČ, jen se IČ nezadává. Všechny hodnoty se předávají již dohledané; systém\r\n            nic nedohledává. Číslo provozovny 0 nebo prázdné znamená sídlo; u provozovny zadejte její číslo a identifikátor\r\n            organizace sídla (`ParentOrganization`).\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nového občana.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewCitizenModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewCitizenModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewCitizenModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Občan byl založen; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná (např. chybí adresa, sídlo neexistuje).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/unknown": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Založí firmu bez rozlišení typu.",
        "description": "\r\nTyp firmy se neurčuje. Zadává se název, IČ, DIČ, město, ulice (ID vazby ulice na město), PSČ, číslo popisné,\r\n            stát a příznak podnikající/nepodnikající osoby. Všechny hodnoty se předávají již dohledané; systém nic nedohledává.\r\n            Kontrola dat podle typu firmy se neprovádí.\r\n\r\nKromě oprávnění k zakládání firem vyžaduje tato operace zvláštní oprávnění k zadávání firem bez rozlišení;\r\n            bez něj vrátí `403` s kódem `MissingPermission`.\r\n\r\nPotvrzování upozornění (`409`, token v hlavičce `X-Confirmation-Token`) funguje stejně jako při založení\r\n            firmy s IČ.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "Token z odpovědi `409` při opakování požadavku; při prvním volání vynechte.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Údaje nové firmy.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewUnknownModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewUnknownModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNewUnknownModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Firma byla založena; v těle je uložený záznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Data jsou neplatná.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Vyžaduje se potvrzení (`code` = `ConfirmationRequired`) nebo firma již existuje.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/premises/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí provozovny firmy podle IČ.",
        "description": "Vrací záznamy s číslem provozovny jiným než 0, včetně neplatných (viz `IsValid`). Sídlo firmy\r\nvrací metoda `headquarters/list`. Řadit lze podle názvů polí z odpovědi; směr je `Ascending`\r\n(výchozí) nebo `Descending`.",
        "requestBody": {
          "description": "IČ a případně stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka s nalezenými provozovnami; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Chybí IČ, neznámé pole nebo neplatný směr řazení.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/headquarters/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí sídla firmy podle IČ.",
        "description": "Vrací záznamy s číslem provozovny 0, včetně neplatných (viz `IsValid`). Provozovny firmy vrací\r\nmetoda `premises/list`. Řadit lze podle názvů polí z odpovědi; směr je `Ascending`\r\n(výchozí) nebo `Descending`.",
        "requestBody": {
          "description": "IČ a případně stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyByRegistrationNumberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka s nalezenými sídly; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Chybí IČ, neznámé pole nebo neplatný směr řazení.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/premises/max-number": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí nejvyšší číslo provozovny firmy podle IČ.",
        "description": "Hodí se k určení čísla další provozovny. Pokud firma s daným IČ nemá žádnou provozovnu (nebo neexistuje),\r\nvrací 0.",
        "parameters": [
          {
            "name": "CompanyRegistrationNumber",
            "in": "query",
            "description": "IČ firmy.",
            "schema": {
              "maxLength": 14,
              "minLength": 0,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Nejvyšší číslo provozovny.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              }
            }
          },
          "400": {
            "description": "Chybí IČ nebo je příliš dlouhé.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí otevřené výběry (session) seznamu firem přihlášeného uživatele a nejvyšší povolený počet.",
        "description": "Výběr vznikne prvním voláním seznamu firem (`list` bez hlavičky `x-request-id`) a zůstává otevřený,\r\ndokud ho nesmažete nebo dokud nevyprší jeho platnost. Každé použití platnost prodlouží.",
        "responses": {
          "200": {
            "description": "Otevřené výběry, nejstarší první.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Smaže všechny otevřené výběry seznamu firem přihlášeného uživatele.",
        "responses": {
          "204": {
            "description": "Výběry byly smazány (i když žádný nebyl otevřen)."
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions/{requestId}/refresh": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Prodlouží platnost otevřeného výběru.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "description": "Identifikátor výběru (`requestId` z odpovědi seznamu).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Platnost výběru byla prodloužena."
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Výběr neexistuje nebo už vypršel.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions/{requestId}": {
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Smaže otevřený výběr a uvolní tím místo v limitu.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "description": "Identifikátor výběru (`requestId` z odpovědi seznamu).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Výběr byl smazán."
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Výběr neexistuje nebo už vypršel.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/address/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Vyhledá adresy podle zadaných parametrů.",
        "description": "Všechny parametry výběru jsou volitelné a kombinují se. Textové hodnoty se porovnávají přesně; hodnota\r\nobsahující `*` se bere jako zástupný znak (např. `Hl*`). Prázdný text a číslo domovní 0 znamenají\r\n„nezadáno“. Vyhledání vrací nejvýše 1000 adres, z nichž se použije požadovaná stránka. Řadit lze podle názvů\r\npolí z odpovědi; směr je `Ascending` (výchozí) nebo `Descending` (přijímá se i `asc`/`desc`).\r\nHodnoty nesmí obsahovat apostrof a nesmí být delší než odpovídající pole adresy.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddressDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka nalezených adres; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neplatná hodnota parametru, neznámé pole nebo neplatný směr řazení.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/address/geography/resolve": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Dohledá město a ulici k adrese a založí je v číselnících, pokud tam chybí.",
        "description": "Vstupem je kód adresního místa (`AddressCode` z vyhledání adres) a typ místa, ze kterého se vezme název\r\nměsta (obec, část obce, městská část nebo pošta). Metoda zapisuje: chybějící okres, město, ulici a jejich\r\nvazbu založí, existující použije. Souběžná volání se řadí za sebe. Pokud adresa s daným kódem neexistuje,\r\nvrátí se `AddressFound = false` a nic se nezaloží.",
        "requestBody": {
          "description": "Kód adresního místa a typ místa.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressGeographyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressGeographyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddressGeographyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Dohledané (případně nově založené) město a ulice.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/city/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Vrátí stránku seznamu měst zadaného státu.",
        "description": "Stát je povinný (`CountryCode`). Ostatní parametry jsou volitelné a kombinují se. Název města\r\n(`CityName`) se hledá od začátku; zástupný znak `*` na začátku hledá kdekoli v názvu. Z výběru se\r\nvrací nejvýše 1000 měst, proto zadejte dostatečně úzký výběr. Řadit lze podle názvů polí z odpovědi; směr je\r\n`Ascending` (výchozí) nebo `Descending` (přijímá se i `asc`/`desc`). Výchozí řazení je\r\npodle názvu města.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CityDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CityDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CityDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu měst; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Chybí stát, neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/street/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Vrátí stránku seznamu ulic zadaného města.",
        "description": "Město je povinné (`CityId`); bez něj se nevrátí žádná ulice. Hodnota `CityStreetId` z odpovědi je ID ulice\r\nměsta, které se zadává při zakládání firmy. Řadit lze podle názvů polí z odpovědi; směr je `Ascending`\r\n(výchozí) nebo `Descending` (přijímá se i `asc`/`desc`). Výchozí řazení je podle názvu ulice.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StreetDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StreetDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StreetDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu ulic; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Chybí město, neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/country/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Vrátí stránku seznamu států.",
        "description": "Řadit lze podle názvů polí z odpovědi (`CountryId`, `CountryCode`, `CountryName`);\r\nsměr je `Ascending` (výchozí) nebo `Descending` (přijímá se i `asc`/`desc`).\r\nVýchozí řazení je podle zkratky státu.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CountryDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CountryDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CountryDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu států.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/registry/isoh/list": {
      "post": {
        "tags": [
          "Registry"
        ],
        "summary": "Vyhledá zařízení v registru zařízení a jejich provozovatelů.",
        "description": "Parametry výběru jsou volitelné. Řadit lze podle názvů polí z odpovědi; směr je `Ascending` (výchozí)\r\nnebo `Descending` (přijímá se i `asc`/`desc`). Výchozí řazení je podle ID zařízení.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryFacilityDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryFacilityDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryFacilityDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka nalezených zařízení; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/registry/company/list": {
      "post": {
        "tags": [
          "Registry"
        ],
        "summary": "Vyhledá subjekty v registru ekonomických subjektů (RES).",
        "description": "Všechny parametry výběru jsou volitelné a kombinují se. Řadit lze podle názvů polí z odpovědi;\r\nsměr je `Ascending` (výchozí) nebo `Descending` (přijímá se i `asc`/`desc`).\r\nVýchozí řazení je podle IČO.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryCompanyDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryCompanyDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistryCompanyDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka nalezených subjektů; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AddressDataManagerRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "StreetName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Ulice",
            "nullable": true
          },
          "HouseNumber": {
            "type": "integer",
            "description": "Číslo domovní",
            "format": "int32",
            "nullable": true
          },
          "OrientationNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Číslo orientační",
            "nullable": true
          },
          "MunicipalityPartName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Část obce",
            "nullable": true
          },
          "MunicipalityName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Obec",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "DistrictName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Okres",
            "nullable": true
          },
          "RegionName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Kraj",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry vyhledání adres, stránkování a řazení. Všechny parametry výběru jsou volitelné a kombinují se.\r\nTextové hodnoty se porovnávají přesně; hodnota obsahující `*` se bere jako zástupný znak\r\n(např. `Hl*` najde všechny názvy začínající na „Hl“)."
      },
      "AddressGeographyModel": {
        "type": "object",
        "properties": {
          "AddressFound": {
            "type": "boolean",
            "description": "Adresa s daným kódem existuje v registru adres; pokud ne, ostatní hodnoty jsou prázdné"
          },
          "AddressId": {
            "type": "integer",
            "description": "Číselné ID adresy",
            "format": "int32",
            "nullable": true
          },
          "CityName": {
            "type": "string",
            "description": "Název města z číselníku podle zvoleného typu místa (obec, část obce, městská část nebo pošta)",
            "nullable": true
          },
          "StreetName": {
            "type": "string",
            "description": "Název ulice z číselníku včetně druhu a případného pokračování názvu; pokud adresa ulici nemá, část obce",
            "nullable": true
          },
          "PostalCode": {
            "type": "string",
            "description": "PSČ ve tvaru „xxx xx“",
            "nullable": true
          },
          "HouseNumberText": {
            "type": "string",
            "description": "Číslo domovní, případně domovní/orientační",
            "nullable": true
          },
          "DistrictName": {
            "type": "string",
            "description": "Název okresu",
            "nullable": true
          },
          "Nuts5Code": {
            "type": "number",
            "description": "Kód NUTS 5",
            "format": "double",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města v číselníku měst (založeno, pokud neexistovalo)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice ve městě v číselníku (založeno, pokud neexistovala)",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Město a ulice v číselnících odpovídající adrese. Pokud v číselnících chyběly, byly založeny."
      },
      "AddressGeographyRequest": {
        "type": "object",
        "properties": {
          "AddressCode": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Kód adresního místa (AddressCode z vyhledání adres)",
            "format": "int32"
          },
          "PlaceType": {
            "$ref": "#/components/schemas/AddressPlaceType"
          }
        },
        "additionalProperties": false,
        "description": "Požadavek na dohledání (a případné založení) města a ulice k adrese."
      },
      "AddressListGetDataModel": {
        "required": [
          "AddressCode"
        ],
        "type": "object",
        "properties": {
          "AddressCode": {
            "type": "number",
            "description": "Kód adresního místa",
            "format": "double"
          },
          "StreetCode": {
            "type": "number",
            "description": "Kód ulice",
            "format": "double",
            "nullable": true
          },
          "StreetName": {
            "maxLength": 48,
            "minLength": 0,
            "type": "string",
            "description": "Ulice",
            "nullable": true
          },
          "HouseNumber": {
            "type": "number",
            "description": "Číslo domovní",
            "format": "double",
            "nullable": true
          },
          "OrientationNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Číslo orientační",
            "nullable": true
          },
          "MunicipalityPartCode": {
            "type": "number",
            "description": "Kód části obce",
            "format": "double",
            "nullable": true
          },
          "MunicipalityPartName": {
            "maxLength": 48,
            "minLength": 0,
            "type": "string",
            "description": "Část obce",
            "nullable": true
          },
          "MunicipalityCode": {
            "type": "number",
            "description": "Kód obce",
            "format": "double",
            "nullable": true
          },
          "MunicipalityName": {
            "maxLength": 48,
            "minLength": 0,
            "type": "string",
            "description": "Obec",
            "nullable": true
          },
          "PostalCode": {
            "type": "number",
            "description": "PSČ",
            "format": "double",
            "nullable": true
          },
          "DistrictCode": {
            "type": "number",
            "description": "Kód okresu",
            "format": "double",
            "nullable": true
          },
          "DistrictName": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "description": "Okres",
            "nullable": true
          },
          "RegionCode": {
            "type": "number",
            "description": "Kód kraje",
            "format": "double",
            "nullable": true
          },
          "RegionName": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "description": "Kraj",
            "nullable": true
          },
          "CoordinateX": {
            "type": "number",
            "description": "Souřadnice X",
            "format": "double",
            "nullable": true
          },
          "CoordinateY": {
            "type": "number",
            "description": "Souřadnice Y",
            "format": "double",
            "nullable": true
          },
          "Nuts5Code": {
            "type": "integer",
            "description": "NUTS 5 (kód)",
            "format": "int32",
            "nullable": true
          },
          "CityDistrictCode": {
            "type": "integer",
            "description": "Kód městské části",
            "format": "int32",
            "nullable": true
          },
          "CityDistrictName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Městská část",
            "nullable": true
          },
          "OrpCode": {
            "type": "integer",
            "description": "Kód ORP",
            "format": "int32",
            "nullable": true
          },
          "PostOfficeName": {
            "maxLength": 48,
            "minLength": 0,
            "type": "string",
            "description": "Pošta",
            "nullable": true
          },
          "Identifier": {
            "type": "integer",
            "description": "Identifikátor",
            "format": "int32",
            "nullable": true
          },
          "Iku": {
            "type": "integer",
            "description": "IKÚ",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Adresa z registru adres."
      },
      "AddressPlaceType": {
        "enum": [
          "Municipality",
          "MunicipalityPart",
          "CityDistrict",
          "PostOffice"
        ],
        "type": "string",
        "description": "Který název z adresy se použije jako název města: obec, část obce, městská část nebo pošta.\r\nV JSON se přenáší jako text (název hodnoty)."
      },
      "BCPagingMessage": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Kód zprávy."
          },
          "message": {
            "type": "string",
            "description": "Text zprávy."
          },
          "severity": {
            "$ref": "#/components/schemas/BCPagingMessageSeverity"
          }
        },
        "additionalProperties": false,
        "description": "Zpráva k odpovědi."
      },
      "BCPagingMessageSeverity": {
        "enum": [
          "info",
          "warning",
          "error"
        ],
        "type": "string",
        "description": "Závažnost zprávy: info, warning nebo error."
      },
      "CalculationImportRequest": {
        "required": [
          "CompanyRegistrationNumber",
          "PeriodFrom",
          "PeriodTo"
        ],
        "type": "object",
        "properties": {
          "CompanyRegistrationNumber": {
            "minLength": 1,
            "pattern": "^\\d{8}$",
            "type": "string",
            "description": "IČ zákazníka (8 číslic)."
          },
          "PeriodFrom": {
            "type": "string",
            "description": "Začátek období, na které se kalkulace vztahuje.",
            "format": "date"
          },
          "PeriodTo": {
            "type": "string",
            "description": "Konec období, na které se kalkulace vztahuje; nesmí být před začátkem.",
            "format": "date"
          },
          "Abc": {
            "pattern": "^[ABC]$",
            "type": "string",
            "description": "Zařazení zákazníka podle ABC: A, B nebo C.",
            "nullable": true
          },
          "Division": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název divize.",
            "nullable": true
          },
          "Plant": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název provozu.",
            "nullable": true
          },
          "ValidFrom": {
            "type": "string",
            "description": "Datum, od kterého kalkulace platí.",
            "format": "date",
            "nullable": true
          },
          "ServicesFrom": {
            "type": "string",
            "description": "Datum, od kterého se služby poskytují.",
            "format": "date",
            "nullable": true
          },
          "Kind": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Druh kalkulace, například Stávající, Nový nebo Jednorázová akce.",
            "nullable": true
          },
          "PreparedBy": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Jméno zpracovatele kalkulace.",
            "nullable": true
          },
          "PreparedAt": {
            "type": "string",
            "description": "Datum vyhotovení kalkulace.",
            "format": "date",
            "nullable": true
          },
          "WasteRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalculationWasteRow"
            },
            "description": "Řádky bloku Odpady."
          },
          "SecondaryRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalculationSecondaryRow"
            },
            "description": "Řádky bloku Druhotné suroviny."
          },
          "ServiceRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalculationServiceRow"
            },
            "description": "Řádky bloku Ostatní služby."
          }
        },
        "additionalProperties": false,
        "description": "Import kalkulace jednoho provozu: hlavička a tři bloky řádků (odpady, druhotné suroviny, ostatní služby). Kalkulace téhož zákazníka, období, divize a provozu se při opakovaném importu nahradí."
      },
      "CalculationImportResponse": {
        "type": "object",
        "properties": {
          "CalculationId": {
            "type": "integer",
            "description": "Identifikátor kalkulace.",
            "format": "int32"
          },
          "Replaced": {
            "type": "boolean",
            "description": "Příznak, že byla nahrazena dříve importovaná kalkulace téhož zákazníka, období, divize a provozu."
          },
          "WasteRows": {
            "type": "integer",
            "description": "Počet uložených řádků bloku Odpady.",
            "format": "int32"
          },
          "SecondaryRows": {
            "type": "integer",
            "description": "Počet uložených řádků bloku Druhotné suroviny.",
            "format": "int32"
          },
          "ServiceRows": {
            "type": "integer",
            "description": "Počet uložených řádků bloku Ostatní služby.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Výsledek importu kalkulace."
      },
      "CalculationSecondaryRow": {
        "required": [
          "WasteID"
        ],
        "type": "object",
        "properties": {
          "RowNo": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Číslo řádku v rámci bloku (od 1, v bloku jedinečné). Bez zadání se řádky číslují podle pořadí v poli.",
            "format": "int32",
            "nullable": true
          },
          "ActivityCode": {
            "maximum": 420,
            "minimum": 110,
            "type": "integer",
            "description": "Kód činnosti Recovera (110 až 420).",
            "format": "int32",
            "nullable": true
          },
          "LowerOverhead": {
            "type": "boolean",
            "description": "Příznak, že se pro řádek použije nižší režie provozu."
          },
          "WasteID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Identifikátor odpadu v katalogu odpadů. Povinný, odpad musí existovat.",
            "format": "int32"
          },
          "Unit": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Měrná jednotka (například t).",
            "nullable": true
          },
          "QtyPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Množství na jeden svoz v měrných jednotkách.",
            "format": "double",
            "nullable": true
          },
          "PickupsPerPeriod": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet svozů za období.",
            "format": "double",
            "nullable": true
          },
          "PurchasePerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Výkupní cena druhotné suroviny za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "Supplier": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Dodavatel dopravy.",
            "nullable": true
          },
          "Mechanism": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Použitý mechanismus včetně nosnosti (t).",
            "nullable": true
          },
          "KmPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Vzdálenost na jeden svoz v km.",
            "format": "double",
            "nullable": true
          },
          "PricePerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "PricePerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za kilometr.",
            "format": "double",
            "nullable": true
          },
          "HoursPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet hodin manipulace na jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "PricePerHour": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za hodinu manipulace.",
            "format": "double",
            "nullable": true
          },
          "FlatPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: paušál za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "RentItem": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Předmět nájmu, například kontejner.",
            "nullable": true
          },
          "RentPieces": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet pronajatých kusů.",
            "format": "double",
            "nullable": true
          },
          "RentPerMonthPerPiece": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: nájem (odpis) za měsíc a kus.",
            "format": "double",
            "nullable": true
          },
          "RentMonths": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet měsíců nájmu.",
            "format": "double",
            "nullable": true
          },
          "RepairSurcharge": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Navýšení nákladů na opravy jako podíl z nájmu (například 0,2 odpovídá 20 %).",
            "format": "double",
            "nullable": true
          },
          "ProcessingSite": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Místo zpracování.",
            "nullable": true
          },
          "ProcessingPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na zpracování za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "SortedPercent": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "description": "Podíl vytříděného materiálu (0 až 1, například 0,8 odpovídá 80 %).",
            "format": "double",
            "nullable": true
          },
          "SortedTransportPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na dopravu vytříděného materiálu za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "ResidueDisposalPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na odstranění zbytku za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "Buyer": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Odběratel druhotné suroviny.",
            "nullable": true
          },
          "SalePricePerTon": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba: prodejní cena druhotné suroviny za tunu.",
            "format": "double",
            "nullable": true
          },
          "RevPerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za svoz za kilometr.",
            "format": "double",
            "nullable": true
          },
          "RevPerHour": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za manipulaci za hodinu.",
            "format": "double",
            "nullable": true
          },
          "RevFlatPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba: paušál za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "RevRentPerMonthPerPiece": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za nájem za měsíc a kus.",
            "format": "double",
            "nullable": true
          },
          "RevDisposalPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za odstranění za měrnou jednotku.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Řádek bloku Druhotné suroviny. Číslo řádku je nepovinné; bez něj se řádky číslují podle pořadí v poli."
      },
      "CalculationServiceRow": {
        "type": "object",
        "properties": {
          "RowNo": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Číslo řádku v rámci bloku (od 1, v bloku jedinečné). Bez zadání se řádky číslují podle pořadí v poli.",
            "format": "int32",
            "nullable": true
          },
          "ActivityCode": {
            "maximum": 420,
            "minimum": 110,
            "type": "integer",
            "description": "Kód činnosti Recovera (110 až 420).",
            "format": "int32",
            "nullable": true
          },
          "LowerOverhead": {
            "type": "boolean",
            "description": "Příznak, že se pro řádek použije nižší režie provozu."
          },
          "Item": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Název položky služby.",
            "nullable": true
          },
          "Unit": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Měrná jednotka (například t).",
            "nullable": true
          },
          "QtyPerPeriod": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Množství v měrných jednotkách za období.",
            "format": "double",
            "nullable": true
          },
          "CostPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "TransportPerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Dopravní náklad za kilometr.",
            "format": "double",
            "nullable": true
          },
          "TransportKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet kilometrů dopravy.",
            "format": "double",
            "nullable": true
          },
          "TransportFlat": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Dopravní náklad: paušál.",
            "format": "double",
            "nullable": true
          },
          "Supplier": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Dodavatel služby.",
            "nullable": true
          },
          "RevPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "RevTransportPerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za dopravu za kilometr.",
            "format": "double",
            "nullable": true
          },
          "RevTransportFlat": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za dopravu: paušál.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Řádek bloku Ostatní služby. Číslo řádku je nepovinné; bez něj se řádky číslují podle pořadí v poli."
      },
      "CalculationWasteRow": {
        "required": [
          "WasteID"
        ],
        "type": "object",
        "properties": {
          "RowNo": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Číslo řádku v rámci bloku (od 1, v bloku jedinečné). Bez zadání se řádky číslují podle pořadí v poli.",
            "format": "int32",
            "nullable": true
          },
          "ActivityCode": {
            "maximum": 420,
            "minimum": 110,
            "type": "integer",
            "description": "Kód činnosti Recovera (110 až 420).",
            "format": "int32",
            "nullable": true
          },
          "LowerOverhead": {
            "type": "boolean",
            "description": "Příznak, že se pro řádek použije nižší režie provozu."
          },
          "WasteID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Identifikátor odpadu v katalogu odpadů. Povinný, odpad musí existovat.",
            "format": "int32"
          },
          "Unit": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Měrná jednotka (například t).",
            "nullable": true
          },
          "QtyPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Množství na jeden svoz v měrných jednotkách.",
            "format": "double",
            "nullable": true
          },
          "PickupsPerPeriod": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet svozů za období.",
            "format": "double",
            "nullable": true
          },
          "Supplier": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Dodavatel dopravy.",
            "nullable": true
          },
          "Mechanism": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Použitý mechanismus včetně nosnosti (t).",
            "nullable": true
          },
          "KmPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Vzdálenost na jeden svoz v km.",
            "format": "double",
            "nullable": true
          },
          "PricePerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "PricePerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za kilometr.",
            "format": "double",
            "nullable": true
          },
          "HoursPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet hodin manipulace na jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "PricePerHour": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: cena za hodinu manipulace.",
            "format": "double",
            "nullable": true
          },
          "FlatPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: paušál za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "RentItem": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Předmět nájmu, například kontejner.",
            "nullable": true
          },
          "RentPerMonthPerPiece": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: nájem (odpis) za měsíc a kus.",
            "format": "double",
            "nullable": true
          },
          "RentPieces": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet pronajatých kusů.",
            "format": "double",
            "nullable": true
          },
          "RentMonths": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Počet měsíců nájmu.",
            "format": "double",
            "nullable": true
          },
          "RepairSurcharge": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Navýšení nákladů na opravy jako podíl z nájmu (například 0,2 odpovídá 20 %).",
            "format": "double",
            "nullable": true
          },
          "StorageSite": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Sklad nebo překladiště.",
            "nullable": true
          },
          "StoragePerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na skladování a přeložení za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "TransportPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na dopravu na koncové zařízení za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "OtherPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Ostatní náklady za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "DisposalFacility": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Přesný název zařízení, které odpad odstraní.",
            "nullable": true
          },
          "DisposalPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad na odstranění za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "DisposalFeePerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Náklad: příplatek ZP za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "RevDisposalPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za odstranění odpadu za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "RevDisposalFeePerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba: příplatek ZP za měrnou jednotku.",
            "format": "double",
            "nullable": true
          },
          "RevPerKm": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za dopravu za kilometr.",
            "format": "double",
            "nullable": true
          },
          "RevPerHour": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za manipulaci za hodinu.",
            "format": "double",
            "nullable": true
          },
          "RevFlatPerPickup": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba: paušál za jeden svoz.",
            "format": "double",
            "nullable": true
          },
          "RevRentPerMonthPerPiece": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za nájem za měsíc a kus.",
            "format": "double",
            "nullable": true
          },
          "RevPerUnit": {
            "maximum": 99999999999999,
            "minimum": 0,
            "type": "number",
            "description": "Tržba za měrnou jednotku.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Řádek bloku Odpady. Číslo řádku je nepovinné; bez něj se řádky číslují podle pořadí v poli."
      },
      "CityDataManagerRequest": {
        "required": [
          "CountryCode"
        ],
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Zkratka státu, ve kterém se města hledají"
          },
          "CityDistrictId": {
            "type": "integer",
            "description": "Číselné ID městské části",
            "format": "int32",
            "nullable": true
          },
          "CityLevelId": {
            "type": "integer",
            "description": "Číselné ID úrovně města",
            "format": "int32",
            "nullable": true
          },
          "RegionId": {
            "type": "integer",
            "description": "Číselné ID kraje",
            "format": "int32",
            "nullable": true
          },
          "DistrictId": {
            "type": "integer",
            "description": "Číselné ID okresu",
            "format": "int32",
            "nullable": true
          },
          "LocationRegionId": {
            "type": "integer",
            "description": "Číselné ID regionu umístění",
            "format": "int32",
            "nullable": true
          },
          "GeoRegionId": {
            "type": "integer",
            "description": "Geografický region",
            "format": "int32",
            "nullable": true
          },
          "CityName": {
            "type": "string",
            "description": "Začátek názvu města; zástupný znak * na začátku hledá kdekoli v názvu",
            "nullable": true
          },
          "IsStandard": {
            "type": "boolean",
            "description": "Jen standardní města (z registru); bez zadání se vrátí všechna",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu měst. Seznam se vždy omezuje na jeden stát."
      },
      "CityListGetDataModel": {
        "required": [
          "CityId",
          "CityLevelId",
          "CityLevelName",
          "CityName",
          "CountryId"
        ],
        "type": "object",
        "properties": {
          "CityId": {
            "type": "integer",
            "description": "Číselné ID města",
            "format": "int32"
          },
          "CityName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název města"
          },
          "CityDistrictId": {
            "type": "integer",
            "description": "Číselné ID městské části",
            "format": "int32",
            "nullable": true
          },
          "CityDistrictName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Městská část",
            "nullable": true
          },
          "CityLevelId": {
            "type": "integer",
            "description": "Číselné ID úrovně města",
            "format": "int32"
          },
          "CountryId": {
            "type": "integer",
            "description": "Číselné ID státu",
            "format": "int32"
          },
          "CityLevelName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Úroveň města"
          },
          "RegionId": {
            "type": "integer",
            "description": "Číselné ID kraje",
            "format": "int32",
            "nullable": true
          },
          "RegionName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Kraj",
            "nullable": true
          },
          "DistrictId": {
            "type": "integer",
            "description": "Číselné ID okresu",
            "format": "int32",
            "nullable": true
          },
          "DistrictName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Okres",
            "nullable": true
          },
          "LocationRegionId": {
            "type": "integer",
            "description": "Číselné ID regionu umístění",
            "format": "int32",
            "nullable": true
          },
          "LocationRegionName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Region umístění",
            "nullable": true
          },
          "GeoRegionId": {
            "type": "integer",
            "description": "Číselné ID geografického regionu",
            "format": "int32",
            "nullable": true
          },
          "GeoRegionName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Geografický region",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "ParentCityId": {
            "type": "integer",
            "description": "Číselné ID nadřazeného města",
            "format": "int32",
            "nullable": true
          },
          "IsStandard": {
            "type": "boolean",
            "description": "Standardní město: pochází z registru (ne zadané ručně)",
            "nullable": true
          },
          "Nuts5Code": {
            "type": "number",
            "description": "Kód NUTS 5",
            "format": "double",
            "nullable": true
          },
          "MunicipalityName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Název obce",
            "nullable": true
          },
          "MunicipalityAuthorityCode": {
            "type": "integer",
            "description": "Kód pověřeného úřadu",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Město (obec, část obce…) v seznamu měst."
      },
      "CompanyByRegistrationNumberRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "IČ firmy (povinné)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Vyhledání provozoven nebo sídel firmy podle IČ, se stránkováním a řazením."
      },
      "CompanyMaxPremisesNumberModel": {
        "type": "object",
        "properties": {
          "MaxPremisesNumber": {
            "type": "integer",
            "description": "Nejvyšší číslo provozovny; 0, pokud firma žádnou provozovnu nemá",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Nejvyšší číslo provozovny firmy."
      },
      "CompanyPlaceListGetDataModel": {
        "required": [
          "CompanyId",
          "IsValid",
          "OrganizationIdentifier"
        ],
        "type": "object",
        "properties": {
          "CompanyId": {
            "type": "integer",
            "description": "Číselné ID firmy; jednoznačně identifikuje firmu stejně jako identifikátor organizace",
            "format": "int32"
          },
          "OrganizationIdentifier": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace"
          },
          "OrganizationFullName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace",
            "nullable": true
          },
          "Address": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Adresa provozovny nebo sídla",
            "nullable": true
          },
          "PremisesNumber": {
            "type": "integer",
            "description": "Číslo provozovny (0 = sídlo)",
            "format": "int32",
            "nullable": true
          },
          "IsValid": {
            "type": "boolean",
            "description": "Příznak platnosti"
          }
        },
        "additionalProperties": false,
        "description": "Provozovna nebo sídlo firmy nalezené podle IČ."
      },
      "CompanyType": {
        "enum": [
          "Unknown",
          "BusinessWithRegistrationNumber",
          "BusinessWithoutRegistrationNumber",
          "BusinessForeignEntity",
          "BusinessMunicipality",
          "NonBusinessCitizen"
        ],
        "type": "string",
        "description": "Typ firmy. V JSON se přenáší jako text (název hodnoty)."
      },
      "CountryDataManagerRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "Visible": {
            "type": "boolean",
            "description": "Pouze viditelné státy; bez zadání se vrátí všechny",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu států."
      },
      "CountryListGetDataModel": {
        "required": [
          "CountryCode",
          "CountryId",
          "CountryName"
        ],
        "type": "object",
        "properties": {
          "CountryId": {
            "type": "integer",
            "description": "Číselné ID státu",
            "format": "int32"
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Zkratka státu"
          },
          "CountryName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název státu"
          }
        },
        "additionalProperties": false,
        "description": "Stát v seznamu států."
      },
      "CustomerDataManagerRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "OrganizationName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace",
            "nullable": true
          },
          "OrganizationNameContinued": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "OrganizationIdentifier": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "Street": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Ulice",
            "nullable": true
          },
          "City": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Město",
            "nullable": true
          },
          "Country": {
            "maxLength": 5,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "RegisteredOffice": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Sídlo",
            "nullable": true
          },
          "Region": {
            "type": "integer",
            "description": "Obchodní region",
            "format": "int32",
            "nullable": true
          },
          "ContactPerson": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba",
            "nullable": true
          },
          "ParentOrganizationIdentifier": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Nadřízená organizace",
            "nullable": true
          },
          "Branch": {
            "type": "integer",
            "description": "Pobočka",
            "format": "int32",
            "nullable": true
          },
          "Valid": {
            "type": "integer",
            "description": "Platné",
            "format": "int32",
            "nullable": true
          },
          "ValidFrom": {
            "type": "string",
            "description": "Platnost od",
            "format": "date-time",
            "nullable": true
          },
          "ValidTo": {
            "type": "string",
            "description": "Platnost do",
            "format": "date-time",
            "nullable": true
          },
          "OrganizationGroupId": {
            "type": "integer",
            "description": "Skupina organizací",
            "format": "int32",
            "nullable": true
          },
          "PaymentMethod": {
            "type": "integer",
            "description": "Způsob placení",
            "format": "int32",
            "nullable": true
          },
          "UpdatedByPersonNumber": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "Autor",
            "nullable": true
          },
          "MarkedForDeletion": {
            "type": "boolean",
            "description": "Firma označena k odstranění",
            "nullable": true
          },
          "IsEntrepreneur": {
            "type": "boolean",
            "description": "Podnikající/nepodnikající osoba",
            "nullable": true
          },
          "BirthNumber": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Rodné číslo",
            "nullable": true
          },
          "CompanyTypeIds": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyType"
            },
            "description": "Typ společnosti: výběr z typů firem, každý nejvýše jednou",
            "nullable": true
          },
          "CompanyTypeNotSet": {
            "type": "boolean",
            "description": "Nepřiřazený typ firmy",
            "nullable": true
          },
          "CustomerNumber": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Číslo zákazníka",
            "nullable": true
          },
          "ExternalLink": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Externí vazba",
            "nullable": true
          },
          "GeoRegionId": {
            "type": "integer",
            "description": "Geografický region",
            "format": "int32",
            "nullable": true
          },
          "NameFromStart": {
            "type": "boolean",
            "description": "Název organizace Od počátku",
            "nullable": true
          },
          "IsContractPremises": {
            "type": "boolean",
            "description": "Provozovnou na smlouvě",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu firem."
      },
      "CustomerListGetDataModel": {
        "required": [
          "CompanyId",
          "Creditworthiness",
          "IsValid",
          "OrganizationIdentifier"
        ],
        "type": "object",
        "properties": {
          "OrganizationIdentifier": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace"
          },
          "OrganizationFullName": {
            "maxLength": 91,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ",
            "nullable": true
          },
          "Address": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Adresa",
            "nullable": true
          },
          "MunicipalityName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název obce",
            "nullable": true
          },
          "Phone": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Telefon",
            "nullable": true
          },
          "ContactPerson": {
            "maxLength": 57,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "CountryName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "RegisteredOffice": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Sídlo",
            "nullable": true
          },
          "ParentOrganizationName": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Nadřízená organizace",
            "nullable": true
          },
          "IsValid": {
            "type": "boolean",
            "description": "Příznak platnosti"
          },
          "PremisesNumber": {
            "type": "integer",
            "description": "Číslo provozovny (0 = sídlo)",
            "format": "int32",
            "nullable": true
          },
          "CompanyTypeDescription": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Typ firmy",
            "nullable": true
          },
          "CustomerNumber": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Číslo zákazníka",
            "nullable": true
          },
          "ExternalLink": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Externí vazba",
            "nullable": true
          },
          "Creditworthiness": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Bonita"
          },
          "CompanyId": {
            "type": "integer",
            "description": "Číselné ID firmy; jednoznačně identifikuje firmu stejně jako identifikátor organizace",
            "format": "int32"
          },
          "SapId": {
            "type": "integer",
            "description": "SAP_ID",
            "format": "int32",
            "nullable": true
          },
          "CompanyGroupName": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Skupina firem",
            "nullable": true
          },
          "CompanyGroupCount": {
            "type": "integer",
            "description": "Počet skupin firem",
            "format": "int32",
            "nullable": true
          },
          "EuVatNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "DIČ EU",
            "nullable": true
          },
          "SmsPhone": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "TelefonSMS",
            "nullable": true
          },
          "DocumentAddressName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název na doklady",
            "nullable": true
          },
          "DocumentAddressNameContinued": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu na doklady",
            "nullable": true
          },
          "DocumentAddressNameContinued2": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu 2",
            "nullable": true
          },
          "DocumentAddressStreet": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Ulice + č.p. na doklady",
            "nullable": true
          },
          "DocumentAddressCity": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Město na doklady",
            "nullable": true
          },
          "DocumentAddressPostalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "PSČ na doklady",
            "nullable": true
          },
          "DocumentAddressPostOffice": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pošta",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "OrpCode": {
            "type": "integer",
            "description": "Kód ORP",
            "format": "int32",
            "nullable": true
          },
          "ZujCode": {
            "type": "integer",
            "description": "ZUJ kód",
            "format": "int32",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "Iku": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "IKÚ",
            "nullable": true
          },
          "Iamvo": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "IAMVO",
            "nullable": true
          },
          "RegisteredAt": {
            "type": "string",
            "description": "Datum evidence",
            "format": "date-time",
            "nullable": true
          },
          "ChangedAt": {
            "type": "string",
            "description": "Datum aktualizace",
            "format": "date-time",
            "nullable": true
          },
          "UpdatedByPersonNumber": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Autor evidence - aktualizace",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Položka seznamu firem."
      },
      "CustomerModel": {
        "required": [
          "CompanyId",
          "HasNotificationDuty",
          "HasPoorPaymentDiscipline",
          "Invalidated",
          "IsAutoReminder",
          "IsEntrepreneur",
          "IsLockedByOwner",
          "IsValid",
          "IsVatPayer",
          "OrganizationIdentifier",
          "OrganizationName",
          "ReminderType"
        ],
        "type": "object",
        "properties": {
          "OrganizationIdentifier": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace"
          },
          "ExternalLink": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Externí vazba",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ",
            "nullable": true
          },
          "TaxOfficeNumber": {
            "type": "integer",
            "description": "Číslo daňového úřadu",
            "format": "int32",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "BirthNumber": {
            "maxLength": 11,
            "minLength": 0,
            "type": "string",
            "description": "Rodné číslo",
            "nullable": true
          },
          "IdCardNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Občanský průkaz",
            "nullable": true
          },
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "Alias": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "ALIAS",
            "nullable": true
          },
          "Department": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Oddělení - závod",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "Město",
            "format": "int32",
            "nullable": true
          },
          "PaymentMethod": {
            "type": "integer",
            "description": "Způsob placení",
            "format": "int32",
            "nullable": true
          },
          "ConstantSymbol": {
            "type": "integer",
            "description": "Konstantní symbol",
            "format": "int32",
            "nullable": true
          },
          "Phone": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Telefon",
            "nullable": true
          },
          "Fax": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Fax",
            "nullable": true
          },
          "DocumentAddressStreet": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Ulice + č.p. na doklady",
            "nullable": true
          },
          "DocumentAddressCity": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Město na doklady",
            "nullable": true
          },
          "DocumentAddressPostalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "PSČ na doklady",
            "nullable": true
          },
          "IsVatPayer": {
            "type": "boolean",
            "description": "Plátce DPH"
          },
          "HasPoorPaymentDiscipline": {
            "type": "boolean",
            "description": "Špatná plat. disciplína"
          },
          "SpecificSymbol": {
            "type": "number",
            "description": "Specifický symbol",
            "format": "double",
            "nullable": true
          },
          "CustomerDueDays": {
            "type": "integer",
            "description": "Splatnost odběratele (dní)",
            "format": "int32",
            "nullable": true
          },
          "EconomicActivityCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "OKEČ",
            "nullable": true
          },
          "IsValid": {
            "type": "boolean",
            "description": "Příznak platnosti"
          },
          "CustomerNumber": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Číslo zákazníka",
            "nullable": true
          },
          "Subsystem": {
            "type": "integer",
            "description": "Subsystém",
            "format": "int32",
            "nullable": true
          },
          "HasNotificationDuty": {
            "type": "boolean",
            "description": "Ohlašovací povinnost"
          },
          "ValidUntil": {
            "type": "string",
            "description": "Konec platnosti",
            "format": "date-time",
            "nullable": true
          },
          "Email": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "E-MAIL",
            "nullable": true
          },
          "StreetId": {
            "type": "integer",
            "description": "Ulice",
            "format": "int32",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "StreetName": {
            "maxLength": 54,
            "minLength": 0,
            "type": "string",
            "description": "Název ulice",
            "nullable": true
          },
          "StatutoryRepLastName": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - Příjmení",
            "nullable": true
          },
          "StatutoryRepFirstName": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - Jméno",
            "nullable": true
          },
          "StatutoryRepTitle": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - Titul",
            "nullable": true
          },
          "StatutoryRepPhone": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - Telefon",
            "nullable": true
          },
          "StatutoryRepPosition": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - Funkce",
            "nullable": true
          },
          "AuthorizedPersonLastName": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - Příjmení",
            "nullable": true
          },
          "AuthorizedPersonFirstName": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - Jméno",
            "nullable": true
          },
          "AuthorizedPersonTitle": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - Titul",
            "nullable": true
          },
          "AuthorizedPersonPhone": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - Telefon",
            "nullable": true
          },
          "AuthorizedPersonPosition": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - Funkce",
            "nullable": true
          },
          "ContactPersonLastName": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Příjmení",
            "nullable": true
          },
          "ContactPersonFirstName": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Jméno",
            "nullable": true
          },
          "ContactPersonTitle": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Titul",
            "nullable": true
          },
          "ContactPersonPhone": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Telefon",
            "nullable": true
          },
          "ContactPersonPosition": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Funkce",
            "nullable": true
          },
          "SeedId": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "SEED ID",
            "nullable": true
          },
          "Note": {
            "type": "string",
            "description": "Poznámka",
            "nullable": true
          },
          "RegisteredAt": {
            "type": "string",
            "description": "Datum evidence",
            "format": "date-time",
            "nullable": true
          },
          "Region": {
            "type": "integer",
            "description": "Umístění v regionu",
            "format": "int32",
            "nullable": true
          },
          "IsEntrepreneur": {
            "type": "boolean",
            "description": "Podnikající/nepodnikající osoba"
          },
          "Latitude": {
            "type": "number",
            "description": "Zem. šířka",
            "format": "double",
            "nullable": true
          },
          "Longitude": {
            "type": "number",
            "description": "Zem. délka",
            "format": "double",
            "nullable": true
          },
          "ChangedAt": {
            "type": "string",
            "description": "Datum aktualizace",
            "format": "date-time",
            "nullable": true
          },
          "RowVersion": {
            "type": "string",
            "description": "Verze záznamu (RowVersion)",
            "format": "byte",
            "nullable": true
          },
          "Invalidated": {
            "type": "boolean",
            "description": "Příznak historického záznamu"
          },
          "CoOwnerBirthNumber": {
            "maxLength": 11,
            "minLength": 0,
            "type": "string",
            "description": "Rodné číslo spoluvlast.",
            "nullable": true
          },
          "RegistrationNumber1": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Číslo registrace 1",
            "nullable": true
          },
          "RegistrationNumber2": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Číslo registrace 2",
            "nullable": true
          },
          "UpdatedByPersonNumber": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "Autor evidence - aktualizace",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Nadřízená organizace",
            "nullable": true
          },
          "Branch": {
            "type": "integer",
            "description": "Pobočka",
            "format": "int32",
            "nullable": true
          },
          "DocumentAddressName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název na doklady",
            "nullable": true
          },
          "DocumentAddressNameContinued": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu na doklady",
            "nullable": true
          },
          "DocumentAddressCountry": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Stát na doklady",
            "nullable": true
          },
          "IsLockedByOwner": {
            "type": "boolean",
            "description": "Uzamčeno vlastníkem"
          },
          "EuVatNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "DIČ EU",
            "nullable": true
          },
          "EuCompanyRegistrationNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "IČ EU",
            "nullable": true
          },
          "ReminderType": {
            "type": "integer",
            "description": "Upomínat",
            "format": "int32"
          },
          "CompanyId": {
            "type": "integer",
            "description": "Číselné ID firmy; jednoznačně identifikuje firmu stejně jako identifikátor organizace",
            "format": "int32"
          },
          "PremisesNumber": {
            "type": "integer",
            "description": "Číslo provozovny (0 = sídlo)",
            "format": "int32",
            "nullable": true
          },
          "CreatedAt": {
            "type": "string",
            "description": "Datum a čas založení záznamu",
            "format": "date-time",
            "nullable": true
          },
          "AbcClassificationId": {
            "type": "integer",
            "description": "Zařazení ABC",
            "format": "int32",
            "nullable": true
          },
          "ContactPersonEmail": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - e-mail",
            "nullable": true
          },
          "ContactPersonMobile": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Kontaktní osoba - Mobil",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx",
            "format": "int32",
            "nullable": true
          },
          "ElectronicCommunicationEmail": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "E-MAIL pro elektr. komunikaci",
            "nullable": true
          },
          "DataBoxId": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "ID datové schránky",
            "nullable": true
          },
          "CompanyType": {
            "$ref": "#/components/schemas/CompanyType"
          },
          "ZujCode": {
            "type": "integer",
            "description": "ZUJ kód",
            "format": "int32",
            "nullable": true
          },
          "IsAutoReminder": {
            "type": "boolean",
            "description": "Automaticky upomínat"
          },
          "OrpCode": {
            "type": "integer",
            "description": "Kód ORP",
            "format": "int32",
            "nullable": true
          },
          "StatutoryRepEmail": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Statutární zástupce - e-mail",
            "nullable": true
          },
          "AuthorizedPersonEmail": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Oprávněná osoba - e-mail",
            "nullable": true
          },
          "DocumentAddressNameContinued2": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu 2",
            "nullable": true
          },
          "DocumentAddressPostOffice": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pošta",
            "nullable": true
          },
          "SapId": {
            "type": "integer",
            "description": "SAP_ID",
            "format": "int32",
            "nullable": true
          },
          "SupplierDueDays": {
            "type": "integer",
            "description": "Splatnost dodavatele (dní)",
            "format": "int32",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "PremisesCount": {
            "type": "integer",
            "description": "Počet provozoven",
            "format": "int32",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "DealerId": {
            "type": "integer",
            "description": "Dealer",
            "format": "int32",
            "nullable": true
          },
          "VatControlStatementNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "DIČ KH",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "Iku": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "IKÚ",
            "nullable": true
          },
          "Iamvo": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "IAMVO",
            "nullable": true
          },
          "CarrierRegistration": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Registrácia dopravcu",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "CustomerModel"
      },
      "CustomerNewCitizenModel": {
        "required": [
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx (AddressId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PremisesNumber": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Číslo provozovny; 0 nebo prázdné = sídlo",
            "format": "int32",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace sídla (nadřízené organizace); povinný u provozovny",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Založení nepodnikajícího občana obce (typ 210): stejné údaje jako u firmy s IČ, jen bez IČ. Společné údaje viz\r\ndata.ros.bclogia.cz.Firmy.Models.CustomerNewBaseModel."
      },
      "CustomerNewForeignModel": {
        "required": [
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx (AddressId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PremisesNumber": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Číslo provozovny; 0 nebo prázdné = sídlo",
            "format": "int32",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace sídla (nadřízené organizace); povinný u provozovny",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Založení podnikajícího zahraničního subjektu (typ 113): stejné údaje jako u firmy s IČ, jen bez IČ. Společné údaje\r\nviz data.ros.bclogia.cz.Firmy.Models.CustomerNewBaseModel."
      },
      "CustomerNewModel": {
        "required": [
          "CompanyRegistrationNumber",
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx (AddressId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PremisesNumber": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Číslo provozovny; 0 nebo prázdné = sídlo",
            "format": "int32",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace sídla (nadřízené organizace); povinný u provozovny",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ"
          }
        },
        "additionalProperties": false,
        "description": "Založení podnikající firmy s IČ (typ 111). Společné údaje viz data.ros.bclogia.cz.Firmy.Models.CustomerNewBaseModel."
      },
      "CustomerNewMunicipalityModel": {
        "required": [
          "CompanyRegistrationNumber",
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx (AddressId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PremisesNumber": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Číslo provozovny; 0 nebo prázdné = sídlo",
            "format": "int32",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace sídla (nadřízené organizace); povinný u provozovny",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ"
          }
        },
        "additionalProperties": false,
        "description": "Založení podnikající obce s IČ (typ 120): stejné údaje jako u firmy s IČ. Společné údaje viz\r\ndata.ros.bclogia.cz.Firmy.Models.CustomerNewBaseModel."
      },
      "CustomerNewUnknownModel": {
        "required": [
          "IsEntrepreneur",
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          },
          "IsEntrepreneur": {
            "type": "boolean",
            "description": "Podnikající/nepodnikající osoba"
          }
        },
        "additionalProperties": false,
        "description": "Založení firmy bez rozlišení typu (typ firmy se neurčuje). Všechny hodnoty se předávají již dohledané; systém nic\r\nnedohledává. Ostatní hodnoty firmy se doplní výchozími hodnotami a lze je později změnit změnou firmy."
      },
      "CustomerNewWithoutRegistrationNumberModel": {
        "required": [
          "OrganizationName"
        ],
        "type": "object",
        "properties": {
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace"
          },
          "OrganizationNameContinued": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu",
            "nullable": true
          },
          "VatNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "DIČ",
            "nullable": true
          },
          "WinyxAddressId": {
            "type": "integer",
            "description": "ID adresy Winyx (AddressId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "ID města (CityId z dohledání geografie adresy)",
            "format": "int32",
            "nullable": true
          },
          "CityStreetId": {
            "type": "integer",
            "description": "ID ulice města, tedy vazby ulice na město (CityStreetId z dohledání geografie adresy), nikoli samotné ulice; ve firmě se ukládá jako StreetId",
            "format": "int32",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "HouseNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Č. p.",
            "nullable": true
          },
          "PremisesNumber": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Číslo provozovny; 0 nebo prázdné = sídlo",
            "format": "int32",
            "nullable": true
          },
          "ParentOrganization": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "description": "Identifikátor organizace sídla (nadřízené organizace); povinný u provozovny",
            "nullable": true
          },
          "Icz": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "IČZ",
            "nullable": true
          },
          "Icp": {
            "maxLength": 19,
            "minLength": 0,
            "type": "string",
            "description": "IČP",
            "nullable": true
          },
          "Icob": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČOB",
            "nullable": true
          },
          "Ics": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "IČS",
            "nullable": true
          },
          "CountryCode": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "description": "Stát",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Založení podnikající firmy bez IČ (typ 112): stejné údaje jako u firmy s IČ, jen bez IČ. Společné údaje viz\r\ndata.ros.bclogia.cz.Firmy.Models.CustomerNewBaseModel."
      },
      "ErrorIssue": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stabilní kód nálezu.",
            "nullable": true
          },
          "text": {
            "type": "string",
            "description": "Text pro uživatele.",
            "nullable": true
          },
          "field": {
            "type": "string",
            "description": "Dotčená vlastnost v požadavku, pokud je známa.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Nález kontroly dat nebo důvod, proč operaci nelze provést."
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "URI typu problému.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Stručný popis problému.",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "HTTP stavový kód.",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "description": "Podrobný popis konkrétní chyby.",
            "nullable": true
          },
          "traceId": {
            "type": "string",
            "description": "Identifikátor požadavku; uveďte ho při hlášení problému.",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "Kód chyby, podle kterého lze chybu v klientovi rozlišit, např. `RecNoExists`,\r\n`UNKNOWN_SORT_FIELD` nebo `INVALID_SORT_DIRECTION`. U chyb validace vstupu chybí.",
            "nullable": true
          },
          "outputText": {
            "type": "string",
            "description": "Doplňující informace k chybě (např. název chybějícího pole).",
            "nullable": true
          },
          "returnValue": {
            "type": "integer",
            "description": "Číselný kód výsledku operace.",
            "format": "int32",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Chyby vazby parametrů podle polí (jen u chyb validace vstupu).",
            "nullable": true
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorIssue"
            },
            "description": "Jednotlivé nálezy kontroly dat nebo důvody, proč operaci nelze provést (u zápisu firmy).",
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorWarning"
            },
            "description": "Upozornění, která musí uživatel potvrdit (jen u odpovědi s kódem `ConfirmationRequired`).",
            "nullable": true
          },
          "confirmationToken": {
            "type": "string",
            "description": "Token pro potvrzení (jen u odpovědi s kódem `ConfirmationRequired`). Pošlete ho v hlavičce\r\n`X-Confirmation-Token` při opakování stejného požadavku.",
            "nullable": true
          },
          "confirmationTokenExpiresAt": {
            "type": "string",
            "description": "Do kdy token platí (UTC).",
            "format": "date-time",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "description": "Proč se potvrzení vyžaduje: `TokenMissing` (první volání), `TokenInvalid`, `TokenExpired`,\r\n`SubjectMismatch` (token patří jinému volajícímu), `DataChanged` (data se od vydání tokenu změnila)\r\nnebo `NewWarnings` (přibyla další upozornění).",
            "nullable": true
          },
          "limit": {
            "type": "integer",
            "description": "Nejvyšší povolený počet souběžných výběrů (jen u odpovědi s kódem `SessionLimitExceeded`).",
            "format": "int32",
            "nullable": true
          },
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSessionModel"
            },
            "description": "Otevřené výběry uživatele (jen u odpovědi s kódem `SessionLimitExceeded`); nepotřebný smažte a volání zopakujte.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Chybová odpověď. Při chybě API vrací stavový kód 4xx nebo 5xx a tělo ve formátu\r\n`application/problem+json` (RFC 9457). Pro rozlišení chyby v klientovi používejte pole `code`."
      },
      "ErrorWarning": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stabilní kód upozornění, např. `DuplicateRegistrationNumber`.",
            "nullable": true
          },
          "text": {
            "type": "string",
            "description": "Text pro uživatele.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Upozornění, které musí uživatel potvrdit."
      },
      "ListSessionModel": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Identifikátor výběru (`requestId` z odpovědi seznamu); posílá se v hlavičce `x-request-id`.",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "Kdy byl výběr připraven (UTC).",
            "format": "date-time"
          },
          "rowCount": {
            "type": "integer",
            "description": "Počet záznamů ve výběru.",
            "format": "int32"
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "Za kolik sekund výběr vyprší, pokud se nepoužije. Každé použití platnost prodlouží.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Připravený výběr (seznam), který má uživatel otevřený."
      },
      "ListSessionsModel": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "description": "Nejvyšší povolený počet souběžných výběrů.",
            "format": "int32"
          },
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSessionModel"
            },
            "description": "Otevřené výběry, nejstarší první."
          }
        },
        "additionalProperties": false,
        "description": "Otevřené výběry uživatele a nejvyšší povolený počet."
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "Username": {
            "type": "string",
            "description": "Uživatelské jméno.",
            "nullable": true
          },
          "Password": {
            "type": "string",
            "description": "Heslo.",
            "nullable": true
          },
          "CaptchaToken": {
            "type": "string",
            "description": "Token ověření captcha, pokud se vyžaduje.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Přihlašovací údaje uživatele."
      },
      "PageOfAddressListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddressListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfCityListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CityListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfCompanyPlaceListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyPlaceListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfCountryListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CountryListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfCustomerListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfRegistryCompanyListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistryCompanyListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfRegistryFacilityListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistryFacilityListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "PageOfStreetListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StreetListGetDataModel"
            },
            "description": "Záznamy požadované stránky."
          },
          "count": {
            "type": "integer",
            "description": "Celkový počet záznamů ve výběru, bez ohledu na stránkování.",
            "format": "int32"
          },
          "requestId": {
            "type": "string",
            "description": "Identifikátor připraveného výběru. Je-li v odpovědi také cached = true, pošlete ho pro načtení dalších stránek v hlavičce x-request-id (se stejnými výběrovými parametry; na výsledek se uplatní jen Skip, Take a Sorted).",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BCPagingMessage"
            },
            "description": "Informační zprávy k odpovědi; může být prázdné. Kód CACHE_EXPIRED_RELOADED říká, že vypršený výběr byl obnoven (nové requestId); SELECTION_PARAMETERS_IGNORED, že s platným requestId přišly jiné výběrové parametry, které se neuplatnily.",
            "nullable": true
          },
          "cached": {
            "type": "boolean",
            "description": "Příznak, že je výběr připravený (uložený) na serveru. Pak se první volání (s výběrovými parametry) provede bez x-request-id a další strany se žádají s x-request-id a stále stejnými výběrovými parametry (databáze se nepoužije; bez hlavičky se vždy vrací první strana). Po vypršení se výběr obnoví s novým requestId a zprávou CACHE_EXPIRED_RELOADED. Při cached = false se každé volání vyhodnotí znovu."
          }
        },
        "additionalProperties": false,
        "description": "Stránka výsledků."
      },
      "RefreshRequest": {
        "type": "object",
        "properties": {
          "RefreshToken": {
            "type": "string",
            "description": "Obnovovací token získaný při přihlášení."
          }
        },
        "additionalProperties": false,
        "description": "Obnovovací token."
      },
      "RegistryCompanyDataManagerRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "type": "string",
            "description": "IČO",
            "nullable": true
          },
          "Name": {
            "type": "string",
            "description": "Název",
            "nullable": true
          },
          "ShortName": {
            "type": "string",
            "description": "Zkrácený název",
            "nullable": true
          },
          "PostalCode": {
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "Municipality": {
            "type": "string",
            "description": "Obec",
            "nullable": true
          },
          "MunicipalityPart": {
            "type": "string",
            "description": "Část obce",
            "nullable": true
          },
          "StreetAndNumber": {
            "type": "string",
            "description": "Ulice a číslo",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry vyhledání v registru ekonomických subjektů (RES), stránkování a řazení."
      },
      "RegistryCompanyListGetDataModel": {
        "required": [
          "CompanyRegistrationNumber",
          "EstablishedAt"
        ],
        "type": "object",
        "properties": {
          "CompanyRegistrationNumber": {
            "maxLength": 8,
            "minLength": 0,
            "type": "string",
            "description": "IČO"
          },
          "EstablishedAt": {
            "type": "string",
            "description": "Datum vzniku",
            "format": "date-time"
          },
          "DissolvedAt": {
            "type": "string",
            "description": "Datum zániku",
            "format": "date-time",
            "nullable": true
          },
          "DissolutionReasonCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Způsob zániku (kód)",
            "nullable": true
          },
          "LastUpdatedAt": {
            "type": "string",
            "description": "Datum poslední aktualizace",
            "format": "date-time",
            "nullable": true
          },
          "LegalFormCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Právní forma (kód)",
            "nullable": true
          },
          "NaceCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "CZ-NACE (kód)",
            "nullable": true
          },
          "EmployeeCategoryCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Kategorie počtu zaměstnanců (kód)",
            "nullable": true
          },
          "ZujCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Základní územní jednotka (kód)",
            "nullable": true
          },
          "Nuts4Code": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "NUTS 4 (kód)",
            "nullable": true
          },
          "InstitutionalSectorCode": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "description": "Institucionální sektor (kód)",
            "nullable": true
          },
          "Name": {
            "maxLength": 260,
            "minLength": 0,
            "type": "string",
            "description": "Název",
            "nullable": true
          },
          "ShortName": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Zkrácený název",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 5,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "Municipality": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Obec",
            "nullable": true
          },
          "MunicipalityPart": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Část obce",
            "nullable": true
          },
          "StreetAndNumber": {
            "maxLength": 60,
            "minLength": 0,
            "type": "string",
            "description": "Ulice a číslo",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Subjekt z registru ekonomických subjektů (RES)."
      },
      "RegistryFacilityDataManagerRequest": {
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "OperatorRegistrationNumber": {
            "type": "string",
            "description": "IČ provozovatele",
            "nullable": true
          },
          "ValidAt": {
            "type": "string",
            "description": "Datum, ke kterému se registr posuzuje",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry vyhledání v registru zařízení, stránkování a řazení."
      },
      "RegistryFacilityListGetDataModel": {
        "required": [
          "Icz"
        ],
        "type": "object",
        "properties": {
          "FacilityId": {
            "type": "integer",
            "description": "Číselné ID zařízení",
            "format": "int64"
          },
          "Icz": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "IČZ"
          },
          "OperatorRegistrationNumber": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "Provozovatel IČ",
            "nullable": true
          },
          "OperatorName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Provozovatel název",
            "nullable": true
          },
          "Street": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Ulice",
            "nullable": true
          },
          "City": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Obec",
            "nullable": true
          },
          "PostalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "PSČ",
            "nullable": true
          },
          "IsMobile": {
            "type": "boolean",
            "description": "Mobilní zařízení",
            "nullable": true
          },
          "MobileDeviceTypeName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Typ mobilního zařízení",
            "nullable": true
          },
          "ZujCode": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "ZUJ",
            "nullable": true
          },
          "ZujName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Název ZUJ",
            "nullable": true
          },
          "OperationConsentTypeName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Typ souhlasu s provozem zařízení",
            "nullable": true
          },
          "HasIppc": {
            "type": "integer",
            "description": "IPPC",
            "format": "int32",
            "nullable": true
          },
          "IppcNumber": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "Číslo IPPC",
            "nullable": true
          },
          "Latitude": {
            "type": "number",
            "description": "GPS šířka",
            "format": "double",
            "nullable": true
          },
          "Longitude": {
            "type": "number",
            "description": "GPS délka",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Zařízení z registru zařízení a jejich provozovatelů."
      },
      "Sort": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "description": "Název pole, podle kterého se řadí.",
            "nullable": true
          },
          "Direction": {
            "type": "string",
            "description": "Směr řazení: Ascending nebo Descending.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Řazení podle jednoho pole."
      },
      "StreetDataManagerRequest": {
        "required": [
          "CityId"
        ],
        "type": "object",
        "properties": {
          "Skip": {
            "type": "integer",
            "description": "Počet přeskočených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Take": {
            "type": "integer",
            "description": "Počet vrácených záznamů.",
            "format": "int32",
            "nullable": true
          },
          "Sorted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            },
            "description": "Řazení: seznam polí a směrů. Pole se zadává názvem vlastnosti výsledku; směr (`direction`) je\r\n`Ascending` (výchozí) nebo `Descending`, přijímá se i `asc`/`desc`.",
            "nullable": true
          },
          "Culture": {
            "type": "string",
            "description": "Jazyk požadavku (např. cs, sk, en).",
            "nullable": true
          },
          "CityId": {
            "type": "integer",
            "description": "Číselné ID města, ve kterém se ulice hledají",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu ulic. Seznam se vždy omezuje na jedno město."
      },
      "StreetListGetDataModel": {
        "required": [
          "CityId",
          "CityStreetId",
          "StreetId",
          "StreetName"
        ],
        "type": "object",
        "properties": {
          "CityStreetId": {
            "type": "integer",
            "description": "Číselné ID ulice města, tedy vazby ulice na město; zadává se jako ID ulice města při zakládání firmy",
            "format": "int32"
          },
          "CityId": {
            "type": "integer",
            "description": "Číselné ID města",
            "format": "int32"
          },
          "StreetId": {
            "type": "integer",
            "description": "Číselné ID ulice v číselníku ulic (bez vazby na město)",
            "format": "int32"
          },
          "StreetType": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Druh ulice (např. ulice, náměstí)",
            "nullable": true
          },
          "StreetName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název ulice"
          },
          "StreetNameContinued": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Pokračování názvu ulice",
            "nullable": true
          },
          "IsStandard": {
            "type": "boolean",
            "description": "Standardní ulice: nemá vazbu na externí zdroj (ulice, její vazba na město ani město)",
            "nullable": true
          },
          "Iku": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "IKÚ",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Ulice města v seznamu ulic."
      },
      "TokenResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "description": "Přístupový token (JWT); posílejte ho v hlavičce Authorization: Bearer ..."
          },
          "refresh_token": {
            "type": "string",
            "description": "Obnovovací token pro získání nového přístupového tokenu."
          },
          "expires_in": {
            "type": "integer",
            "description": "Platnost přístupového tokenu v sekundách.",
            "format": "int32"
          },
          "token_type": {
            "type": "string",
            "description": "Typ tokenu (Bearer)."
          },
          "scope": {
            "type": "string",
            "description": "Rozsah oprávnění tokenu."
          }
        },
        "additionalProperties": false,
        "description": "Přístupový a obnovovací token."
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Uživatel: token z metody login (Authorization: Bearer ...).",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}