{
  "openapi": "3.0.1",
  "info": {
    "title": "Maximum.CRM.WebApps.LKService",
    "version": "v1"
  },
  "paths": {
    "/api/Account/{accountId}": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Получение информации о контрагенте по ID.",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "ID контрагента для поиска",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AccountData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/AdvancePayment/getAllActive": {
      "get": {
        "tags": [
          "AdvancePayment"
        ],
        "summary": "Получение информации обо всех активных предварительных платежах",
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdvancePaymentData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdvancePaymentData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdvancePaymentData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/AdvancePayment/CreatePaymentLink": {
      "post": {
        "tags": [
          "AdvancePayment"
        ],
        "summary": "Создание ссылки для оплаты",
        "parameters": [
          {
            "name": "paymentId",
            "in": "query",
            "description": "ID платежа",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок"
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement/CreateAgreementByGroceryBasketId": {
      "post": {
        "tags": [
          "Agreement"
        ],
        "summary": "Вызов экшена по созданию договора из сделки.",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgreementRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgreementRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgreementRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgreementRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок"
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement/{agreementId}": {
      "get": {
        "tags": [
          "Agreement"
        ],
        "summary": "Получение информации о договоре по Id",
        "parameters": [
          {
            "name": "agreementId",
            "in": "path",
            "description": "Id договора",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementResponse"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement/GetAgreementByContactId": {
      "get": {
        "tags": [
          "Agreement"
        ],
        "summary": "Получение договора по id контакта и типу его связи с договором",
        "parameters": [
          {
            "name": "contactId",
            "in": "query",
            "description": "Id контакта",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactType",
            "in": "query",
            "description": "Тип связи контакта с договором",
            "schema": {
              "$ref": "#/components/schemas/ContactInAgreementEnum"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementByContactIdResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementByContactIdResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgreementByContactIdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement/GetAgreementsByContact": {
      "get": {
        "tags": [
          "Agreement"
        ],
        "summary": "Получение всех договоров, где контакт является заказчиком/слушателем",
        "parameters": [
          {
            "name": "contactId",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactType",
            "in": "query",
            "description": "",
            "schema": {
              "$ref": "#/components/schemas/ContactInAgreementEnum"
            }
          },
          {
            "name": "agreementList",
            "in": "query",
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "with",
            "in": "query",
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetAgreementResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetAgreementResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetAgreementResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement/CallGenerateAgreementAction/{agreementId}": {
      "get": {
        "tags": [
          "Agreement"
        ],
        "summary": "Вызов экшена для генерации договора",
        "parameters": [
          {
            "name": "agreementId",
            "in": "path",
            "description": "Id договора",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ArgeementDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArgeementDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArgeementDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Agreement": {
      "put": {
        "tags": [
          "Agreement"
        ],
        "summary": "Выставление значения Id группы в договоре",
        "parameters": [
          {
            "name": "AgreementId",
            "in": "query",
            "description": "Договор",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "GroupId",
            "in": "query",
            "description": "Группа",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAgreementGroupResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAgreementGroupResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAgreementGroupResponse"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Bookingstatus/activeBookingstatus": {
      "get": {
        "tags": [
          "Bookingstatus"
        ],
        "summary": "Получение активных записей состояния резервирования",
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetActiveBookingstatusesResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetActiveBookingstatusesResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetActiveBookingstatusesResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Campaign/{campaignId}/priceList": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "summary": "Получение прайса по Id кампаний.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "description": "Id кампании для получения прайса",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Campaign/campaignsByParams": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "summary": "Получение списка кампаний по параметрам.",
        "parameters": [
          {
            "name": "DateFrom",
            "in": "query",
            "description": "Начальная дата для поиска (mm.dd.yyyy)",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DateTo",
            "in": "query",
            "description": "Конечная дата для поиска (mm.dd.yyyy)",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CampaignInfoResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CampaignInfoResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CampaignInfoResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Campaign/{campaignId}/groups": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "summary": "Получение списка групп по Id кампании.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "description": "Id кампании для поиска списка групп",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Campaign/{campaignId}/discounts": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "summary": "Получение списка доступных скидок по Id кампании",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "description": "Id кампании для получения списка доступных скидок",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiscountData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiscountData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiscountData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Common/RunWorkflowForEntity": {
      "post": {
        "tags": [
          "Common"
        ],
        "summary": "Запуск бизнес-процесса для сущности",
        "requestBody": {
          "description": "Данные о сущности и процессе",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowForEntityRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowForEntityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowForEntityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowForEntityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок"
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Contact/{contactId}": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "Получение информации о контакте по ID.",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "description": "ID контакта для поиска",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Contact/GetAccountContacts": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "Получение активных контактов из контрагента в контакте",
        "parameters": [
          {
            "name": "contactId",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Contact": {
      "put": {
        "tags": [
          "Contact"
        ],
        "summary": "Обновление информации о контакте.",
        "requestBody": {
          "description": "Данные для поиска и обновления контакта",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Contact"
        ],
        "summary": "Создание контакта.",
        "requestBody": {
          "description": "Данные для создания контакта",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactExtendedData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/DaData/departmentMinistryInterior": {
      "get": {
        "tags": [
          "DaData"
        ],
        "summary": "Получение данных подразделения выдавшего паспорт",
        "parameters": [
          {
            "name": "DepartmentCode",
            "in": "query",
            "description": "Код подразделения",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Данные подразделения получены",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DepartmentMinistryInteriorData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DepartmentMinistryInteriorData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DepartmentMinistryInteriorData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Данные подразделения не найдены"
          },
          "502": {
            "description": "Ошибка на стороне сервиса DaData"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/GroceryBasket/byOpportunityId/{opportunityId}": {
      "get": {
        "tags": [
          "GroceryBasket"
        ],
        "summary": "Получение списка позиций корзины по Id возможной сделки.",
        "parameters": [
          {
            "name": "opportunityId",
            "in": "path",
            "description": "Id возможной сделки",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroceryBasketsByOpportunityIdResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroceryBasketsByOpportunityIdResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroceryBasketsByOpportunityIdResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/GroceryBasket": {
      "post": {
        "tags": [
          "GroceryBasket"
        ],
        "summary": "Создание позиций корзины.",
        "requestBody": {
          "description": "Данные для создания позиций корзины",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreateGroceryBasketRequest"
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreateGroceryBasketRequest"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreateGroceryBasketRequest"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreateGroceryBasketRequest"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/GroceryBasket/deactivate/{groceryBasketId}": {
      "put": {
        "tags": [
          "GroceryBasket"
        ],
        "summary": "Деактивация позиции корзины.",
        "parameters": [
          {
            "name": "groceryBasketId",
            "in": "path",
            "description": "Id позиции корзины для деактивации",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок"
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/GroceryBasket/applyPriceLadder": {
      "post": {
        "tags": [
          "GroceryBasket"
        ],
        "summary": "Применение лесенки цен",
        "requestBody": {
          "description": "Объект запроса",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RunPriceLadderActionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunPriceLadderActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunPriceLadderActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunPriceLadderActionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ок"
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Group/{groupId}": {
      "get": {
        "tags": [
          "Group"
        ],
        "summary": "Получение информации о группе по Id",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "Id группы",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupInfoResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupInfoResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupInfoResponse"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Group/{courseId}/groups": {
      "get": {
        "tags": [
          "Group"
        ],
        "summary": "Получение списка групп по Id курса",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "Id курса",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupInfoResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupInfoResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupInfoResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Group/byAgreement": {
      "get": {
        "tags": [
          "Group"
        ],
        "summary": "Получение групп, доступных для смены по Id договора",
        "parameters": [
          {
            "name": "AgreementId",
            "in": "query",
            "description": "Id договора в crm",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupForTransitionData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupForTransitionData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupForTransitionData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/IndividualConsultation/CreateIndividualConsultation": {
      "post": {
        "tags": [
          "IndividualConsultation"
        ],
        "summary": "Создание индивидуальной консультации",
        "requestBody": {
          "description": "Данные для создания ИК",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BookableResourceBookingData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookableResourceBookingData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookableResourceBookingData"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/IndividualConsultation/UpdateIndividualConsultation": {
      "post": {
        "tags": [
          "IndividualConsultation"
        ],
        "summary": "Обновление индивидуальной консультации",
        "requestBody": {
          "description": "Данные для обновления ИК",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BookableResourceBookingData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/InterestGroup/{interestGroupId}": {
      "get": {
        "tags": [
          "InterestGroup"
        ],
        "summary": "Получение информации о группе интересов",
        "parameters": [
          {
            "name": "interestGroupId",
            "in": "path",
            "description": "Id группы интересов для поиска",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InterestGroupData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterestGroupData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterestGroupData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/InterestGroup/mergeInterestGroups": {
      "put": {
        "tags": [
          "InterestGroup"
        ],
        "summary": "Объединение ГИ",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/MergeInterestGroupsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeInterestGroupsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeInterestGroupsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MergeInterestGroupsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Opportunity": {
      "put": {
        "tags": [
          "Opportunity"
        ],
        "summary": "Обновление возможной сделки",
        "requestBody": {
          "description": "Параметры для поиска возможной сделки и обновления статуса",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Opportunity/{opportunityId}": {
      "get": {
        "tags": [
          "Opportunity"
        ],
        "summary": "Получение информации о возможной сделке по Id",
        "parameters": [
          {
            "name": "opportunityId",
            "in": "path",
            "description": "Id возможной сделки",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Opportunities/{contactId}": {
      "get": {
        "tags": [
          "Opportunity"
        ],
        "summary": "Получение данных о сделках по ИД контакта (связь через контрагента)",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Opportunities/student/{contactId}": {
      "get": {
        "tags": [
          "Opportunity"
        ],
        "summary": "Получение данных о сделках по ИД контакта(студента)",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityByContactData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Payment/{paymentId}": {
      "get": {
        "tags": [
          "Payment"
        ],
        "summary": "Получение информации о платеже",
        "parameters": [
          {
            "name": "paymentId",
            "in": "path",
            "description": "Id CRM платежа",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "404": {
            "description": "Не найден платеж в CRM"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/registrationsByParameters": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Получение списка регистраций по параметрам",
        "parameters": [
          {
            "name": "CampaignId",
            "in": "query",
            "description": "ID кампании",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "SearchString",
            "in": "query",
            "description": "Строка для поиска регистрации (телефон, email)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/{registrationId}": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Получение информации о регистрации по ID",
        "parameters": [
          {
            "name": "registrationId",
            "in": "path",
            "description": "ID CRM регистрации",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/childRegistrations": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Получение массива дочерних регистраций",
        "parameters": [
          {
            "name": "registrationId",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationData"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/registrationsByContact": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Получение информации о регистрациях по данным контакта",
        "parameters": [
          {
            "name": "ContactId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/registrationsByCustomerAndCampaign": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Получение информации о регистрациях по Id контрагента и кампании",
        "parameters": [
          {
            "name": "CustomerAccountId",
            "in": "query",
            "description": "Контрагент",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CampaignId",
            "in": "query",
            "description": "Кампания",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegistrationData"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/{registrationId}/UpdateStatus/{status}": {
      "put": {
        "tags": [
          "Registration"
        ],
        "summary": "Выставление статуса участника",
        "parameters": [
          {
            "name": "registrationId",
            "in": "path",
            "description": "ID регистрации",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "path",
            "description": "Посетил true/false",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Создание регистрациии",
        "requestBody": {
          "description": "Данные для создания регистраций",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrationData"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrationData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrationData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrationData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/{registrationId}/CreateOpportunity": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Создание/поиск сделки из регистрации",
        "parameters": [
          {
            "name": "registrationId",
            "in": "path",
            "description": "Id регистрации.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityData"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    },
    "/api/Registration/DoubleRegistration": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Вызов экшена по дублированию регистрации",
        "parameters": [
          {
            "name": "registrationId",
            "in": "query",
            "description": "Id регистрации",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ок",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DoubleRegistrationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoubleRegistrationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoubleRegistrationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Ошибка авторизации"
          },
          "403": {
            "description": "Forbidden"
          },
          "400": {
            "description": "Невалидный запрос"
          },
          "500": {
            "description": "Непредвиденная ошибка"
          }
        },
        "security": [
          {
            "oauth2": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AccountData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id контрагента",
            "format": "uuid",
            "nullable": true
          },
          "contactsData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactData"
            },
            "description": "Список контактов, связанных с контрагентом",
            "nullable": true
          },
          "testResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestResultsData"
            },
            "description": "Список результатов профтеста, связанных с контрагентом",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о контрагенте"
      },
      "AdvancePaymentData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id предварительного платежа",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название предварительного платежа",
            "nullable": true
          },
          "amountPayment": {
            "type": "number",
            "description": "Сумма предварительного платежа",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о предварительном платеже"
      },
      "AgreementConclusionStagesEnum": {
        "enum": [
          "TransferredToClient",
          "Signed",
          "Archived",
          "Free"
        ],
        "type": "string"
      },
      "AgreementFormatEnum": {
        "enum": [
          "Print",
          "Offer"
        ],
        "type": "string",
        "description": "Формат договора"
      },
      "AgreementIdWithContactType": {
        "type": "object",
        "properties": {
          "agreementId": {
            "type": "string",
            "format": "uuid"
          },
          "contactType": {
            "$ref": "#/components/schemas/ContactInAgreementEnum"
          },
          "studentContactId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AgreementTypeEnum": {
        "enum": [
          "Manager",
          "Autosales",
          "University2035"
        ],
        "type": "string",
        "description": "Тип договора"
      },
      "ArgeementDocumentResponse": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BaseEntityLogicalNameEnum": {
        "enum": [
          "MaxInterestGroup",
          "Opportunity"
        ],
        "type": "string",
        "description": "���������� ��� ��������"
      },
      "BookableResourceBookingData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id Индивидуальной консультации",
            "format": "uuid",
            "nullable": true
          },
          "bookableResource": {
            "$ref": "#/components/schemas/BookableResourceData"
          },
          "startTime": {
            "type": "string",
            "description": "Дата и время проведения консультации",
            "format": "date-time",
            "nullable": true
          },
          "duration": {
            "type": "integer",
            "description": "Продолжительность консультации",
            "format": "int32",
            "nullable": true
          },
          "bookingStatusId": {
            "type": "string",
            "description": "Id cтатуса консультации",
            "format": "uuid",
            "nullable": true
          },
          "baseEntityId": {
            "type": "string",
            "description": "Id сделки или ГИ",
            "format": "uuid",
            "nullable": true
          },
          "baseEntityLogicalName": {
            "$ref": "#/components/schemas/BaseEntityLogicalNameEnum"
          },
          "meetingFormat": {
            "$ref": "#/components/schemas/MeetingFormat"
          }
        },
        "additionalProperties": false,
        "description": "Информация об индивидуальной консультации"
      },
      "BookableResourceData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id менеджера",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Почта менеджера",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о ресурсе MAXIMUM"
      },
      "BrandData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id бренда",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название бренда",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о бренде"
      },
      "CampaignData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id кампании",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Название кампании внутри сервиса",
            "nullable": true
          },
          "externalName": {
            "type": "string",
            "description": "Внешнее название кампании для клиента",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Описание кампании",
            "nullable": true
          },
          "webInARegistrationLink": {
            "type": "string",
            "description": "Ссылка для подключения к мероприятию",
            "nullable": true
          },
          "webinarDate": {
            "type": "string",
            "description": "Дата проведения мероприятия",
            "format": "date-time",
            "nullable": true
          },
          "urlLp": {
            "type": "string",
            "description": "Ссылка на LP",
            "nullable": true
          },
          "actualStart": {
            "type": "string",
            "description": "Старт продвижения",
            "format": "date-time",
            "nullable": true
          },
          "actualEnd": {
            "type": "string",
            "description": "Окончание продвижения",
            "format": "date-time",
            "nullable": true
          },
          "campaignType": {
            "$ref": "#/components/schemas/CampaignTypeData"
          }
        },
        "additionalProperties": false,
        "description": "Информация о кампании"
      },
      "CampaignInfoResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id кампании",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Название кампании внутри сервиса",
            "nullable": true
          },
          "externalName": {
            "type": "string",
            "description": "Внешнее название кампании для клиента",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Описание кампании",
            "nullable": true
          },
          "webInARegistrationLink": {
            "type": "string",
            "description": "Ссылка для подключения к мероприятию",
            "nullable": true
          },
          "webinarDate": {
            "type": "string",
            "description": "Дата проведения мероприятия",
            "format": "date-time",
            "nullable": true
          },
          "lpUrl": {
            "type": "string",
            "description": "Ссылка для регистрации",
            "nullable": true
          },
          "campaignType": {
            "$ref": "#/components/schemas/CampaignTypeData"
          },
          "responsibleCampaignId": {
            "type": "string",
            "description": "Ответственный за компанию",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о кампании"
      },
      "CampaignTypeData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id сущности",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Имя сущности",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContactData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id контакта для поиска",
            "format": "uuid",
            "nullable": true
          },
          "parentCustomerId": {
            "type": "string",
            "description": "Id контрагента",
            "format": "uuid",
            "nullable": true
          },
          "issueYear": {
            "type": "integer",
            "description": "Год выпуска",
            "format": "int32",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Имя",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "description": "Отчество",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "description": "Номер телефона",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Почта",
            "nullable": true
          },
          "contactType": {
            "$ref": "#/components/schemas/ContactTypeEnum"
          }
        },
        "additionalProperties": false,
        "description": "Данные для обновления информации о контакте"
      },
      "ContactExtendedData": {
        "type": "object",
        "properties": {
          "passportSeries": {
            "type": "string",
            "description": "Серия паспорта",
            "nullable": true
          },
          "passportNumber": {
            "type": "string",
            "description": "Номер паспорта",
            "nullable": true
          },
          "passportAuthority": {
            "type": "string",
            "description": "Орган, кем выдан паспорт",
            "nullable": true
          },
          "passportIssueDate": {
            "type": "string",
            "description": "Дата выдачи паспорта",
            "format": "date-time",
            "nullable": true
          },
          "passportRegistrationAddress": {
            "type": "string",
            "description": "Адрес регистрации (в паспорте)",
            "nullable": true
          },
          "passportDepartmentCode": {
            "type": "string",
            "description": "Код подразделения (в паспорте)",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Id контакта для поиска",
            "format": "uuid",
            "nullable": true
          },
          "parentCustomerId": {
            "type": "string",
            "description": "Id контрагента",
            "format": "uuid",
            "nullable": true
          },
          "issueYear": {
            "type": "integer",
            "description": "Год выпуска",
            "format": "int32",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Имя",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "description": "Отчество",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "description": "Номер телефона",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Почта",
            "nullable": true
          },
          "contactType": {
            "$ref": "#/components/schemas/ContactTypeEnum"
          }
        },
        "additionalProperties": false,
        "description": "Данные о контакте, расширенные паспорными данными"
      },
      "ContactInAgreementEnum": {
        "enum": [
          "Customer",
          "Student"
        ],
        "type": "string"
      },
      "ContactTypeEnum": {
        "enum": [
          "SchoolChild",
          "Edcheck",
          "NavigatorManager",
          "Parent",
          "Employee"
        ],
        "type": "string"
      },
      "CourseData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID курса",
            "format": "uuid",
            "nullable": true
          },
          "clientName": {
            "type": "string",
            "description": "Название для клиента",
            "nullable": true
          },
          "brand": {
            "$ref": "#/components/schemas/BrandData"
          },
          "weeks": {
            "type": "integer",
            "description": "Количество недель",
            "format": "int32",
            "nullable": true
          },
          "lessons": {
            "type": "integer",
            "description": "Количество занятий",
            "format": "int32",
            "nullable": true
          },
          "hours": {
            "type": "number",
            "description": "Количество часов",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о курсе"
      },
      "CreateAgreementRequest": {
        "required": [
          "campaignId",
          "date",
          "maxGroceryBasketId"
        ],
        "type": "object",
        "properties": {
          "maxGroceryBasketId": {
            "type": "string",
            "description": "Id позиции корзины",
            "format": "uuid"
          },
          "date": {
            "type": "string",
            "description": "Текущая дата",
            "format": "date-time"
          },
          "campaignId": {
            "type": "string",
            "description": "ID кампании",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "description": "ID ресурса",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Параметры для создания договора из сделки"
      },
      "CreateGroceryBasketRequest": {
        "required": [
          "agreementFormat",
          "groupId",
          "opportunityId",
          "paymentType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id позиции корзины",
            "format": "uuid",
            "nullable": true
          },
          "opportunityId": {
            "type": "string",
            "description": "ID возможной сделки",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "description": "Идентификатор группы",
            "format": "uuid"
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentTypeEnum"
          },
          "agreementFormat": {
            "$ref": "#/components/schemas/AgreementFormatEnum"
          },
          "priceListId": {
            "type": "string",
            "description": "Id прайса",
            "format": "uuid",
            "nullable": true
          },
          "advancePaymentId": {
            "type": "string",
            "description": "Предварительный платеж",
            "format": "uuid",
            "nullable": true
          },
          "isLadderApplied": {
            "type": "boolean",
            "description": "",
            "nullable": true
          },
          "discounts": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Список ID примененных скидок",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Данные для создания позиции корзины"
      },
      "Data": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "region_code": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DepartmentMinistryInteriorData": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "unrestricted_value": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/Data"
          }
        },
        "additionalProperties": false,
        "description": "Информация о подразделении МВД (для паспортных данных)"
      },
      "DiscountData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id скидки",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название скидки",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о скидке"
      },
      "DoubleRegistrationResponse": {
        "type": "object",
        "properties": {
          "registrationId": {
            "type": "string",
            "description": "ID созданной регистрации",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Запрос на дублирование регистрации"
      },
      "EntityReferenceExternal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID сущности CRM",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Имя записи",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeatureCompanyEnum": {
        "enum": [
          "Umax",
          "Academy",
          "MaxEdu"
        ],
        "type": "string"
      },
      "GetActiveBookingstatusesResponse": {
        "type": "object",
        "properties": {
          "bookingstatusId": {
            "type": "string",
            "description": "ID состояния резервирования",
            "format": "uuid",
            "nullable": true
          },
          "bookingstatusName": {
            "type": "string",
            "description": "Имя состояния резервирования",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Приоритет",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Ответ на получение активных записей состояния резервирования"
      },
      "GetAgreementByContactIdResponse": {
        "type": "object",
        "properties": {
          "agreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgreementIdWithContactType"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetAgreementResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id\r\n<br />Поле-источник в CRM: max_agreement.max_agreementid",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Номер договора\r\n<br />Поле-источник в CRM: max_agreement.max_name",
            "nullable": true
          },
          "contractDate": {
            "type": "string",
            "description": "Дата заключения договора\r\n<br />Поле-источник в CRM: max_agreement.max_contractdate",
            "format": "date-time",
            "nullable": true
          },
          "territoryId": {
            "type": "string",
            "description": "Id территории\r\n<br />Поле-источник в CRM: max_agreement.max_territoryid",
            "format": "uuid",
            "nullable": true
          },
          "managerSystemUserId": {
            "type": "string",
            "description": "Id менеджера договора\r\n<br />Поле-источник в CRM: max_agreement.max_manager_systemuserid",
            "format": "uuid",
            "nullable": true
          },
          "statusCode": {
            "$ref": "#/components/schemas/StatusCode"
          },
          "accountId": {
            "type": "string",
            "description": "Id контрагента\r\n<br />Поле-источник в CRM: max_agreement.max_accountid",
            "format": "uuid",
            "nullable": true
          },
          "opportunityId": {
            "type": "string",
            "description": "Id возможной сделки\r\n<br />Поле-источник в CRM: max_agreement.max_opportunityid",
            "format": "uuid",
            "nullable": true
          },
          "customerContactId": {
            "type": "string",
            "description": "Id заказчика\r\n<br />Поле-источник в CRM: max_agreement.max_customer_contactid",
            "format": "uuid",
            "nullable": true
          },
          "studentContactId": {
            "type": "string",
            "description": "Id слушателя\r\n<br />Поле-источник в CRM: max_agreement.max_student_contactid",
            "format": "uuid",
            "nullable": true
          },
          "periodYear": {
            "type": "string",
            "description": "Id года договора\r\n<br />Поле-источник в CRM: max_agreement.max_period_year",
            "format": "uuid",
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "description": "Id группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid",
            "format": "uuid",
            "nullable": true
          },
          "maxCourseId": {
            "type": "string",
            "description": "Id курса\r\n<br />Поле-источник в CRM: max_agreement.max_courseid",
            "format": "uuid",
            "nullable": true
          },
          "agreementFormat": {
            "$ref": "#/components/schemas/AgreementFormatEnum"
          },
          "conclusionStage": {
            "$ref": "#/components/schemas/AgreementConclusionStagesEnum"
          },
          "paymentTypeList": {
            "$ref": "#/components/schemas/PaymentTypeEnum"
          },
          "contractAmount": {
            "type": "number",
            "description": "Сумма договора\r\n<br />Поле-источник в CRM: max_agreement.max_contractamount",
            "format": "double",
            "nullable": true
          },
          "paidAmount": {
            "type": "number",
            "description": "Оплаченная сумма\r\n<br />Поле-источник в CRM: max_agreement.new_max_paidamount",
            "format": "double",
            "nullable": true
          },
          "remainingAmount": {
            "type": "number",
            "description": "Оставшаяся сумма\r\n<br />Поле-источник в CRM: max_agreement.new_max_remainingamount",
            "format": "double",
            "nullable": true
          },
          "externalCourseName": {
            "type": "string",
            "description": "Название курса для клиента\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_name_client",
            "nullable": true
          },
          "courseName": {
            "type": "string",
            "description": "Название курса\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_name",
            "nullable": true
          },
          "agreementType": {
            "$ref": "#/components/schemas/AgreementTypeEnum"
          },
          "studyFormatExternalName": {
            "type": "string",
            "description": "Формат обучения (название для клиента)\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_formatid.max_name_doc",
            "nullable": true
          },
          "maxProductId1": {
            "type": "string",
            "description": "Продукт\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_productid1",
            "format": "uuid",
            "nullable": true
          },
          "maxTerritoryId": {
            "type": "string",
            "description": "Территория\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_territoryid",
            "format": "uuid",
            "nullable": true
          },
          "maxPeriodYear": {
            "type": "string",
            "description": "Год договора\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_period_year",
            "format": "uuid",
            "nullable": true
          },
          "studyPeriodName": {
            "type": "string",
            "description": "Период обучения\r\n<br />Поле-источник в CRM: max_agreement.max_period_year",
            "nullable": true
          },
          "maxLearningStartDate": {
            "type": "string",
            "description": "Дата начала обучения\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_learningstartdate",
            "format": "date-time",
            "nullable": true
          },
          "maxLearningFinishDate": {
            "type": "string",
            "description": "Дата окончания обучения\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_learningfinishdate",
            "format": "date-time",
            "nullable": true
          },
          "maxWeekDayName1": {
            "type": "string",
            "description": "День урока\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_study_day1",
            "nullable": true
          },
          "maxWeekDayName2": {
            "type": "string",
            "description": "День вебинара\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_study_day2",
            "nullable": true
          },
          "maxWeekDayName3": {
            "type": "string",
            "description": "День занятия 3\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_study_day3",
            "nullable": true
          },
          "isAutocharge": {
            "type": "boolean",
            "description": "Автосписание\r\n<br />Поле-источник в CRM: max_agreement.max_autocharge_off",
            "nullable": true
          },
          "isParentBranch": {
            "type": "boolean",
            "description": "Материнский филиал?\r\n<br />Поле-источник в CRM: max_agreement.max_territoryid.max_parent_branch",
            "nullable": true
          },
          "isOurBranch": {
            "type": "boolean",
            "description": "Наш филиал?\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_territoryid.max_our_branch",
            "nullable": true
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentData"
            },
            "description": "Список платежей, связанных с договором",
            "nullable": true
          },
          "groupCostType": {
            "$ref": "#/components/schemas/GroupCostTypeEnum"
          },
          "lmsGroupId": {
            "type": "string",
            "description": "Id группы в LMS\r\n<br />Поле-источник в CRM: max_agreement.max_group.new_educationgroupid",
            "nullable": true
          },
          "lmsCourseId": {
            "type": "string",
            "description": "Id курса в LMS\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_courseid",
            "nullable": true
          },
          "changeGroup": {
            "type": "boolean",
            "description": "Выбор расписания\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_change_group",
            "nullable": true
          },
          "weekAmount": {
            "type": "integer",
            "description": "Кол-во недель\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_week_amount",
            "format": "int32",
            "nullable": true
          },
          "studySessionsQuantity": {
            "type": "integer",
            "description": "Количество занятий\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_studysessionsquantity",
            "format": "int32",
            "nullable": true
          },
          "brand": {
            "$ref": "#/components/schemas/EntityReferenceExternal"
          },
          "featureCompany": {
            "$ref": "#/components/schemas/FeatureCompanyEnum"
          },
          "customerType": {
            "type": "string",
            "description": "Тип клиента\r\n<br />Поле-источник в CRM: max_agreement.max_customer_typeid",
            "nullable": true
          },
          "groupBasket": {
            "type": "integer",
            "description": "Корзина группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_group_basket",
            "format": "int32",
            "nullable": true
          },
          "groupType": {
            "type": "integer",
            "description": "Тип группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_type_group",
            "format": "int32",
            "nullable": true
          },
          "groupCreatedOn": {
            "type": "string",
            "description": "Дата создания группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.createdon",
            "format": "date-time",
            "nullable": true
          },
          "formatCode": {
            "type": "string",
            "description": "Код формата\r\n<br />Поле-источник в CRM: max_agreement.max_courseid.max_formatid.max_format_code",
            "nullable": true
          },
          "maxTimeForCourse1": {
            "type": "string",
            "description": "Время урока\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_timeforcourse1",
            "nullable": true
          },
          "maxTimeForCourse2": {
            "type": "string",
            "description": "Время вебинара\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_timeforcourse2",
            "nullable": true
          },
          "maxTimeForCourse3": {
            "type": "string",
            "description": "Время занятия 3\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_timeforcourse3",
            "nullable": true
          },
          "maxIsRegistrationStopped": {
            "type": "boolean",
            "description": "Стоп-запись\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_isregistrationstopped"
          },
          "formatStudy1": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy2": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy3": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "groupLevel": {
            "type": "string",
            "description": "Уровень группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_levelid",
            "format": "uuid",
            "nullable": true
          },
          "groupSizeCode": {
            "type": "string",
            "description": "Размерность группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.max_groupsizeid.max_sizecode",
            "nullable": true
          },
          "groupStatusCode": {
            "type": "integer",
            "description": "Статус группы\r\n<br />Поле-источник в CRM: max_agreement.max_groupid.statuscode",
            "format": "int32",
            "nullable": true
          },
          "maxGroupCode": {
            "type": "string",
            "description": "Кодификатор группы\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_group_code",
            "nullable": true
          },
          "maxGroupName": {
            "type": "string",
            "description": "Название группы\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_name",
            "nullable": true
          },
          "maxTypeGroup": {
            "type": "integer",
            "description": "Тип группы\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_type_group",
            "format": "int32",
            "nullable": true
          },
          "maxUniqueNumber": {
            "type": "string",
            "description": "Уникальный номер группы\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_unique_number",
            "nullable": true
          },
          "trainingDirection": {
            "type": "string",
            "description": "Направление подготовки группы\r\n<br />Поле-источник в CRM: max_agreement.max_group.max_preparation_directionid",
            "format": "uuid",
            "nullable": true
          },
          "productCode": {
            "type": "string",
            "description": "Код продукта\r\n<br />Поле-источник в CRM: max_agreement.max_productid1.max_productcode",
            "nullable": true
          },
          "productOfferCode": {
            "type": "string",
            "description": "Код договора оферты\r\n<br />Поле-источник в CRM: max_agreement.max_productid1.max_offer_code",
            "nullable": true
          },
          "segment": {
            "type": "string",
            "description": "Сегмент продукта\r\n<br />Поле-источник в CRM: max_agreement.max_productid1.max_segmentid",
            "format": "uuid",
            "nullable": true
          },
          "transferAgreementName": {
            "type": "string",
            "description": "Номер переведенного на новое юр.лицо договора\r\n<br />Поле-источник в CRM: max_agreement.max_technicaltranslationfrom.max_name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroceryBasketsByOpportunityIdResponse": {
        "required": [
          "agreementFormat",
          "groupId",
          "opportunityId",
          "paymentType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Название позиции корзины",
            "nullable": true
          },
          "basicContractAmount": {
            "type": "number",
            "description": "Базовая сумма договора",
            "format": "double",
            "nullable": true
          },
          "contractAmount": {
            "type": "number",
            "description": "Сумма договора",
            "format": "double",
            "nullable": true
          },
          "firstPayment": {
            "type": "number",
            "description": "Первый платеж",
            "format": "double",
            "nullable": true
          },
          "subsequentPayment": {
            "type": "number",
            "description": "Последующий платеж",
            "format": "double",
            "nullable": true
          },
          "agreementName": {
            "type": "string",
            "description": "Название договора",
            "nullable": true
          },
          "agreementId": {
            "type": "string",
            "description": "Id договора",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Id позиции корзины",
            "format": "uuid",
            "nullable": true
          },
          "opportunityId": {
            "type": "string",
            "description": "ID возможной сделки",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "description": "Идентификатор группы",
            "format": "uuid"
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentTypeEnum"
          },
          "agreementFormat": {
            "$ref": "#/components/schemas/AgreementFormatEnum"
          },
          "priceListId": {
            "type": "string",
            "description": "Id прайса",
            "format": "uuid",
            "nullable": true
          },
          "advancePaymentId": {
            "type": "string",
            "description": "Предварительный платеж",
            "format": "uuid",
            "nullable": true
          },
          "isLadderApplied": {
            "type": "boolean",
            "description": "",
            "nullable": true
          },
          "discounts": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Список ID примененных скидок",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о позиции корзины"
      },
      "GroupCostTypeEnum": {
        "enum": [
          "Free",
          "Paid"
        ],
        "type": "string",
        "description": "поле max_list_cost на сущности группа"
      },
      "GroupData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id группы",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название группы",
            "nullable": true
          },
          "uniqueNumber": {
            "type": "string",
            "description": "Уникальный номер группы",
            "nullable": true
          },
          "learningStartDate": {
            "type": "string",
            "description": "Дата начала обучения",
            "format": "date-time",
            "nullable": true
          },
          "learningFinishDate": {
            "type": "string",
            "description": "Дата окончания обучения",
            "format": "date-time",
            "nullable": true
          },
          "studyDay1": {
            "type": "string",
            "description": "День урока",
            "nullable": true
          },
          "timeForCourse1": {
            "type": "string",
            "description": "Время урока",
            "nullable": true
          },
          "studyDay2": {
            "type": "string",
            "description": "День вебинара",
            "nullable": true
          },
          "timeForCourse2": {
            "type": "string",
            "description": "Время вебинара",
            "nullable": true
          },
          "studyDay3": {
            "type": "string",
            "description": "День занятия 3",
            "nullable": true
          },
          "timeForCourse3": {
            "type": "string",
            "description": "Время проведения 3",
            "nullable": true
          },
          "product": {
            "$ref": "#/components/schemas/Product"
          },
          "territory": {
            "$ref": "#/components/schemas/Territory"
          },
          "course": {
            "$ref": "#/components/schemas/CourseData"
          },
          "agreementYear": {
            "type": "string",
            "description": "Год договора",
            "nullable": true
          },
          "groupBasket": {
            "type": "string",
            "description": "Корзина группы",
            "nullable": true
          },
          "studyFormat": {
            "$ref": "#/components/schemas/StudyFormat"
          },
          "groupType": {
            "type": "integer",
            "description": "Тип группы",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о группе"
      },
      "GroupFormatStudyEnum": {
        "enum": [
          "Webinar",
          "FullTime",
          "Video",
          "SelfStudy",
          "Broadcast",
          "FaceToFaceWebinar",
          "WebinarSecondWeek",
          "FaceToFaceFirstWeek",
          "FaceToFaceSecondWeek"
        ],
        "type": "string",
        "description": "Формат занятия"
      },
      "GroupForTransitionData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Группа",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название группы",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "description": "Статус группы",
            "format": "int32",
            "nullable": true
          },
          "groupCode": {
            "type": "string",
            "description": "Кодировка группы",
            "nullable": true
          },
          "uniqueNumber": {
            "type": "string",
            "description": "Уникальный номер",
            "nullable": true
          },
          "typeGroup": {
            "type": "integer",
            "description": "Тип группы",
            "format": "int32",
            "nullable": true
          },
          "groupSize": {
            "type": "string",
            "description": "Размерность",
            "nullable": true
          },
          "courseExternalName": {
            "type": "string",
            "description": "Название курса для клиента",
            "nullable": true
          },
          "product": {
            "$ref": "#/components/schemas/Product"
          },
          "territory": {
            "$ref": "#/components/schemas/Territory"
          },
          "periodYear": {
            "type": "string",
            "description": "Год договора",
            "nullable": true
          },
          "learningStartDate": {
            "type": "string",
            "description": "Дата начала обучения",
            "format": "date-time",
            "nullable": true
          },
          "learningFinishDate": {
            "type": "string",
            "description": "Дата окончания обучения",
            "format": "date-time",
            "nullable": true
          },
          "studyDayName1": {
            "type": "string",
            "description": "День занятия 1",
            "nullable": true
          },
          "studyDayName2": {
            "type": "string",
            "description": "День занятия 2",
            "nullable": true
          },
          "studyDayName3": {
            "type": "string",
            "description": "День занятия 3",
            "nullable": true
          },
          "timeForCourse1": {
            "type": "string",
            "description": "Время проведения 1",
            "nullable": true
          },
          "timeForCourse2": {
            "type": "string",
            "description": "Время проведения 2",
            "nullable": true
          },
          "timeForCourse3": {
            "type": "string",
            "description": "Время проведения 3",
            "nullable": true
          },
          "formatStudy1": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy2": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy3": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "isRegistrationStopped": {
            "type": "boolean",
            "description": "Стоп-запись",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "description": "Дата создания",
            "format": "date-time"
          },
          "groupLevel": {
            "type": "string",
            "description": "Уровень группы",
            "format": "uuid",
            "nullable": true
          },
          "trainingDirection": {
            "type": "string",
            "description": "Направление подготовки",
            "format": "uuid",
            "nullable": true
          },
          "segment": {
            "type": "string",
            "description": "Сегмент продукта",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о группе"
      },
      "GroupInfoResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Группа",
            "format": "uuid"
          },
          "maxName": {
            "type": "string",
            "description": "Название группы",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "description": "Статус группы",
            "format": "int32",
            "nullable": true
          },
          "maxGroupCode": {
            "type": "string",
            "description": "Кодификатор",
            "nullable": true
          },
          "maxUniqueNumber": {
            "type": "string",
            "description": "Уникальный номер",
            "nullable": true
          },
          "maxTypeGroup": {
            "type": "integer",
            "description": "Тип группы",
            "format": "int32",
            "nullable": true
          },
          "maxGroupSizeId": {
            "type": "string",
            "description": "Размерность",
            "format": "uuid",
            "nullable": true
          },
          "maxCourseId": {
            "type": "string",
            "description": "Курс",
            "format": "uuid",
            "nullable": true
          },
          "maxProductId1": {
            "type": "string",
            "description": "Продукт",
            "format": "uuid",
            "nullable": true
          },
          "maxTerritoryId": {
            "type": "string",
            "description": "Территория",
            "format": "uuid",
            "nullable": true
          },
          "maxPeriodYear": {
            "type": "string",
            "description": "Год договора",
            "format": "uuid",
            "nullable": true
          },
          "maxLearningStartDate": {
            "type": "string",
            "description": "Дата начала обучения",
            "format": "date-time",
            "nullable": true
          },
          "maxLearningFinishDate": {
            "type": "string",
            "description": "Дата окончания обучения",
            "format": "date-time",
            "nullable": true
          },
          "maxWeekDayName1": {
            "type": "string",
            "description": "День урока",
            "nullable": true
          },
          "maxWeekDayName2": {
            "type": "string",
            "description": "День вебинара",
            "nullable": true
          },
          "maxWeekDayName3": {
            "type": "string",
            "description": "День занятия 3",
            "nullable": true
          },
          "maxTimeForCourse1": {
            "type": "string",
            "description": "Время урока",
            "nullable": true
          },
          "maxTimeForCourse2": {
            "type": "string",
            "description": "Время вебинара",
            "nullable": true
          },
          "maxTimeForCourse3": {
            "type": "string",
            "description": "Время занятия 3",
            "nullable": true
          },
          "maxIsRegistrationStopped": {
            "type": "boolean",
            "description": "Стоп-запись"
          },
          "createdOn": {
            "type": "string",
            "description": "Дата создания",
            "format": "date-time"
          },
          "formatStudy1": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy2": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "formatStudy3": {
            "$ref": "#/components/schemas/GroupFormatStudyEnum"
          },
          "groupLevel": {
            "type": "string",
            "description": "Уровень группы",
            "format": "uuid",
            "nullable": true
          },
          "trainingDirection": {
            "type": "string",
            "description": "Направление подготовки",
            "format": "uuid",
            "nullable": true
          },
          "segment": {
            "type": "string",
            "description": "Сегмент продукта",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterestGroupData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id Группы интересов",
            "format": "uuid",
            "nullable": true
          },
          "opportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpportunityData"
            },
            "description": "Список Id возможных сделок, связанных с ГИ",
            "nullable": true
          },
          "bookableResourceBooking": {
            "$ref": "#/components/schemas/BookableResourceBookingData"
          }
        },
        "additionalProperties": false
      },
      "MeetingFormat": {
        "enum": [
          "None",
          "Exposition",
          "InPerson",
          "Distantly",
          "ByPhone",
          "InChat"
        ],
        "type": "string",
        "description": "Перечень доступных форматов ИК"
      },
      "MergeInterestGroupsRequest": {
        "type": "object",
        "properties": {
          "masterId": {
            "type": "string",
            "description": "ID основной ГИ",
            "format": "uuid"
          },
          "slaveId": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "ID объединяемых сущностей",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Запрос на объединение ГИ"
      },
      "OpportunityByContactData": {
        "type": "object",
        "properties": {
          "opportunityId": {
            "type": "string",
            "description": "ИД сделки",
            "format": "uuid"
          },
          "customerTypeName": {
            "type": "string",
            "description": "Название типа клиента",
            "nullable": true
          },
          "customerTypeId": {
            "type": "string",
            "description": "ИД типа клиента",
            "format": "uuid",
            "nullable": true
          },
          "campaignId": {
            "type": "string",
            "description": "ИД кампании",
            "format": "uuid",
            "nullable": true
          },
          "stateCode": {
            "type": "integer",
            "description": "Состояние сделки",
            "format": "int32"
          },
          "closingDate": {
            "type": "string",
            "description": "Дата закрытия сделки",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Данные по сделке по контакту"
      },
      "OpportunityData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID возможной сделки",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Название возможной сделки",
            "nullable": true
          },
          "holding": {
            "$ref": "#/components/schemas/OpportunityStatusEnum"
          },
          "scheduleFollowupProspect": {
            "type": "string",
            "description": "Дата следующего касания",
            "format": "date-time",
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "description": "Id заказчика",
            "format": "uuid",
            "nullable": true
          },
          "listenerId": {
            "type": "string",
            "description": "Id слушателя",
            "format": "uuid",
            "nullable": true
          },
          "parentAccountId": {
            "type": "string",
            "description": "Id контрагента",
            "format": "uuid",
            "nullable": true
          },
          "contractComment": {
            "type": "string",
            "description": "Комментарий менеджера для договора",
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "description": "Ответственный за сделку",
            "format": "uuid",
            "nullable": true
          },
          "bookableResourceBooking": {
            "$ref": "#/components/schemas/BookableResourceBookingData"
          }
        },
        "additionalProperties": false,
        "description": "Информация о возможной сделке"
      },
      "OpportunityStatusEnum": {
        "enum": [
          "ClientThinks",
          "Refused",
          "Invoicing"
        ],
        "type": "string",
        "description": "Статусы возможной сделки"
      },
      "PaymentData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id\r\n<br />Поле-источник в CRM: max_payment.max_paymentid",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Название платежа\r\n<br />Поле-источник в CRM: max_payment.max_name",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "description": "Дата создания\r\n<br />Поле-источник в CRM: max_payment.createdon",
            "format": "date-time",
            "nullable": true
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentPaymentTypeEnum"
          },
          "operationTypeCode": {
            "$ref": "#/components/schemas/PaymentOperationTypeCodeEnum"
          },
          "paymentTypeId": {
            "type": "string",
            "description": "Id способа оплаты\r\n<br />Поле-источник в CRM: max_payment.max_paymenttypeid",
            "format": "uuid",
            "nullable": true
          },
          "statusCode": {
            "$ref": "#/components/schemas/PaymentStatuscodeEnum"
          },
          "ownerId": {
            "type": "string",
            "description": "Ответственный\r\n<br />Поле-источник в CRM: max_payment.ownerid",
            "format": "uuid",
            "nullable": true
          },
          "planPaymentAmount": {
            "type": "number",
            "description": "Запланированная сумма платежа\r\n<br />Поле-источник в CRM: max_payment.max_planpaymentamount",
            "format": "double",
            "nullable": true
          },
          "planPaymentDate": {
            "type": "string",
            "description": "Запланированная дата платежа\r\n<br />Поле-источник в CRM: max_payment.max_planpaymentdate",
            "format": "date-time",
            "nullable": true
          },
          "factPaymentAmount": {
            "type": "number",
            "description": "Фактическая сумма платежа\r\n<br />Поле-источник в CRM: max_payment.max_factpaymentamount",
            "format": "double",
            "nullable": true
          },
          "factPaymentDate": {
            "type": "string",
            "description": "Фактическая дата платежа\r\n<br />Поле-источник в CRM: max_payment.max_factpaymentdate",
            "format": "date-time",
            "nullable": true
          },
          "contactIdBill": {
            "type": "string",
            "description": "Адресат счета\r\n<br />Поле-источник в CRM: max_payment.max_contactid_bill",
            "format": "uuid",
            "nullable": true
          },
          "agreementId": {
            "type": "string",
            "description": "Id договора\r\n<br />Поле-источник в CRM: max_payment.max_agreementid",
            "format": "uuid",
            "nullable": true
          },
          "accountId": {
            "type": "string",
            "description": "Id контрагента\r\n<br />Поле-источник в CRM: max_payment.max_accountid",
            "format": "uuid",
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "description": "Id заказчика\r\n<br />Поле-источник в CRM: max_payment.max_customer",
            "format": "uuid",
            "nullable": true
          },
          "territoryId": {
            "type": "string",
            "description": "Id территории\r\n<br />Поле-источник в CRM: max_payment.max_territory",
            "format": "uuid",
            "nullable": true
          },
          "billLink": {
            "type": "string",
            "description": "Счет\r\n<br />Поле-источник в CRM: max_payment.max_billlink",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о платеже"
      },
      "PaymentOperationTypeCodeEnum": {
        "enum": [
          "ReceivingDS",
          "ReturnDS",
          "ReturnTransferDS",
          "ReceivingTransferDS"
        ],
        "type": "string"
      },
      "PaymentPaymentTypeEnum": {
        "enum": [
          "AdvancePayment",
          "FirstPayment",
          "NextPayment"
        ],
        "type": "string"
      },
      "PaymentStatuscodeEnum": {
        "enum": [
          "Open",
          "Closed",
          "Canceled",
          "Error",
          "DeferredPayment"
        ],
        "type": "string"
      },
      "PaymentTypeEnum": {
        "enum": [
          "Boost",
          "Booking",
          "StepByStep",
          "OnePayment",
          "Recurent",
          "BankInstallmentPlan",
          "Combo",
          "MaternalCapital"
        ],
        "type": "string",
        "description": "Типы оплаты"
      },
      "PriceListData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id прайс-листа",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Название прайс-листа",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о прайс-листе"
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "disciplineName": {
            "type": "string",
            "nullable": true
          },
          "segmentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegistrationData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id регистрации",
            "format": "uuid",
            "nullable": true
          },
          "issuYear": {
            "type": "integer",
            "description": "Год выпуска",
            "format": "int32",
            "nullable": true
          },
          "isParticipatedOnEvent": {
            "type": "boolean",
            "description": "Статус посещения (отметка участия в мероприятии)",
            "nullable": true
          },
          "interestGroupId": {
            "type": "string",
            "description": "Id группы интересов",
            "format": "uuid",
            "nullable": true
          },
          "customerAccountId": {
            "type": "string",
            "description": "Id контрагента в регистрации",
            "format": "uuid",
            "nullable": true
          },
          "registrationUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistrationUser"
            },
            "description": "Контактные данные",
            "nullable": true
          },
          "campaignData": {
            "$ref": "#/components/schemas/CampaignData"
          },
          "statuscode": {
            "type": "integer",
            "description": "Причина состояния",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о регистрации"
      },
      "RegistrationUser": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "Имя",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true
          },
          "midleName": {
            "type": "string",
            "description": "Отчество",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Телефон",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email",
            "nullable": true
          },
          "contactId": {
            "type": "string",
            "description": "ID контакта",
            "format": "uuid",
            "nullable": true
          },
          "userType": {
            "$ref": "#/components/schemas/UserTypeEnum"
          }
        },
        "additionalProperties": false,
        "description": "Информация о контактных данных из регистрации"
      },
      "RunPriceLadderActionRequest": {
        "type": "object",
        "properties": {
          "groceryBasketIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Id позиции корзины",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Запуск экшена для формирования лесенки"
      },
      "RunWorkflowForEntityRequest": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string",
            "description": "Id сущности",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "description": "Id бизнес-процесса",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "Запуск бизнес-процесса для сущности"
      },
      "StatusCode": {
        "enum": [
          "Open",
          "Completed",
          "Concluded",
          "Frozen",
          "Canceled",
          "OnTermination",
          "Termination",
          "TechnicalTransfer",
          "NotPaid",
          "FeatureCompanyTransfer"
        ],
        "type": "string",
        "description": "Причина состояния"
      },
      "StudyFormat": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Название формата",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "Код формата",
            "nullable": true
          },
          "nameDoc": {
            "type": "string",
            "description": "Название для документов",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Territory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestResultsData": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Название (тип тестирования)",
            "nullable": true
          },
          "createdonDate": {
            "type": "string",
            "description": "Дата создания",
            "format": "date-time",
            "nullable": true
          },
          "link": {
            "type": "string",
            "description": "Ссылка на тестирование",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Информация о профтесте"
      },
      "UpdateAgreementGroupResponse": {
        "type": "object",
        "properties": {
          "agreementId": {
            "type": "string",
            "description": "Договор",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "description": "Группа",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UserTypeEnum": {
        "enum": [
          "FirstParent",
          "SecondParent",
          "SchoolChild"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://login.microsoftonline.com/f74c37c6-4783-4355-8da1-e399e4fd41bf/oauth2/v2.0/authorize",
            "scopes": { }
          }
        }
      }
    }
  },
  "security": [
    { }
  ]
}