{
  "openapi": "3.0.4",
  "info": {
    "title": "api.ros.bclogia.cz",
    "description": "Rozhraní pro systémovou integraci. Přihlášení: OAuth2 client credentials (ClientID a ClientSecret), scope ros.",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/system/commodity/list": {
      "post": {
        "tags": [
          "Commodities"
        ],
        "summary": "Vrátí stránku seznamu komodit odpadů.",
        "description": "Parametry výběru jsou volitelné a kombinují se. Řadit lze podle názvů polí z odpovědi; směr je `Ascending`\r\n(výchozí) nebo `Descending` (přijímá se i `asc`/`desc`). Výchozí řazení je podle ID komodity.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommodityDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CommodityDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CommodityDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu komodit; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCommodityListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCommodityListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfCommodityListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2-System": [
              "ros"
            ]
          }
        ]
      }
    },
    "/api/v1/system/company/list_changed": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí dávku firem, které se změnily od zadané verze záznamu.",
        "description": "Slouží k průběžné synchronizaci. První dávku vyžádejte s prázdným `LastRv`. Do dalšího požadavku\r\npošlete hodnotu `RowVersion` z posledního záznamu předchozí dávky. Záznamy jsou seřazené podle verze\r\na prázdný seznam znamená, že už žádné další změny nejsou.\r\nZrušená firma se vrací se `Deleted = true`; je-li nahrazena jinou, je uvedeno její ID v `ReplacedById`.\r\nVelikost dávky je 1 až 100, výchozí 20.",
        "requestBody": {
          "description": "Poslední načtená verze záznamu a velikost dávky.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListChangedRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ListChangedRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ListChangedRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Dávka změn; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerChangedModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerChangedModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerChangedModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2-System": [
              "ros"
            ]
          }
        ]
      }
    },
    "/api/v1/system/company/read_batch": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Vrátí detail firem podle seznamu jejich ID.",
        "description": "Typicky se volá se seznamem ID z odpovědi `list_changed`. Neexistující ID se ve výsledku neobjeví\r\na opakovaná ID se zpracují jednou. Seznam smí obsahovat nejvýše 100 ID.",
        "requestBody": {
          "description": "Seznam ID firem.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchReadRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchReadRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchReadRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Nalezené firmy; může být prázdný seznam.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Chybí seznam ID nebo obsahuje víc než 100 položek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2-System": [
              "ros"
            ]
          }
        ]
      }
    },
    "/api/v1/system/service/rows/list": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Vrátí stránku seznamu řádků činností.",
        "description": "Parametry výběru jsou volitelné a kombinují se. Řadit lze podle názvů polí z odpovědi; směr je `Ascending`\r\n(výchozí) nebo `Descending` (přijímá se i `asc`/`desc`). Výchozí řazení je podle ID řádku činnosti.\r\nPříznak `IsValid` říká, zda řádek platí k aktuálnímu dni, `IsGlobal` označuje řádek bez pobočky.",
        "requestBody": {
          "description": "Parametry výběru, stránkování a řazení.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceRowDataManagerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceRowDataManagerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceRowDataManagerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stránka seznamu řádků činností; může být prázdná.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfServiceRowListGetDataModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfServiceRowListGetDataModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfServiceRowListGetDataModel"
                }
              }
            }
          },
          "400": {
            "description": "Neznámé pole nebo neplatný směr řazení, případně neplatný požadavek.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2-System": [
              "ros"
            ]
          }
        ]
      }
    },
    "/api/v1/system/version": {
      "get": {
        "tags": [
          "Version"
        ],
        "summary": "Vrátí informace o verzi API.",
        "description": "Hodí se ke kontrole dostupnosti API a platnosti přístupového tokenu.",
        "responses": {
          "200": {
            "description": "Informace o verzi.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SourceVersionInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceVersionInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceVersionInfo"
                }
              }
            }
          },
          "401": {
            "description": "Chybí nebo je neplatný přístupový token.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "K této operaci nemáte oprávnění.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Požadavek se nepodařilo zpracovat kvůli chybě na straně serveru.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2-System": [
              "ros"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "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."
      },
      "BatchReadRequestModel": {
        "required": [
          "IDS"
        ],
        "type": "object",
        "properties": {
          "IDS": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Seznam ID firem, nejvýše 100 položek"
          }
        },
        "additionalProperties": false,
        "description": "Požadavek na načtení firem podle seznamu ID."
      },
      "CommodityDataManagerRequest": {
        "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
          },
          "WasteId": {
            "type": "integer",
            "description": "Číselné ID odpadu; bez zadání se vrátí komodity všech odpadů",
            "format": "int32",
            "nullable": true
          },
          "CatalogId": {
            "type": "integer",
            "description": "Číselné ID katalogu odpadů; bez zadání se vrátí komodity všech katalogů",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu komodit."
      },
      "CommodityListGetDataModel": {
        "required": [
          "CatalogId",
          "CatalogName",
          "CategoryCode",
          "CommodityId",
          "IsWasteCatalog",
          "WasteCode",
          "WasteId",
          "WasteName"
        ],
        "type": "object",
        "properties": {
          "CommodityId": {
            "type": "integer",
            "description": "Číselné ID komodity",
            "format": "int32"
          },
          "WasteId": {
            "type": "integer",
            "description": "Číselné ID odpadu",
            "format": "int32"
          },
          "CatalogId": {
            "type": "integer",
            "description": "Číselné ID katalogu odpadů",
            "format": "int32"
          },
          "WasteCode": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Kód odpadu"
          },
          "WasteName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Název odpadu"
          },
          "CategoryCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Zkratka kategorie"
          },
          "Specification": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "Specifikace komodity",
            "nullable": true
          },
          "CatalogName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Název katalogu"
          },
          "IsWasteCatalog": {
            "type": "boolean",
            "description": "Katalog je katalogem odpadů"
          }
        },
        "additionalProperties": false,
        "description": "Komodita odpadu v seznamu komodit."
      },
      "CompanyType": {
        "enum": [
          "Unknown",
          "BusinessWithRegistrationNumber",
          "BusinessWithoutRegistrationNumber",
          "BusinessForeignEntity",
          "BusinessMunicipality",
          "NonBusinessCitizen"
        ],
        "type": "string",
        "description": "Typ firmy. V JSON se přenáší jako text (název hodnoty)."
      },
      "CustomerChangedModel": {
        "required": [
          "CompanyId",
          "Deleted",
          "Invalidated"
        ],
        "type": "object",
        "properties": {
          "CompanyId": {
            "type": "integer",
            "description": "Číselné ID firmy",
            "format": "int32"
          },
          "RowVersion": {
            "type": "string",
            "description": "Verze záznamu (RowVersion); hodnotu z posledního záznamu dávky pošlete jako LastRv v dalším požadavku",
            "format": "byte",
            "nullable": true
          },
          "Invalidated": {
            "type": "boolean",
            "description": "Firma je neplatná (zneplatněná nebo zrušená)"
          },
          "ReplacedById": {
            "type": "integer",
            "description": "ID firmy, která tuto firmu nahradila; prázdné, pokud nebyla nahrazena",
            "format": "int32",
            "nullable": true
          },
          "ChangedAt": {
            "type": "string",
            "description": "Datum aktualizace",
            "format": "date-time",
            "nullable": true
          },
          "OrganizationName": {
            "maxLength": 40,
            "minLength": 0,
            "type": "string",
            "description": "Název organizace (u fyzicky smazané firmy text 'deleted')",
            "nullable": true
          },
          "CompanyRegistrationNumber": {
            "maxLength": 14,
            "minLength": 0,
            "type": "string",
            "description": "IČ",
            "nullable": true
          },
          "Deleted": {
            "type": "boolean",
            "description": "Firma byla smazána; vyplněné zůstává jen ID, ReplacedById a RowVersion"
          }
        },
        "additionalProperties": false,
        "description": "Změněná firma v dávce synchronizace."
      },
      "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"
      },
      "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."
      },
      "ListChangedRequestModel": {
        "type": "object",
        "properties": {
          "LastRv": {
            "type": "string",
            "description": "Verze posledního načteného záznamu (RowVersion). Při prvním požadavku vynechte.",
            "format": "byte",
            "nullable": true
          },
          "BatchSize": {
            "type": "integer",
            "description": "Počet záznamů v dávce (1 až 100, výchozí 20)",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Požadavek na dávku změněných firem."
      },
      "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ý."
      },
      "PageOfCommodityListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommodityListGetDataModel"
            },
            "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ů."
      },
      "PageOfServiceRowListGetDataModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceRowListGetDataModel"
            },
            "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ů."
      },
      "ServiceClassification": {
        "enum": [
          "Transport",
          "Analysis",
          "WasteQuantityRelated",
          "Other",
          "DistanceRelated",
          "Rental",
          "Containers"
        ],
        "type": "string",
        "description": "Klasifikace činnosti. V JSON se přenáší jako text (název hodnoty)."
      },
      "ServiceRowDataManagerRequest": {
        "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
          },
          "ServiceNumberFrom": {
            "type": "integer",
            "description": "Číslo činnosti od",
            "format": "int32",
            "nullable": true
          },
          "ServiceNumberTo": {
            "type": "integer",
            "description": "Číslo činnosti do",
            "format": "int32",
            "nullable": true
          },
          "ServiceName": {
            "type": "string",
            "description": "Název činnosti",
            "nullable": true
          },
          "ServiceClassification": {
            "$ref": "#/components/schemas/ServiceClassification"
          },
          "ServiceTypeId": {
            "type": "integer",
            "description": "Číselné ID typu činnosti",
            "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
          },
          "CostCenterId": {
            "type": "integer",
            "description": "Číselné ID střediska",
            "format": "int32",
            "nullable": true
          },
          "ServiceGroupId": {
            "type": "integer",
            "description": "Číselné ID skupiny činností",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Parametry výběru, stránkování a řazení seznamu řádků činností."
      },
      "ServiceRowListGetDataModel": {
        "required": [
          "CostCenterId",
          "InvoiceText",
          "InvoicingType",
          "Quantity",
          "ServiceClassification",
          "ServiceId",
          "ServiceName",
          "ServiceNumber",
          "ServiceRowId",
          "UnitPriceKc",
          "UnitPriceOc",
          "ValidFrom"
        ],
        "type": "object",
        "properties": {
          "ServiceRowId": {
            "type": "integer",
            "description": "Číselné ID řádku činnosti",
            "format": "int32"
          },
          "ServiceId": {
            "type": "integer",
            "description": "Číselné ID činnosti",
            "format": "int32"
          },
          "ServiceNumber": {
            "type": "integer",
            "description": "Číslo činnosti zadané uživatelem",
            "format": "int32"
          },
          "ServiceName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Název činnosti"
          },
          "ValidFrom": {
            "type": "string",
            "description": "Platnost řádku od",
            "format": "date-time"
          },
          "ValidTo": {
            "type": "string",
            "description": "Platnost řádku do; prázdné = bez omezení",
            "format": "date-time",
            "nullable": true
          },
          "InvoiceText": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Text činnosti na fakturu"
          },
          "ServiceClassification": {
            "$ref": "#/components/schemas/ServiceClassification"
          },
          "ServiceTypeId": {
            "type": "integer",
            "description": "Číselné ID typu činnosti",
            "format": "int32",
            "nullable": true
          },
          "ServiceTypeName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Typ činnosti",
            "nullable": true
          },
          "UnitOfMeasure": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "description": "Měrná jednotka",
            "nullable": true
          },
          "Quantity": {
            "type": "number",
            "description": "Množství",
            "format": "double"
          },
          "UnitPriceKc": {
            "type": "number",
            "description": "Cena za měrnou jednotku (KČ)",
            "format": "double"
          },
          "UnitPriceOc": {
            "type": "number",
            "description": "Cena za měrnou jednotku (OC)",
            "format": "double"
          },
          "CostCenterId": {
            "type": "integer",
            "description": "Číselné ID střediska",
            "format": "int32"
          },
          "InvoicingType": {
            "type": "integer",
            "description": "Typ fakturace",
            "format": "int32"
          },
          "BranchId": {
            "type": "integer",
            "description": "Číselné ID pobočky; prázdné = platí pro všechny pobočky",
            "format": "int32",
            "nullable": true
          },
          "BranchName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Pobočka",
            "nullable": true
          },
          "IsValid": {
            "type": "boolean",
            "description": "Řádek platí k dnešnímu dni",
            "nullable": true
          },
          "IsGlobal": {
            "type": "boolean",
            "description": "Řádek platí pro všechny pobočky (nemá zadanou pobočku)",
            "nullable": true
          },
          "ActivityId": {
            "type": "integer",
            "description": "Číselné ID aktivity",
            "format": "int32",
            "nullable": true
          },
          "ActivityName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Aktivita",
            "nullable": true
          },
          "OrderId": {
            "type": "integer",
            "description": "Číselné ID zakázky",
            "format": "int32",
            "nullable": true
          },
          "OrderNumber": {
            "maxLength": 16,
            "minLength": 0,
            "type": "string",
            "description": "Číslo zakázky",
            "nullable": true
          },
          "OrderName": {
            "maxLength": 60,
            "minLength": 0,
            "type": "string",
            "description": "Název zakázky",
            "nullable": true
          },
          "MarginName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Marže",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Řádek činnosti (platnost, množství a ceny činnosti)."
      },
      "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."
      },
      "SourceVersionInfo": {
        "type": "object",
        "properties": {
          "BuildNumber": {
            "type": "string",
            "description": "Číslo buildu (Git commit count)",
            "nullable": true
          },
          "SourceHash": {
            "type": "string",
            "description": "SHA256 hash všech zdrojových souborů (plný)",
            "nullable": true
          },
          "SourceHashShort": {
            "type": "string",
            "description": "SHA256 hash všech zdrojových souborů (zkrácený - prvních 12 znaků)",
            "nullable": true
          },
          "GitCommitHash": {
            "type": "string",
            "description": "Git commit hash (pokud je dostupný)",
            "nullable": true
          },
          "Version": {
            "type": "string",
            "description": "Verze ve formátu BuildNumber-SourceHash",
            "nullable": true
          },
          "BuildDate": {
            "type": "string",
            "description": "Datum a čas buildu (UTC)",
            "nullable": true
          },
          "FileCount": {
            "type": "integer",
            "description": "Počet souborů zahrnutých v hashi",
            "format": "int32",
            "nullable": true
          },
          "PathCount": {
            "type": "integer",
            "description": "Počet adresářů zahrnutých v hashi",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Obsahuje informace o verzi buildu generované při kompilaci"
      }
    },
    "securitySchemes": {
      "OAuth2-System": {
        "type": "oauth2",
        "description": "Přihlášení systému: ClientID a ClientSecret, scope 'ros'.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://identity.bclogia.cz/connect/token",
            "scopes": {
              "ros": "ROS system access"
            }
          }
        }
      },
      "Company": {
        "type": "apiKey",
        "description": "System: firma (např. BCLTest). Odesílá se jako parametr 'company' při získání tokenu.",
        "name": "X-Company",
        "in": "header"
      }
    }
  }
}