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.15
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'
  /user/{UID}:
    get:
      tags:
        - user
      summary: Информация о пользователе
      operationId: userInfo
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      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: stringnumber
      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: stringnumber
      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: stringnumber
      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: stringnumber
      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: stringnumber
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: stringnumber
      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
  /user/{UID}/internet/{ID}/speed:
    getdelete:
      tags:
        - internet
      summary: СкоростьУдалить расписание изменения ТП
      operationId: userTpSpeeduserDeleteChangeInternetTP
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringinteger
        - name: ID
          in: path
          description: ID услуги Интернетрасписания
          required: true
          schema:
            type: stringinteger
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetSpeedRemoveInternetChangeTPSuccess'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/internet/{ID}/holdupspeed:
    postget:
      tags:
        - internet
      summary: ПриостановлениеСкорость услуги ИнтернетТП
      operationId: userInternetHoldupuserTpSpeed
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: stringnumber
      requestBodyresponses:
        content200:
          '*/*'description:
 Успешное выполнение
          schemacontent:
              $ref: '#/components/schemas/body_1'
 application/json:
       required: true
      responsesschema:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: $ref: '#/components/schemas/HoldupReplyInternetSpeed'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body/user/{UID}/internet/{ID}/holdup:
    deletepost:
      tags:
        - internet
      summary: Удаление рассписания на приостановление Приостановление услуги Интернет
      operationId: userDeleteInternetHoldupuserInternetHoldup
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
        - name: ID
          in: path
          description: ID услуги Интернет
          required: true
          schema:
            type: stringnumber
      responsesrequestBody:
        200content:
          description'*/*':
 Успешное            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/HoldupReplyUserAvailableTariffs'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/tariffs/all:
    get:
      tags:
        - internet
      summary: Все Доступныедоступные для изменения ТП, на которые хватает денег
      operationId: userInternetAvailableToChangeTariffsuserInternetAvailableToChangeTariffsAll
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAvailableTariffs'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/tariffs{ID}/allwarnings:
    get:
      tags:
        - internet
      summary: Информация о списаниях
      operationId: userInternetWarnings
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          -required: internettrue
      summary: Все доступные для изменения ТПschema:
      operationId: userInternetAvailableToChangeTariffsAll
      parameterstype: number
        - name: UIDID
          in: path
          description: UIDID пользователяуслуги
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAvailableTariffsInternetWarnings'
      security:
        - USER_SID: [ ]
  /user/{UID}/internet/{ID}/warnings:
    get:
      tags:
        - internet
      summary: Информация о списаниях
      operationId: userInternetWarnings
      parameters:
        - name: UID
          in: pathabon:
    get:
      descriptiontags: UID пользователя
        -  required: true
abon
      summary: Информация об периодических списаниях schema:пользователя
      operationId: userAbonInfo
      typeparameters: string
        - name: IDUID
          in: path
          description: IDUID услугипользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternetWarningsUserAbon'
      security:
        - USER_SID: [ ]
  /user/{UID}/abonmsgs:
    get:
      tags:
        - abonmsgs
      summary: Информация об периодических списанияхСписок заявок пользователя
      operationId: userAbonInfouserMsgsList
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAbonMsgsArray'
      security:
        - USER_SID: [ ]
  /user/{UID}/msgs:
    get:    post:
      tags:
        - msgs
      summary: Создание заявки
      operationId: userAddMessage
      parameters:
        - name: UID
      tags:
    in: path
   - msgs
      summarydescription: Список заявокUID пользователя
      operationId    required: userMsgsListtrue
      parameters    schema:
        -    nametype: UIDnumber
      requestBody:
     in: path   content:
          description'*/*':
 UID пользователя
          requiredschema: true
          schema:
    $ref: '#/components/schemas/MsgsAdd'
        typerequired: stringtrue
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsArrayMsgsAdded'
      security:
        - USER_SID: [ ]SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/msgs/{ID}:
    postget:
      tags:
        - msgs
      summary: Создание заявкиИнформация о заявке пользователя
      operationId: userAddMessageuserMsgs
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      requestBody:
  - name: ID
          contentin: path
          '*/*'description:
 ID заявки
          schemarequired: true
          schema:
    $ref: '#/components/schemas/MsgsAdd'
        requiredtype: truenumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsAddedMsgsInfo'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/msgs/{ID}/reply:
    get:
      tags:
        - msgs
      summary: ИнформацияСписок о заявкезаявок пользователя
      operationId: userMsgsuserMsgReplyList
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
        - name: ID
          in: path
          description: ID заявки
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsInfoMsgsReplyArray'
      security:
        - USER_SID: [ ]
  /user/{UID}/msgs/{ID}/reply:
    getpost:
      tags:
        - msgs
      summary: СписокСоздание заявок пользователязаявки
      operationId: userMsgReplyListuserAddReply
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
        - name: ID
          in: path
          description: ID заявки
          required: true
          schema:
            type: stringnumber
      responses:
        200requestBody:
          description: Успешное выполнение
          content:
            application/json'*/*':
              schema:
                $ref: '#/components/schemas/MsgsReplyArrayMsgsReplyAdd'
      security:
  required: true
     - USER_SID: [ ]responses:
    post:
      tags200:
        - msgs
 description: Успешное выполнение
   summary: Создание заявки
     content: operationId:{ userAddReply}
      parameterssecurity:
        - nameUSER_SID: [ UID]
      x-codegen-request-body-name: body
   in: path
/user/{UID}/msgs/chapters:
    get:
       description: UID пользователяtags:
        -  required: truemsgs
      summary: Список разделов заявок schema:пользователя
      operationId: userMsgsChapters
     type parameters: string
        - name: IDUID
          in: path
          description: IDUID заявкипользователя
          required: true
          schema:
            type: stringnumber
      requestBodyresponses:
        content200:
          '*/*'description:
 Успешное выполнение
          schemacontent:
              $ref: '#/components/schemas/MsgsReplyAdd'
        required: trueapplication/json:
      responses:
        200schema:
          description: Успешное выполнение
          content$ref: { }'#/components/schemas/MsgsArrayChapters'
      security:
        - USER_SID: [ ]
      x-codegen-request-body-name: body
  /user/{UID}/msgspaysys/chapterssystems:
    get:
      tags:
        - msgspaysys
      summary: Список разделовплатежных систем заявокдоступных пользователяпользователю
      operationId: userMsgsChaptersuserPaysysList
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MsgsArrayChaptersPaysysArray'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysys/systemsconfig:
    get:
      tags:
        - paysysconfig
      summary: Список платежныхдоступных системконфигураций доступных пользователюпользователя
      operationId: userPaysysListuserConfig
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysArray'
      security:
        - USER_SID: [ ]
  /user/{UID}/config:
    get:
      tags:
        - config
      summary: Список доступных конфигураций пользователя
      operationId: userConfigUserConfig'
      parameterssecurity:
        - nameUSER_SID: UID[ ]
  /version:
        in: pathget:
          description: UID пользователяtags:
        -  required: trueconfig
          schemasummary:
 Получить версии биллинга и API
       typeoperationId: stringgetVersion
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserConfigVersion'
  /user/{UID}/paysys/pay:
    securitypost:
      tags:
      - USER_SID: [- ]paysys
  /currency:
    getsummary:
 Формирование ссылки на быструю  tags:оплату
        - configoperationId: userPaysysPay
      summaryparameters:
 Валюта на биллинге
     - operationIdname: billingCurrencyUID
      responses:
        200in: path
          description: УспешноеUID выполнениепользователя
          contentrequired: true
          schema:
     application/json:
       type: number
      schemarequestBody:
        content:
         $ref: '#/components/schemas/BillingCurrency'*/*':
  /version:
    get:
      tagsschema:
        - config
      summary$ref: Получить версии биллинга и API
'#/components/schemas/PaysysPayBody'
          operationIdrequired: getVersiontrue
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Version'PaysysPay'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysys/transaction/paystatus:
    post:
      tags:
        - paysys
      summary: ФормированиеПроверка ссылки на быструю оплатустатуса платежа
      operationId: userPaysysPayuserPaysysTransactionStatus
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/PaysysPayBodyPaysysTransactionStatusBody'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysPayPaysysTransactionStatus'
      security:
        - USER_SID: [ ]
  /user/{UID}/paysyscontacts/transactionpush/statussubscribe:
    post:
      tags:
        - paysyscontacts
      summary: ПроверкаПодписка на статусаPush платежауведомления
      operationId: userPaysysTransactionStatususerPushSubscribeCreate
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      requestBody:
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/PaysysTransactionStatusBodyPushSubscribeCreateBody'
        required: true
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaysysTransactionStatusPushSubscribe'
      security:
        - USER_SID: [ ]
  /user/{UID}/contacts/push/subscribe:
    postdelete:
      tags:
        - contacts
      summary: ПодпискаОтписка наот Push уведомленияуведомлений
      operationId: userPushSubscribeCreateuserPushSubscribeDelete
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: string
      requestBody:
        content:: path
          '*/*'description:
 UID пользователя
          schemarequired: true
          schema:
    $ref: '#/components/schemas/PushSubscribeCreateBody'
        requiredtype: truenumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushSubscribe'
      security:
        - USER_SID: [ ]
    deleteget:
      tags:
        - contacts
      summary: ОтпискаПолучить отFCM Push уведомленийтокен
      operationId: userPushSubscribeDeleteuserPushSubscribeGet
      parameters:
        - name: UID
          in: path
          description: UID пользователя
          required: true
          schema:
            type: stringnumber
      responses:
        200:
          description: Успешное выполнение
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushSubscribePushSubscribeInfo'
      security:
        - USER_SID: [ ]
components:
  schemas:
    User:
      type: object
      properties:
        login:
          type: string
         - USER_SIDexample: [ ]
"3433"
        getdeposit:
      tags:
    type: integer
   - contacts
      summaryexample: Получить1600
 FCM токен
      operationIdcredit:
 userPushSubscribeGet
         parameterstype: integer
         - nameexample: UID100
          increditDate: path
          descriptiontype: UID пользователяstring
          requiredexample: true2021-08-13
          schemabillId:
            type: stringinteger
       responses:   example: 12
        200gid:
          descriptiontype: Успешное выполнениеinteger
          contentexample: 57
            application/jsondisable:
          type: integer
   schema:
       example: 0
        $ref: '#/components/schemas/PushSubscribeInfo'
deleted:
       security:   type: integer
        - USER_SID: [ ]
components:
  schemas: example: 0
    UserUserPi:
      type: object
      properties:
        loginfio:
          type: string
          example: "3433" Иванов Иван Иванович
        depositaddressFull:
          type: integerstring
          example: 1600ул.Адамца, 121, 3
        creditage:
          type: integer
          example: 10033
        creditDatelocationId:
          type: stringinteger
          example: 2021-08-131444
        billIdcontractId:
          type: integerstring
          example: 12"575493"
        gidemail:
          type: integerarray
          exampleitems: 57
        disable:
          type: integerstring
            example: 0test@gmail.com
        deletedphone:
          type: integerarray
          exampleitems:
 0
     UserPi:
      type: objectstring
      properties:
        fio:example: "380976574568"
          type: stringUserInternet:
      type: array
   example: Иванов Иван Ивановичitems:
        addressFull:$ref: '#/components/schemas/UserInternet_inner'
    InternetSpeed:
      type: stringarray
          example: ул.Адамца, 121, 3items:
        age:$ref: '#/components/schemas/InternetSpeed_inner'
    UserAbon:
      type: integerarray
          example: 33items:
        locationId:$ref: '#/components/schemas/UserAbon_inner'
    UserCredit:
      type: integerobject
          example: 1444properties:
        contractIdcreditSum:
          type: stringinteger
          example: "575493"500
        emailcreditChangePrice:
          type: arrayinteger
          itemsexample: 100
        uid:
          type: stringinteger
            example: test@gmail.com11135
        phonecreditDays:
          type: arraystring
          itemsexample: "3"
        creditMonthChanges:
          type: string
            example: "3809765745681"
    UserInternetUserCreditInfo:
      type: arrayobject
      itemsproperties:
        $ref: '#/components/schemas/UserInternet_inner'creditChgPrice:
    InternetSpeed:
      type: arraystring
        items:  example: "500"
        $ref: '#/components/schemas/InternetSpeed_inner'creditMonthChanges:
    UserAbon:
      type: arraystring
          itemsexample: "1"
        $ref: '#/components/schemas/UserAbon_inner'creditSum:
    UserCredit:
      type: objectstring
        properties:  example: "800"
        creditSumcreditDays:
          type: integerstring
          example: 500"3"
        creditChangePriceUserAvailableTariffs:
          type: integerarray
          example: 100items:
        uid:$ref: '#/components/schemas/UserAvailableTariffs_inner'
    HoldupReply:
      type: integerobject
          example: 11135properties:
        creditDayssuccess:
          type: stringinteger
          example: "3"1
        creditMonthChangesmsg:
          type: string
          example: "1"
    UserCreditInfoHoldupInfo:
      type: object
      properties:
        creditChgPricecanCancel:
          type: stringboolean
          example: "500"true
        creditMonthChangesdateFrom:
          type: string
          example: "12022-06-12"
        creditSumdateTo:
          type: string
          example: "8002022-07-12"
        creditDaysdelIds:
          type: string
          example: "1, 2, 3"
    UserAvailableTariffsInternetWarnings:
      type: arrayobject
      itemsproperties:
        $ref: '#/components/schemas/UserAvailableTariffs_inner'messageType:
    HoldupReply:
      type: objectstring
          example: properties:success
        successwarning:
          type: integerstring
          example: 1следующее списание через 7 дней
        msgdaysToFee:
          type: string
    InternetWarnings:
      typeexample: object"2"
      properties  sum:
          messageTypetype: integer
          typeexample: string150
        abonDate:
  example: success
       type: warning:string
          typeexample: string2021-10-01
    InternetChangeTPSuccess:
      exampletype: следующееobject
   списание через 7 днейproperties:
        daysToFeesuccess:
          type: stringinteger
          example: "2"1
        sumuid:
          type: integer
    InternetChangeTPError:
      exampletype: 150object
        abonDateproperties:
          typeerror: string
          exampletype: 2021-10-01integer
    InternetChangeTPSuccess:
      typeexample: object145
        propertiesmessage:
          successtype: string
          typemessageType: integer
          exampletype: 1string
        uidmessageTitle:
          type: integerstring
    InternetChangeTPErrorRemoveInternetChangeTPSuccess:
      type: object
      properties:
        errorsuccess:
          type: integer
          example: 1451
        messageuid:
          type: stringinteger
        messageType:
          typeexample: string1
        messageTitle:
          type: string
    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
        MsgsReplyaid:
          type: objectinteger
      properties:    example: 2
        uidid:
          type: integer
          example: 054
        aidtext:
          type: integerstring
          example: 2some reply text
        iddatetime:
          type: integerstring
          example: 542021-09-02 12:50:47
    MsgsReplyAdd:
      type: object
      properties:
        reply_text:
          type: string
          example: someSome reply text
        datetimereply_subject:
          type: string
          example: 2021-09-02 12:50:47: Subject
    MsgsReplyArray:
      type: array
      items:
        $ref: '#/components/schemas/MsgsReply'
    MsgsReplyAddbody:
      type: object
      properties:
        replytp_textid:
          type: stringinteger
          example: Some reply text4
        reply_subjectdate:
          type: string
          example: Subject2021-09-17
    MsgsReplyArray:
      typeperiod: array
      items:
        $reftype: '#/components/schemas/MsgsReply'integer
    body_1:
      type: object
      properties:
        tpfrom_iddate:
          type: integerstring
          example: 42021-08-14
        to_date:
          type: string
          example: 2021-0908-17
    UserInternet_inner:
      type: object
      properties:
        periodid:
          type: integer
      body_1:
    example: 2
        tpName:
          type: objectstring
      properties:    example: Премиум до 100м
        from_datetpId:
          type: stringinteger
          example: 2021-08-1441
        to_dateinternetStatus:
          type: stringinteger
          example: 2021-08-170
    UserInternet_inner    cid:
          type: objectstring
           properties:example: 14:11:11:11:11:c1
        idmonthFee:
          type: integer
          example: 2250
        tpNamedayFee:
          type: stringinteger
          example: Премиум до 100м0
        tpIdschedule:
          type: integerobject
          exampleproperties:
    41
        internetStatusdate:
              type: integerstring
              example: 0"2022-06-11"
        cid    dateFrom:
              type: string
: string
              example: 14:11:11:11:11:c1"2022-07-11"
        monthFee    sheduleId: 
              type: integer
              example: 2501
        dayFee    tpId: 
              type: integer
              example: 01
    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
        MsgsChaptersystem:
    
      type: object
          properties:
        id    currency:
              type: integer
              example: 1980
    MsgsChapter: 
   name:
   type: object
      typeproperties: string
          example: Example chapterid:
    BillingCurrency:
      type: objectinteger
          propertiesexample: 1
        system_currencyname:
          type: integerstring
          example: Example 980chapter
    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"
    PushSubscribe:
      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