Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open API (Swagger) Integration for Confluence
docExpansionnone
openapi: 3.0.1
info:
  title: Abills user API
  version: 0.0.2732
servers:
  - url: https://demo.abills.net.ua:9443/api.cgi
tags:
  - name: user
    description: Работа с пользователем
  - name: internet
    description: Работа с услугой Интернет
  - name: msgs
    description: Работа с заявками пользователя
  - name: abon
    description: Работа с периодическими списаниями
  - name: paysys
    description: Работа с платежными системами
  - name: config
    description: Все доступные конфигурации
  - name: contacts
    description: Работа с контактами
paths:
  /users/login:
    post:
      tags:
        - user
      summary: Авторизация пользователя
      operationId: loginUser
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/UserLoginBody'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserLogin'
  /users/{UID}/logout:
    delete:
      tags:
        - user
      summary: Выход пользователя
      operationId: logoutUser
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultOK'
      security:
        - USER_SID: [ ]
  /user/{UID}/social/networks:
    post:
      tags:
        - user
      summary: Привязка социальной сети пользователем
      operationId: userSocialNetworkSubscribe
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/UserSocialNetwork'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultOK'
      security:
        - USER_SID: [ ]
    delete:
      tags:
        - user
      summary: Отвязка от социальной сети пользователем
      parameters:
        - name: google
          in: query
          description: Сортировка по одному параметру выше
          schema:
            type: string
          example: ya29.A0AVA9y1s12FRL1mMwZTTq9PSX6fSSzzRINDtnnJf7Gdwf9c0URWEAu203MKj3sxHFW9x2pFd8IqHexGfkfhOe95sLgQk6g1u36lP4t5DXYH4U6yalrLaWHOEP-T3AnhgyNoWcLDqTk8W6neCFKoweuNuEjx_ehAYUNnWUtBVEFTQVRBU0ZRRTY1ZHI4WjIxdXFWYnAzZzNsYkdpQXVIUWw1Zw0165
      operationId: userSocialNetworkUnsubscribe
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultOK'
      security:
        - USER_SID: [ ]
  /user/{UID}:
    get:
      tags:
        - user
      summary: Информация о пользователе
      operationId: userInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
      security:
        - USER_SID: [ ]
  /user/{UID}/pi:
    get:
      tags:
        - user
      summary: Персональная информация пользователя
      operationId: userPersonalInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserPi'
      security:
        - USER_SID: [ ]
  /user/{UID}/credit:
    get:
      tags:
        - user
      summary: Информация об установке кредита
      operationId: userCreditInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserCreditInfo'
      security:
        - USER_SID: [ ]
    post:
      tags:
        - user
      summary: Установка кредита пользователю
      operationId: userSetCredit
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserCredit'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet:
    get:
      tags:
        - internet
      summary: Информация об интернет услугах пользователя
      operationId: userInternetInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInternet'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/{ID}:
    put:
      tags:
        - internet
      summary: Смена ТП
      operationId: userChangeInternetTP
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/body'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetChangeTPSuccess'
        400:
          description: Ошибка
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetChangeTPError'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
    delete:
      tags:
        - internet
      summary: Удалить расписание изменения ТП
      operationId: userDeleteChangeInternetTP
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: integer
        - name: ID
          in: path
          description: ID расписания
          required: true
          schema:
            type: integer
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveInternetChangeTPSuccess'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/internet/{ID}/speed:
    get:
      tags:
        - internet
      summary: Скорость ТП
      operationId: userTpSpeed
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetSpeed'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/{ID}/holdup:
    post:
      tags:
        - internet
      summary: Приостановление услуги Интернет
      operationId: userInternetHoldup
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/body_1'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HoldupReply'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
    delete:
      tags:
        - internet
      summary: Удаление рассписания на приостановление услуги Интернет
      operationId: userDeleteInternetHoldup
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HoldupReply'
      security:
        - USER_SID: [ ]
    get:
      tags:
        - internet
      summary: Инфомация о приостановлении услуги Интернет
      operationId: userInfoInternetHoldup
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HoldupInfo'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/tariffs:
    get:
      tags:
        - internet
      summary: Доступные для изменения ТП, на которые хватает денег
      operationId: userInternetAvailableToChangeTariffs
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAvailableTariffs'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/tariffs/all:
    get:
      tags:
        - internet
      summary: Все доступные для изменения ТП
      operationId: userInternetAvailableToChangeTariffsAll
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAvailableTariffs'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/{ID}/warnings:
    get:
      tags:
        - internet
      summary: Информация о списаниях
      operationId: userInternetWarnings
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID услуги
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetWarnings'
      security:
        - USER_SID: [ ]
  /user/{UID}/aboninternet/sessions/:
    get:
      tags:
        - aboninternet
      summary: ИнформацияИстория об периодических списаниях пользователяинтернет сессий
      operationId: userAbonInfouserInternetSessions
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: pageRows
          in: query
          description: Количество возвращаемых значений
          required: false
          schema:
            type: number
            default: 25
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAbonInternetSessions'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/session/active/msgs:
    get:
      tags:
        - msgsinternet
      summary: СписокАктивная заявоксессия пользователяабонента
      operationId: userMsgsListuserInternetSessionActive
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsArrayInternetSessionActive'
      security:
        - USER_SID: [ ]

  /user/{UID}/abon:
    postget:
      tags:
        - msgsabon
      summary: Создание заявкиИнформация об периодических списаниях пользователя
      operationId: userAddMessageuserAbonInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      requestBodyresponses:
        content200:
          '*/*'description:
 Успешное выполнение
          schemacontent:
              $ref: '#/components/schemas/MsgsAdd'application/json:
        required: true
      responsesschema:
        200:
          description: Успешное выполнение$ref: '#/components/schemas/UserAbon'
          contentsecurity:
        - USER_SID: [ ]
  application/json/user/{UID}/msgs:
    get:
      tags:
    schema:
    - msgs
      summary: Список заявок пользователя
  $ref    operationId: '#/components/schemas/MsgsAdded'userMsgsList
      securityparameters:
        - USER_SIDname: [UID
 ]
      x-codegen-request-body-name: body
  /user/{UID}/msgs/{ID}:in: path
    get:
      tagsdescription: UID пользователя
        - msgs  required: true
      summary: Информация о заявке пользователя
    schema:
            operationIdtype: userMsgsnumber
      parametersresponses:
        - name200: UID
          indescription: pathУспешное выполнение
          descriptioncontent:
 UID пользователя
          required: true
application/json:
              schema:
            type: number
   $ref: '#/components/schemas/MsgsArray'
     - namesecurity: ID
        -  in: pathUSER_SID: [ ]
    post:
      descriptiontags:
    ID заявки
   - msgs
      requiredsummary: Создание trueзаявки
      operationId: userAddMessage
    schema  parameters:
        - name: UID
   type: number
      responsesin: path
        200:  description: UID пользователя
          descriptionrequired: Успешное выполнениеtrue
          contentschema:
            application/jsontype: number
      requestBody:
        schemacontent:
          '*/*':
      $ref: '#/components/schemas/MsgsInfo'
      securityschema:
          - USER_SID: [ ]
 $ref: '#/usercomponents/{UID}/msgs/{ID}/reply:schemas/MsgsAdd'
    get:
    required:  tags:true
      responses:
        200:
          description: Успешное  - msgs
выполнение
          content:
          summary  application/json: Список заявок пользователя

              schema:
       operationId: userMsgReplyList         $ref: '#/components/schemas/MsgsAdded'
      parameterssecurity:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/msgs/{ID}:
    get:
         in: path
    tags:
        - msgs
      summary: Информация о заявке пользователя
      operationId: userMsgs
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID заявки
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsInfo'
      security:
        - USER_SID: [ ]
  /user/{UID}/msgs/{ID}/reply:
    get:
      tags:
        - msgs
      summary: Список заявок пользователя
      operationId: userMsgReplyList
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID заявки
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsReplyArray'
      security:
        - USER_SID: [ ]
    post:
      tags:
        - msgs
      summary: Создание заявки
      operationId: userAddReply
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
        - name: ID
          in: path
          description: ID заявки
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/MsgsReplyAdd'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content: { }
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/msgs/chapters:
    get:
      descriptiontags: UID пользователя
        -  required: truemsgs
      summary: Список разделов заявок schema:пользователя
      operationId: userMsgsChapters
     type parameters: number
        - name: IDUID
          in: path
          description: IDUID заявкипользователя
          required: true
          schema:
            type: number
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsReplyArrayMsgsArrayChapters'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysys/systems:
  post  get:
      tags:
        - msgspaysys
      summary: Создание заявкиСписок платежных систем доступных пользователю
      operationId: userAddReplyuserPaysysList
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema: path

            type: number
      responses:
      description: UID пользователя200:
          requireddescription: trueУспешное выполнение
          schemacontent:
            typeapplication/json: number
        - name: ID
    schema:
      in: path
          description$ref: ID заявки'#/components/schemas/PaysysArray'
      security:
    required: true
   - USER_SID: [ ]
    schema/user/{UID}/config:
    get:
      tags:
  type: number
     - requestBody:config
        contentsummary:
 Список доступных конфигураций пользователя
      '*/*':operationId: userConfig
      parameters:
      schema:
  - name: UID
          $refin: '#/components/schemas/MsgsReplyAdd'path
        required: true
  description: UID пользователя
  responses:
        200required: true
          descriptionschema:
 Успешное выполнение
          contenttype: { }number
      securityresponses:
        200:
 - USER_SID: [ ]
      x-codegen-request-body-namedescription: body
  /user/{UID}/msgs/chapters:Успешное выполнение
    get:
      tagscontent:
        - msgs
   application/json:
   summary:  Список разделов заявок пользователя
      operationIdschema:
 userMsgsChapters
      parameters:
        - name$ref: UID'#/components/schemas/UserConfig'
      security:
    in: path
   - USER_SID: [ ]
  /version:
  description: UID пользователяget:
      tags:
    required: true
   - config
      schemasummary:
 Получить версии биллинга и API
       typeoperationId: numbergetVersion
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsArrayChapters'
      security:
        - USER_SID: [ ]
  Version'
  /user/{UID}/paysys/systemspay:
    getpost:
      tags:
        - paysys
      summary: СписокФормирование платежныхссылки системна доступныхбыструю пользователюоплату
      operationId: userPaysysListuserPaysysPay
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
            schema:
 true
          schema:
   $ref: '#/components/schemas/PaysysPayBody'
        typerequired: numbertrue
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysArrayPaysysPay'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysys/transaction/configstatus:
    getpost:
      tags:
        - configpaysys
      summary: Список доступных конфигураций пользователя
      operationId: userConfig
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
       Проверка статуса платежа
      typeoperationId: numberuserPaysysTransactionStatus
      responsesparameters:
        200- name: UID
          descriptionin: Успешное выполнениеpath
          contentdescription:
 UID пользователя
          application/jsonrequired: true
          schema:
    schema:
        type: number
      requestBody:
 $ref: '#/components/schemas/UserConfig'
      securitycontent:
         - USER_SID: [ ] '*/*':
  /version:
    get:
      tagsschema:
        - config
      summary: Получить версии биллинга и API
$ref: '#/components/schemas/PaysysTransactionStatusBody'
        operationIdrequired: getVersiontrue
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Version'PaysysTransactionStatus'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysyscontacts/push/paysubscribe:
    post:
      tags:
        - paysyscontacts
      summary: ФормированиеПодписка ссылки на быструюPush оплатууведомления
      operationId: userPaysysPayuserPushSubscribeCreate
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/PaysysPayBodyPushSubscribeCreateBody'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysPayResultOK'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysys/transaction/status:
    postdelete:
      tags:
        - paysyscontacts
      summary: Отписка Проверкаот статусаPush платежауведомлений
      operationId: userPaysysTransactionStatususerPushSubscribeDelete
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      requestBody:
        content:
          '*/*':
 UID пользователя
          schemarequired: true
          schema:
    $ref: '#/components/schemas/PaysysTransactionStatusBody'
        requiredtype: truenumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysTransactionStatusResultOK'
      security:
        - USER_SID: [ ]
  /user/{UID}/contacts/push/subscribe:
    postget:
      tags:
        - contacts
      summary: ПодпискаПолучить наFCM Push уведомлениятокен
      operationId: userPushSubscribeCreateuserPushSubscribeGet
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: number
      requestBody:
        content:: path
          '*/*'description:
 UID пользователя
          schemarequired: true
          schema:
    $ref: '#/components/schemas/PushSubscribeCreateBody'
        requiredtype: truenumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultOKPushSubscribeInfo'
      security:
        - USER_SID: [ ]
    deletecomponents:
      tagsschemas:
        - contacts
      summary: Отписка от Push уведомленийUser:
      operationIdtype: userPushSubscribeDeleteobject
      parametersproperties:
        - namelogin: UID
          intype: pathstring
          descriptionexample: UID пользователя"3433"
          required: true
          schemadeposit:
            type: numberinteger
      responses:
        200:example: 1600
          description: Успешное выполнениеcredit:
          contenttype: integer
            application/json:example: 100
         creditDate:
     schema:
     type: string
          $refexample: '#/components/schemas/ResultOK'2021-08-13
      security  billId:
         - USER_SIDtype: [ ]integer
    get:
      tagsexample: 12
        - contacts
gid:
          summarytype: Получитьinteger
   FCM токен
      operationIdexample: userPushSubscribeGet57
      parameters  disable:
         - nametype: UIDinteger
          inexample: path0
        deleted:
   description: UID пользователя
     type: integer
    required: true
     example: 0
    schemaUserPi:
      type: object
     type properties:
 number
       responsesfio:
        200  type: string
          descriptionexample: Иванов УспешноеИван выполнениеИванович
          contentaddressFull:
          type: string
 application/json:
         example: ул.Адамца, 121, 3
  schema:
      age:
          $reftype: '#/components/schemas/PushSubscribeInfo'integer
      security:
    example: 33
   - USER_SID: [ ]
components:
  schemaslocationId:
    User:
      type: objectinteger
      properties:    example: 1444
        logincontractId:
          type: string
          example: "3433575493"
        depositemail:
          type: integerarray
          exampleitems: 1600
        credit:
          type: integerstring
            example: 100test@gmail.com
        creditDatephone:
          type: stringarray
          example: 2021-08-13items:
        billId:
          type: integerstring
          example: 12
        gidexample: "380976574568"
    UserInternet:
      type: integerarray
          example: 57items:
        disable:$ref: '#/components/schemas/UserInternet_inner'
    InternetSpeed:
      type: integerarray
          example: 0items:
        deleted:$ref: '#/components/schemas/InternetSpeed_inner'
    UserAbon:
      type: integerarray
      items:
     example   $ref: 0'#/components/schemas/UserAbon_inner'
    UserPiUserCredit:
      type: object
      properties:
        fiocreditSum:
          type: stringinteger
          example: Иванов Иван Иванович500
        addressFullcreditChangePrice:
          type: stringinteger
          example: ул.Адамца, 121, 3100
        ageuid:
          type: integer
          example: 3311135
        locationIdcreditDays:
          type: integerstring
          example: 1444"3"
        contractIdcreditMonthChanges:
          type: string
          example: "575493"
        email:1"
    UserCreditInfo:
      type: arrayobject
      properties:
        itemscreditChgPrice:
            type: string
            example: test@gmail.com"500"
        phonecreditMonthChanges:
          type: arraystring
          itemsexample: "1"
        creditSum:
          type: string
            example: "380976574568800"
    UserInternet    creditDays:
      type: array
   type: string
  items:
        $refexample: '#/components/schemas/UserInternet_inner'"3"
    InternetSpeedUserAvailableTariffs:
      type: array
      items:
        $ref: '#/components/schemas/InternetSpeedUserAvailableTariffs_inner'
    UserAbonHoldupReply:
      type: arrayobject
      itemsproperties:
        $ref: '#/components/schemas/UserAbon_inner'success:
    UserCredit:
      type: objectinteger
      properties:    example: 1
        creditSummsg:
          type: integerstring
    HoldupInfo:
      exampletype: 500object
      properties:
        creditChangePricecanCancel:
          type: integerboolean
          example: 100true
        uiddateFrom:
          type: integerstring
          example: 11135"2022-06-12"
        creditDaysdateTo:
          type: string
          example: "32022-07-12"
        creditMonthChangesdelIds:
          type: string
          example: "1, 2, 3"
    UserCreditInfoInternetWarnings:
      type: object
      properties:
        creditChgPricemessageType:
          type: string
          example: "500"success
        creditMonthChangeswarning:
          type: string
          example: "1" следующее списание через 7 дней
        creditSumdaysToFee:
          type: string
          example: "8002"
        creditDayssum:
          type: stringinteger
          example: "3"
150
        UserAvailableTariffsabonDate:
      type: array
   type: string
  items:
        $ref: '#/components/schemas/UserAvailableTariffs_inner'example: 2021-10-01
    HoldupReplyInternetSessionActive:
      type: object
      properties:
        successduration: 
          type: integernumber
          example: 110782
        msginput: 
          type: stringnumber
    HoldupInfo:
      typeexample: object366270859
      properties:
        canCancel:ip: 
          type: booleanstring
          example: true 192.168.50.156
        dateFromoutput: 
          type: stringnumber
          example: "2022-06-12"73249353
        dateToInternetSessions:
          type: stringarray
          example: "2022-07-12"items:
        delIds:$ref: '#/components/schemas/InternetSession'
    InternetSession:
      type: stringobject
      properties:
    example: "1, 2, 3"    duration: 
    InternetWarnings:
      type: objectnumber
       properties:   example: 1738
        messageTypeinput: 
          type: stringnumber
          example: success21423525
        warningip: 
          type: string
          example: следующее списание через 7 дней192.190.50.1
        daysToFeeoutput: 
          type: stringnumber
          example: "2"177703957
        sumtpId: 
          type: integernumber
          example: 1501
        abonDatetpName: 
          type: string
          example: 2021-10-01test_tariff
    InternetChangeTPSuccess:
      type: object
      properties:
        success:
          type: integer
          example: 1
        uid:
          type: integer
    InternetChangeTPError:
      type: object
      properties:
        error:
          type: integer
          example: 145
        message:
          type: string
        messageType:
          type: string
        messageTitle:
          type: string
    RemoveInternetChangeTPSuccess:
      type: object
      properties:
        success:
          type: integer
          example: 1
        uid:
          type: integer
          example: 1
    MsgsAdd:
      type: object
      properties:
        chapter:
          type: integer
          example: 3
        message:
          type: string
          example: Some message
        subject:
          type: string
          example: Message subject
        priority:
          type: integer
          example: 2
    MsgsAdded:
      type: object
      properties:
        insertId:
          type: integer
          example: 43
        msgId:
          type: integer
          example: 43
        affected:
          type: integer
          example: 1
    MsgsInfo:
      type: object
      properties:
        subject:
          type: string
          example: Message user api subject
        message:
          type: string
          example: Test message from user api
        chapterName:
          type: string
          example: Второй раздел
        chapter:
          type: integer
          example: 3
        priority:
          type: integer
          example: 2
        state:
          type: integer
          example: 0
        date:
          type: string
          example: 2021-09-02 13:20:37
    MsgsArray:
      type: array
      items:
        $ref: '#/components/schemas/MsgsInfo'
    MsgsArrayChapters:
      type: array
      items:
        $ref: '#/components/schemas/MsgsChapter'
    MsgsReply:
      type: object
      properties:
        uid:
          type: integer
          example: 0
        aid:
          type: integer
          example: 2
        id:
          type: integer
          example: 54
        text:
          type: string
          example: some reply text
        datetime:
          type: string
          example: 2021-09-02 12:50:47
    MsgsReplyAdd:
      type: object
      properties:
        reply_text:
          type: string
          example: Some reply text
        reply_subject:
          type: string
          example: Subject
    MsgsReplyArray:
      type: array
      items:
        $ref: '#/components/schemas/MsgsReply'
    body:
      type: object
      properties:
        tp_id:
          type: integer
          example: 4
        date:
          type: string
          example: 2021-09-17
        period:
          type: integer
    body_1:
      type: object
      properties:
        fromDate:
          type: string
          example: 2021-08-14
        toDate:
          type: string
          example: 2021-08-17
    UserInternet_inner:
      type: object
      properties:
        id:
          type: integer
          example: 2
        tpName:
          type: string
          example: Премиум до 100м
        tpId:
          type: integer
          example: 41
        internetStatus:
          type: integer
          example: 0
        cid:
          type: string
          example: 14:11:11:11:11:c1
        monthFee:
          type: integer
          example: 250
        dayFee:
          type: integer
          example: 0
        schedule:
          type: object
          properties:
            date:
              type: string
              example: "2022-06-11"
            dateFrom:
              type: string
              example: "2022-07-11"
            sheduleId: 
              type: integer
              example: 1
            tpId: 
              type: integer
              example: 1
    InternetSpeed_inner:
      type: object
      properties:
        inSpeed:
          type: integer
          example: 2999
        outSpeed:
          type: integer
          example: 3000
        tpNum:
          type: integer
          example: 155
    UserAbon_inner:
      type: object
      properties:
        id:
          type: integer
          example: 2
        name:
          type: string
          example: Test abon TP
        price:
          type: integer
          example: 100
        period:
          type: integer
          example: 1
        nextAbon:
          type: string
          example: 2021-09-01
        comments:
          type: string
        description:
          type: string
          example: Test description
    UserAvailableTariffs_inner:
      type: object
      properties:
        id:
          type: integer
          example: 2
        name:
          type: string
          example: Премиум до 100м
        tpId:
          type: integer
          example: 41
        monthFee:
          type: integer
          example: 250
        dayFee:
          type: integer
          example: 0
        comments:
          type: string
    PaysysArray:
      type: array
      items:
        $ref: '#/components/schemas/PaymentSystem'
    PaymentSystem:
      type: object
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: LiqPay
        module:
          type: string
          example: Liqpay.pm
    PaysysPayBody:
      type: object
      properties:
        systemId:
          type: integer
          example: 1
        sum:
          type: integer
          example: 100
        operationId:
          type: string
          example: 123456789
    PaysysPay:
      type: object
      properties:
        operationId:
          type: string
          example: 123456789
        transactionId:
          type: string
          example: Liqpay:123456789
        url:
          type: string
          example: https://www.liqpay.ua/api/3/checkout?data=123456789&signature=123456789
    PaysysTransactionStatus:
      type: object
      properties:
        id:
          type: integer
          example: 1
        datetime:
          type: string
          example: "2022-01-01 01:01:01"
        login:
          type: string
          example: test
        status:
          type: integer
          example: 1
        systemId:
          type: integer
          example: 1
        sum:
          type: integer
          example: 100
        uid:
          type: integer
          example: 1
        transactionId:
          type: string
          example: Liqpay:123456789
    PaysysTransactionStatusBody:
      type: object
      properties:
        transactionId:
          type: string
          example: Liqpay:123456789
    UserLoginBody:
      type: object
      properties:
        login:
          type: string
          example: testuser
        password:
          type: string
          example: testuser
    UserLogin:
      type: object
      properties:
       login:
         type: string
         example: testuser
       sid:
         type: string
         example: sW44EJZLyWDMeXAV
       uid:
         type: integer
         example: 1
    UserConfig:
      type: object
      properties:
        cardsUserPayment:
          type: integer
          example: 6
        docsActsList:
          type: integer
          example: 9
        docsInvoicesList:
          type: integer
          example: 8
        docsReceiptList:
          type: integer
          example: 5
        internetUserInfo:
          type: integer
          example: 3
        internetUserStats:
          type: integer
          example: 10
        msgsUser:
          type: integer
          example: 1
        paysysPayment:
          type: integer
          example: 4
        paysysSubscribe:
          type: integer
          example: 7
        paysysUserLog:
          type: integer
          example: 2
        system:
          type: object
          properties:
            currency:
              type: integer
              example: 980
    MsgsChapter: 
      type: object
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: Example chapter
    UserSocialNetwork: 
      type: object
      properties:
        google:
          type: string
          example: ya29.A0AVA9y1s12FRL1mMwZTTq9PSX6fSSzzRINDtnnJf7Gdwf9c0URWEAu203MKj3sxHFW9x2pFd8IqHexGfkfhOe95sLgQk6g1u36lP4t5DXYH4U6yalrLaWHOEP-T3AnhgyNoWcLDqTk8W6neCFKoweuNuEjx_ehAYUNnWUtBVEFTQVRBU0ZRRTY1ZHI4WjIxdXFWYnAzZzNsYkdpQXVIUWw1Zw0165
    Version:
      type: object
      properties:
        version:
          type: string
          example: 0.91.0
        apiVersion:
          type: string
          example: "0.01"
        billing:
          type: string
          example: Abills 
    PushSubscribeCreateBody:
      type: object
      properties:
        token:
          type: string
          example: "d61FRIQSRI2j1mOwvLqt12:APA91bGpVb1bbokiMBWAoBh6uaGhzFr6YOD9ZT_1WcFeu6b_Dc8a8glaQCEk5GtCM3LYdvnF1XewSIpiT6Y5gkoa9ztFUb8of1wxd28eG-L94DM8MHvaCGa2jIbatHWiPYcPSUOtAdsM"
    ResultOK:
      type: object
      properties:
        result:
          type: string
          example: OK
    PushSubscribeInfo:
      type: object
      properties:
        value:
          type: string
          example: "d61FRIQSRI2j1mOwvLqt12:APA91bGpVb1bbokiMBWAoBh6uaGhzFr6YOD9ZT_1WcFeu6b_Dc8a8glaQCEk5GtCM3LYdvnF1XewSIpiT6Y5gkoa9ztFUb8of1wxd28eG-L94DM8MHvaCGa2jIbatHWiPYcPSUOtAdsM"
        uid: 
          type: integer
          example: 1
  securitySchemes:
    USER_SID:
      type: apiKey
      name: USERSID
      in: header

...