{
  "openapi": "3.0.4",
  "info": {
    "title": "api.ros.bclogia.cz",
    "description": "Interface for users. You obtain the access token with the auth/login method.",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Signs the user in and issues an access token and a refresh token.",
        "requestBody": {
          "description": "User name, password and, if required, the captcha token.",
          "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": "Sign-in succeeded, the tokens are returned.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "The user name or password is missing, or the company cannot be determined.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Exchanges the refresh token for a new pair of tokens.",
        "requestBody": {
          "description": "The refresh 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": "The tokens were refreshed.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The refresh token is invalid or has expired.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Signs the user out and invalidates the refresh token.",
        "requestBody": {
          "description": "The refresh token to invalidate.",
          "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": "Sign-out succeeded."
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/calculation/import": {
      "post": {
        "tags": [
          "Calculations"
        ],
        "summary": "Imports the calculation of one plant.",
        "description": "The request contains the calculation header and three blocks of rows: waste, secondary raw materials and other services\n            (the number of rows is not limited). Only the supplied values are stored; totals, costs, revenues and margins are not recalculated.\n\nA calculation is identified by the customer's registration number (IČ), the period, the division and the plant. If such a calculation already exists,\n            it is replaced as a whole (the header and all rows), its identifier is kept and the response has\n            `replaced` = `true`. On error the original calculation stays unchanged.\n\nRow numbers are optional; rows without a number are numbered by their order in the array starting from 1. Row numbers must be\n            unique within a block.",
        "requestBody": {
          "description": "The calculation header and the rows of the individual blocks.",
          "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": "The existing calculation was replaced.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              }
            }
          },
          "201": {
            "description": "The calculation was newly stored.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculationImportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request, for example a wrong registration number (IČ), a period in the wrong order, an unknown classification, or a missing or non-existent waste ID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The calculation could not be stored; the original data remained unchanged.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns a page of the company list according to the given parameters.",
        "description": "The list is prepared (the response has `cached = true`), so there are two kinds of calls.\n\nThe first call (without the `x-request-id` header) runs a database query according to the selection parameters\n(`OrganizationName`, `CompanyRegistrationNumber` and others), prepares the result on the server, always\nreturns the first page (`Skip` is ignored) and the response contains `requestId`.\n\nSend the next calls with the value of `requestId` in the `x-request-id` header and with the same selection\nparameters: the database is not used and only `Skip`, `Take` and `Sorted` are applied to the prepared\nresult. You obtain a different selection with a new first call (without `x-request-id`). If you send, with a valid\n`x-request-id`, selection parameters other than those the selection was prepared with, the result stays the original one and\nthe response contains the warning `SELECTION_PARAMETERS_IGNORED`.\n\nIf the validity of the result has expired, the selection is reloaded: it is prepared again according to the selection parameters of this call,\nthe requested page from the new data, a new `requestId` and the message `CACHE_EXPIRED_RELOADED` are returned. That is why you should\nalways send the same selection parameters; without them the selection would be reloaded without a filter.\n\nYou can sort by the names of the fields of the response; the direction is `Ascending` (default) or `Descending`\n(`asc`/`desc` are accepted as well).\n\nThe number of concurrently open selections is limited (5 per user by default). Every first call opens one;\na selection is released by deleting it (`DELETE sessions/{requestId}`) or by expiry of its validity, which is\nextended with every use. When the limit is reached, `429` is returned with the list of open selections.\nAfter a company is successfully created, changed or removed, the selection identified by the `x-request-id` header is cancelled.",
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "description": "The identifier of the result from the response to the first call (`requestId`). For further pages send it\nin the `x-request-id` header (with the same selection parameters); omit it for the first call.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The selection parameters (the same in every call), `Skip` and `Take` for paging and `Sorted` for sorting.\nWith a valid `x-request-id` the selection parameters do not affect the result; they are used only when an expired selection is reloaded.",
          "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": "A page of the company list.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Unknown field or invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "You have the maximum allowed number of selections open (code `SessionLimitExceeded`); delete one you do not need.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/row": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns one company in the form of a list item.",
        "description": "The response has the same form as the list, but with at most one record. A non-existent company returns\nan empty result (`count = 0`).",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "The numeric ID of the company.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Culture",
            "in": "query",
            "description": "The language of messages (cs, sk, en); default cs.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The company in the form of a list item.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCustomerListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns the detail of a company by its numeric ID.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "The numeric ID of the company.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The company detail.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Company not found.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Companies"
        ],
        "summary": "Changes a company.",
        "description": "The change is complete (PUT): send all values of the company; a value you do not send is cleared. So first\n            read the company, change it and send it whole. The identity of the company is taken from the `CompanyId` parameter.\n\nIn the request the values `CompanyId`, `OrganizationIdentifier`, `CreatedAt`,\n            `ChangedAt`, `RowVersion`, `Invalidated`, `PremisesCount` and `IsLockedByOwner` are ignored. The company type\n            (`CompanyType`) cannot be changed: if it is not supplied it is kept, a different one than the stored one returns the error `CompanyTypeChange`.\n            The premises number and the headquarters (`PremisesNumber`, `ParentOrganization`) can be changed; the checks guard the uniqueness\n            of the headquarters and of the premises number. The response contains the whole stored record. The last write wins, concurrent changes are not guarded.\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "The numeric ID of the company.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The complete company data.",
          "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": "The company was changed; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example a change of the company type).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Company not found.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company cannot be changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Removes a company by replacing it with another company.",
        "description": "Removal requires a replacement company. A company cannot be removed if it is locked by its owner, has dependent companies\nor premises, or is both a replacing and a replaced company. The replacement company must exist and must not be the same\nas the company being removed.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "The numeric ID of the company being removed.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ReplacementCompanyId",
            "in": "query",
            "description": "The numeric ID of the company that will replace the removed company.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The company was removed."
          },
          "400": {
            "description": "The replacement company does not exist or is the same as the company being removed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Company not found.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The company cannot be removed (locked company, dependent companies or premises, a cycle in the replacements).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/exists": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Checks whether a company with the given numeric ID exists.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "description": "The numeric ID of the company.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The value `true` or `false`.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/company": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a business company with a registration number (IČ).",
        "description": "All values are passed already resolved; the system looks nothing up (data from the register, the address, city, street,\n            headquarters or the premises number). Find them before the call: the address, city and street with the method for resolving the address geography,\n            the headquarters and the number of the next premises with the methods for the list of headquarters and premises by registration number (IČ).\n\nHeadquarters or premises: a premises number of 0 or empty means the headquarters. For premises enter its number\n            and the organisation identifier of the headquarters (`ParentOrganization`). If a second headquarters with the same registration number or premises\n            with the same number is being created, an error is returned. The remaining values of the company are filled with defaults and can be changed by changing the company.\n\nConfirmation. If the system finds a warning that the user can confirm (another company with the same registration number, birth\n            number or VAT number (DIČ); a registration number or VAT number from the list of protected values), it does not create the company and returns `409` with the code\n            `ConfirmationRequired`, the list of warnings (`warnings`) and a token (`confirmationToken`). After the user approves,\n            repeat the same request and send the token in the `X-Confirmation-Token` header. The token is valid only\n            for this data, for you as the caller and for a limited time; if the data changes or a new warning is found,\n            `409` is returned again with a new token. An error (`400`) cannot be confirmed, the data must be corrected. Premises have the same registration number\n            as the headquarters, so creating premises always requires confirming the duplicate registration number.",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new company.",
          "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": "The company was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example the address is missing, the headquarters does not exist, an invalid registration number).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/company-noid": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a business company without a registration number (IČ).",
        "description": "The same as creating a company with a registration number, only the registration number is not entered. All values are passed already resolved; the system looks\n            nothing up. A premises number of 0 or empty means the headquarters; for premises enter its number and the\n            organisation identifier of the headquarters (`ParentOrganization`), which is a valid company without a registration number.\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new company.",
          "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": "The company was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example the address is missing, the headquarters does not exist).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/foreign": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a business foreign entity.",
        "description": "The same data as when creating a company with a registration number, only the registration number is not entered. All values are passed already resolved;\n            the system looks nothing up. Enter the country by the country code of the entity. A premises number of 0 or empty means the headquarters; for premises\n            enter its number and the organisation identifier of the headquarters (`ParentOrganization`), which is a valid foreign entity.\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new entity.",
          "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": "The entity was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example the headquarters does not exist).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/municipality": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a business municipality with a registration number (IČ).",
        "description": "The same data and behaviour as when creating a company with a registration number. All values are passed already resolved; the system looks\n            nothing up. A premises number of 0 or empty means the headquarters; for premises enter its number and the organisation identifier\n            of the headquarters (`ParentOrganization`).\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new municipality.",
          "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": "The municipality was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example the address is missing, the headquarters does not exist, an invalid registration number).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/citizen": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a non-business citizen of the municipality.",
        "description": "The same data as when creating a company with a registration number, only the registration number is not entered. All values are passed already resolved; the system\n            looks nothing up. A premises number of 0 or empty means the headquarters; for premises enter its number and the organisation identifier\n            of the headquarters (`ParentOrganization`).\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new citizen.",
          "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": "The citizen was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid (for example the address is missing, the headquarters does not exist).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/create/unknown": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a company without a type distinction.",
        "description": "The company type is not determined. You enter the name, registration number (IČ), VAT number (DIČ), city, street (the ID of the link between the street and the city), postal code, house number,\n            country and the flag of a business / non-business person. All values are passed already resolved; the system looks nothing up.\n            No data check by company type is performed.\n\nIn addition to the permission to create companies, this operation requires a special permission to enter companies without a type distinction;\n            without it, `403` with the code `MissingPermission` is returned.\n\nConfirming warnings (`409`, the token in the `X-Confirmation-Token` header) works the same as when creating a company\n            with a registration number (IČ).",
        "parameters": [
          {
            "name": "X-Confirmation-Token",
            "in": "header",
            "description": "The token from the `409` response when repeating the request; omit it on the first call.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The data of the new company.",
          "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": "The company was created; the body contains the stored record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerModel"
                }
              }
            }
          },
          "400": {
            "description": "The data is invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Confirmation is required (`code` = `ConfirmationRequired`) or the company already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/premises/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns the premises of a company by registration number (IČ).",
        "description": "Returns records with a premises number other than 0, including invalid ones (see `IsValid`). The headquarters of the company\nare returned by the `headquarters/list` method. You can sort by the names of the fields of the response; the direction is `Ascending`\n(default) or `Descending`.",
        "requestBody": {
          "description": "The registration number (IČ) and, if required, paging and sorting.",
          "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": "A page with the premises found; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "The registration number (IČ) is missing, an unknown field or an invalid sort direction.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/headquarters/list": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns the headquarters of a company by registration number (IČ).",
        "description": "Returns records with a premises number of 0, including invalid ones (see `IsValid`). The premises of the company are returned\nby the `premises/list` method. You can sort by the names of the fields of the response; the direction is `Ascending`\n(default) or `Descending`.",
        "requestBody": {
          "description": "The registration number (IČ) and, if required, paging and sorting.",
          "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": "A page with the headquarters found; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCompanyPlaceListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "The registration number (IČ) is missing, an unknown field or an invalid sort direction.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/premises/max-number": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns the highest premises number of a company by registration number (IČ).",
        "description": "Useful for determining the number of the next premises. If the company with the given registration number has no premises (or does not exist),\nit returns 0.",
        "parameters": [
          {
            "name": "CompanyRegistrationNumber",
            "in": "query",
            "description": "The registration number (IČ) of the company.",
            "schema": {
              "maxLength": 14,
              "minLength": 0,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The highest premises number.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMaxPremisesNumberModel"
                }
              }
            }
          },
          "400": {
            "description": "The registration number (IČ) is missing or too long.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns the open selections (sessions) of the company list of the signed-in user and the maximum allowed number.",
        "description": "A selection is created by the first call of the company list (`list` without the `x-request-id` header) and stays open\nuntil you delete it or until its validity expires. Every use extends the validity.",
        "responses": {
          "200": {
            "description": "The open selections, oldest first.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSessionsModel"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Deletes all open selections of the company list of the signed-in user.",
        "responses": {
          "204": {
            "description": "The selections were deleted (even if none was open)."
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions/{requestId}/refresh": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Extends the validity of an open selection.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "description": "The identifier of the selection (`requestId` from the list response).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The validity of the selection was extended."
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The selection does not exist or has already expired.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/company/sessions/{requestId}": {
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Deletes an open selection and thereby frees a place in the limit.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "description": "The identifier of the selection (`requestId` from the list response).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The selection was deleted."
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The selection does not exist or has already expired.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/address/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Searches addresses by the given parameters.",
        "description": "All selection parameters are optional and are combined. Text values are compared exactly; a value\ncontaining `*` is taken as a wildcard (for example `Hl*`). An empty text and a house number of 0 mean\n\"not specified\". The search returns at most 1000 addresses, from which the requested page is taken. You can sort by the names\nof the fields of the response; the direction is `Ascending` (default) or `Descending` (`asc`/`desc` are accepted as well).\nValues must not contain an apostrophe and must not be longer than the corresponding address field.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the addresses found; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfAddressListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter value, unknown field or invalid sort direction.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/address/geography/resolve": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Looks up the city and street for an address and creates them in the code lists if they are missing.",
        "description": "The input is the address point code (`AddressCode` from the address search) and the place type from which the city\nname is taken (municipality, municipality part, city district or post office). The method writes: a missing district, city, street and their\nlink are created, existing ones are used. Concurrent calls are queued. If an address with the given code does not exist,\n`AddressFound = false` is returned and nothing is created.",
        "requestBody": {
          "description": "The address point code and the place type.",
          "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": "The city and street found (or newly created).",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddressGeographyModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/city/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Returns a page of the list of cities of the given country.",
        "description": "The country is required (`CountryCode`). The other parameters are optional and are combined. The city name\n(`CityName`) is searched from the beginning; the wildcard `*` at the beginning searches anywhere in the name. At most\n1000 cities are returned from the selection, so enter a sufficiently narrow selection. You can sort by the names of the fields of the response; the direction is\n`Ascending` (default) or `Descending` (`asc`/`desc` are accepted as well). The default sorting is\nby city name.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the list of cities; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCityListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "The country is missing, an unknown field or an invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/street/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Returns a page of the list of streets of the given city.",
        "description": "The city is required (`CityId`); without it no street is returned. The `CityStreetId` value from the response is the ID of the street\nof the city, which is entered when creating a company. You can sort by the names of the fields of the response; the direction is `Ascending`\n(default) or `Descending` (`asc`/`desc` are accepted as well). The default sorting is by street name.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the list of streets; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfStreetListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "The city is missing, an unknown field or an invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/country/list": {
      "post": {
        "tags": [
          "Geography"
        ],
        "summary": "Returns a page of the list of countries.",
        "description": "You can sort by the names of the fields of the response (`CountryId`, `CountryCode`, `CountryName`);\nthe direction is `Ascending` (default) or `Descending` (`asc`/`desc` are accepted as well).\nThe default sorting is by the country abbreviation.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the list of countries.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCountryListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Unknown field or invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/registry/isoh/list": {
      "post": {
        "tags": [
          "Registry"
        ],
        "summary": "Searches facilities in the register of facilities and their operators.",
        "description": "The selection parameters are optional. You can sort by the names of the fields of the response; the direction is `Ascending` (default)\nor `Descending` (`asc`/`desc` are accepted as well). The default sorting is by facility ID.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the facilities found; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryFacilityListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Unknown field or invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/v1/registry/company/list": {
      "post": {
        "tags": [
          "Registry"
        ],
        "summary": "Searches entities in the register of economic entities (RES).",
        "description": "All selection parameters are optional and are combined. You can sort by the names of the fields of the response;\nthe direction is `Ascending` (default) or `Descending` (`asc`/`desc` are accepted as well).\nThe default sorting is by IČO.",
        "requestBody": {
          "description": "The selection parameters, paging and sorting.",
          "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": "A page of the entities found; it may be empty.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfRegistryCompanyListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Unknown field or invalid sort direction, or an invalid request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing or invalid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "You do not have permission for this operation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "The request could not be processed because of a server-side error.",
            "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": "User: token from the login method (Authorization: Bearer ...).",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}