{"openapi":"3.0.1","info":{"title":"1840.tarf-prodcat-s-rest-v1","description":"1.137 Продуктовый Каталог РБ","contact":{"name":"Аксенов Александр Юрьевич","url":"https://wiki.corp.dev.vtb/pages/viewpage.action?pageId=2180673742","email":"au.aksenov@vtb.ru"},"version":"1.0.0"},"servers":[{"url":"https://csrb.ds1-genr01-csrb-ds1-genr01-csrb-prodcat.apps.ds1-genr01.corp.dev.vtb/api/v1","description":"DSO"},{"url":"https://csrb.ds5-genr02-csrb-prodcat.apps.ds5-genr02.corp.dev.vtb/api/v1","description":"ST"},{"url":"https://csrb.region.vtb.ru/api/v1","description":"PROD"},{"url":"https://csrb.ss1-genr01-csrb-prodcat.apps.ss1-genr01.test.vtb.ru/api/v1","description":"K3"},{"url":"https://csrb.rs1-genr01-csrb-prodcat.apps.rs1-genr01.test.vtb.ru/api/v1","description":"K4"},{"url":"http://localhost:8080/api/v1","description":"localhost"}],"tags":[{"name":"TarfAttribute","description":"The TarfAttributes API"},{"name":"TarfVersions","description":"The TarfVersions API"},{"name":"Tarfs","description":"The Tarfs API"},{"name":"TarfRelations","description":"The TarfRelations API"}],"paths":{"/tarfs/{tarfId}":{"get":{"tags":["Tarfs"],"summary":"Получение тарифа","description":"Метод получения информации о тарифе","operationId":"getTarf","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRes"}}}}},"security":[{"EpaAuth":[]}]},"put":{"tags":["Tarfs"],"summary":"Обновление тарифа","description":"Метод обновления информации о тарифе","operationId":"updateTarf","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfUpdateReq"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}":{"get":{"tags":["TarfVersions"],"summary":"Получение информации о версии тарифа","description":"Метод получения информации о версии тарифа","operationId":"getTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionRes"}}}}},"security":[{"EpaAuth":[]}]},"put":{"tags":["TarfVersions"],"summary":"Обновление информации о версии тарифа","description":"Метод обновления информации о версии тарифа","operationId":"updateTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionRes"}}}}},"security":[{"EpaAuth":[]}]},"delete":{"tags":["TarfVersions"],"summary":"Удаление черновой версии тарифа","description":"Метод удаления черновой версии тарифа","operationId":"deleteTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/lock":{"put":{"tags":["TarfVersions"],"summary":"Блокировка версии тарифа","description":"Метод блокировки версии тарифа","operationId":"lockTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultDtoForEmptyBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/attributes/{attributeId}":{"get":{"tags":["TarfAttribute"],"summary":"Получение информации об атрибуте тарифа","description":"Получение информации об атрибуте тарифа","operationId":"getTarfAttribute","parameters":[{"name":"attributeId","in":"path","description":"Идентификатор атрибута","required":true,"schema":{"type":"string"}},{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TarfAttributeRes"}}}}},"security":[{"EpaAuth":[]}]},"put":{"tags":["TarfAttribute"],"summary":"Обновление информации об атрибуте тарифа","description":"Обновление информации об атрибуте тарифа","operationId":"updateTarfAttribute","parameters":[{"name":"attributeId","in":"path","description":"Идентификатор атрибута","required":true,"schema":{"type":"string"}},{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии атрибута","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfAttributeReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TarfAttributeRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/activate":{"put":{"tags":["TarfVersions"],"summary":"Активация версии тарифа","description":"Метод активации версии тарифа","operationId":"activateTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultDtoForEmptyBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarf/{tarfId}/versions/{versionId}/relations/{relationId}":{"put":{"tags":["TarfRelations"],"summary":"Обновление связи тарифа","description":"Метод обновления связи тарифа","operationId":"updateTarfRelations","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string"}},{"name":"versionId","in":"path","description":"Версия тарифа","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string"}},{"name":"relationId","in":"path","description":"Идентификатор связи","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRelationsUpdateReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRelationsRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs":{"get":{"tags":["Tarfs"],"summary":"Получение всех тарифов","description":"Метод получения списка всех тарифов","operationId":"getAllTarfs","parameters":[{"name":"active","in":"query","description":"Если true, endpoint возвращает только разблокированные объекты с активной версией.","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","description":"Страница, которую вы хотите получить.","required":false,"schema":{"maximum":99999,"minimum":1,"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","description":"Количество записей на странице.","required":false,"schema":{"maximum":99999,"minimum":1,"type":"integer","format":"int32","default":99999}},{"name":"sort","in":"query","description":"Критерии сортировки в формате (, ASC | DESC). Порядок сортировки по умолчанию - по возрастанию.","required":false,"schema":{"maxLength":255,"minLength":0,"type":"string","default":"id,asc"}},{"name":"filter","in":"query","description":"Фильтр по свойству. Поддерживаются несколько вариантов.","required":false,"schema":{"maxItems":10,"minItems":0,"type":"array","items":{"maxLength":255,"type":"string"}}},{"name":"search","in":"query","description":"Поиск по нескольким свойствам.","required":false,"schema":{"maxLength":255,"minLength":0,"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfBasePage"}}}}},"security":[{"EpaAuth":[]}]},"post":{"tags":["Tarfs"],"summary":"Создание тарифа","description":"Метод создания нового тарифа","operationId":"createTarf","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfReq"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions":{"get":{"tags":["TarfVersions"],"summary":"Получение информации о версиях тарифа","description":"Метод получения информации о всех версиях тарифа","operationId":"getAllTarfVersions","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionWithLockedResList"}}}}},"security":[{"EpaAuth":[]}]},"post":{"tags":["TarfVersions"],"summary":"Создание версии тарифа","description":"Метод создания версии тарифа","operationId":"createTarfVersion","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultDtoForEmptyBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfVersionRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/relations":{"get":{"tags":["TarfRelations"],"summary":"Получение информации о связях тарифа","description":"Метод получения информации о связях тарифа","operationId":"getTarfRelations","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TarfAllRelationsRes"}}}}},"security":[{"EpaAuth":[]}]},"post":{"tags":["TarfRelations"],"summary":"Создание связи тарифа с продуктом","description":"Метод создания связи тарифа с продуктом","operationId":"createTarfRelation","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TarfRelationsReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TarfRelationsRes"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/attributes":{"get":{"tags":["TarfAttribute"],"summary":"Получение информации об атрибутах тарифа","description":"Получение информации об атрибутах тарифа","operationId":"getTarfAttributes","parameters":[{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Страница, которую вы хотите получить.","required":false,"schema":{"maximum":99999,"minimum":1,"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","description":"Количество записей на странице.","required":false,"schema":{"maximum":99999,"minimum":1,"type":"integer","format":"int32","default":99999}},{"name":"sort","in":"query","description":"Критерии сортировки в формате (, ASC | DESC). Порядок сортировки по умолчанию - по возрастанию.","required":false,"schema":{"maxLength":255,"minLength":0,"type":"string","default":"dateOfCreation,asc"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TarfAttributeResList"}}}}},"security":[{"EpaAuth":[]}]}},"/tarfs/{tarfId}/versions/{versionId}/relations/{relationId}":{"delete":{"tags":["TarfRelations"],"summary":"Удаление связи тарифа","description":"Метод удаления связи тарифа","operationId":"deleteTarfRelations","parameters":[{"name":"relationId","in":"path","description":"Идентификатор связи","required":true,"schema":{"type":"string"}},{"name":"tarfId","in":"path","description":"Идентификатор тарифа","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","description":"Идентификатор версии тарифа","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}},"security":[{"EpaAuth":[]}]}}},"components":{"schemas":{"TarfUpdateReq":{"required":["name","startDate","tarfsOwner","tarfsStatus"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование объекта"},"tarfsStatus":{"type":"string","description":"Статус тарифа","example":"ACTIVE"},"startDate":{"type":"string","description":"Дата начала действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"endDate":{"type":"string","description":"Дата окончания действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"},"tarfsOwner":{"type":"string","description":"Владелец тарифа (подразделение)"}},"additionalProperties":false,"description":"Информация о тарифе в запросе на обновление"},"TarfRes":{"required":["classId","code","id","startDate","tarfsOwner"],"type":"object","properties":{"id":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"code":{"maxLength":30,"minLength":1,"pattern":"^[A-Za-zА-Яа-я0-9 ,._]+$","type":"string","description":"Уникальный код объекта"},"startDate":{"type":"string","description":"Дата начала действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"endDate":{"type":"string","description":"Дата окончания действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"classCode":{"maxLength":30,"minLength":1,"pattern":"^[A-Za-zА-Яа-я0-9 ,._]+$","type":"string","description":"Уникальный код объекта"},"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"},"classId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"tarfsOwner":{"type":"string","description":"Владелец тарифа (подразделение)"}},"additionalProperties":false,"description":"Информация о тарифе в ответе"},"TarfVersionReq":{"type":"object","properties":{"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"}},"additionalProperties":false,"description":"Запрос на обновление версии тарифа"},"TarfVersionRes":{"required":["id"],"type":"object","properties":{"id":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"version":{"maximum":100,"minimum":1,"type":"integer","description":"Номер версии. Создается автоматически при создании новой версии.","format":"int32","example":1},"startDate":{"type":"string","description":"Дата начала действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"endDate":{"type":"string","description":"Дата окончания действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"},"status":{"type":"string","description":"Статус версии","example":"DRAFT","enum":["DRAFT","ACTIVE","INACTIVE"]},"tarfsId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"updatedBy":{"maxLength":255,"minLength":0,"type":"string","description":"Логин пользователя, обновившего запись","example":"admin"},"locked":{"type":"boolean","description":"Признак \"Заблокировано\"","example":true}},"additionalProperties":false,"description":"Информация о версии тарифа в ответе"},"DefaultDtoForEmptyBody":{"type":"object","properties":{"defaultValue":{"type":"boolean","description":"Дефолтное значение поля"}},"additionalProperties":false,"description":"Дефолтный запрос при создании/активации/блокировке версии"},"TarfAttributeReq":{"required":["name","valueType"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование объекта"},"standardValue":{"maxLength":255,"minLength":0,"type":"string","description":"Стандартное значение","nullable":true},"minValue":{"maxLength":255,"minLength":0,"type":"string","description":"Минимальное значение","nullable":true},"maxValue":{"maxLength":255,"minLength":0,"type":"string","description":"Максимальное значение","nullable":true},"strictValue":{"maxLength":255,"minLength":0,"type":"string","description":"Используется в случае, когда атрибут принимает единственное значение.","nullable":true},"collectionValue":{"maxItems":50,"minItems":0,"type":"array","description":"Используется в случае, когда атрибут принимает множественное значение.","nullable":true,"items":{"type":"string"}},"hidden":{"type":"boolean","description":"Признак того, что атрибут не используется для текущего тарифа (При конфигурации класса тарифа)"},"valueType":{"type":"string","description":"Тип значения атрибута","example":"UNDEFINED","enum":["STRICT_EQUALITY","BY_DEFAULT","RANGE","RANGE_BY_DEFAULT","UNDEFINED","COLLECTION"]}},"additionalProperties":false,"description":"Запрос на обновление атрибута по тарифу"},"InheritedValues":{"type":"object","properties":{"valueType":{"type":"string","description":"Тип значения атрибута","example":"UNDEFINED","enum":["STRICT_EQUALITY","BY_DEFAULT","RANGE","RANGE_BY_DEFAULT","UNDEFINED","COLLECTION"]},"standardValue":{"maxLength":255,"minLength":0,"type":"string","description":"Стандартное значение"},"strictValue":{"maxLength":255,"minLength":0,"type":"string","description":"Используется в случае, когда атрибут принимает единственное значение."},"collectionValue":{"maxItems":50,"minItems":0,"type":"array","description":"Используется в случае, когда атрибут принимает множественное значение.","nullable":true,"items":{"type":"string"}},"minValue":{"maxLength":255,"minLength":0,"type":"string","description":"Минимальное значение"},"maxValue":{"maxLength":255,"minLength":0,"type":"string","description":"Максимальное значение"}},"additionalProperties":false,"description":"Унаследованные с родительского атрибута класса значения"},"TarfAttributeRes":{"required":["id","name","valueType"],"type":"object","properties":{"id":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование объекта"},"attributeCode":{"maxLength":30,"minLength":1,"pattern":"^[A-Za-z ,._]+$","type":"string","description":"Уникальный код объекта","example":"Attr"},"standardValue":{"maxLength":255,"minLength":0,"type":"string","description":"Стандартное значение"},"minValue":{"maxLength":255,"minLength":0,"type":"string","description":"Минимальное значение"},"maxValue":{"maxLength":255,"minLength":0,"type":"string","description":"Максимальное значение"},"strictValue":{"maxLength":255,"minLength":0,"type":"string","description":"Используется в случае, когда атрибут принимает единственное значение."},"collectionVale":{"maxItems":50,"minItems":0,"type":"array","description":"Используется в случае, когда атрибут принимает множественное значение.","nullable":true,"items":{"type":"string"}},"hidden":{"type":"boolean","description":"Признак того, что атрибут не используется для текущего продукта (При конфигурации класса продукта)"},"inheritance":{"type":"boolean","description":"Признак того, что атрибут наследован с родительского класса продукта"},"changed":{"type":"boolean","description":"Признак того, что атрибут перенастроен относительно значений на родительском классе"},"valueType":{"type":"string","description":"Тип значения атрибута","example":"UNDEFINED","enum":["STRICT_EQUALITY","BY_DEFAULT","RANGE","RANGE_BY_DEFAULT","UNDEFINED","COLLECTION"]},"versionId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"attributeId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"dictionaryId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"classAttributeId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"inheritedValues":{"$ref":"#/components/schemas/InheritedValues"}},"additionalProperties":false,"description":"Информация об атрибуте тарифа в ответе"},"TarfRelationsUpdateReq":{"required":["name","value"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование связи"},"value":{"maxLength":255,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Значение"}},"additionalProperties":false,"description":"Сведения о связи тарифа в запросе"},"TarfRelationsRes":{"required":["id","name","productCode","relatedProductId"],"type":"object","properties":{"id":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование связи"},"relatedProductId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор связанного продукта","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"productCode":{"maxLength":30,"minLength":1,"pattern":"^[A-Za-zА-Яа-я0-9 ,._]+$","type":"string","description":"Уникальный код связанного продукта","example":"Attr1"},"value":{"type":"string","description":"Значение"}},"additionalProperties":false,"description":"Информация о связи тарифа в ответе"},"TarfReq":{"required":["classId","code","name","startDate","tarfsOwner","tarfsType"],"type":"object","properties":{"code":{"maxLength":30,"minLength":1,"pattern":"^[A-Za-zА-Яа-я0-9 ,._]+$","type":"string","description":"Уникальный код объекта","example":"Attr"},"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование объекта"},"tarfsType":{"type":"string","description":"Тип продукта"},"tarfsOwner":{"type":"string","description":"Владелец тарифа (подразделение)"},"startDate":{"type":"string","description":"Дата начала действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"endDate":{"type":"string","description":"Дата окончания действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"},"classId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"}},"additionalProperties":false,"description":"Информация о тарифе в запросе на создание"},"TarfRelationsReq":{"required":["name","relatedProductId"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"pattern":"^.*\\S.*$","type":"string","description":"Наименование связи"},"relatedProductId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор связанного продукта","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"value":{"type":"string","description":"Значение"}},"additionalProperties":false,"description":"Запрос на создание связи тарифа"},"TarfBasePage":{"required":["hasNext","hasPrev","totalElements","totalPages"],"type":"object","properties":{"totalElements":{"maximum":99999,"minimum":0,"type":"integer","description":"Количество всех записей в базе","format":"int64","example":14},"totalPages":{"maximum":99999,"minimum":0,"type":"integer","description":"Количество доступных страниц с записями","format":"int64","example":1},"hasNext":{"type":"boolean","description":"true если есть следующая страница","example":true},"hasPrev":{"type":"boolean","description":"true если есть предыдущая страница","example":true},"results":{"maxItems":9999,"minItems":0,"type":"array","description":"Список тарифов","items":{"$ref":"#/components/schemas/TarfRes"}}},"additionalProperties":false,"description":"Страница с информацией о тарифах"},"TarfVersionWithLockedRes":{"required":["id"],"type":"object","properties":{"id":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"version":{"maximum":100,"minimum":1,"type":"integer","description":"Номер версии. Создается автоматически при создании новой версии.","format":"int32","example":1},"startDate":{"type":"string","description":"Дата начала действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"endDate":{"type":"string","description":"Дата окончания действия (публикации) версии объекта","format":"date-time","example":"2021-03-24T12:51:51+03:00"},"comment":{"maxLength":255,"minLength":0,"type":"string","description":"Комментарий","example":"Some comment"},"status":{"type":"string","description":"Статус версии","example":"DRAFT","enum":["DRAFT","ACTIVE","INACTIVE"]},"tarfsId":{"maxLength":36,"minLength":36,"pattern":"\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b","type":"string","description":"Уникальный идентификатор","example":"e2e40a45-1e80-48a2-9e62-66c0c6d562e3"},"updatedBy":{"maxLength":255,"minLength":0,"type":"string","description":"Логин пользователя, обновившего запись","example":"admin"},"locked":{"type":"boolean","description":"Признак \"Заблокировано\"","example":true},"isLockedByCurrentUser":{"type":"boolean","description":"Признак \"Заблокировано текущим пользователем\"","example":true}},"additionalProperties":false,"description":"Информация о версии тарифа в ответе"},"TarfVersionWithLockedResList":{"type":"object","properties":{"results":{"maxItems":9999,"minItems":0,"type":"array","description":"Список версий тарифов с признаком блокировки","items":{"$ref":"#/components/schemas/TarfVersionWithLockedRes"}}},"additionalProperties":false,"description":"Список версий тарифов"},"TarfAllRelationsRes":{"type":"object","properties":{"tarfRelations":{"maxItems":255,"minItems":0,"type":"array","description":"Список связей тарифа","items":{"$ref":"#/components/schemas/TarfRelationsRes"}},"size":{"maximum":255,"minimum":0,"type":"integer","description":"Число связей тарифа в ответе","format":"int32","example":5}},"additionalProperties":false,"description":"Список связей тарифа"},"TarfAttributeResList":{"type":"object","properties":{"results":{"maxItems":9999,"minItems":0,"type":"array","description":"Список атрибутов тарифа","items":{"$ref":"#/components/schemas/TarfAttributeRes"}}},"additionalProperties":false,"description":"Список значений атрибутов тарифов"}},"securitySchemes":{"EpaAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}