update docks for bp
This commit is contained in:
parent
d8abc9c16f
commit
012ad98004
@ -45,7 +45,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/RecoveryRequest'
|
$ref: '#/components/schemas/RecoveryReq'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Запрос на восстановление принят
|
description: Запрос на восстановление принят
|
||||||
@ -109,7 +109,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ReqEditPromoCode'
|
$ref: '#/components/schemas/EditPromoCodeReq'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Промокод успешно обновлен
|
description: Промокод успешно обновлен
|
||||||
@ -208,14 +208,14 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/CreateFastLinkRequest'
|
$ref: '#/components/schemas/CreateFastLinkReq'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Быстрая ссылка для промокода успешно создана
|
description: Быстрая ссылка для промокода успешно создана
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/CreateFastLinkResponse'
|
$ref: '#/components/schemas/CreateFastLinkResp'
|
||||||
'400':
|
'400':
|
||||||
description: Неверный запрос, отсутствует идентификатор промокода
|
description: Неверный запрос, отсутствует идентификатор промокода
|
||||||
'404':
|
'404':
|
||||||
@ -235,14 +235,14 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PromoCodeStatsRequest'
|
$ref: '#/components/schemas/PromoCodeStatsReq'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Статистика промокода успешно получена
|
description: Статистика промокода успешно получена
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PromoCodeStats'
|
$ref: '#/components/schemas/PromoCodeStatsResp'
|
||||||
'400':
|
'400':
|
||||||
description: Неверный запрос
|
description: Неверный запрос
|
||||||
'500':
|
'500':
|
||||||
@ -251,7 +251,7 @@ paths:
|
|||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
RecoveryRequest:
|
RecoveryReq:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- email
|
- email
|
||||||
@ -263,14 +263,14 @@ components:
|
|||||||
redirectionURL:
|
redirectionURL:
|
||||||
type: string
|
type: string
|
||||||
description: URL-адрес, на который перенаправляется пользователь
|
description: URL-адрес, на который перенаправляется пользователь
|
||||||
PromoCodeStatsRequest:
|
PromoCodeStatsReq:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
promoCodeID:
|
promoCodeID:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- promoCodeID
|
- promoCodeID
|
||||||
PromoCodeStats:
|
PromoCodeStatsResp:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -298,7 +298,7 @@ components:
|
|||||||
format: date-time
|
format: date-time
|
||||||
description: Время использования промокода
|
description: Время использования промокода
|
||||||
|
|
||||||
CreateFastLinkRequest:
|
CreateFastLinkReq:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -307,7 +307,7 @@ components:
|
|||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
|
||||||
CreateFastLinkResponse:
|
CreateFastLinkResp:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
fastlink:
|
fastlink:
|
||||||
@ -393,33 +393,8 @@ components:
|
|||||||
bonus:
|
bonus:
|
||||||
type: object
|
type: object
|
||||||
description: Бонус, предоставляемый с промокодом
|
description: Бонус, предоставляемый с промокодом
|
||||||
properties:
|
items:
|
||||||
privilege:
|
$ref: '#/components/schemas/Bonus'
|
||||||
type: object
|
|
||||||
description: Привилегия
|
|
||||||
properties:
|
|
||||||
privilegeID:
|
|
||||||
type: string
|
|
||||||
description: Идентификатор привилегии
|
|
||||||
amount:
|
|
||||||
type: integer
|
|
||||||
description: Количество привилегии
|
|
||||||
discount:
|
|
||||||
type: object
|
|
||||||
description: Скидка
|
|
||||||
properties:
|
|
||||||
layer:
|
|
||||||
type: integer
|
|
||||||
description: Уровень скидки
|
|
||||||
factor:
|
|
||||||
type: number
|
|
||||||
description: Множитель скидки
|
|
||||||
target:
|
|
||||||
type: string
|
|
||||||
description: Слой
|
|
||||||
threshold:
|
|
||||||
type: integer
|
|
||||||
description: Граничное значение
|
|
||||||
outdated:
|
outdated:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Флаг
|
description: Флаг
|
||||||
@ -439,7 +414,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
description: Список быстрых ссылок для активации промокода
|
description: Список быстрых ссылок для активации промокода
|
||||||
|
|
||||||
ReqEditPromoCode:
|
EditPromoCodeReq:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ID:
|
ID:
|
||||||
@ -484,10 +459,26 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
description: Количество активаций промокода
|
description: Количество активаций промокода
|
||||||
bonus:
|
bonus:
|
||||||
|
type: object
|
||||||
|
description: Бонус
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Bonus'
|
||||||
|
fastLinks:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
description: Список быстрых ссылок для активации промокода
|
||||||
|
|
||||||
|
Bonus:
|
||||||
type: object
|
type: object
|
||||||
description: Бонус
|
description: Бонус
|
||||||
properties:
|
properties:
|
||||||
privilege:
|
privilege:
|
||||||
|
$ref: '#/components/schemas/Privilege'
|
||||||
|
discount:
|
||||||
|
$ref: '#/components/schemas/Discount'
|
||||||
|
|
||||||
|
Privilege:
|
||||||
type: object
|
type: object
|
||||||
description: Привилегия
|
description: Привилегия
|
||||||
properties:
|
properties:
|
||||||
@ -497,7 +488,8 @@ components:
|
|||||||
amount:
|
amount:
|
||||||
type: integer
|
type: integer
|
||||||
description: Количество привилегии
|
description: Количество привилегии
|
||||||
discount:
|
|
||||||
|
Discount:
|
||||||
type: object
|
type: object
|
||||||
description: Скидка
|
description: Скидка
|
||||||
properties:
|
properties:
|
||||||
@ -505,16 +497,12 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
description: Уровень скидки
|
description: Уровень скидки
|
||||||
factor:
|
factor:
|
||||||
type: number
|
type: integer
|
||||||
description: Множитель скидки
|
description: Множитель скидки
|
||||||
target:
|
target:
|
||||||
type: string
|
type: string
|
||||||
description: Слой
|
description: Цель скидки
|
||||||
threshold:
|
threshold:
|
||||||
type: integer
|
type: integer
|
||||||
description: Граничное значение
|
description: Порог скидки
|
||||||
fastLinks:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
description: Список быстрых ссылок для активации промокода
|
|
||||||
|
Loading…
Reference in New Issue
Block a user