{
  "definitions": {
    "AccountingTransactionUserResponse": {
      "properties": {
        "accountingTransactionId": {
          "description": "Идентификатор транзакции",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента",
          "type": "string"
        },
        "documentId": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "sum": {
          "description": "Сумма транзакции",
          "type": "number"
        },
        "type": {
          "description": "Тип транзакции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ApiPurchasing_pkg_response.ErrorResponse": {
      "properties": {
        "details": {
          "description": "Дополнительные данные об ошибке\nNullable"
        },
        "message": {
          "description": "Текст ошибки",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Barcode": {
      "properties": {
        "value": {
          "description": "Штрихкод",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BarcodeItem": {
      "properties": {
        "barcode": {
          "description": "Значение штрихкода",
          "type": "string"
        },
        "containerId": {
          "description": "ID контейнера",
          "type": "string"
        },
        "type": {
          "description": "Тип штрихкода",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CashFlowCategoriesResponse": {
      "properties": {
        "cash-flow-category": {
          "items": {
            "$ref": "#/definitions/CashFlowCategory"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "CashFlowCategory": {
      "properties": {
        "code": {
          "type": "string"
        },
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "type": "string"
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "type": "integer"
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "type": "string"
        },
        "parentCategory": {
          "type": "string",
          "x-nullable": true
        },
        "revision": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ChoiceBinding": {
      "properties": {
        "childModifiers": {
          "items": {
            "$ref": "#/definitions/ChoiceBinding"
          },
          "type": "array"
        },
        "childModifiersHaveMinMaxRestrictions": {
          "type": "boolean"
        },
        "defaultAmount": {
          "type": "integer"
        },
        "freeOfChargeAmount": {
          "type": "integer"
        },
        "hideIfDefaultAmount": {
          "type": "boolean"
        },
        "maximumAmount": {
          "type": "integer"
        },
        "minimumAmount": {
          "type": "integer"
        },
        "modifier": {
          "type": "string",
          "x-nullable": true
        },
        "required": {
          "type": "boolean"
        },
        "splittable": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ChoiceBindingRedefinition": {
      "properties": {
        "childModifiers": {
          "items": {
            "$ref": "#/definitions/ChoiceBindingRedefinition"
          },
          "type": "array"
        },
        "defaultAmount": {
          "type": "integer"
        },
        "freeOfChargeAmount": {
          "type": "integer"
        },
        "maximumAmount": {
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "minimumAmount": {
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "modifier": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "Container": {
      "properties": {
        "containerWeight": {
          "type": "number"
        },
        "count": {
          "type": "number"
        },
        "deleted": {
          "type": "boolean"
        },
        "franchiseMasterId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseOriginalId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseUniqueId": {
          "type": "string",
          "x-nullable": true
        },
        "fullContainerWeight": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "maxContainerWeight": {
          "type": "number"
        },
        "minContainerWeight": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "num": {
          "type": "string"
        },
        "useInFront": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "CostPriceItem": {
      "properties": {
        "amountFactor": {
          "description": "Коэффициент количества",
          "type": "number"
        },
        "isEvaluative": {
          "description": "Признак оценочной цены",
          "type": "boolean"
        },
        "productId": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "productSize": {
          "description": "Идентификатор размера продукта (GUID)",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        },
        "value": {
          "description": "Значение себестоимости",
          "type": "number"
        }
      },
      "type": "object"
    },
    "Counteragent": {
      "properties": {
        "cardNumber": {
          "description": "Номер карты",
          "type": "string"
        },
        "cellPhone": {
          "description": "Мобильный телефон",
          "type": "string"
        },
        "client": {
          "description": "Является клиентом",
          "type": "boolean"
        },
        "code": {
          "description": "Код контрагента",
          "type": "string"
        },
        "company": {
          "description": "Компания",
          "type": "string"
        },
        "email": {
          "description": "Email",
          "type": "string"
        },
        "employee": {
          "description": "Является сотрудником",
          "type": "boolean"
        },
        "firstName": {
          "description": "Имя",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор контрагента (GUID)",
          "type": "string"
        },
        "lastName": {
          "description": "Фамилия",
          "type": "string"
        },
        "middleName": {
          "description": "Отчество",
          "type": "string"
        },
        "name": {
          "description": "Название контрагента",
          "type": "string"
        },
        "phone": {
          "description": "Телефон",
          "type": "string"
        },
        "supplier": {
          "description": "Является поставщиком",
          "type": "boolean"
        },
        "supplierType": {
          "description": "Тип поставщика",
          "type": "string"
        },
        "taxpayerIdNumber": {
          "description": "ИНН",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateIncomingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/IncomingServiceJSON"
            }
          ],
          "description": "Данные акта приема услуг"
        }
      },
      "type": "object"
    },
    "CreateIncomingServiceResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор созданного документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер созданного документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateInternalTransferRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/InternalTransferJSON"
            }
          ],
          "description": "Данные акта внутреннего перемещения"
        }
      },
      "type": "object"
    },
    "CreateOutgoingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/OutgoingServiceJSON"
            }
          ],
          "description": "Данные акта оказания услуг"
        }
      },
      "type": "object"
    },
    "CreateOutgoingServiceResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор созданного документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер созданного документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateProductionDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/ProductionDocumentJSON"
            }
          ],
          "description": "Данные акта приготовления"
        }
      },
      "type": "object"
    },
    "CreateProductionDocumentResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор созданного документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер созданного документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateSalesDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/SalesDocumentJSON"
            }
          ],
          "description": "Данные акта реализации"
        }
      },
      "type": "object"
    },
    "CreateSalesDocumentResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор созданного документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер созданного документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateWriteoffDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/WriteoffDocumentJSON"
            }
          ],
          "description": "Данные акта списания"
        }
      },
      "type": "object"
    },
    "DocumentValidationResult": {
      "properties": {
        "documentId": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "errorMessage": {
          "description": "Сообщение результата валидации",
          "type": "string"
        },
        "message": {
          "description": "Сообщение результата валидации",
          "type": "string"
        },
        "valid": {
          "description": "Документ прошел валидацию",
          "type": "boolean"
        },
        "warning": {
          "description": "Есть предупреждения при валидации документа",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "EditIncomingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/IncomingServiceJSON"
            }
          ],
          "description": "Данные акта приема услуг"
        }
      },
      "type": "object"
    },
    "EditIncomingServiceResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EditInternalTransferRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/InternalTransferJSON"
            }
          ],
          "description": "Данные акта внутреннего перемещения"
        }
      },
      "type": "object"
    },
    "EditOutgoingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/OutgoingServiceJSON"
            }
          ],
          "description": "Данные акта оказания услуг"
        }
      },
      "type": "object"
    },
    "EditOutgoingServiceResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EditProductionDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/ProductionDocumentJSON"
            }
          ],
          "description": "Данные акта приготовления"
        }
      },
      "type": "object"
    },
    "EditProductionDocumentResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EditSalesDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/SalesDocumentJSON"
            }
          ],
          "description": "Данные акта реализации"
        }
      },
      "type": "object"
    },
    "EditSalesDocumentResponse": {
      "properties": {
        "documentId": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EditWriteoffDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "document": {
          "allOf": [
            {
              "$ref": "#/definitions/WriteoffDocumentJSON"
            }
          ],
          "description": "Данные акта списания"
        }
      },
      "type": "object"
    },
    "ExportByNumberRequest": {
      "properties": {
        "currentYear": {
          "description": "Признак поиска за текущий год",
          "type": "boolean"
        },
        "departmentId": {
          "description": "Идентификатор подразделения (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (YYYY-MM-DD)",
          "type": "string"
        },
        "number": {
          "description": "Номер документа",
          "type": "string"
        },
        "to": {
          "description": "Дата окончания периода (YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportIncomingInvoiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "revisionFrom": {
          "description": "Начальная ревизия документа (опционально)",
          "type": "integer",
          "x-nullable": true
        },
        "supplierId": {
          "description": "Идентификатор поставщика (GUID, опционально)",
          "type": "string",
          "x-nullable": true
        },
        "to": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportIncomingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "to": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportInternalTransferRequest": {
      "properties": {
        "dateFrom": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "dateTo": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "revisionFrom": {
          "description": "Начальная ревизия (опционально)",
          "type": "integer",
          "x-nullable": true
        },
        "status": {
          "description": "Статус документа (опционально)",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ExportOutgoingInvoiceRequest": {
      "properties": {
        "counteragentId": {
          "description": "Контрагент (идентификатор)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор подразделения (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Начальная дата периода (YYYY-MM-DD)",
          "type": "string"
        },
        "revisionFrom": {
          "description": "Номер ревизии, начиная с которой выполнять выгрузку",
          "type": "integer"
        },
        "to": {
          "description": "Конечная дата периода (YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportOutgoingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "to": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportProductionDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "to": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportSalesDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "from": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "to": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ExportWriteoffDocumentRequest": {
      "properties": {
        "dateFrom": {
          "description": "Дата начала периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "dateTo": {
          "description": "Дата окончания периода (формат YYYY-MM-DD)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "revisionFrom": {
          "description": "Начальная ревизия (опционально)",
          "type": "integer",
          "x-nullable": true
        },
        "status": {
          "description": "Статус документа (опционально)",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "FilterCond": {
      "properties": {
        "field": {
          "description": "Наименование поля для фильтрации",
          "example": "revision",
          "type": "string"
        },
        "op": {
          "description": "Операция (\"eq\",\"ne\",\"gt\",\"gte\",\"lt\",\"lte\",\"in\",\"nin\",\"like\",\"blank\",\"notblank\")",
          "example": "gt",
          "type": "string"
        },
        "value": {
          "description": "Значение для фильтрации по полю",
          "example": "77474570",
          "type": "string"
        },
        "values": {
          "description": "Значение для множественной фильтрации (\"in\", \"nin\")\nNullable",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "GetCostPricesRequest": {
      "properties": {
        "dateIncoming": {
          "description": "Дата для расчета себестоимости (формат ISO8601, например 2025-12-26T12:40:26.801+03:00)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список позиций номенклатуры для получения себестоимости",
          "items": {
            "$ref": "#/definitions/PriceItem"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "GetCostPricesResponse": {
      "properties": {
        "items": {
          "description": "Список себестоимостей позиций",
          "items": {
            "$ref": "#/definitions/CostPriceItem"
          },
          "type": "array"
        },
        "problemItems": {
          "description": "publicapi.model.get_cost_prices_response.problemItems",
          "items": {
            "$ref": "#/definitions/PriceItem"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "GetCounteragentsRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "limit": {
          "description": "Количество записей для возврата (1-500)",
          "type": "integer"
        },
        "offset": {
          "description": "Смещение для пагинации",
          "type": "integer"
        },
        "type": {
          "description": "Тип контрагента (supplier, employee, client)",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "GetCounteragentsResponse": {
      "properties": {
        "counteragents": {
          "description": "Список контрагентов",
          "items": {
            "$ref": "#/definitions/Counteragent"
          },
          "type": "array"
        },
        "totalCount": {
          "description": "Общее количество контрагентов",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "GetIncomingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта приема услуг (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GetInternalTransferByIdRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта внутреннего перемещения (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GetOutgoingServiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта оказания услуг (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GetProductionDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта приготовления (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GetSalesDocumentRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта реализации (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GetStoreRequest": {
      "properties": {
        "id": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "GetWriteoffDocumentByIdRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор акта списания (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IncomingInvoice": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Концепция",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа",
          "type": "string"
        },
        "defaultStore": {
          "description": "Склад",
          "type": "string"
        },
        "departmentId": {
          "description": "Подразделение",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "dueDate": {
          "description": "Срок оплаты",
          "type": "string"
        },
        "employeePassToAccount": {
          "description": "Зачесть сотруднику",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "incomingDocumentNumber": {
          "description": "Входящий номер внешнего документа",
          "type": "string"
        },
        "invoice": {
          "description": "Номер счета-фактуры",
          "type": "string"
        },
        "items": {
          "description": "Позиции документа",
          "items": {
            "$ref": "#/definitions/IncomingInvoiceItem"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "supplier": {
          "description": "Поставщик",
          "type": "string"
        },
        "transportInvoiceNumber": {
          "description": "Номер товарно-транспортной накладной",
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "description": "Использовать стандартное время документа",
          "type": "boolean"
        }
      },
      "required": [
        "defaultStore",
        "departmentId",
        "documentNumber",
        "status"
      ],
      "type": "object"
    },
    "IncomingInvoiceExportRMS": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Концепция (GUID)",
          "type": "string"
        },
        "conceptionCode": {
          "description": "Код концепции",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (yyyy-MM-ddTHH:mm:ss)",
          "type": "string"
        },
        "defaultStore": {
          "description": "Склад (GUID)",
          "type": "string"
        },
        "distributionAlgorithm": {
          "description": "Алгоритм распределения дополнительных расходов",
          "type": "string"
        },
        "documentNumber": {
          "description": "Учетный номер документа",
          "type": "string"
        },
        "dueDate": {
          "description": "Срок оплаты (yyyy-MM-ddTHH:mm:ss) или null",
          "type": "string"
        },
        "employeePassToAccount": {
          "description": "Сотрудник (зачесть сотруднику)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (только чтение)",
          "type": "string"
        },
        "incomingDate": {
          "description": "Входящая дата внешнего документа (YYYY-MM-DD)",
          "type": "string"
        },
        "incomingDocumentNumber": {
          "description": "Входящий номер внешнего документа",
          "type": "string"
        },
        "invoice": {
          "description": "Номер счет-фактуры",
          "type": "string"
        },
        "items": {
          "allOf": [
            {
              "$ref": "#/definitions/IncomingInvoiceItemsExportRMS"
            }
          ],
          "description": "Позиции документа"
        },
        "linkedOutgoingInvoiceId": {
          "description": "UUID связанной расходной накладной",
          "type": "string"
        },
        "manualPaymentDate": {
          "description": "Дата оплаты накладной (YYYY-MM-DD)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "supplier": {
          "description": "Поставщик (GUID)",
          "type": "string"
        },
        "transportInvoiceNumber": {
          "description": "Номер товарно-транспортной накладной",
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "description": "Использовать время документа по настройкам подразделения",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "IncomingInvoiceItem": {
      "properties": {
        "actualAmount": {
          "description": "Фактическое количество",
          "type": "number"
        },
        "actualUnitWeight": {
          "description": "Фактический вес единицы",
          "type": "number"
        },
        "amount": {
          "description": "Количество",
          "type": "number"
        },
        "amountUnit": {
          "description": "Единица измерения",
          "type": "string"
        },
        "code": {
          "description": "Код",
          "type": "string"
        },
        "containerId": {
          "description": "Фасовка",
          "type": "string"
        },
        "customsDeclarationNumber": {
          "description": "Номер таможенной декларации",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "ndsPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "num": {
          "description": "Номер позиции",
          "type": "integer"
        },
        "price": {
          "description": "Цена",
          "type": "number"
        },
        "priceUnit": {
          "description": "Единица цены",
          "type": "string"
        },
        "product": {
          "description": "Товар",
          "type": "string"
        },
        "store": {
          "description": "Склад позиции",
          "type": "string"
        },
        "sum": {
          "description": "Сумма",
          "type": "number"
        },
        "sumWithoutNds": {
          "description": "Сумма без НДС",
          "type": "number"
        },
        "supplierProduct": {
          "description": "Товар поставщика",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IncomingInvoiceItemExportRMS": {
      "properties": {
        "actualAmount": {
          "description": "Фактическое количество",
          "type": "number"
        },
        "amount": {
          "description": "Количество товара",
          "type": "number"
        },
        "amountUnit": {
          "description": "Базовая единица измерения (GUID)",
          "type": "string"
        },
        "code": {
          "description": "Код товара",
          "type": "string"
        },
        "containerId": {
          "description": "Фасовка (GUID)",
          "type": "string"
        },
        "customsDeclarationNumber": {
          "description": "Номер таможенной декларации",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "isAdditionalExpense": {
          "description": "Является дополнительным расходом",
          "type": "boolean"
        },
        "num": {
          "description": "Номер позиции",
          "type": "integer"
        },
        "price": {
          "description": "Цена за единицу",
          "type": "number"
        },
        "priceWithoutVat": {
          "description": "Цена без НДС с учетом скидки",
          "type": "number"
        },
        "producer": {
          "description": "Производитель / импортер",
          "type": "string"
        },
        "product": {
          "description": "Товар (GUID)",
          "type": "string"
        },
        "productArticle": {
          "description": "Артикул товара",
          "type": "string"
        },
        "store": {
          "description": "Склад (GUID)",
          "type": "string"
        },
        "sum": {
          "description": "Сумма строки без учета скидки",
          "type": "number"
        },
        "supplierProduct": {
          "description": "Товар у поставщика (GUID)",
          "type": "string"
        },
        "supplierProductArticle": {
          "description": "Артикул товара у поставщика",
          "type": "string"
        },
        "vatPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "vatSum": {
          "description": "Сумма НДС",
          "type": "number"
        }
      },
      "type": "object"
    },
    "IncomingInvoiceItemsExportRMS": {
      "properties": {
        "item": {
          "description": "Позиции накладной",
          "items": {
            "$ref": "#/definitions/IncomingInvoiceItemExportRMS"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "IncomingServiceInfoElement": {
      "properties": {
        "date": {
          "description": "Дата и время (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "user": {
          "description": "Идентификатор пользователя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IncomingServiceItem": {
      "properties": {
        "account": {
          "description": "Идентификатор счета (GUID)",
          "type": "string"
        },
        "actualAmount": {
          "description": "Фактическое количество",
          "type": "number"
        },
        "actualUnitWeight": {
          "description": "Фактический вес единицы продукта",
          "type": "number"
        },
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "amountUnit": {
          "description": "Идентификатор единицы измерения (GUID)",
          "type": "string"
        },
        "code": {
          "description": "Код продукта",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID)",
          "type": "string"
        },
        "customsDeclarationNumber": {
          "description": "Номер таможенной декларации",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "expireDate": {
          "description": "Дата истечения срока годности (формат YYYY-MM-DD)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор элемента (GUID)",
          "type": "string"
        },
        "invoiceId": {
          "description": "Идентификатор накладной (GUID)",
          "type": "string"
        },
        "ndsPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "price": {
          "description": "Цена с НДС",
          "type": "number"
        },
        "priceUnit": {
          "description": "Идентификатор единицы измерения цены (GUID)",
          "type": "string"
        },
        "priceWithoutNds": {
          "description": "Цена без НДС",
          "type": "number"
        },
        "product": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "splitVat": {
          "description": "Флаг раздельного учета НДС",
          "type": "boolean"
        },
        "store": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        },
        "sum": {
          "description": "Сумма с НДС",
          "type": "number"
        },
        "sumWithoutNds": {
          "description": "Сумма без НДС",
          "type": "number"
        },
        "supplierProduct": {
          "description": "Идентификатор продукта поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IncomingServiceJSON": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Идентификатор концепции (GUID)",
          "type": "string"
        },
        "contractDate": {
          "description": "Дата договора (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "createdInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/IncomingServiceInfoElement"
            }
          ],
          "description": "Информация о создании"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "defaultStore": {
          "description": "Идентификатор склада по умолчанию (GUID)",
          "type": "string"
        },
        "deliveryOnTime": {
          "description": "Флаг своевременной доставки",
          "type": "string"
        },
        "department": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "disableUserSaving": {
          "description": "Флаг запрета сохранения пользователем",
          "type": "string"
        },
        "docNumber": {
          "description": "Номер договора",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "dueDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "editable": {
          "description": "Флаг возможности редактирования",
          "type": "boolean"
        },
        "employeePassToAccount": {
          "description": "Идентификатор сотрудника для передачи на счет (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "incomingDate": {
          "description": "Дата входящего документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "incomingDocumentNumber": {
          "description": "Номер входящего документа",
          "type": "string"
        },
        "isAutomatic": {
          "description": "Флаг автоматического документа",
          "type": "boolean"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/IncomingServiceItem"
          },
          "type": "array"
        },
        "lastModifyNode": {
          "description": "Узел последней модификации",
          "type": "string"
        },
        "manualPaymentDate": {
          "description": "Ручная дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "matchesToTheOrder": {
          "description": "Флаг соответствия заказу",
          "type": "string"
        },
        "modifiedInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/IncomingServiceInfoElement"
            }
          ],
          "description": "Информация о модификации"
        },
        "revenueAccount": {
          "description": "Идентификатор счета дохода (GUID)",
          "type": "string"
        },
        "revenueCreditAccount": {
          "description": "Идентификатор кредитового счета дохода (GUID)",
          "type": "string"
        },
        "revision": {
          "description": "Номер ревизии документа",
          "type": "integer"
        },
        "sessionId": {
          "description": "Идентификатор сессии (GUID)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "supplier": {
          "description": "Идентификатор поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "InternalTransferItemJSON": {
      "properties": {
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID, опционально)",
          "type": "string"
        },
        "cost": {
          "description": "Стоимость (опционально)",
          "type": "number"
        },
        "measureUnitId": {
          "description": "Идентификатор единицы измерения (GUID, опционально)",
          "type": "string"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "productId": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "InternalTransferJSON": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conceptionId": {
          "description": "Идентификатор концепции (GUID, опционально)",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/InternalTransferItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeFromId": {
          "description": "Идентификатор склада отправителя (GUID)",
          "type": "string"
        },
        "storeToId": {
          "description": "Идентификатор склада получателя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ItemUnit": {
      "properties": {
        "isQuantityConfirmed": {
          "description": "Признак подтверждения количества",
          "type": "boolean"
        },
        "packingUnit": {
          "description": "Упаковочная единица",
          "type": "string",
          "x-nullable": true
        },
        "price": {
          "description": "Цена",
          "type": "number"
        },
        "priceVatExclusive": {
          "description": "Цена без НДС",
          "type": "number"
        },
        "quantityConfirmed": {
          "description": "Подтвержденное количество",
          "type": "number"
        },
        "quantityOrdered": {
          "description": "Заказанное количество",
          "type": "number"
        },
        "supplierProductId": {
          "description": "Идентификатор товара поставщика",
          "type": "string"
        },
        "supplierProductName": {
          "description": "Наименование товара у поставщика",
          "type": "string"
        },
        "supplierSku": {
          "description": "Артикул поставщика (SKU)",
          "type": "string"
        },
        "vatIncludedInPrice": {
          "description": "НДС включен в цену",
          "type": "boolean"
        },
        "vatPercent": {
          "description": "Ставка НДС, %",
          "type": "number"
        }
      },
      "type": "object"
    },
    "ItemWarning": {
      "properties": {
        "engineCode": {
          "description": "Код источника",
          "type": "string"
        },
        "stageCode": {
          "description": "Код этапа",
          "type": "string"
        },
        "warningCode": {
          "description": "Код предупреждения",
          "type": "string"
        },
        "warningParameters": {
          "description": "Параметры предупреждения",
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "MedicalAnalysis": {
      "properties": {
        "dateActivate": {
          "type": "string",
          "x-nullable": true
        },
        "type": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "NutritionValue": {
      "properties": {
        "carbohydrateAmount": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "departments": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "energyAmount": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "fatAmount": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "fiberAmount": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "productSize": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "Order": {
      "properties": {
        "actualDeliveryDate": {
          "description": "Фактическая дата поставки по заказу",
          "type": "string",
          "x-nullable": true
        },
        "childOrderId": {
          "description": "Идентификатор дочернего заказа (дополнительный/разделённый заказ)",
          "type": "integer",
          "x-nullable": true
        },
        "createdAt": {
          "description": "Дата создания заказа",
          "type": "string",
          "x-nullable": true
        },
        "createdBy": {
          "description": "Пользователь или система, создавшие заказ",
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "description": "Признак логического удаления заказа",
          "type": "boolean",
          "x-nullable": true
        },
        "dueDate": {
          "description": "Крайний срок обработки заказа по процессу",
          "type": "string",
          "x-nullable": true
        },
        "externalOrderId": {
          "description": "Идентификатор заказа во внешней системе",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "description": "Внутренний идентификатор заказа",
          "type": "integer"
        },
        "incomingInvoiceId": {
          "description": "Идентификатор приходной накладной (INCOMING_INVOICE)",
          "type": "string",
          "x-nullable": true
        },
        "initialShipment": {
          "description": "Идентификатор исходной отгрузки по заказу",
          "type": "string",
          "x-nullable": true
        },
        "lockStatus": {
          "description": "Статус блокировки заказа",
          "type": "string",
          "x-nullable": true
        },
        "orderContents": {
          "allOf": [
            {
              "$ref": "#/definitions/OrderContents"
            }
          ],
          "description": "Структура с содержимым заказа",
          "x-nullable": true
        },
        "orderNumber": {
          "description": "Внешний номер заказа из учетной системы (ERP/приемка/поставки)",
          "type": "string",
          "x-nullable": true
        },
        "orderStatus": {
          "description": "Текущий статус заказа",
          "type": "string",
          "x-nullable": true
        },
        "orderType": {
          "description": "Тип заказа",
          "type": "string",
          "x-nullable": true
        },
        "outgoingInvoiceId": {
          "description": "Идентификатор расходной накладной (OUTGOING_INVOICE)",
          "type": "string",
          "x-nullable": true
        },
        "parentOrderId": {
          "description": "Идентификатор родительского заказа (для цепочек связанных заказов)",
          "type": "integer",
          "x-nullable": true
        },
        "plannedDeliveryDate": {
          "description": "Плановая дата поставки на ресторан",
          "type": "string",
          "x-nullable": true
        },
        "productionOrderId": {
          "description": "Идентификатор связанного производственного заказа",
          "type": "string",
          "x-nullable": true
        },
        "savedInIiko": {
          "description": "Признак того, что заказ сохранён в iiko",
          "type": "boolean",
          "x-nullable": true
        },
        "storeConfigurationId": {
          "description": "Идентификатор конфигурации ресторана, для которого создан заказ",
          "type": "integer",
          "x-nullable": true
        },
        "storeSupplierId": {
          "description": "Идентификатор связки ресторана с поставщиком",
          "type": "integer",
          "x-nullable": true
        },
        "supplierId": {
          "description": "Идентификатор поставщика во внешней системе",
          "type": "string",
          "x-nullable": true
        },
        "updatedAt": {
          "description": "Дата и время последнего изменения заказа",
          "type": "string",
          "x-nullable": true
        },
        "updatedBy": {
          "description": "Пользователь или система, внесшие последнее изменение",
          "type": "string",
          "x-nullable": true
        },
        "workflowId": {
          "description": "Идентификатор процесса, к которому относится заказ",
          "type": "integer",
          "x-nullable": true
        },
        "workflowStage": {
          "description": "Текущая стадия процесса для заказа",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "OrderContents": {
      "properties": {
        "actualDeliveryDate": {
          "description": "Фактическая дата поставки",
          "type": "string",
          "x-nullable": true
        },
        "address": {
          "description": "Адрес",
          "type": "string",
          "x-nullable": true
        },
        "approvedBy": {
          "description": "Кем подтверждено",
          "type": "string",
          "x-nullable": true
        },
        "approvedOn": {
          "description": "Дата подтверждения",
          "type": "string",
          "x-nullable": true
        },
        "availableActions": {
          "description": "Доступные действия",
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-nullable": true
        },
        "changeLog": {
          "description": "История изменений",
          "items": {
            "$ref": "#/definitions/OrderHistoryItem"
          },
          "type": "array",
          "x-nullable": true
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "deliveryCost": {
          "description": "Стоимость доставки",
          "type": "number",
          "x-nullable": true
        },
        "draftNumber": {
          "description": "Номер черновика",
          "type": "string",
          "x-nullable": true
        },
        "dueDate": {
          "description": "Срок исполнения",
          "type": "string",
          "x-nullable": true
        },
        "engineProducts": {
          "description": "Код источника товаров",
          "type": "string",
          "x-nullable": true
        },
        "invoice": {
          "description": "Счет/накладная",
          "type": "string",
          "x-nullable": true
        },
        "isItemsEditedManually": {
          "description": "Позиции отредактированы вручную",
          "type": "boolean"
        },
        "items": {
          "description": "Массив позиций заказа",
          "items": {
            "$ref": "#/definitions/OrderItem"
          },
          "type": "array",
          "x-nullable": true
        },
        "minimumAmount": {
          "description": "Минимальная сумма заказа",
          "type": "number",
          "x-nullable": true
        },
        "number": {
          "description": "Номер заказа",
          "type": "string",
          "x-nullable": true
        },
        "plannedDeliveryDate": {
          "description": "Плановая дата поставки",
          "type": "string",
          "x-nullable": true
        },
        "shipment": {
          "description": "Поставка",
          "type": "string",
          "x-nullable": true
        },
        "skipSendingEmail": {
          "description": "Не отправлять уведомление по email",
          "type": "boolean"
        },
        "store": {
          "description": "Склад",
          "type": "string",
          "x-nullable": true
        },
        "supplier": {
          "description": "Поставщик",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "OrderHistoryItem": {
      "properties": {
        "approvedBy": {
          "description": "Кем подтверждено",
          "type": "string",
          "x-nullable": true
        },
        "date": {
          "description": "Дата изменения",
          "type": "string",
          "x-nullable": true
        },
        "newStage": {
          "description": "Новый этап",
          "type": "string"
        },
        "oldStage": {
          "description": "Предыдущий этап",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OrderItem": {
      "properties": {
        "confirmedAmt": {
          "description": "Подтверждённая сумма по позиции",
          "type": "number"
        },
        "confirmedQty": {
          "description": "Подтверждённое количество по позиции",
          "type": "number"
        },
        "lineId": {
          "description": "Идентификатор строки",
          "type": "integer"
        },
        "maxQty": {
          "description": "Максимальное количество (баз. ед.)",
          "type": "number",
          "x-nullable": true
        },
        "minQty": {
          "description": "Минимальное количество (баз. ед.)",
          "type": "number",
          "x-nullable": true
        },
        "orderedAmt": {
          "description": "Сумма заказа по позиции",
          "type": "number"
        },
        "orderedQty": {
          "description": "Заказанное количество",
          "type": "number"
        },
        "product": {
          "allOf": [
            {
              "$ref": "#/definitions/OrderItemProduct"
            }
          ],
          "description": "Объект товара для позиции заказа"
        },
        "suggestedQty": {
          "description": "Рекомендованное количество для заказа",
          "type": "number"
        },
        "units": {
          "description": "Массив единиц измерения для позиции",
          "items": {
            "$ref": "#/definitions/ItemUnit"
          },
          "type": "array",
          "x-nullable": true
        },
        "warnings": {
          "description": "Предупреждения",
          "items": {
            "$ref": "#/definitions/ItemWarning"
          },
          "type": "array",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "OrderItemProduct": {
      "properties": {
        "barCodes": {
          "description": "Штрихкоды",
          "items": {
            "$ref": "#/definitions/Barcode"
          },
          "type": "array",
          "x-nullable": true
        },
        "baseUnit": {
          "description": "Базовая единица измерения",
          "type": "string"
        },
        "baseUnitCode": {
          "description": "Код базовой единицы измерения",
          "type": "string"
        },
        "baseUnitGuid": {
          "description": "GUID базовой единицы измерения",
          "type": "string"
        },
        "category": {
          "description": "Категория",
          "type": "string"
        },
        "deleted": {
          "description": "Признак удаления",
          "type": "boolean"
        },
        "description": {
          "description": "Описание",
          "type": "string",
          "x-nullable": true
        },
        "internalProductId": {
          "description": "Внутренний идентификатор товара",
          "type": "string"
        },
        "internalSku": {
          "description": "Внутренний SKU",
          "type": "string"
        },
        "name": {
          "description": "Наименование товара",
          "type": "string"
        },
        "productType": {
          "description": "Тип товара",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceExportByNumber": {
      "properties": {
        "accountToCode": {
          "description": "Счет списания товаров",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "counteragentCode": {
          "description": "Код контрагента",
          "type": "string"
        },
        "counteragentId": {
          "description": "Идентификатор контрагента",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Учетная дата и время документа",
          "type": "string"
        },
        "defaultStoreCode": {
          "description": "Код склада по умолчанию",
          "type": "string"
        },
        "defaultStoreId": {
          "description": "Идентификатор склада по умолчанию",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "items": {
          "description": "Позиции расходной накладной",
          "items": {
            "$ref": "#/definitions/OutgoingInvoiceItemExportByNumber"
          },
          "type": "array"
        },
        "revenueAccountCode": {
          "description": "Счет выручки",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "description": "Использовать настройки времени документа подразделения",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceExportJSON": {
      "properties": {
        "accountToCode": {
          "description": "Счет списания товаров (код)",
          "type": "string"
        },
        "accountToId": {
          "description": "Счет списания товаров (идентификатор)",
          "type": "string"
        },
        "counteragentCode": {
          "description": "Контрагент (код)",
          "type": "string"
        },
        "counteragentId": {
          "description": "Контрагент (идентификатор)",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Учетная дата и время документа",
          "type": "string"
        },
        "defaultStoreCode": {
          "description": "Склад по умолчанию (код)",
          "type": "string"
        },
        "defaultStoreId": {
          "description": "Склад по умолчанию (идентификатор)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "items": {
          "description": "Позиции расходной накладной",
          "items": {
            "$ref": "#/definitions/OutgoingInvoiceItemJSON"
          },
          "type": "array"
        },
        "revenueAccountCode": {
          "description": "Счет выручки (код)",
          "type": "string"
        },
        "revenueAccountId": {
          "description": "Счет выручки (идентификатор)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "description": "Использовать настройки времени документа подразделения",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceItemExportByNumber": {
      "properties": {
        "amount": {
          "description": "Количество",
          "type": "number"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "price": {
          "description": "Цена за единицу с учетом скидки",
          "type": "number"
        },
        "productArticle": {
          "description": "Артикул номенклатуры",
          "type": "string"
        },
        "productId": {
          "description": "Идентификатор номенклатуры",
          "type": "string"
        },
        "storeCode": {
          "description": "Код склада",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада",
          "type": "string"
        },
        "sum": {
          "description": "Сумма строки",
          "type": "number"
        },
        "vatPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "vatSum": {
          "description": "Сумма НДС",
          "type": "number"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceItemJSON": {
      "properties": {
        "amount": {
          "description": "Количество в базовых единицах измерения",
          "type": "number"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "price": {
          "description": "Цена за фасовку с учетом скидки",
          "type": "number"
        },
        "priceWithoutVat": {
          "description": "Цена без НДС за фасовку с учетом скидки",
          "type": "number"
        },
        "productArticle": {
          "description": "Артикул номенклатуры",
          "type": "string"
        },
        "productId": {
          "description": "Идентификатор номенклатуры",
          "type": "string"
        },
        "storeCode": {
          "description": "Код склада",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада",
          "type": "string"
        },
        "sum": {
          "description": "Сумма строки без учета скидки",
          "type": "number"
        },
        "vatPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "vatSum": {
          "description": "Сумма НДС",
          "type": "number"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceItemRequest": {
      "properties": {
        "amount": {
          "description": "Количество в базовых единицах измерения",
          "type": "number"
        },
        "containerCode": {
          "description": "Фасовка (код)",
          "type": "string"
        },
        "containerId": {
          "description": "Фасовка (идентификатор)",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "price": {
          "description": "Цена за фасовку с учетом скидки",
          "type": "number"
        },
        "priceWithoutVat": {
          "description": "publicapi.model.outgoing_invoice_item_request.priceWithoutVat",
          "type": "number"
        },
        "productArticle": {
          "description": "Артикул номенклатуры",
          "type": "string"
        },
        "productId": {
          "description": "Идентификатор номенклатуры",
          "type": "string"
        },
        "storeCode": {
          "description": "Код склада",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада",
          "type": "string"
        },
        "sum": {
          "description": "Сумма строки без учета скидки",
          "type": "number"
        },
        "vatPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "vatSum": {
          "description": "Сумма НДС",
          "type": "number"
        }
      },
      "type": "object"
    },
    "OutgoingInvoiceUploadRequest": {
      "properties": {
        "accountToCode": {
          "description": "Счет списания товаров (расходный счет)",
          "type": "string"
        },
        "accountToId": {
          "description": "publicapi.model.outgoing_invoice_upload_request.accountToId",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conceptionCode": {
          "description": "Концепция (код)",
          "type": "string"
        },
        "conceptionId": {
          "description": "Концепция (идентификатор)",
          "type": "string"
        },
        "counteragentCode": {
          "description": "Контрагент (код)",
          "type": "string"
        },
        "counteragentId": {
          "description": "Контрагент (идентификатор)",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Учетная дата и время документа",
          "type": "string"
        },
        "defaultStoreCode": {
          "description": "Склад по умолчанию (код)",
          "type": "string"
        },
        "defaultStoreId": {
          "description": "Склад по умолчанию (идентификатор)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор подразделения (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа",
          "type": "string"
        },
        "items": {
          "description": "Позиции расходной накладной",
          "items": {
            "$ref": "#/definitions/OutgoingInvoiceItemRequest"
          },
          "type": "array"
        },
        "revenueAccountCode": {
          "description": "Счет выручки",
          "type": "string"
        },
        "revenueAccountId": {
          "description": "publicapi.model.outgoing_invoice_upload_request.revenueAccountId",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "description": "Использовать настройки времени документа подразделения",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OutgoingServiceInfoElement": {
      "properties": {
        "date": {
          "description": "Дата и время (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "user": {
          "description": "Идентификатор пользователя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OutgoingServiceItemJSON": {
      "properties": {
        "account": {
          "description": "Идентификатор счета (GUID)",
          "type": "string"
        },
        "actualAmount": {
          "description": "Фактическое количество",
          "type": "number"
        },
        "actualUnitWeight": {
          "description": "Фактический вес единицы продукта",
          "type": "number"
        },
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "amountUnit": {
          "description": "Идентификатор единицы измерения (GUID)",
          "type": "string"
        },
        "code": {
          "description": "Код продукта",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID)",
          "type": "string"
        },
        "customsDeclarationNumber": {
          "description": "Номер таможенной декларации",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "number"
        },
        "expireDate": {
          "description": "Дата истечения срока годности (формат YYYY-MM-DD)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор элемента (GUID)",
          "type": "string"
        },
        "invoiceId": {
          "description": "Идентификатор накладной (GUID)",
          "type": "string"
        },
        "ndsPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "price": {
          "description": "Цена с НДС",
          "type": "number"
        },
        "priceUnit": {
          "description": "Идентификатор единицы измерения цены (GUID)",
          "type": "string"
        },
        "priceWithoutNds": {
          "description": "Цена без НДС",
          "type": "number"
        },
        "product": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "splitVat": {
          "description": "Флаг раздельного учета НДС",
          "type": "boolean"
        },
        "store": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        },
        "sum": {
          "description": "Сумма с НДС",
          "type": "number"
        },
        "sumWithoutNds": {
          "description": "Сумма без НДС",
          "type": "number"
        },
        "supplierProduct": {
          "description": "Идентификатор продукта поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OutgoingServiceJSON": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Идентификатор концепции (GUID)",
          "type": "string"
        },
        "contractDate": {
          "description": "Дата договора (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "createdInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/OutgoingServiceInfoElement"
            }
          ],
          "description": "Информация о создании"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "defaultStore": {
          "description": "Идентификатор склада по умолчанию (GUID)",
          "type": "string"
        },
        "deliveryOnTime": {
          "description": "Флаг своевременной доставки",
          "type": "string"
        },
        "department": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "disableUserSaving": {
          "description": "Флаг запрета сохранения пользователем",
          "type": "string"
        },
        "docNumber": {
          "description": "Номер договора",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "dueDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "editable": {
          "description": "Флаг возможности редактирования",
          "type": "boolean"
        },
        "employeePassToAccount": {
          "description": "Идентификатор сотрудника для передачи на счет (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "incomingDate": {
          "description": "Дата входящего документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "incomingDocumentNumber": {
          "description": "Номер входящего документа",
          "type": "string"
        },
        "isAutomatic": {
          "description": "Флаг автоматического документа",
          "type": "boolean"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/OutgoingServiceItemJSON"
          },
          "type": "array"
        },
        "lastModifyNode": {
          "description": "Узел последней модификации",
          "type": "string"
        },
        "manualPaymentDate": {
          "description": "Ручная дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "matchesToTheOrder": {
          "description": "Флаг соответствия заказу",
          "type": "string"
        },
        "modifiedInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/OutgoingServiceInfoElement"
            }
          ],
          "description": "Информация о модификации"
        },
        "orderId": {
          "description": "Идентификатор заказа (GUID)",
          "type": "string"
        },
        "registerNumber": {
          "description": "Регистрационный номер",
          "type": "string"
        },
        "revenueAccount": {
          "description": "Идентификатор счета дохода (GUID)",
          "type": "string"
        },
        "revenueDebitAccount": {
          "description": "Идентификатор дебетового счета дохода (GUID)",
          "type": "string"
        },
        "revision": {
          "description": "Номер ревизии документа",
          "type": "integer"
        },
        "sessionId": {
          "description": "Идентификатор сессии (GUID)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "supplier": {
          "description": "Идентификатор поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PayOutgoingInvoiceRequest": {
      "properties": {
        "accountId": {
          "description": "Идентификатор счета (GUID)",
          "type": "string"
        },
        "amount": {
          "description": "Сумма оплаты",
          "type": "number"
        },
        "cfoItemId": {
          "description": "Идентификатор статьи ДДС (GUID)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор расходной накладной (GUID)",
          "type": "string"
        },
        "paymentDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PayRequest": {
      "properties": {
        "accountId": {
          "description": "Идентификатор счета (GUID)",
          "type": "string"
        },
        "amount": {
          "description": "Сумма оплаты",
          "type": "number"
        },
        "cfoItemId": {
          "description": "Идентификатор статьи ДДС (GUID)",
          "type": "string"
        },
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор приходной накладной (GUID)",
          "type": "string"
        },
        "paymentDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PaymentType": {
      "properties": {
        "canBeCreatedExternallyFromBiz": {
          "type": "boolean"
        },
        "cashFlowCategory": {
          "type": "string",
          "x-nullable": true
        },
        "cashMemoChequeCopiesCount": {
          "type": "integer"
        },
        "chequeCaption": {
          "type": "string",
          "x-nullable": true
        },
        "code": {
          "type": "string",
          "x-nullable": true
        },
        "combinable": {
          "type": "boolean"
        },
        "comment": {
          "type": "string",
          "x-nullable": true
        },
        "compatibleCategories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "departments": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "discount": {
          "type": "string",
          "x-nullable": true
        },
        "hideInFront": {
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "isApplicablePaymentType": {
          "type": "boolean"
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "type": "integer"
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "type": "string"
        },
        "openCashDrawerOnPay": {
          "type": "boolean"
        },
        "paymentGroup": {
          "type": "string"
        },
        "paymentMethod": {
          "type": "string",
          "x-nullable": true
        },
        "paymentProcessingType": {
          "type": "string",
          "x-nullable": true
        },
        "printCheque": {
          "type": "boolean"
        },
        "printNonFiscalCheque": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer"
        },
        "setExactPrice": {
          "type": "boolean"
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "PaymentTypesResponse": {
      "properties": {
        "payment-types": {
          "items": {
            "$ref": "#/definitions/PaymentType"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "PriceItem": {
      "properties": {
        "amountFactor": {
          "description": "Коэффициент количества",
          "type": "number"
        },
        "productId": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Product": {
      "properties": {
        "accountingCategory": {
          "type": "string",
          "x-nullable": true
        },
        "additionalUnits": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "alcoholClass": {
          "type": "string",
          "x-nullable": true
        },
        "allergenGroups": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "amountIndependentOfParentAmount": {
          "type": "boolean"
        },
        "assemblyChartModified": {
          "type": "string",
          "x-nullable": true
        },
        "barcodes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "canBuyFromCashdesk": {
          "type": "boolean"
        },
        "canChangeAmountCookedDish": {
          "type": "boolean"
        },
        "canSetOpenPrice": {
          "type": "boolean"
        },
        "category": {
          "type": "string",
          "x-nullable": true
        },
        "chequePrintable": {
          "type": "boolean"
        },
        "code": {
          "type": "string"
        },
        "coldLossPercent": {
          "format": "double",
          "type": "number"
        },
        "color": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-RGBColor"
            }
          ],
          "x-nullable": true
        },
        "containers": {
          "items": {
            "$ref": "#/definitions/Container"
          },
          "type": "array"
        },
        "cookWithMainDish": {
          "type": "boolean"
        },
        "cookingTimeNormal": {
          "format": "int64",
          "type": "integer",
          "x-nullable": true
        },
        "cookingTimePeak": {
          "format": "int64",
          "type": "integer",
          "x-nullable": true
        },
        "cookingType": {
          "type": "string",
          "x-nullable": true
        },
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "customCategories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "defaultContainerId": {
          "type": "string",
          "x-nullable": true
        },
        "defaultCourse": {
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "defaultIncludedInMenu": {
          "type": "boolean"
        },
        "defaultMaximumStoreBalanceLevel": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "defaultMinimumStoreBalanceLevel": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "defaultSalePrice": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "description": {
          "type": "string",
          "x-nullable": true
        },
        "descriptionEnglish": {
          "type": "string",
          "x-nullable": true
        },
        "disabledFields": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "disabledProductSizes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "egaisAlcCode": {
          "type": "string",
          "x-nullable": true
        },
        "estimatedPurchasePrice": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "excludedSections": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "expirationDate": {
          "format": "int64",
          "type": "integer",
          "x-nullable": true
        },
        "fontColor": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-RGBColor"
            }
          ],
          "x-nullable": true
        },
        "franchiseMasterId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseOriginalId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseUniqueId": {
          "type": "string",
          "x-nullable": true
        },
        "frontImageId": {
          "type": "string",
          "x-nullable": true
        },
        "fullName": {
          "type": "string",
          "x-nullable": true
        },
        "fullNameEnglish": {
          "type": "string",
          "x-nullable": true
        },
        "gtin": {
          "type": "string",
          "x-nullable": true
        },
        "hotLossPercent": {
          "format": "double",
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "images": {
          "items": {
            "$ref": "#/definitions/ProductImage"
          },
          "type": "array"
        },
        "inventoryPeriodDays": {
          "format": "int32",
          "type": "integer"
        },
        "invoiceSupplier": {
          "type": "string",
          "x-nullable": true
        },
        "isCalculateUnitWeight": {
          "type": "boolean"
        },
        "isDishOfDay": {
          "type": "boolean"
        },
        "isFixedPrice": {
          "type": "boolean"
        },
        "isFlyerProgram": {
          "type": "boolean"
        },
        "isNotInStoreMovement": {
          "type": "boolean"
        },
        "isNutritionValueAutoCalculated": {
          "type": "boolean"
        },
        "isPercentageOfAlcoholApplicable": {
          "type": "boolean"
        },
        "isTimePayProduct": {
          "type": "boolean"
        },
        "itemCategory": {
          "type": "string",
          "x-nullable": true
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "format": "int32",
          "type": "integer"
        },
        "mainUnit": {
          "type": "string",
          "x-nullable": true
        },
        "markupSettings": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "maximumStoreBalanceLevels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "minimalStoreBalanceLevels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "minimumTimePayProductDurationMinutes": {
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "modifierSchema": {
          "type": "string",
          "x-nullable": true
        },
        "modifierSchemaRedefinitions": {
          "items": {
            "$ref": "#/definitions/ChoiceBindingRedefinition"
          },
          "type": "array"
        },
        "modifiers": {
          "items": {
            "$ref": "#/definitions/ChoiceBinding"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "nameEnglish": {
          "type": "string",
          "x-nullable": true
        },
        "nameKitchen": {
          "type": "string",
          "x-nullable": true
        },
        "nds": {
          "format": "double",
          "type": "number"
        },
        "notLoadAsemblyChartsToBackupDB": {
          "type": "boolean"
        },
        "num": {
          "type": "string",
          "x-nullable": true
        },
        "nutritionValues": {
          "items": {
            "$ref": "#/definitions/NutritionValue"
          },
          "type": "array"
        },
        "outerEconomicActivityNomenclatureCode": {
          "type": "string",
          "x-nullable": true
        },
        "parent": {
          "type": "string",
          "x-nullable": true
        },
        "percentageOfAlcohol": {
          "format": "double",
          "type": "number"
        },
        "placeType": {
          "type": "string",
          "x-nullable": true
        },
        "position": {
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "prechequePrintable": {
          "type": "boolean"
        },
        "priceMarkupPercent": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "printOnAdd": {
          "type": "boolean"
        },
        "producer": {
          "type": "string",
          "x-nullable": true
        },
        "producers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "productScale": {
          "type": "string",
          "x-nullable": true
        },
        "productSizeFactors": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-ProductSizeFactors"
            }
          ],
          "x-nullable": true
        },
        "productTags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "productTypeForCooking": {
          "type": "string",
          "x-nullable": true
        },
        "rateSchedule": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-RateSchedule"
            }
          ],
          "x-nullable": true
        },
        "receiptsSum": {
          "format": "double",
          "type": "number",
          "x-nullable": true
        },
        "relativeRateSchedule": {
          "type": "boolean"
        },
        "revision": {
          "format": "int32",
          "type": "integer"
        },
        "sourceNature": {
          "type": "string",
          "x-nullable": true
        },
        "system": {
          "type": "boolean"
        },
        "taxCategory": {
          "type": "string",
          "x-nullable": true
        },
        "timePayProductDurationStepMinutes": {
          "format": "int32",
          "type": "integer"
        },
        "transferType": {
          "type": "string",
          "x-nullable": true
        },
        "type": {
          "type": "string"
        },
        "unitCapacity": {
          "format": "double",
          "type": "number"
        },
        "unitWeight": {
          "format": "double",
          "type": "number"
        },
        "useBalanceForInventory": {
          "type": "boolean"
        },
        "useBalanceForSell": {
          "type": "boolean"
        },
        "useDefaultCookingTime": {
          "type": "boolean"
        },
        "useRangeForInvoices": {
          "type": "boolean"
        },
        "userCreated": {
          "type": "string",
          "x-nullable": true
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModified": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        },
        "uzFiscalCode": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ProductCategoriesResponse": {
      "properties": {
        "product-categories": {
          "items": {
            "$ref": "#/definitions/ProductCategory"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ProductCategory": {
      "properties": {
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseMasterId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseOriginalId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseUniqueId": {
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "type": "string"
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "type": "integer"
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ProductImage": {
      "properties": {
        "dateEnd": {
          "type": "string",
          "x-nullable": true
        },
        "dateStart": {
          "type": "string",
          "x-nullable": true
        },
        "image": {
          "type": "string",
          "x-nullable": true
        },
        "type": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ProductSize": {
      "properties": {
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseMasterId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseOriginalId": {
          "type": "string",
          "x-nullable": true
        },
        "franchiseUniqueId": {
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "type": "string"
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "type": "integer"
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "productScale": {
          "type": "string",
          "x-nullable": true
        },
        "revision": {
          "type": "integer"
        },
        "shortName": {
          "type": "string",
          "x-nullable": true
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ProductSizesResponse": {
      "properties": {
        "product-sizes": {
          "items": {
            "$ref": "#/definitions/ProductSize"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ProductionDocumentInfoElement": {
      "properties": {
        "date": {
          "description": "Дата и время (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "user": {
          "description": "Идентификатор пользователя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProductionDocumentItem": {
      "properties": {
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "amountFactor": {
          "description": "Коэффициент количества",
          "type": "number"
        },
        "amountUnit": {
          "description": "Идентификатор единицы измерения (GUID)",
          "type": "string"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID)",
          "type": "string"
        },
        "correctedAssemblyChartItems": {
          "description": "Скорректированные элементы технологической карты (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор элемента (GUID)",
          "type": "string"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "product": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "productSize": {
          "description": "Идентификатор размера продукта (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProductionDocumentJSON": {
      "properties": {
        "accountTo": {
          "description": "Идентификатор целевого склада (GUID)",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Идентификатор концепции (GUID)",
          "type": "string"
        },
        "counteragentTo": {
          "description": "Идентификатор целевого контрагента (GUID)",
          "type": "string"
        },
        "createdInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/ProductionDocumentInfoElement"
            }
          ],
          "description": "Информация о создании"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "disableUserSaving": {
          "description": "Флаг запрета сохранения пользователем",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "editable": {
          "description": "Флаг возможности редактирования",
          "type": "boolean"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "isAutomatic": {
          "description": "Флаг автоматического документа",
          "type": "boolean"
        },
        "isCorrected": {
          "description": "Флаг корректировки",
          "type": "boolean"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/ProductionDocumentItem"
          },
          "type": "array"
        },
        "lastModifyNode": {
          "description": "Узел последней модификации",
          "type": "string"
        },
        "modifiedInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/ProductionDocumentInfoElement"
            }
          ],
          "description": "Информация о модификации"
        },
        "operationalDayId": {
          "description": "Идентификатор операционного дня (GUID)",
          "type": "string"
        },
        "revision": {
          "description": "Номер ревизии документа",
          "type": "integer"
        },
        "sessionId": {
          "description": "Идентификатор сессии (GUID)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "store": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProductsListResponse": {
      "properties": {
        "products": {
          "items": {
            "$ref": "#/definitions/Product"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "Rate": {
      "properties": {
        "intervals": {
          "items": {
            "$ref": "#/definitions/RateInterval"
          },
          "type": "array"
        },
        "serviceRate": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "RateInterval": {
      "properties": {
        "begin": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DayTime"
            }
          ],
          "x-nullable": true
        },
        "dayOfWeek": {
          "type": "string",
          "x-nullable": true
        },
        "end": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DayTime"
            }
          ],
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "Request": {
      "properties": {
        "filters": {
          "description": "Фильтр в запросе",
          "items": {
            "$ref": "#/definitions/FilterCond"
          },
          "type": "array"
        },
        "limit": {
          "description": "Кол-во элементов",
          "example": 10,
          "type": "integer"
        },
        "offset": {
          "description": "Offset в запросе (для пагинации)",
          "example": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "SalesDocumentInfoElement": {
      "properties": {
        "date": {
          "description": "Дата и время (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "user": {
          "description": "Идентификатор пользователя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SalesDocumentItem": {
      "properties": {
        "actualAmount": {
          "description": "Фактическое количество",
          "type": "string"
        },
        "actualUnitWeight": {
          "description": "Фактический вес единицы продукта",
          "type": "string"
        },
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "amountFactor": {
          "description": "Коэффициент количества",
          "type": "number"
        },
        "amountUnit": {
          "description": "Идентификатор единицы измерения (GUID)",
          "type": "string"
        },
        "code": {
          "description": "Код продукта",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID)",
          "type": "string"
        },
        "correctedAssemblyChartItems": {
          "description": "Скорректированные элементы технологической карты (GUID)",
          "type": "string"
        },
        "customsDeclarationNumber": {
          "description": "Номер таможенной декларации",
          "type": "string"
        },
        "discountSum": {
          "description": "Сумма скидки",
          "type": "string"
        },
        "expireDate": {
          "description": "Дата истечения срока годности (формат YYYY-MM-DD)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор элемента (GUID)",
          "type": "string"
        },
        "localTaxInfo1": {
          "description": "Локальная налоговая информация 1",
          "type": "string"
        },
        "localTaxInfo2": {
          "description": "Локальная налоговая информация 2",
          "type": "string"
        },
        "localTaxInfo3": {
          "description": "Локальная налоговая информация 3",
          "type": "string"
        },
        "localTaxInfo4": {
          "description": "Локальная налоговая информация 4",
          "type": "string"
        },
        "localTaxInfo5": {
          "description": "Локальная налоговая информация 5",
          "type": "string"
        },
        "ndsPercent": {
          "description": "Процент НДС",
          "type": "number"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "price": {
          "description": "Цена с НДС",
          "type": "number"
        },
        "priceUnit": {
          "description": "Идентификатор единицы измерения цены (GUID)",
          "type": "string"
        },
        "priceWithoutNds": {
          "description": "Цена без НДС",
          "type": "number"
        },
        "product": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "productSize": {
          "description": "Идентификатор размера продукта (GUID)",
          "type": "string"
        },
        "splitVat": {
          "description": "Флаг раздельного учета НДС",
          "type": "boolean"
        },
        "store": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        },
        "sum": {
          "description": "Сумма с НДС",
          "type": "number"
        },
        "sumWithoutNds": {
          "description": "Сумма без НДС",
          "type": "number"
        },
        "supplierProduct": {
          "description": "Идентификатор продукта поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SalesDocumentJSON": {
      "properties": {
        "accountTo": {
          "description": "Идентификатор целевого счета (GUID)",
          "type": "string"
        },
        "banquet": {
          "description": "Флаг банкета",
          "type": "boolean"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conception": {
          "description": "Идентификатор концепции (GUID)",
          "type": "string"
        },
        "createdInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/SalesDocumentInfoElement"
            }
          ],
          "description": "Информация о создании"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "defaultStore": {
          "description": "Идентификатор склада по умолчанию (GUID)",
          "type": "string"
        },
        "disableUserSaving": {
          "description": "Флаг запрета сохранения пользователем",
          "type": "string"
        },
        "discountsAccount": {
          "description": "Идентификатор счета скидок (GUID)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "dueDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "editable": {
          "description": "Флаг возможности редактирования",
          "type": "boolean"
        },
        "externalOutgoingInvoiceId": {
          "description": "Идентификатор внешней расходной накладной (GUID)",
          "type": "string"
        },
        "externalProductionDocumentId": {
          "description": "Идентификатор внешнего акта производства (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "isAutomatic": {
          "description": "Флаг автоматического документа",
          "type": "boolean"
        },
        "isCorrected": {
          "description": "Флаг корректировки",
          "type": "boolean"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/SalesDocumentItem"
          },
          "type": "array"
        },
        "lastModifyNode": {
          "description": "Узел последней модификации",
          "type": "string"
        },
        "manualPaymentDate": {
          "description": "Ручная дата оплаты (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "modifiedInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/SalesDocumentInfoElement"
            }
          ],
          "description": "Информация о модификации"
        },
        "operationalDayId": {
          "description": "Идентификатор операционного дня (GUID)",
          "type": "string"
        },
        "pricingParameters": {
          "description": "Параметры ценообразования",
          "type": "string"
        },
        "recalculateSumByCost": {
          "description": "Флаг пересчета суммы по себестоимости",
          "type": "boolean"
        },
        "revenueAccount": {
          "description": "Идентификатор счета дохода (GUID)",
          "type": "string"
        },
        "revenueDebitAccount": {
          "description": "Идентификатор дебетового счета дохода (GUID)",
          "type": "string"
        },
        "revision": {
          "description": "Номер ревизии документа",
          "type": "integer"
        },
        "sessionId": {
          "description": "Идентификатор сессии (GUID)",
          "type": "string"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "supplier": {
          "description": "Идентификатор поставщика (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SetPaymentDateOutgoingInvoiceRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор расходной накладной (GUID)",
          "type": "string"
        },
        "paymentDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SetPaymentDateOutgoingInvoiceResponse": {
      "properties": {
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SetPaymentDateRequest": {
      "properties": {
        "departmentId": {
          "description": "Идентификатор департамента (GUID)",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор приходной накладной (GUID)",
          "type": "string"
        },
        "paymentDate": {
          "description": "Дата оплаты (формат YYYY-MM-DD)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SetPaymentDateResponse": {
      "properties": {
        "message": {
          "description": "Сообщение о результате операции",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ShortOrder": {
      "properties": {
        "id": {
          "description": "Идентификатор заказа",
          "type": "integer"
        },
        "orderNumber": {
          "description": "Внешний номер заказа",
          "type": "string",
          "x-nullable": true
        },
        "orderStatus": {
          "description": "Текущий статус заказа в процессе",
          "type": "string",
          "x-nullable": true
        },
        "workflowId": {
          "description": "Идентификатор процесса (workflow), в рамках которого обрабатывается заказ",
          "type": "integer",
          "x-nullable": true
        },
        "workflowStage": {
          "description": "Текущая стадия процесса для заказа",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "ShortWorkflow": {
      "properties": {
        "id": {
          "description": "Идентификатор процесса",
          "type": "integer"
        },
        "name": {
          "description": "Краткое название процесса",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "StoreByIdResponse": {
      "properties": {
        "store": {
          "$ref": "#/definitions/StoreConfiguration"
        }
      },
      "type": "object"
    },
    "StoreConfiguration": {
      "properties": {
        "crm_id": {
          "description": "CRM Id",
          "type": "integer"
        },
        "department_id": {
          "description": "Id департамента",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор ресторана",
          "type": "integer"
        },
        "store_name": {
          "description": "Наименование",
          "type": "string"
        },
        "time_zone": {
          "description": "Таймзона",
          "type": "string"
        },
        "uoc_id": {
          "description": "UOC Id",
          "type": "string"
        }
      },
      "type": "object"
    },
    "StoreListRequest": {
      "type": "object"
    },
    "StoreListResponse": {
      "properties": {
        "stores": {
          "items": {
            "$ref": "#/definitions/StoreConfiguration"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "UpdateProductBarcodesRequest": {
      "properties": {
        "barcodes": {
          "description": "Штрихкоды",
          "items": {
            "$ref": "#/definitions/BarcodeItem"
          },
          "type": "array"
        },
        "departmentId": {
          "description": "ID подразделения",
          "type": "string"
        },
        "productId": {
          "description": "ID продукта",
          "type": "string"
        }
      },
      "type": "object"
    },
    "UpdateProductBarcodesResponse": {
      "properties": {
        "message": {
          "description": "Сообщение",
          "type": "string"
        },
        "productId": {
          "description": "ID продукта",
          "type": "string"
        }
      },
      "type": "object"
    },
    "User": {
      "properties": {
        "accountingReasonCode": {
          "type": "string",
          "x-nullable": true
        },
        "activationDate": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo"
            }
          ],
          "x-nullable": true
        },
        "actualAddress": {
          "type": "string",
          "x-nullable": true
        },
        "address": {
          "type": "string",
          "x-nullable": true
        },
        "administrator": {
          "type": "boolean"
        },
        "advance": {
          "type": "number"
        },
        "allowInvoiceIncomeNotInPriceList": {
          "type": "boolean",
          "x-nullable": true
        },
        "assignedToDepartments": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "authCard": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-Card"
            }
          ],
          "x-nullable": true
        },
        "bank": {
          "type": "string",
          "x-nullable": true
        },
        "bankCity": {
          "type": "string",
          "x-nullable": true
        },
        "bankStatementCashFlowCategory": {
          "type": "string",
          "x-nullable": true
        },
        "bankStatementCorrespondentAccount": {
          "type": "string",
          "x-nullable": true
        },
        "bik": {
          "type": "string",
          "x-nullable": true
        },
        "birthday": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo"
            }
          ],
          "x-nullable": true
        },
        "blockReason": {
          "type": "string",
          "x-nullable": true
        },
        "businessClassificationCode": {
          "type": "string",
          "x-nullable": true
        },
        "cellPhone": {
          "type": "string",
          "x-nullable": true
        },
        "client": {
          "type": "boolean"
        },
        "code": {
          "type": "string"
        },
        "company": {
          "type": "string",
          "x-nullable": true
        },
        "conception": {
          "type": "string",
          "x-nullable": true
        },
        "cookWorkPlace": {
          "type": "string",
          "x-nullable": true
        },
        "correspondentAccount": {
          "type": "string",
          "x-nullable": true
        },
        "created": {
          "type": "string",
          "x-nullable": true
        },
        "deactivationDate": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo"
            }
          ],
          "x-nullable": true
        },
        "deleted": {
          "type": "boolean"
        },
        "deletedDate": {
          "type": "string",
          "x-nullable": true
        },
        "deviationAction": {
          "type": "string",
          "x-nullable": true
        },
        "dontAllowOperationsWithoutCard": {
          "type": "boolean"
        },
        "economicActivityClassificationCode": {
          "type": "string",
          "x-nullable": true
        },
        "ediSystem": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "x-nullable": true
        },
        "employee": {
          "type": "boolean"
        },
        "eulaLastAcceptedDate": {
          "type": "string",
          "x-nullable": true
        },
        "eulaLastAcceptedVersion": {
          "format": "int32",
          "type": "integer"
        },
        "externalPin": {
          "type": "string",
          "x-nullable": true
        },
        "fireDate": {
          "type": "string",
          "x-nullable": true
        },
        "firstName": {
          "type": "string",
          "x-nullable": true
        },
        "gender": {
          "type": "string",
          "x-nullable": true
        },
        "gln": {
          "type": "string",
          "x-nullable": true
        },
        "hireDate": {
          "type": "string",
          "x-nullable": true
        },
        "hireDocumentNumber": {
          "type": "string",
          "x-nullable": true
        },
        "iban": {
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "type": "string"
        },
        "jurPerson": {
          "type": "string",
          "x-nullable": true
        },
        "lastModifyNode": {
          "type": "string",
          "x-nullable": true
        },
        "lastName": {
          "type": "string",
          "x-nullable": true
        },
        "legalAddress": {
          "type": "string",
          "x-nullable": true
        },
        "licenseActivityType": {
          "type": "string",
          "x-nullable": true
        },
        "localId": {
          "type": "integer"
        },
        "loginName": {
          "type": "string"
        },
        "mainRole": {
          "type": "string",
          "x-nullable": true
        },
        "medicalAnalysis": {
          "items": {
            "$ref": "#/definitions/MedicalAnalysis"
          },
          "type": "array"
        },
        "middleName": {
          "type": "string",
          "x-nullable": true
        },
        "modified": {
          "type": "string",
          "x-nullable": true
        },
        "name": {
          "type": "string"
        },
        "note": {
          "type": "string",
          "x-nullable": true
        },
        "passportInfo": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-PassportInfo"
            }
          ],
          "x-nullable": true
        },
        "passwordHash": {
          "type": "string"
        },
        "paymentDelay": {
          "format": "int32",
          "type": "integer"
        },
        "paymentWeekday": {
          "type": "string",
          "x-nullable": true
        },
        "pbxAuthorizationSettings": {
          "allOf": [
            {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-PbxAuthorizationSettings"
            }
          ],
          "x-nullable": true
        },
        "permissions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "phone": {
          "type": "string",
          "x-nullable": true
        },
        "photo": {
          "type": "string",
          "x-nullable": true
        },
        "pin": {
          "type": "string",
          "x-nullable": true
        },
        "pluginUser": {
          "type": "boolean"
        },
        "preferredDepartment": {
          "type": "string",
          "x-nullable": true
        },
        "priceCategory": {
          "type": "string",
          "x-nullable": true
        },
        "properties": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "publicExternalData": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "registrationNumber": {
          "type": "string",
          "x-nullable": true
        },
        "representedFranchiseOuterEntityId": {
          "type": "string",
          "x-nullable": true
        },
        "representedFranchiseOuterEntityType": {
          "type": "string",
          "x-nullable": true
        },
        "representsFranchiseConnectionGroup": {
          "type": "boolean"
        },
        "representsStore": {
          "type": "boolean"
        },
        "responsibilityDepartments": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "revision": {
          "type": "integer"
        },
        "roles": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "settlementAccount": {
          "type": "string",
          "x-nullable": true
        },
        "snils": {
          "type": "string",
          "x-nullable": true
        },
        "supplier": {
          "type": "boolean"
        },
        "supplierType": {
          "type": "string",
          "x-nullable": true
        },
        "swiftBic": {
          "type": "string",
          "x-nullable": true
        },
        "system": {
          "type": "boolean"
        },
        "taxpayerIdNumber": {
          "type": "string",
          "x-nullable": true
        },
        "usePriceList": {
          "type": "boolean",
          "x-nullable": true
        },
        "userCreatedId": {
          "type": "string",
          "x-nullable": true
        },
        "userModifiedId": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "UsersResponse": {
      "properties": {
        "users": {
          "items": {
            "$ref": "#/definitions/User"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "Workflow": {
      "properties": {
        "account": {
          "description": "Идентификатор аккаунта, в рамках которого настроен процесс",
          "type": "integer",
          "x-nullable": true
        },
        "active": {
          "description": "Признак активности процесса",
          "type": "boolean",
          "x-nullable": true
        },
        "createdAt": {
          "description": "Дата и время создания процесса",
          "type": "string",
          "x-nullable": true
        },
        "createdBy": {
          "description": "Пользователь или система, создавшие процесс",
          "type": "string",
          "x-nullable": true
        },
        "deleted": {
          "description": "Признак логического удаления процесса",
          "type": "boolean",
          "x-nullable": true
        },
        "description": {
          "description": "Описание процесса",
          "type": "string",
          "x-nullable": true
        },
        "id": {
          "description": "Идентификатор процесса",
          "type": "integer"
        },
        "name": {
          "description": "Название процесса в конфигурации",
          "type": "string",
          "x-nullable": true
        },
        "orderType": {
          "description": "Тип заказа",
          "type": "string",
          "x-nullable": true
        },
        "settings": {
          "description": "Настройки процесса в сериализованном виде",
          "type": "string",
          "x-nullable": true
        },
        "updatedAt": {
          "description": "Дата и время последнего изменения процесса",
          "type": "string",
          "x-nullable": true
        },
        "updatedBy": {
          "description": "Пользователь или система, изменившие процесс",
          "type": "string",
          "x-nullable": true
        },
        "workflowType": {
          "description": "Тип процесса",
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "WriteoffDocumentItemJSON": {
      "properties": {
        "amount": {
          "description": "Количество продукта",
          "type": "number"
        },
        "amountFactor": {
          "description": "Коэффициент количества",
          "type": "number"
        },
        "containerId": {
          "description": "Идентификатор контейнера (GUID, опционально)",
          "type": "string"
        },
        "cost": {
          "description": "Стоимость",
          "type": "number"
        },
        "measureUnitId": {
          "description": "Идентификатор единицы измерения (GUID)",
          "type": "string"
        },
        "num": {
          "description": "Порядковый номер элемента",
          "type": "integer"
        },
        "productId": {
          "description": "Идентификатор продукта (GUID)",
          "type": "string"
        },
        "productSizeId": {
          "description": "Идентификатор размера продукта (GUID, опционально)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "WriteoffDocumentJSON": {
      "properties": {
        "accountId": {
          "description": "Идентификатор счёта списания (GUID)",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/WriteoffDocumentItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-Card": {
      "properties": {
        "slip": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo": {
      "properties": {
        "day": {
          "type": "integer"
        },
        "month": {
          "type": "integer"
        },
        "year": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DayTime": {
      "properties": {
        "minutes": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-PassportInfo": {
      "properties": {
        "issueDate": {
          "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo"
        },
        "issuer": {
          "type": "string",
          "x-nullable": true
        },
        "number": {
          "type": "string",
          "x-nullable": true
        },
        "series": {
          "type": "string",
          "x-nullable": true
        },
        "validTillDate": {
          "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-DateInfo"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-PbxAuthorizationSettings": {
      "properties": {
        "additionalNumber": {
          "type": "string",
          "x-nullable": true
        },
        "login": {
          "type": "string",
          "x-nullable": true
        },
        "password": {
          "type": "string",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-ProductSizeFactors": {
      "properties": {
        "factors": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-RGBColor": {
      "properties": {
        "blue": {
          "type": "integer"
        },
        "green": {
          "type": "integer"
        },
        "red": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_internal_models_nullable.Nullable-RateSchedule": {
      "properties": {
        "rates": {
          "items": {
            "$ref": "#/definitions/Rate"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse": {
      "properties": {
        "details": {
          "description": "Дополнительные данные об ошибке\nNullable"
        },
        "message": {
          "description": "Текст ошибки",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_handler.AuthRequest": {
      "properties": {
        "api_key": {
          "example": "my-api-key",
          "type": "string"
        },
        "app_id": {
          "example": "my-app-id",
          "type": "string"
        },
        "client_secret": {
          "example": "my-client-secret",
          "type": "string"
        }
      },
      "required": [
        "api_key"
      ],
      "type": "object"
    },
    "internal_handler.AuthResponse": {
      "properties": {
        "expires_in": {
          "example": 1672531199,
          "type": "integer"
        },
        "token": {
          "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_handlers.OrderGetRequest": {
      "properties": {
        "id": {
          "description": "ID заказа",
          "example": 1,
          "type": "integer"
        },
        "store": {
          "description": "ID ресторана",
          "example": 1,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "store"
      ],
      "type": "object"
    },
    "internal_handlers.OrderListFilters": {
      "properties": {
        "createdAtFrom": {
          "description": "Дата создания с",
          "example": "2006-01-02",
          "type": "string"
        },
        "createdAtTo": {
          "description": "Дата создания по",
          "example": "2006-01-02",
          "type": "string"
        },
        "dueDateFrom": {
          "description": "Срок выполнения с",
          "example": "2006-01-02",
          "type": "string"
        },
        "dueDateTo": {
          "description": "Срок выполнения по",
          "example": "2006-01-02",
          "type": "string"
        },
        "orderStatus": {
          "description": "Статус заказа (DRAFT, APPROVED, APPROVE_BY_MANAGER, APPROVE_BY_HQ, SENT, SEND_ERROR, RECEIVED, CONFIRMED, CONFIRMED_AMENDED, DECLINED, WAIT_SHIPMENT, SHIPMENT_PROCESSING, SHIPPED, ACCEPTED, ACCEPTED_DISCREPANCY, REGISTERED, WAITING_REGISTER, REGISTER_FAIL, PROCESSED, CANCELLED)",
          "example": "DRAFT",
          "type": "string"
        },
        "orderType": {
          "description": "Тип заказа (EXTERNAL, PDC, INTERNAL_TRANSFER, MIX_CART, WEB_PDC, MANUAL_ORDER, SYSTEM_EXTERNAL, SYSTEM_INTERNAL_TRANSFER, EXTERNAL_CUSTOMER)",
          "example": "PURCHASE",
          "type": "string"
        },
        "updatedAtFrom": {
          "description": "Дата изменения с",
          "example": "2006-01-02",
          "type": "string"
        },
        "updatedAtTo": {
          "description": "Дата изменения по",
          "example": "2006-01-02",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_handlers.OrderListRequest": {
      "properties": {
        "filters": {
          "allOf": [
            {
              "$ref": "#/definitions/internal_handlers.OrderListFilters"
            }
          ],
          "description": "Фильтр для списка заказов"
        },
        "limit": {
          "description": "Кол-во элементов",
          "example": 10,
          "type": "integer"
        },
        "offset": {
          "description": "Offset в запросе (для пагинации)",
          "example": 0,
          "type": "integer"
        },
        "store": {
          "description": "ID ресторана",
          "example": 1,
          "type": "integer"
        }
      },
      "required": [
        "limit",
        "offset",
        "store"
      ],
      "type": "object"
    },
    "internal_handlers.OrderListResponse": {
      "properties": {
        "orders": {
          "items": {
            "$ref": "#/definitions/ShortOrder"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "internal_handlers.WorkflowGetRequest": {
      "properties": {
        "id": {
          "description": "ID Workflow",
          "example": 1,
          "type": "integer"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "internal_handlers.WorkflowListRequest": {
      "properties": {
        "limit": {
          "description": "Кол-во элементов",
          "example": 10,
          "type": "integer"
        },
        "offset": {
          "description": "Offset в запросе (для пагинации)",
          "example": 0,
          "type": "integer"
        }
      },
      "required": [
        "limit",
        "offset"
      ],
      "type": "object"
    },
    "internal_handlers.WorkflowListResponse": {
      "properties": {
        "workflows": {
          "items": {
            "$ref": "#/definitions/ShortWorkflow"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "internal_handlers.WorkflowStatusToggleRequest": {
      "properties": {
        "id": {
          "description": "ID Workflow",
          "example": 1,
          "type": "integer"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "internal_handlers.WorkflowStatusToggleResponse": {
      "properties": {
        "active": {
          "type": "boolean"
        },
        "id": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "internal_handlers.createOrderRequest": {
      "properties": {
        "dueDate": {
          "description": "Срок выполнения заказа (формат: 2006-01-02 15:04)",
          "example": "2006-01-02 15:04",
          "type": "string"
        },
        "plannedDeliveryDate": {
          "description": "Плановая дата поставки (формат: 2006-01-02 15:04)",
          "example": "2006-01-02 15:04",
          "type": "string"
        },
        "storeId": {
          "description": "ID ресторана",
          "example": 1,
          "type": "integer"
        },
        "workflowId": {
          "description": "ID Workflow",
          "example": 1,
          "type": "integer"
        }
      },
      "required": [
        "dueDate",
        "plannedDeliveryDate",
        "storeId",
        "workflowId"
      ],
      "type": "object"
    },
    "internal_handlers.createOrderResponse": {
      "properties": {
        "taskId": {
          "description": "Идентификатор задачи",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_handlers.orderProductsAddRequest": {
      "properties": {
        "orderId": {
          "description": "ID заказа",
          "example": 1,
          "type": "integer"
        },
        "productIds": {
          "description": "Массив идентификаторов товаров",
          "example": [
            "[\"550e8400-e29b-41d4-a716-446655440000\"]"
          ],
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "orderId",
        "productIds"
      ],
      "type": "object"
    },
    "internal_handlers.orderSupplierSelectRequest": {
      "properties": {
        "orderId": {
          "description": "ID заказа",
          "example": 1,
          "type": "integer"
        },
        "supplierId": {
          "description": "Идентификатор поставщика",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        }
      },
      "required": [
        "orderId",
        "supplierId"
      ],
      "type": "object"
    },
    "internal_handlers.orderUnitsSelectRequest": {
      "properties": {
        "orderId": {
          "description": "ID заказа",
          "example": 1,
          "type": "integer"
        },
        "units": {
          "description": "Массив единиц измерения с количествами",
          "items": {
            "$ref": "#/definitions/internal_handlers.orderUnitsSelectUnit"
          },
          "type": "array"
        }
      },
      "required": [
        "orderId",
        "units"
      ],
      "type": "object"
    },
    "internal_handlers.orderUnitsSelectUnit": {
      "properties": {
        "containerId": {
          "description": "Идентификатор контейнера (упаковочной единицы)",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        },
        "productId": {
          "description": "Идентификатор товара",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        },
        "quantity": {
          "description": "Количество в выбранном контейнере",
          "example": 10,
          "type": "integer"
        }
      },
      "required": [
        "containerId",
        "productId",
        "quantity"
      ],
      "type": "object"
    },
    "internal_handlers.taskStatusRequest": {
      "properties": {
        "task_id": {
          "description": "Идентификатор задачи",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        }
      },
      "required": [
        "task_id"
      ],
      "type": "object"
    },
    "internal_handlers.taskStatusResponse": {
      "properties": {
        "error": {
          "description": "Сообщение об ошибке (если задача завершилась с ошибкой)",
          "example": "error message",
          "type": "string"
        },
        "order_id": {
          "description": "Идентификатор заказа (если задача завершена)",
          "example": 1,
          "type": "integer"
        },
        "status": {
          "description": "Статус задачи (INIT, DONE, FAILED, NOT_FOUND)",
          "example": "INIT",
          "type": "string"
        },
        "task_id": {
          "description": "Идентификатор задачи",
          "example": "550e8400-e29b-41d4-a716-446655440000",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_incomingInvoice_exportIncomingInvoice.IncomingInvoiceExportJSON": {
      "properties": {
        "comment": {
          "type": "string"
        },
        "conception": {
          "type": "string"
        },
        "conceptionCode": {
          "type": "string"
        },
        "dateIncoming": {
          "type": "string"
        },
        "defaultStore": {
          "type": "string"
        },
        "distributionAlgorithm": {
          "type": "string"
        },
        "documentNumber": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "incomingDate": {
          "type": "string"
        },
        "invoice": {
          "type": "string"
        },
        "items": {
          "items": {
            "$ref": "#/definitions/internal_incomingInvoice_exportIncomingInvoice.IncomingInvoiceItemJSON"
          },
          "type": "array"
        },
        "status": {
          "type": "string"
        },
        "supplier": {
          "type": "string"
        },
        "transportInvoiceNumber": {
          "type": "string"
        },
        "useDefaultDocumentTime": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "internal_incomingInvoice_exportIncomingInvoice.IncomingInvoiceItemJSON": {
      "properties": {
        "actualAmount": {
          "type": "number"
        },
        "amount": {
          "type": "number"
        },
        "amountUnit": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "discountSum": {
          "type": "number"
        },
        "isAdditionalExpense": {
          "type": "boolean"
        },
        "num": {
          "type": "integer"
        },
        "price": {
          "type": "number"
        },
        "priceWithoutVat": {
          "type": "number"
        },
        "product": {
          "type": "string"
        },
        "productArticle": {
          "type": "string"
        },
        "store": {
          "type": "string"
        },
        "sum": {
          "type": "number"
        },
        "vatPercent": {
          "type": "number"
        },
        "vatSum": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "internal_internalTransfer_createInternalTransfer.CreateInternalTransferResponse": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conceptionId": {
          "description": "Идентификатор концепции (GUID, опционально)",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/InternalTransferItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeFromId": {
          "description": "Идентификатор склада отправителя (GUID)",
          "type": "string"
        },
        "storeToId": {
          "description": "Идентификатор склада получателя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_internalTransfer_editInternalTransfer.EditInternalTransferResponse": {
      "properties": {
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "conceptionId": {
          "description": "Идентификатор концепции (GUID, опционально)",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/InternalTransferItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeFromId": {
          "description": "Идентификатор склада отправителя (GUID)",
          "type": "string"
        },
        "storeToId": {
          "description": "Идентификатор склада получателя (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_writeoffDocument_createWriteoffDocument.CreateWriteoffDocumentResponse": {
      "properties": {
        "accountId": {
          "description": "Идентификатор счёта списания (GUID)",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/WriteoffDocumentItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "internal_writeoffDocument_editWriteoffDocument.EditWriteoffDocumentResponse": {
      "properties": {
        "accountId": {
          "description": "Идентификатор счёта списания (GUID)",
          "type": "string"
        },
        "comment": {
          "description": "Комментарий",
          "type": "string"
        },
        "dateIncoming": {
          "description": "Дата документа (формат YYYY-MM-DD HH:MM:SS)",
          "type": "string"
        },
        "documentNumber": {
          "description": "Номер документа",
          "type": "string"
        },
        "id": {
          "description": "Идентификатор документа (GUID)",
          "type": "string"
        },
        "items": {
          "description": "Список элементов документа",
          "items": {
            "$ref": "#/definitions/WriteoffDocumentItemJSON"
          },
          "type": "array"
        },
        "status": {
          "description": "Статус документа",
          "type": "string"
        },
        "storeId": {
          "description": "Идентификатор склада (GUID)",
          "type": "string"
        }
      },
      "type": "object"
    },
    "publicapi_auth_lib_response.ErrorResponse": {
      "properties": {
        "details": {
          "description": "Дополнительные данные об ошибке\nNullable"
        },
        "message": {
          "description": "Текст ошибки",
          "type": "string"
        }
      },
      "type": "object"
    },
    "publicapi_invoiceprocessing_pkg_response.ErrorResponse": {
      "properties": {
        "details": {
          "description": "Дополнительные данные об ошибке\nNullable"
        },
        "message": {
          "description": "Текст ошибки",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "info": {
    "title": "PublicApi Documentation",
    "version": "1.0",
    "x-logo": {
      "url": "/documentation/logo.png"
    }
  },
  "paths": {
    "/auth": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Валидация api_key и возврат jwt",
        "parameters": [
          {
            "description": "Payload",
            "in": "body",
            "name": "payload",
            "schema": {
              "$ref": "#/definitions/internal_handler.AuthRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handler.AuthResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/publicapi_auth_lib_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/publicapi_auth_lib_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/publicapi_auth_lib_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/publicapi_auth_lib_response.ErrorResponse"
            }
          }
        },
        "summary": "Аутентификация через api_key",
        "tags": [
          "PublicApiAuth.Auth"
        ]
      }
    },
    "/document-processing/counteragents": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает список контрагентов с поддержкой пагинации и фильтрации по типу",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetCounteragentsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/GetCounteragentsResponse"
            }
          },
          "400": {
            "description": "Неверные входные данные",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение списка контрагентов",
        "tags": [
          "PublicApiInvoiceProcessing.Counteragents"
        ]
      }
    },
    "/document-processing/incoming-invoice/create": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт приходную накладную из параметров в запросе",
        "parameters": [
          {
            "description": "Параметры приходной накладной",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/IncomingInvoice"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/DocumentValidationResult"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание приходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-invoice/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует приходные накладные из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportIncomingInvoiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "items": {
                "$ref": "#/definitions/internal_incomingInvoice_exportIncomingInvoice.IncomingInvoiceExportJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт приходных накладных",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-invoice/export/by-number": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает приходные накладные по номеру документа и параметрам периода",
        "parameters": [
          {
            "description": "Параметры запроса получения приходной накладной по номеру",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportByNumberRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Список найденных приходных накладных",
            "schema": {
              "items": {
                "$ref": "#/definitions/IncomingInvoiceExportRMS"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "publicapi.method.invoiceprocessing.exportIncomingInvoice.response.forbidden",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение приходной накладной по номеру",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-invoice/pay": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт платеж по приходной накладной в RMS",
        "parameters": [
          {
            "description": "Параметры оплаты приходной накладной",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PayRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/AccountingTransactionUserResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/уже оплачено/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Оплата приходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-invoice/set-payment-date": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Устанавливает дату оплаты для приходной накладной в RMS. Операция доступна только для уже оплаченной накладной (unpaid sum = 0).",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetPaymentDateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/SetPaymentDateResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON/накладная не оплачена)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Установка даты оплаты приходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-invoice/update": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Обновляет приходную накладную из параметров в запросе",
        "parameters": [
          {
            "description": "Параметры приходной накладной",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/IncomingInvoice"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/DocumentValidationResult"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование приходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingInvoices"
        ]
      }
    },
    "/document-processing/incoming-service/create-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт новый акт приема услуг в RMS",
        "parameters": [
          {
            "description": "Параметры создания акта приема услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateIncomingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/CreateIncomingServiceResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта приема услуг",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingService"
        ]
      }
    },
    "/document-processing/incoming-service/edit-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирует существующий акт приема услуг в RMS",
        "parameters": [
          {
            "description": "Параметры редактирования акта приема услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditIncomingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно обновлено",
            "schema": {
              "$ref": "#/definitions/EditIncomingServiceResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON/документ не найден)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта приема услуг",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingService"
        ]
      }
    },
    "/document-processing/incoming-service/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует акты приема услуг из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportIncomingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/IncomingServiceJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов приема услуг",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingService"
        ]
      }
    },
    "/document-processing/incoming-service/get-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акт приема услуг по идентификатору из RMS",
        "parameters": [
          {
            "description": "Параметры запроса акта приема услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetIncomingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/IncomingServiceJSON"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта приема услуг",
        "tags": [
          "PublicApiInvoiceProcessing.IncomingService"
        ]
      }
    },
    "/document-processing/internal-transfer/create": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создание нового акта внутреннего перемещения",
        "parameters": [
          {
            "description": "Данные для создания акта внутреннего перемещения",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateInternalTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Созданный акт внутреннего перемещения",
            "schema": {
              "$ref": "#/definitions/internal_internalTransfer_createInternalTransfer.CreateInternalTransferResponse"
            }
          },
          "400": {
            "description": "Неверный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта внутреннего перемещения",
        "tags": [
          "PublicApiInvoiceProcessing.InternalTransfer"
        ]
      }
    },
    "/document-processing/internal-transfer/edit": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирование существующего акта внутреннего перемещения",
        "parameters": [
          {
            "description": "Данные для редактирования акта внутреннего перемещения",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditInternalTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Отредактированный акт внутреннего перемещения",
            "schema": {
              "$ref": "#/definitions/internal_internalTransfer_editInternalTransfer.EditInternalTransferResponse"
            }
          },
          "400": {
            "description": "Неверный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта внутреннего перемещения",
        "tags": [
          "PublicApiInvoiceProcessing.InternalTransfer"
        ]
      }
    },
    "/document-processing/internal-transfer/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение списка актов внутренних перемещений за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса для экспорта актов внутренних перемещений",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportInternalTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Список актов внутренних перемещений",
            "schema": {
              "items": {
                "$ref": "#/definitions/InternalTransferJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Неверный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов внутренних перемещений",
        "tags": [
          "PublicApiInvoiceProcessing.InternalTransfer"
        ]
      }
    },
    "/document-processing/internal-transfer/export/by-id": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение акта внутреннего перемещения по его уникальному идентификатору",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetInternalTransferByIdRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Акт внутреннего перемещения",
            "schema": {
              "$ref": "#/definitions/InternalTransferJSON"
            }
          },
          "400": {
            "description": "Неверный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта внутреннего перемещения по идентификатору",
        "tags": [
          "PublicApiInvoiceProcessing.InternalTransfer"
        ]
      }
    },
    "/document-processing/internal-transfer/export/by-number": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение актов внутренних перемещений по номеру документа",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportByNumberRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Список актов внутренних перемещений",
            "schema": {
              "items": {
                "$ref": "#/definitions/InternalTransferJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Неверный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Не авторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не разрешен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение актов внутренних перемещений по номеру документа",
        "tags": [
          "PublicApiInvoiceProcessing.InternalTransfer"
        ]
      }
    },
    "/document-processing/outgoing-invoice/create": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт расходную накладную из параметров в запросе",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/OutgoingInvoiceUploadRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/DocumentValidationResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "publicapi.method.invoiceprocessing.exportIncomingInvoice.response.forbidden",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание расходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив расходных накладных",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportOutgoingInvoiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/OutgoingInvoiceExportJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "publicapi.method.invoiceprocessing.exportIncomingInvoice.response.forbidden",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт расходных накладных",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/export/by-number": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает расходные накладные с указанным номером за заданный период или за текущий год",
        "parameters": [
          {
            "description": "Параметры экспорта расходной накладной по номеру",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportByNumberRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Расходные накладные успешно получены",
            "schema": {
              "items": {
                "$ref": "#/definitions/OutgoingInvoiceExportByNumber"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.badRequest",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.unauthorized",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.forbidden",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.methodNotAllowed",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.tooManyRequests",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "publicapi.method.invoiceprocessing.exportOutgoingInvoice.response.internalError",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт расходной накладной по номеру",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/get-cost-prices": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает себестоимость позиций номенклатуры на указанную дату из RMS",
        "parameters": [
          {
            "description": "Параметры запроса себестоимостей",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetCostPricesRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/GetCostPricesResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение себестоимости позиций номенклатуры",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/pay": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт платеж по расходной накладной в RMS",
        "parameters": [
          {
            "description": "Параметры оплаты расходной накладной",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PayOutgoingInvoiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/AccountingTransactionUserResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/уже оплачено/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Оплата расходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/set-payment-date": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Устанавливает дату оплаты для расходной накладной. Операция доступна только для уже оплаченной накладной.",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/SetPaymentDateOutgoingInvoiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/SetPaymentDateOutgoingInvoiceResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON/накладная не оплачена)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Установка даты оплаты расходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-invoice/update": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Обновляет расходную накладную из параметров в запросе",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/OutgoingInvoiceUploadRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/DocumentValidationResult"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "publicapi.method.invoiceprocessing.exportIncomingInvoice.response.forbidden",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Обновление расходной накладной",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingInvoices"
        ]
      }
    },
    "/document-processing/outgoing-service/create-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт новый акт оказания услуг в RMS",
        "parameters": [
          {
            "description": "Параметры создания акта оказания услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateOutgoingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/CreateOutgoingServiceResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта оказания услуг",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingService"
        ]
      }
    },
    "/document-processing/outgoing-service/edit-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирует существующий акт оказания услуг в RMS",
        "parameters": [
          {
            "description": "Параметры редактирования акта оказания услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditOutgoingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно обновлено",
            "schema": {
              "$ref": "#/definitions/EditOutgoingServiceResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON/документ не найден)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта оказания услуг",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingService"
        ]
      }
    },
    "/document-processing/outgoing-service/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует акты оказания услуг из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportOutgoingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/OutgoingServiceJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов оказания услуг",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingService"
        ]
      }
    },
    "/document-processing/outgoing-service/get-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акт оказания услуг по идентификатору из RMS",
        "parameters": [
          {
            "description": "Параметры запроса акта оказания услуг",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetOutgoingServiceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/OutgoingServiceJSON"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта оказания услуг",
        "tags": [
          "PublicApiInvoiceProcessing.OutgoingService"
        ]
      }
    },
    "/document-processing/production-document/create-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт новый акт приготовления в RMS",
        "parameters": [
          {
            "description": "Параметры создания акта приготовления",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateProductionDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/CreateProductionDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта приготовления",
        "tags": [
          "PublicApiInvoiceProcessing.ProductionDocument"
        ]
      }
    },
    "/document-processing/production-document/edit-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирует существующий акт приготовления в RMS",
        "parameters": [
          {
            "description": "Параметры редактирования акта приготовления",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditProductionDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно обновлено",
            "schema": {
              "$ref": "#/definitions/EditProductionDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON/документ не найден)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта приготовления",
        "tags": [
          "PublicApiInvoiceProcessing.ProductionDocument"
        ]
      }
    },
    "/document-processing/production-document/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует акты приготовления из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportProductionDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/ProductionDocumentJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов приготовления",
        "tags": [
          "PublicApiInvoiceProcessing.ProductionDocument"
        ]
      }
    },
    "/document-processing/production-document/get-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акт приготовления по идентификатору из RMS",
        "parameters": [
          {
            "description": "Параметры запроса акта приготовления",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetProductionDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/ProductionDocumentJSON"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта приготовления",
        "tags": [
          "PublicApiInvoiceProcessing.ProductionDocument"
        ]
      }
    },
    "/document-processing/sales-document/create-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт новый акт реализации в RMS",
        "parameters": [
          {
            "description": "Параметры создания акта реализации",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateSalesDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/CreateSalesDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта реализации",
        "tags": [
          "PublicApiInvoiceProcessing.SalesDocument"
        ]
      }
    },
    "/document-processing/sales-document/edit-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирует существующий акт реализации в RMS",
        "parameters": [
          {
            "description": "Параметры редактирования акта реализации",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditSalesDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно обновлено",
            "schema": {
              "$ref": "#/definitions/EditSalesDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON/документ не найден)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта реализации",
        "tags": [
          "PublicApiInvoiceProcessing.SalesDocument"
        ]
      }
    },
    "/document-processing/sales-document/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует акты реализации из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportSalesDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/SalesDocumentJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов реализации",
        "tags": [
          "PublicApiInvoiceProcessing.SalesDocument"
        ]
      }
    },
    "/document-processing/sales-document/get-document": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акт реализации по идентификатору из RMS",
        "parameters": [
          {
            "description": "Параметры запроса акта реализации",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetSalesDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/SalesDocumentJSON"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта реализации",
        "tags": [
          "PublicApiInvoiceProcessing.SalesDocument"
        ]
      }
    },
    "/document-processing/writeoff-document/create": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создаёт новый акт списания в RMS",
        "parameters": [
          {
            "description": "Параметры создания акта списания",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CreateWriteoffDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Успешно создано",
            "schema": {
              "$ref": "#/definitions/internal_writeoffDocument_createWriteoffDocument.CreateWriteoffDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Создание акта списания",
        "tags": [
          "PublicApiInvoiceProcessing.WriteoffDocument"
        ]
      }
    },
    "/document-processing/writeoff-document/edit": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Редактирует существующий акт списания в RMS",
        "parameters": [
          {
            "description": "Параметры редактирования акта списания",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/EditWriteoffDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешно обновлено",
            "schema": {
              "$ref": "#/definitions/internal_writeoffDocument_editWriteoffDocument.EditWriteoffDocumentResponse"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/пустое тело/неверный JSON/документ не найден)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Редактирование акта списания",
        "tags": [
          "PublicApiInvoiceProcessing.WriteoffDocument"
        ]
      }
    },
    "/document-processing/writeoff-document/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Экспортирует акты списания из RMS за указанный период",
        "parameters": [
          {
            "description": "Параметры запроса",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportWriteoffDocumentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/WriteoffDocumentJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Экспорт актов списания",
        "tags": [
          "PublicApiInvoiceProcessing.WriteoffDocument"
        ]
      }
    },
    "/document-processing/writeoff-document/export/by-id": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акт списания по идентификатору из RMS",
        "parameters": [
          {
            "description": "Параметры запроса акта списания",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetWriteoffDocumentByIdRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "$ref": "#/definitions/WriteoffDocumentJSON"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение акта списания по идентификатору",
        "tags": [
          "PublicApiInvoiceProcessing.WriteoffDocument"
        ]
      }
    },
    "/document-processing/writeoff-document/export/by-number": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получает акты списания по номеру документа из RMS",
        "parameters": [
          {
            "description": "Параметры запроса актов списания",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ExportByNumberRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "schema": {
              "items": {
                "$ref": "#/definitions/WriteoffDocumentJSON"
              },
              "type": "array"
            }
          },
          "400": {
            "description": "Некорректный запрос (валидация/неверный JSON)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизован",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещен",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается (ожидается POST)",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Получение актов списания по номеру",
        "tags": [
          "PublicApiInvoiceProcessing.WriteoffDocument"
        ]
      }
    },
    "/entities/cash-flow-category/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив cash-flow-category в потоке, обёрнутый в rootKey \"cash-flow-category\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/CashFlowCategoriesResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список статей движения денежных средств",
        "tags": [
          "PublicApiEntities.CashFlow"
        ]
      }
    },
    "/entities/payment-type/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив payment-types в потоке, обёрнутый в rootKey \"payment-types\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/PaymentTypesResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список типов оплаты",
        "tags": [
          "PublicApiEntities.Payment"
        ]
      }
    },
    "/entities/product-category/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив product-categories в потоке, обёрнутый в rootKey \"product-categories\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/ProductCategoriesResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список категорий продуктов",
        "tags": [
          "PublicApiEntities.Product"
        ]
      }
    },
    "/entities/product-size/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив product-sizes в потоке, обёрнутый в rootKey \"product-sizes\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/ProductSizesResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список размеров продуктов",
        "tags": [
          "PublicApiEntities.Product"
        ]
      }
    },
    "/entities/products/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив products в потоке, обёрнутый в rootKey \"products\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/ProductsListResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список продуктов",
        "tags": [
          "PublicApiEntities.Product"
        ]
      }
    },
    "/entities/store/get": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение конкретного ресторана по его id",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GetStoreRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/StoreByIdResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Конкретный ресторан",
        "tags": [
          "PublicApiEntities.Store"
        ]
      }
    },
    "/entities/store/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение списка ресторанов, отфильтрованных по аккаунту",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/StoreListRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/StoreListResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список ресторанов",
        "tags": [
          "PublicApiEntities.Store"
        ]
      }
    },
    "/entities/user/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Возвращает массив users в потоке, обёрнутый в rootKey \"users\"",
        "parameters": [
          {
            "description": "Request",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Request"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/UsersResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Unauthorized",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/gitlab_iiko_ru_iikoWeb_api-entities_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Список пользователей",
        "tags": [
          "PublicApiEntities.User"
        ]
      }
    },
    "/nomenclature/update-barcodes": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Обновляет штрихкоды продукта в номенклатуре",
        "parameters": [
          {
            "description": "Запрос на обновление штрихкодов продукта",
            "in": "body",
            "name": "payload",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UpdateProductBarcodesRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Штрихкоды продукта успешно обновлены",
            "schema": {
              "$ref": "#/definitions/UpdateProductBarcodesResponse"
            }
          },
          "400": {
            "description": "Некорректные параметры запроса",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "401": {
            "description": "Неавторизованный доступ",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Доступ запрещён",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Продукт или связанный ресурс не найден",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "409": {
            "description": "Конфликт при обновлении штрихкодов продукта",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Слишком много запросов",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Внутренняя ошибка сервера",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          },
          "502": {
            "description": "Ошибка RMS",
            "schema": {
              "$ref": "#/definitions/publicapi_invoiceprocessing_pkg_response.ErrorResponse"
            }
          }
        },
        "summary": "Обновление штрихкодов продукта",
        "tags": [
          "PublicApiInvoiceProcessing.Nomenclature"
        ]
      }
    },
    "/purchasing/orders/create": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Создание нового заказа с привязкой к workflow",
        "parameters": [
          {
            "description": "workflowId, storeId, dueDate, plannedDeliveryDate",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.createOrderRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.createOrderResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Создание заказа",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/get": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Заказ по id и стору",
        "parameters": [
          {
            "description": "id, store",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.OrderGetRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/Order"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Получение заказа",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Список заказов для конкретного стора",
        "parameters": [
          {
            "description": "store, limit/offset",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.OrderListRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.OrderListResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Список заказов",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/products/add": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Добавление товаров в заказ",
        "parameters": [
          {
            "description": "orderId, productIds",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.orderProductsAddRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.createOrderResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Добавление товаров",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/supplier/select": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Выбор поставщика для заказа",
        "parameters": [
          {
            "description": "orderId, supplierId",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.orderSupplierSelectRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.createOrderResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Выбор поставщика",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/task-status": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение статуса задачи создания заказа",
        "parameters": [
          {
            "description": "task_id",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.taskStatusRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.taskStatusResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Статус задачи",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/orders/units/select": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Выбор единиц измерения и количества для товаров заказа",
        "parameters": [
          {
            "description": "orderId, units",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.orderUnitsSelectRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.createOrderResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Выбор единиц измерения",
        "tags": [
          "PublicApiPurchasing.Order"
        ]
      }
    },
    "/purchasing/workflows/activate": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Активация workflow по id",
        "parameters": [
          {
            "description": "id",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowStatusToggleRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowStatusToggleResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Активация workflow",
        "tags": [
          "PublicApiPurchasing.Workflow"
        ]
      }
    },
    "/purchasing/workflows/deactivate": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Деактивация workflow по id",
        "parameters": [
          {
            "description": "id",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowStatusToggleRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowStatusToggleResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Деактивация workflow по id",
        "tags": [
          "PublicApiPurchasing.Workflow"
        ]
      }
    },
    "/purchasing/workflows/get": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение workflow по id",
        "parameters": [
          {
            "description": "id",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowGetRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/Workflow"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Получение workflow",
        "tags": [
          "PublicApiPurchasing.Workflow"
        ]
      }
    },
    "/purchasing/workflows/list": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Получение списка workflow",
        "parameters": [
          {
            "description": "limit/offset",
            "in": "body",
            "name": "request",
            "required": true,
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowListRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/internal_handlers.WorkflowListResponse"
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "429": {
            "description": "Too Many Requests",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          },
          "500": {
            "description": "Internal Server Error",
            "schema": {
              "$ref": "#/definitions/ApiPurchasing_pkg_response.ErrorResponse"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Список workflow",
        "tags": [
          "PublicApiPurchasing.Workflow"
        ]
      }
    }
  },
  "swagger": "2.0",
  "tags": [
    {
      "name": "PublicApiInvoiceProcessing.OutgoingInvoices",
      "x-displayName": "Расходные накладные"
    },
    {
      "name": "PublicApiEntities.CashFlow",
      "x-displayName": "Денежные средства"
    },
    {
      "name": "PublicApiEntities.Product",
      "x-displayName": "Продукты"
    },
    {
      "name": "PublicApiEntities.Store",
      "x-displayName": "Рестораны"
    },
    {
      "name": "PublicApiInvoiceProcessing.Counteragent",
      "x-displayName": "Контрагенты"
    },
    {
      "name": "PublicApiInvoiceProcessing.Counteragents",
      "x-displayName": "Контрагенты"
    },
    {
      "name": "PublicApiInvoiceProcessing.InternalTransfer",
      "x-displayName": "Акты внутреннего перемещения"
    },
    {
      "name": "PublicApiInvoiceProcessing.Nomenclature",
      "x-displayName": "Продукты"
    },
    {
      "name": "PublicApiInvoiceProcessing.SalesDocument",
      "x-displayName": "Акты реализации"
    },
    {
      "name": "PublicApiInvoiceProcessing.WriteoffDocument",
      "x-displayName": "Акты списания"
    },
    {
      "name": "PublicApiInvoiceProcessing.OutgoingService",
      "x-displayName": "Акты оказания услуг"
    },
    {
      "name": "PublicApiEntities.User",
      "x-displayName": "Пользователи"
    },
    {
      "name": "PublicApiInvoiceProcessing.ProductionDocument",
      "x-displayName": "Акты приготовления"
    },
    {
      "name": "PublicApiPurchasing.Order",
      "x-displayName": "Заказы"
    },
    {
      "name": "PublicApiPurchasing.Workflow",
      "x-displayName": "Процессы"
    },
    {
      "name": "PublicApiAuth.Auth",
      "x-displayName": "Аутентификация"
    },
    {
      "name": "PublicApiEntities.Payment",
      "x-displayName": "Оплата"
    },
    {
      "name": "PublicApiInvoiceProcessing.IncomingInvoices",
      "x-displayName": "Приходные накладные"
    },
    {
      "name": "PublicApiInvoiceProcessing.IncomingService",
      "x-displayName": "Акты приема услуг"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Аутентификация",
      "tags": [
        "PublicApiAuth.Auth"
      ]
    },
    {
      "name": "Справочники",
      "tags": [
        "PublicApiEntities.Product",
        "PublicApiEntities.Payment",
        "PublicApiEntities.User",
        "PublicApiEntities.CashFlow",
        "PublicApiEntities.Store"
      ]
    },
    {
      "name": "Документооборот",
      "tags": [
        "PublicApiInvoiceProcessing.IncomingInvoices",
        "PublicApiInvoiceProcessing.OutgoingInvoices",
        "PublicApiInvoiceProcessing.WriteoffDocument",
        "PublicApiInvoiceProcessing.SalesDocument",
        "PublicApiInvoiceProcessing.ProductionDocument",
        "PublicApiInvoiceProcessing.OutgoingService",
        "PublicApiInvoiceProcessing.Nomenclature",
        "PublicApiInvoiceProcessing.InternalTransfer",
        "PublicApiInvoiceProcessing.IncomingService",
        "PublicApiInvoiceProcessing.Counteragents"
      ]
    },
    {
      "name": "Закупки",
      "tags": [
        "PublicApiPurchasing.Workflow",
        "PublicApiPurchasing.Order"
      ]
    }
  ]
}