From a2b04d0c0ae8ec1830c12ec2f04677f999008286 Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Mon, 28 Mar 2022 14:36:23 +0300
Subject: [PATCH 1/8] examp
---
new 7.json | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 new 7.json
diff --git a/new 7.json b/new 7.json
new file mode 100644
index 0000000..fd63e5d
--- /dev/null
+++ b/new 7.json
@@ -0,0 +1,5 @@
+{
+ "uuid": "string",
+ "stage": "new",
+ "stage_comment": "string"
+}
\ No newline at end of file
From ab4be36b5a44f031fc983002e47e557f885428ee Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Mon, 28 Mar 2022 15:03:02 +0300
Subject: [PATCH 2/8] Add files via upload
---
schema.txt | 243 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 243 insertions(+)
create mode 100644 schema.txt
diff --git a/schema.txt b/schema.txt
new file mode 100644
index 0000000..1c5901d
--- /dev/null
+++ b/schema.txt
@@ -0,0 +1,243 @@
+openapi: 3.0.3
+info:
+ title: doccollect-app
+ description: Сервис запроса документов от клиента
+ contact: { }
+ license:
+ name: Rosbank
+ url: 'http://rosbank.ru'
+ version: 1.0.0
+servers:
+ - url: 'https://localhost:443'
+ description: Inferred Url
+tags:
+ - name: DocCollectApp
+ description: Default Api Controller
+paths:
+ /app/request/{uuid}/:
+ get:
+ tags:
+ - DocCollectApp
+ summary: Получение данных запроса документов
+ description: Получение данных запроса документов
+ operationId: docCollectInfoGet
+ parameters:
+ - name: uuid
+ in: path
+ description: Токен из ссылки
+ required: true
+ style: simple
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Успешный запрос
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DocCollectInfo'
+ '400':
+ description: Запрос по токену не найден
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Ошибка
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+
+ /app/request/:
+ post:
+ tags:
+ - DocCollectApp
+ summary: Создание запроса документов
+ operationId: docCollectInfoPost
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DocCollectInfo'
+ responses:
+ '200':
+ description: Успешный запрос
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ '500':
+ description: Ошибка
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+
+ /app/timeextend/:
+ post:
+ tags:
+ - DocCollectApp
+ summary: Отправка запроса на продление срока
+ operationId: timeExtend
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/timeExtend'
+ responses:
+ '200':
+ description: Успешный запрос
+ '500':
+ description: Ошибка
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+
+components:
+ schemas:
+ Error:
+ title: Error
+ type: object
+ properties:
+ id:
+ type: string
+ description: идентификатор ошибки
+ message:
+ type: string
+ description: сообщение об ошибке
+ type:
+ type: string
+ enum:
+ - REQUEST_NOT_FOUND
+ - EMPTY_STATEMENT_ERROR
+ - FORBIDDEN
+ - IMPORT_DOCUMENT_ERROR
+ - INVALID_CREDENTIALS
+ - REVERT_DOCUMENT_ERROR
+ - UNEXPECTED
+ - VALIDATION_ERROR
+ DocCollectInfo:
+ title: DocCollectInfo
+ type: object
+ description: Данные по запросу документов для бэка
+ properties:
+ callback_url:
+ type: string
+ uuid:
+ type: string
+ request_id:
+ type: string
+ stage:
+ type: string
+ enum:
+ - new
+ - rework
+ - sent
+ - final
+ description: Статус запроса
+ stage_name:
+ type: string
+ description: Имя статуса запроса для отображения на фронте
+ stage_option:
+ type: string
+ description: Для фронта - хороший, нейтральный или плохой статус(разные картинки)
+ stage_comment:
+ type: string
+ description: Подробная информация по статусу - видит клиент
+ limit_date:
+ type: string
+ description: Предельный срок запроса
+ format: date-time
+ new_date:
+ type: string
+ description: Запрошенная клиентом дата запроса
+ format: date-time
+ extended:
+ type: string
+ description: Признак возможности продлить срок запроса
+ document_list:
+ type: array
+ description: Список документов, запрашиваемых у клиента
+ items:
+ $ref: '#/components/schemas/Document'
+ client_info_list:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClientInfo'
+ Token:
+ title: token
+ type: object
+ properties:
+ token:
+ type: string
+ SentDocCollectInfo:
+ title: sentDocCollectInfo
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: id клиента из бд
+ request_id:
+ type: string
+ document_list:
+ type: array
+ description: Список документов, которые клиент приложил
+ items:
+ $ref: '#/components/schemas/DocumentUser'
+ timeExtend:
+ title: timeExtend
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: 'id клиента из бд'
+ request_id:
+ type: string
+ new_date:
+ type: string
+ ClientInfo:
+ title: clientInfo
+ type: object
+ description: 'информация о клиенте'
+ properties:
+ param_name:
+ type: string
+ description: 'Название параметра'
+ param_value:
+ type: string
+ description: 'Значение параметра'
+ Document:
+ title: documentInfo
+ type: object
+ description: 'информация о файле'
+ properties:
+ doc_id:
+ type: string
+ description: 'id документа в системе-источнике'
+ doc_name:
+ type: string
+ description: 'Имя документа'
+ mandatory:
+ type: string
+ description: 'Обязательность документа'
+ comment:
+ type: string
+ description: 'Расшифровка имени - какую часть документа нужно приложить'
+ DocumentUser:
+ type: object
+ description: 'Документы пользователя'
+ properties:
+ doc_name:
+ type: string
+ description: 'Имя документа, который прислала система-источник'
+ comment:
+ type: string
+ description: 'Комментарий клиента к документу'
+ elib_id:
+ type: array
+ items:
+ properties:
+ elib_id:
+ type: string
\ No newline at end of file
From 76d07237ba613721f7264133a8092a6474ca9741 Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Mon, 28 Mar 2022 15:05:47 +0300
Subject: [PATCH 3/8] Update schema.txt
---
schema.txt | 60 ++----------------------------------------------------
1 file changed, 2 insertions(+), 58 deletions(-)
diff --git a/schema.txt b/schema.txt
index 1c5901d..be0f3a1 100644
--- a/schema.txt
+++ b/schema.txt
@@ -14,41 +14,6 @@ tags:
- name: DocCollectApp
description: Default Api Controller
paths:
- /app/request/{uuid}/:
- get:
- tags:
- - DocCollectApp
- summary: Получение данных запроса документов
- description: Получение данных запроса документов
- operationId: docCollectInfoGet
- parameters:
- - name: uuid
- in: path
- description: Токен из ссылки
- required: true
- style: simple
- schema:
- type: string
- responses:
- '200':
- description: Успешный запрос
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DocCollectInfo'
- '400':
- description: Запрос по токену не найден
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Ошибка
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
/app/request/:
post:
tags:
@@ -74,28 +39,7 @@ paths:
schema:
$ref: '#/components/schemas/Error'
- /app/timeextend/:
- post:
- tags:
- - DocCollectApp
- summary: Отправка запроса на продление срока
- operationId: timeExtend
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/timeExtend'
- responses:
- '200':
- description: Успешный запрос
- '500':
- description: Ошибка
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
-components:
+ components:
schemas:
Error:
title: Error
@@ -240,4 +184,4 @@ components:
items:
properties:
elib_id:
- type: string
\ No newline at end of file
+ type: string
From cee78f8fe815e6fe236943d095cacb15e655585e Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Mon, 28 Mar 2022 15:07:26 +0300
Subject: [PATCH 4/8] Add files via upload
---
schema2.txt | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 187 insertions(+)
create mode 100644 schema2.txt
diff --git a/schema2.txt b/schema2.txt
new file mode 100644
index 0000000..4a046c8
--- /dev/null
+++ b/schema2.txt
@@ -0,0 +1,187 @@
+openapi: 3.0.3
+info:
+ title: doccollect-app
+ description: Сервис запроса документов от клиента
+ contact: { }
+ license:
+ name: Rosbank
+ url: 'http://rosbank.ru'
+ version: 1.0.0
+servers:
+ - url: 'https://localhost:443'
+ description: Inferred Url
+tags:
+ - name: DocCollectApp
+ description: Default Api Controller
+paths:
+ /app/request/:
+ post:
+ tags:
+ - DocCollectApp
+ summary: Создание запроса документов
+ operationId: docCollectInfoPost
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DocCollectInfo'
+ responses:
+ '200':
+ description: Успешный запрос
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Token'
+ '500':
+ description: Ошибка
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+
+ components:
+ schemas:
+ Error:
+ title: Error
+ type: object
+ properties:
+ id:
+ type: string
+ description: идентификатор ошибки
+ message:
+ type: string
+ description: сообщение об ошибке
+ type:
+ type: string
+ enum:
+ - REQUEST_NOT_FOUND
+ - EMPTY_STATEMENT_ERROR
+ - FORBIDDEN
+ - IMPORT_DOCUMENT_ERROR
+ - INVALID_CREDENTIALS
+ - REVERT_DOCUMENT_ERROR
+ - UNEXPECTED
+ - VALIDATION_ERROR
+ DocCollectInfo:
+ title: DocCollectInfo
+ type: object
+ description: Данные по запросу документов для бэка
+ properties:
+ callback_url:
+ type: string
+ uuid:
+ type: string
+ request_id:
+ type: string
+ stage:
+ type: string
+ enum:
+ - new
+ - rework
+ - sent
+ - final
+ description: Статус запроса
+ stage_name:
+ type: string
+ description: Имя статуса запроса для отображения на фронте
+ stage_option:
+ type: string
+ description: Для фронта - хороший, нейтральный или плохой статус(разные картинки)
+ stage_comment:
+ type: string
+ description: Подробная информация по статусу - видит клиент
+ limit_date:
+ type: string
+ description: Предельный срок запроса
+ format: date-time
+ new_date:
+ type: string
+ description: Запрошенная клиентом дата запроса
+ format: date-time
+ extended:
+ type: string
+ description: Признак возможности продлить срок запроса
+ document_list:
+ type: array
+ description: Список документов, запрашиваемых у клиента
+ items:
+ $ref: '#/components/schemas/Document'
+ client_info_list:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClientInfo'
+ Token:
+ title: token
+ type: object
+ properties:
+ token:
+ type: string
+ SentDocCollectInfo:
+ title: sentDocCollectInfo
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: id клиента из бд
+ request_id:
+ type: string
+ document_list:
+ type: array
+ description: Список документов, которые клиент приложил
+ items:
+ $ref: '#/components/schemas/DocumentUser'
+ timeExtend:
+ title: timeExtend
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: 'id клиента из бд'
+ request_id:
+ type: string
+ new_date:
+ type: string
+ ClientInfo:
+ title: clientInfo
+ type: object
+ description: 'информация о клиенте'
+ properties:
+ param_name:
+ type: string
+ description: 'Название параметра'
+ param_value:
+ type: string
+ description: 'Значение параметра'
+ Document:
+ title: documentInfo
+ type: object
+ description: 'информация о файле'
+ properties:
+ doc_id:
+ type: string
+ description: 'id документа в системе-источнике'
+ doc_name:
+ type: string
+ description: 'Имя документа'
+ mandatory:
+ type: string
+ description: 'Обязательность документа'
+ comment:
+ type: string
+ description: 'Расшифровка имени - какую часть документа нужно приложить'
+ DocumentUser:
+ type: object
+ description: 'Документы пользователя'
+ properties:
+ doc_name:
+ type: string
+ description: 'Имя документа, который прислала система-источник'
+ comment:
+ type: string
+ description: 'Комментарий клиента к документу'
+ elib_id:
+ type: array
+ items:
+ properties:
+ elib_id:
+ type: string
\ No newline at end of file
From cd291cea34647a026f78da430db2e8cc23e2ae1f Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Mon, 28 Mar 2022 15:15:34 +0300
Subject: [PATCH 5/8] 11
---
schema2.txt | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/schema2.txt b/schema2.txt
index 4a046c8..eff9326 100644
--- a/schema2.txt
+++ b/schema2.txt
@@ -130,17 +130,7 @@ paths:
description: Список документов, которые клиент приложил
items:
$ref: '#/components/schemas/DocumentUser'
- timeExtend:
- title: timeExtend
- type: object
- properties:
- client_id:
- type: string
- description: 'id клиента из бд'
- request_id:
- type: string
- new_date:
- type: string
+
ClientInfo:
title: clientInfo
type: object
@@ -184,4 +174,4 @@ paths:
items:
properties:
elib_id:
- type: string
\ No newline at end of file
+ type: string
From 91c13a6f11e6a87d167e545a4fbf8f4a39790334 Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Wed, 22 Mar 2023 10:56:21 +0300
Subject: [PATCH 6/8] Add files via upload
---
swagger_crmclients3.json | 583 +++++++++++++++++++++++++++++++++++++++
1 file changed, 583 insertions(+)
create mode 100644 swagger_crmclients3.json
diff --git a/swagger_crmclients3.json b/swagger_crmclients3.json
new file mode 100644
index 0000000..94b3fcc
--- /dev/null
+++ b/swagger_crmclients3.json
@@ -0,0 +1,583 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "title": "ProPortal API",
+ "description": "ProPortal API",
+ "contact": {
+ "name": "Sergey Pechenyuk",
+ "email": "sergey.pechenyuk@rosbank.ru"
+ },
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "https://testproportal.testproportal.trosbank.trus.tsocgen/",
+ "description": "Sandbox"
+ },
+ {
+ "url": "https://proportal.rosbank.rus.socgen/",
+ "description": "Production"
+ }
+ ],
+ "paths": {
+
+ "/pro/api/crmclient3/get": {
+ "get": {
+ "tags": [
+ "Siebel"
+ ],
+ "summary": "Поиск клиентов",
+ "description": "Ищет клиенто во view - view_crm_client3",
+ "operationId": "b853c38b84764ad34bc283a93b15f36c",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "client_id": {
+ "description": "ID проспекта в портале",
+ "type": "string",
+ "example": "5461154"
+ },
+ "fclient": {
+ "description": "BisBranch + BisId",
+ "type": "string",
+ "example": "R19001002"
+ },
+ "inn": {
+ "description": "ИНН",
+ "type": "string",
+ "example": "1234567894"
+ },
+ "ogrn": {
+ "description": "ОГРН",
+ "type": "string",
+ "example": "1234567890123"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Результаты поиска",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "properties": {
+ "ADRES_FACT": {
+ "type": "string"
+ },
+ "ADRES_POCHT": {
+ "type": "string"
+ },
+ "ADRES_REG": {
+ "type": "string"
+ },
+ "CLIENT_ID": {
+ "type": "string"
+ },
+ "CODE_KPP": {
+ "type": "string"
+ },
+ "CODE_OKATO": {
+ "type": "string"
+ },
+ "CODE_OKFS": {
+ "type": "string"
+ },
+ "CODE_OKOGU": {
+ "type": "string"
+ },
+ "CODE_OKOPF": {
+ "type": "string"
+ },
+ "CODE_OKPO": {
+ "type": "string"
+ },
+ "CODE_OKTMO": {
+ "type": "string"
+ },
+ "CODE_SPARK": {
+ "type": "string"
+ },
+ "CONTACT_EMAIL": {
+ "type": "string"
+ },
+ "CONTACT_PHONES_ARRAY": {
+ "type": "string"
+ },
+ "CONTACT_WEBSITE": {
+ "type": "string"
+ },
+ "CURRENT_BANK": {
+ "type": "string"
+ },
+ "DATA_PERVAYA_VSTRECHA": {
+ "type": "string"
+ },
+ "DATA_PERVYI_ZVONOK": {
+ "type": "string"
+ },
+ "DATE_REG_YYYYMMDD": {
+ "type": "string"
+ },
+ "FCLIENT": {
+ "type": "string"
+ },
+ "FULL_WITH_OPF": {
+ "type": "string"
+ },
+ "INN": {
+ "type": "string"
+ },
+ "INTERES_K": {
+ "type": "string"
+ },
+ "KANAL_PRIVLECHENIYA": {
+ "type": "string"
+ },
+ "MANAGEMENT_INN": {
+ "type": "string"
+ },
+ "MANAGEMENT_NAME": {
+ "type": "string"
+ },
+ "MANAGEMENT_POST": {
+ "type": "string"
+ },
+ "NAME": {
+ "type": "string"
+ },
+ "NUMBEROFEMPLOYEESRANGE": {
+ "type": "string"
+ },
+ "OGRN": {
+ "type": "string"
+ },
+ "OKVED_ALL": {
+ "type": "string"
+ },
+ "OKVED_MAIN": {
+ "type": "string"
+ },
+ "OKVED_VID_DEYATELNOSTI": {
+ "type": "string"
+ },
+ "OPF_SHORT": {
+ "type": "string"
+ },
+ "RAZMER_PREDPRIYATIYA": {
+ "type": "string"
+ },
+ "RB_HUNTER": {
+ "type": "string"
+ },
+ "RB_MENEDZHER_PRO": {
+ "type": "string"
+ },
+ "RB_MENEDZHER_SCHETA": {
+ "type": "string"
+ },
+ "REGAUTHORITY": {
+ "type": "string"
+ },
+ "REGAUTHORITYADDRESS": {
+ "type": "string"
+ },
+ "SPARK_DATA_ROZHDENIYA_IP": {
+ "type": "string"
+ },
+ "SPARK_VAZHNAYA_INFORMACIYA": {
+ "type": "string"
+ },
+ "VYRUCHKA_PERIOD": {
+ "type": "string"
+ },
+ "VYRUCHKA_ZA_GOD": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Ошибка входных данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string",
+ "example": "Отсутствуют обязательные параметры"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+
+
+ },
+ "components": {
+ "schemas": {
+ "SubscriptionRef": {
+ "required": [
+ "company",
+ "inn",
+ "organization_id",
+ "product_card_code",
+ "state",
+ "lead"
+ ],
+ "properties": {
+ "company": {
+ "description": "Наименование клиента",
+ "type": "string",
+ "maxLength": 255,
+ "example": "ООО Рога и копыта"
+ },
+ "inn": {
+ "description": "ИНН клиента",
+ "type": "string",
+ "maxLength": 12,
+ "minLength": 12,
+ "example": "1234567894"
+ },
+ "organization_id": {
+ "description": "ID клиента в Siebel",
+ "type": "string",
+ "maxLength": 20,
+ "example": "1-IE03T2"
+ },
+ "product_card_code": {
+ "description": "Код продукта",
+ "type": "string",
+ "maxLength": 20,
+ "enum": [
+ "moedelo"
+ ],
+ "example": "moedelo"
+ },
+ "state": {
+ "description": "Код статуса лида",
+ "type": "number",
+ "enum": [
+ 60
+ ],
+ "example": 60
+ },
+ "client_full_name": {
+ "description": "ФИО пользователя РМБ, который направил лид",
+ "type": "string",
+ "maxLength": 150,
+ "example": "Иванов Иван Иванович"
+ },
+ "km_uid": {
+ "description": "ID пользователя, отправившего лид с ПроПортала",
+ "type": "string",
+ "example": "10593"
+ },
+ "lead": {
+ "description": "Информация о лиде",
+ "required": [
+ "name",
+ "email",
+ "phone",
+ "tariff",
+ "subscription_start_date"
+ ],
+ "properties": {
+ "name": {
+ "description": "ФИО контактного лица",
+ "type": "string",
+ "maxLength": 150,
+ "example": "Иванов Иван Иванович"
+ },
+ "email": {
+ "description": "Email контактного лица",
+ "type": "string",
+ "maxLength": 100,
+ "example": "ivan@ivanov.ru"
+ },
+ "phone": {
+ "description": "Телефон контактного лица",
+ "type": "string",
+ "maxLength": 20,
+ "example": "+7 (926) 123-45-67"
+ },
+ "tariff": {
+ "description": "Код тарифа
`ib-economy-package-rosbank` - Пакет Эконом на 1 мес
\r\n`ib-base-package-rosbank` - Пакет Базовый на 1 мес
`ib-premium-package-rosbank` - Пакет Премиум на 1 мес",
+ "type": "string",
+ "maxLength": 40,
+ "enum": [
+ "ib-economy-package-rosbank",
+ "ib-base-package-rosbank",
+ "ib-premium-package-rosbank"
+ ],
+ "example": "ib-economy-package-rosbank"
+ },
+ "subscription_start_date": {
+ "description": "Дата начала подписки",
+ "type": "string",
+ "format": "date",
+ "example": "2022-10-28"
+ },
+ "request_id": {
+ "description": "ИД клиента в МД",
+ "type": "string",
+ "maxLength": 50,
+ "example": "894-794-540"
+ },
+ "account_id": {
+ "description": "ИД счета в МД",
+ "type": "string",
+ "maxLength": 20,
+ "example": "10379357"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "responses": {
+ "SubscriptionResponse2xx": {
+ "description": "Лид принят ProPortal",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "leadId": {
+ "description": "ID созданного лида в ProPortal",
+ "type": "number",
+ "example": 37172
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionResponse400": {
+ "description": "Ошибка валидации данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "errors": {
+ "properties": {
+ "any_field": {
+ "description": "Название поля не прошедшего валидацию",
+ "type": "string",
+ "maxLength": 20,
+ "example": "Поле company обязательно для заполнения"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionResponse5xx": {
+ "description": "Страница не найдена",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "error": {
+ "description": "Описание ошибки",
+ "type": "string",
+ "example": "Not Found"
+ },
+ "path": {
+ "description": "Путь, где возникла ошибка",
+ "type": "string",
+ "example": "/pro/subscription/"
+ },
+ "status": {
+ "description": "Код ответа сервера",
+ "type": "number",
+ "example": 404
+ },
+ "timestamp": {
+ "description": "Метка времени возникновения ошибки",
+ "type": "string",
+ "format": "date-time",
+ "example": "2022-10-28 12:12:30"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionStateResponse200": {
+ "description": "Обновление статуса подписки произошло успешно",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "success": {
+ "description": "Факт обновления статуса подписки",
+ "type": "boolean",
+ "example": true
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse201": {
+ "description": "Создание лида на эквайринг",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "lead_id"
+ ],
+ "properties": {
+ "lead_id": {
+ "description": "ID созданного лида в системе ProPortal",
+ "type": "string",
+ "example": "d8d630f8-daff-41eb-95f3-526f5155718a"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse400": {
+ "description": "Ошибка валидации данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "errors": {
+ "properties": {
+ "any_field": {
+ "description": "Название поля не прошедшего валидацию",
+ "type": "string",
+ "maxLength": 20,
+ "example": "Поле company обязательно для заполнения"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse5xx": {
+ "description": "Страница не найдена",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "error": {
+ "description": "Описание ошибки",
+ "type": "string",
+ "example": "Not Found"
+ },
+ "path": {
+ "description": "Путь, где возникла ошибка",
+ "type": "string",
+ "example": "/pro/subscription/"
+ },
+ "status": {
+ "description": "Код ответа сервера",
+ "type": "number",
+ "example": 404
+ },
+ "timestamp": {
+ "description": "Метка времени возникновения ошибки",
+ "type": "string",
+ "format": "date-time",
+ "example": "2022-10-28 12:12:30"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadStateRmbResponse200": {
+ "description": "Обновление информации о статусе заявке",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "success"
+ ],
+ "properties": {
+ "success": {
+ "description": "Флаг обновления статуса заявки",
+ "type": "boolean",
+ "example": true
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "securitySchemes": {
+ "bearerAuth": {
+ "type": "http",
+ "name": "bearerAuth",
+ "in": "header",
+ "bearerFormat": "JWT",
+ "scheme": "bearer"
+ }
+ }
+ },
+ "tags": [
+ {
+ "name": "Activity",
+ "description": "Активности"
+ },
+ {
+ "name": "OnboardingKrmApp",
+ "description": "КРМ заявка онбординга"
+ },
+ {
+ "name": "Payroll",
+ "description": "Payroll"
+ },
+ {
+ "name": "Prospect",
+ "description": "Проспекты"
+ },
+ {
+ "name": "SiebelPass",
+ "description": "Получение информации из Siebel CRM"
+ },
+ {
+ "name": "Subscription",
+ "description": "Получение информации по подписке в РМБ"
+ },
+ {
+ "name": "AcquiringUCS",
+ "description": "Получение информации по подключению эквайринга из РМБ"
+ }
+ ]
+}
\ No newline at end of file
From bad4279a7d5557554857c4e1288c08c8b4f4426e Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Wed, 22 Mar 2023 11:40:49 +0300
Subject: [PATCH 7/8] Add files via upload
---
swagger_crmclients3_text.txt | 583 +++++++++++++++++++++++++++++++++++
1 file changed, 583 insertions(+)
create mode 100644 swagger_crmclients3_text.txt
diff --git a/swagger_crmclients3_text.txt b/swagger_crmclients3_text.txt
new file mode 100644
index 0000000..94b3fcc
--- /dev/null
+++ b/swagger_crmclients3_text.txt
@@ -0,0 +1,583 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "title": "ProPortal API",
+ "description": "ProPortal API",
+ "contact": {
+ "name": "Sergey Pechenyuk",
+ "email": "sergey.pechenyuk@rosbank.ru"
+ },
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "https://testproportal.testproportal.trosbank.trus.tsocgen/",
+ "description": "Sandbox"
+ },
+ {
+ "url": "https://proportal.rosbank.rus.socgen/",
+ "description": "Production"
+ }
+ ],
+ "paths": {
+
+ "/pro/api/crmclient3/get": {
+ "get": {
+ "tags": [
+ "Siebel"
+ ],
+ "summary": "Поиск клиентов",
+ "description": "Ищет клиенто во view - view_crm_client3",
+ "operationId": "b853c38b84764ad34bc283a93b15f36c",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "client_id": {
+ "description": "ID проспекта в портале",
+ "type": "string",
+ "example": "5461154"
+ },
+ "fclient": {
+ "description": "BisBranch + BisId",
+ "type": "string",
+ "example": "R19001002"
+ },
+ "inn": {
+ "description": "ИНН",
+ "type": "string",
+ "example": "1234567894"
+ },
+ "ogrn": {
+ "description": "ОГРН",
+ "type": "string",
+ "example": "1234567890123"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Результаты поиска",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "properties": {
+ "ADRES_FACT": {
+ "type": "string"
+ },
+ "ADRES_POCHT": {
+ "type": "string"
+ },
+ "ADRES_REG": {
+ "type": "string"
+ },
+ "CLIENT_ID": {
+ "type": "string"
+ },
+ "CODE_KPP": {
+ "type": "string"
+ },
+ "CODE_OKATO": {
+ "type": "string"
+ },
+ "CODE_OKFS": {
+ "type": "string"
+ },
+ "CODE_OKOGU": {
+ "type": "string"
+ },
+ "CODE_OKOPF": {
+ "type": "string"
+ },
+ "CODE_OKPO": {
+ "type": "string"
+ },
+ "CODE_OKTMO": {
+ "type": "string"
+ },
+ "CODE_SPARK": {
+ "type": "string"
+ },
+ "CONTACT_EMAIL": {
+ "type": "string"
+ },
+ "CONTACT_PHONES_ARRAY": {
+ "type": "string"
+ },
+ "CONTACT_WEBSITE": {
+ "type": "string"
+ },
+ "CURRENT_BANK": {
+ "type": "string"
+ },
+ "DATA_PERVAYA_VSTRECHA": {
+ "type": "string"
+ },
+ "DATA_PERVYI_ZVONOK": {
+ "type": "string"
+ },
+ "DATE_REG_YYYYMMDD": {
+ "type": "string"
+ },
+ "FCLIENT": {
+ "type": "string"
+ },
+ "FULL_WITH_OPF": {
+ "type": "string"
+ },
+ "INN": {
+ "type": "string"
+ },
+ "INTERES_K": {
+ "type": "string"
+ },
+ "KANAL_PRIVLECHENIYA": {
+ "type": "string"
+ },
+ "MANAGEMENT_INN": {
+ "type": "string"
+ },
+ "MANAGEMENT_NAME": {
+ "type": "string"
+ },
+ "MANAGEMENT_POST": {
+ "type": "string"
+ },
+ "NAME": {
+ "type": "string"
+ },
+ "NUMBEROFEMPLOYEESRANGE": {
+ "type": "string"
+ },
+ "OGRN": {
+ "type": "string"
+ },
+ "OKVED_ALL": {
+ "type": "string"
+ },
+ "OKVED_MAIN": {
+ "type": "string"
+ },
+ "OKVED_VID_DEYATELNOSTI": {
+ "type": "string"
+ },
+ "OPF_SHORT": {
+ "type": "string"
+ },
+ "RAZMER_PREDPRIYATIYA": {
+ "type": "string"
+ },
+ "RB_HUNTER": {
+ "type": "string"
+ },
+ "RB_MENEDZHER_PRO": {
+ "type": "string"
+ },
+ "RB_MENEDZHER_SCHETA": {
+ "type": "string"
+ },
+ "REGAUTHORITY": {
+ "type": "string"
+ },
+ "REGAUTHORITYADDRESS": {
+ "type": "string"
+ },
+ "SPARK_DATA_ROZHDENIYA_IP": {
+ "type": "string"
+ },
+ "SPARK_VAZHNAYA_INFORMACIYA": {
+ "type": "string"
+ },
+ "VYRUCHKA_PERIOD": {
+ "type": "string"
+ },
+ "VYRUCHKA_ZA_GOD": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Ошибка входных данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string",
+ "example": "Отсутствуют обязательные параметры"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+
+
+ },
+ "components": {
+ "schemas": {
+ "SubscriptionRef": {
+ "required": [
+ "company",
+ "inn",
+ "organization_id",
+ "product_card_code",
+ "state",
+ "lead"
+ ],
+ "properties": {
+ "company": {
+ "description": "Наименование клиента",
+ "type": "string",
+ "maxLength": 255,
+ "example": "ООО Рога и копыта"
+ },
+ "inn": {
+ "description": "ИНН клиента",
+ "type": "string",
+ "maxLength": 12,
+ "minLength": 12,
+ "example": "1234567894"
+ },
+ "organization_id": {
+ "description": "ID клиента в Siebel",
+ "type": "string",
+ "maxLength": 20,
+ "example": "1-IE03T2"
+ },
+ "product_card_code": {
+ "description": "Код продукта",
+ "type": "string",
+ "maxLength": 20,
+ "enum": [
+ "moedelo"
+ ],
+ "example": "moedelo"
+ },
+ "state": {
+ "description": "Код статуса лида",
+ "type": "number",
+ "enum": [
+ 60
+ ],
+ "example": 60
+ },
+ "client_full_name": {
+ "description": "ФИО пользователя РМБ, который направил лид",
+ "type": "string",
+ "maxLength": 150,
+ "example": "Иванов Иван Иванович"
+ },
+ "km_uid": {
+ "description": "ID пользователя, отправившего лид с ПроПортала",
+ "type": "string",
+ "example": "10593"
+ },
+ "lead": {
+ "description": "Информация о лиде",
+ "required": [
+ "name",
+ "email",
+ "phone",
+ "tariff",
+ "subscription_start_date"
+ ],
+ "properties": {
+ "name": {
+ "description": "ФИО контактного лица",
+ "type": "string",
+ "maxLength": 150,
+ "example": "Иванов Иван Иванович"
+ },
+ "email": {
+ "description": "Email контактного лица",
+ "type": "string",
+ "maxLength": 100,
+ "example": "ivan@ivanov.ru"
+ },
+ "phone": {
+ "description": "Телефон контактного лица",
+ "type": "string",
+ "maxLength": 20,
+ "example": "+7 (926) 123-45-67"
+ },
+ "tariff": {
+ "description": "Код тарифа
`ib-economy-package-rosbank` - Пакет Эконом на 1 мес
\r\n`ib-base-package-rosbank` - Пакет Базовый на 1 мес
`ib-premium-package-rosbank` - Пакет Премиум на 1 мес",
+ "type": "string",
+ "maxLength": 40,
+ "enum": [
+ "ib-economy-package-rosbank",
+ "ib-base-package-rosbank",
+ "ib-premium-package-rosbank"
+ ],
+ "example": "ib-economy-package-rosbank"
+ },
+ "subscription_start_date": {
+ "description": "Дата начала подписки",
+ "type": "string",
+ "format": "date",
+ "example": "2022-10-28"
+ },
+ "request_id": {
+ "description": "ИД клиента в МД",
+ "type": "string",
+ "maxLength": 50,
+ "example": "894-794-540"
+ },
+ "account_id": {
+ "description": "ИД счета в МД",
+ "type": "string",
+ "maxLength": 20,
+ "example": "10379357"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "responses": {
+ "SubscriptionResponse2xx": {
+ "description": "Лид принят ProPortal",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "leadId": {
+ "description": "ID созданного лида в ProPortal",
+ "type": "number",
+ "example": 37172
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionResponse400": {
+ "description": "Ошибка валидации данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "errors": {
+ "properties": {
+ "any_field": {
+ "description": "Название поля не прошедшего валидацию",
+ "type": "string",
+ "maxLength": 20,
+ "example": "Поле company обязательно для заполнения"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionResponse5xx": {
+ "description": "Страница не найдена",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "error": {
+ "description": "Описание ошибки",
+ "type": "string",
+ "example": "Not Found"
+ },
+ "path": {
+ "description": "Путь, где возникла ошибка",
+ "type": "string",
+ "example": "/pro/subscription/"
+ },
+ "status": {
+ "description": "Код ответа сервера",
+ "type": "number",
+ "example": 404
+ },
+ "timestamp": {
+ "description": "Метка времени возникновения ошибки",
+ "type": "string",
+ "format": "date-time",
+ "example": "2022-10-28 12:12:30"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "SubscriptionStateResponse200": {
+ "description": "Обновление статуса подписки произошло успешно",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "success": {
+ "description": "Факт обновления статуса подписки",
+ "type": "boolean",
+ "example": true
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse201": {
+ "description": "Создание лида на эквайринг",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "lead_id"
+ ],
+ "properties": {
+ "lead_id": {
+ "description": "ID созданного лида в системе ProPortal",
+ "type": "string",
+ "example": "d8d630f8-daff-41eb-95f3-526f5155718a"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse400": {
+ "description": "Ошибка валидации данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "errors": {
+ "properties": {
+ "any_field": {
+ "description": "Название поля не прошедшего валидацию",
+ "type": "string",
+ "maxLength": 20,
+ "example": "Поле company обязательно для заполнения"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadRmbResponse5xx": {
+ "description": "Страница не найдена",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "error": {
+ "description": "Описание ошибки",
+ "type": "string",
+ "example": "Not Found"
+ },
+ "path": {
+ "description": "Путь, где возникла ошибка",
+ "type": "string",
+ "example": "/pro/subscription/"
+ },
+ "status": {
+ "description": "Код ответа сервера",
+ "type": "number",
+ "example": 404
+ },
+ "timestamp": {
+ "description": "Метка времени возникновения ошибки",
+ "type": "string",
+ "format": "date-time",
+ "example": "2022-10-28 12:12:30"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "AcquiringUcsLeadStateRmbResponse200": {
+ "description": "Обновление информации о статусе заявке",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "success"
+ ],
+ "properties": {
+ "success": {
+ "description": "Флаг обновления статуса заявки",
+ "type": "boolean",
+ "example": true
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "securitySchemes": {
+ "bearerAuth": {
+ "type": "http",
+ "name": "bearerAuth",
+ "in": "header",
+ "bearerFormat": "JWT",
+ "scheme": "bearer"
+ }
+ }
+ },
+ "tags": [
+ {
+ "name": "Activity",
+ "description": "Активности"
+ },
+ {
+ "name": "OnboardingKrmApp",
+ "description": "КРМ заявка онбординга"
+ },
+ {
+ "name": "Payroll",
+ "description": "Payroll"
+ },
+ {
+ "name": "Prospect",
+ "description": "Проспекты"
+ },
+ {
+ "name": "SiebelPass",
+ "description": "Получение информации из Siebel CRM"
+ },
+ {
+ "name": "Subscription",
+ "description": "Получение информации по подписке в РМБ"
+ },
+ {
+ "name": "AcquiringUCS",
+ "description": "Получение информации по подключению эквайринга из РМБ"
+ }
+ ]
+}
\ No newline at end of file
From 707fe07ac6bad950f2953121d8849876a9005f40 Mon Sep 17 00:00:00 2001
From: Aliya <41995187+mar1704@users.noreply.github.com>
Date: Fri, 7 Apr 2023 09:01:18 +0300
Subject: [PATCH 8/8] Add files via upload
---
new 12.json | 1732 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 1732 insertions(+)
create mode 100644 new 12.json
diff --git a/new 12.json b/new 12.json
new file mode 100644
index 0000000..136c01d
--- /dev/null
+++ b/new 12.json
@@ -0,0 +1,1732 @@
+{
+ "openapi": "3.0.0",
+ "info": {
+ "title": "ProPortal API",
+ "description": "ProPortal API",
+ "contact": {
+ "name": "Sergey Pechenyuk",
+ "email": "sergey.pechenyuk@rosbank.ru"
+ },
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "https://testproportal.testproportal.trosbank.trus.tsocgen/",
+ "description": "Sandbox"
+ },
+ {
+ "url": "https://proportal.rosbank.rus.socgen/",
+ "description": "Production"
+ }
+ ],
+ "paths": {
+ "/pro/branch/autocomplete/city_and_to": {
+ "get": {
+ "tags": [
+ "Branch"
+ ],
+ "summary": "Поиск города и ТО",
+ "description": "Ищет уникальные пары ТО + город по отделениям банка.",
+ "operationId": "11c111a53e8befed09936296cf563fba",
+ "parameters": [
+ {
+ "name": "query",
+ "in": "query",
+ "description": "Название города (можно часть названия)",
+ "required": true,
+ "allowEmptyValue": false,
+ "schema": {
+ "type": "string"
+ },
+ "example": "Мос"
+ },
+ {
+ "name": "groupType",
+ "in": "query",
+ "description": "В каких типах ТО искать город (ТО, ГО и т.д.) Если не задан, ищет по всем ТО",
+ "required": false,
+ "allowEmptyValue": true,
+ "schema": {
+ "type": "string"
+ },
+ "example": "ТО"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Результаты поиска",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "query": {
+ "description": "Поисковый запрос",
+ "type": "string",
+ "example": "Мос"
+ },
+ "suggestions": {
+ "type": "array",
+ "items": {
+ "property": null,
+ "description": "Результаты поиска",
+ "properties": {
+ "value": {
+ "description": "Найденное значение в формате ТО - Город",
+ "type": "string",
+ "example": "ТО Север - Москва"
+ },
+ "terofis": {
+ "description": "ТО",
+ "type": "string",
+ "example": "ТО Север"
+ },
+ "city": {
+ "description": "Город",
+ "type": "string",
+ "example": "Москва"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Ошибка валидации данных",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string",
+ "example": "Поле \"query\" должно содержать не меньше 2 символов"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/pro/crm/{id}/activity": {
+ "post": {
+ "tags": [
+ "Activity"
+ ],
+ "summary": "Добавление активности в проспект через API",
+ "description": "Создаёт новую активность с заполненными полями.\n Успешная активность или неуспешная зависит от статуса.",
+ "operationId": "85120b9b10d9fb8eedc6a2d99fce0019",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "ID проспекта в ProPortal",
+ "required": true,
+ "allowEmptyValue": false,
+ "schema": {
+ "type": "number"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "uid",
+ "status_id",
+ "fields"
+ ],
+ "properties": {
+ "uid": {
+ "description": "ID пользователя на пропортале",
+ "type": "number",
+ "example": 32165
+ },
+ "status_id": {
+ "description": "ID статуса активности
| id | item_name |
|---|---|
| 1240 | Финансовая грамотность |
| 1241 | Презентация |
| 1242 | Банковский день |
| 1243 | Покабинетная презентация |
| 1244 | Массовая выдача ЗП карт |
| 1245 | Индивидуальная встреча с ФЛ |