mirror of
https://github.com/valitydev/swag-anapi-v2.git
synced 2024-11-06 09:15:17 +00:00
Swagger format multiple fixes
This commit is contained in:
parent
3fef5fb0a2
commit
1bee61313f
@ -1,5 +1,5 @@
|
||||
description: Неверные данные
|
||||
content:
|
||||
application/json:
|
||||
application/json; charset=utf-8:
|
||||
schema:
|
||||
$ref: '#/components/schemas/DefaultLogicError'
|
@ -1,5 +1,5 @@
|
||||
description: Заданный ресурс не найден
|
||||
content:
|
||||
application/json:
|
||||
application/json; charset=utf-8:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GeneralError'
|
@ -13,5 +13,4 @@ allOf:
|
||||
type: integer
|
||||
format: int64
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
|
@ -15,8 +15,6 @@ properties:
|
||||
type: string
|
||||
pattern: '^\d{2,4}$'
|
||||
paymentSystem:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/BankCardPaymentSystem'
|
||||
$ref: '#/components/schemas/BankCardPaymentSystem'
|
||||
tokenProvider:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/BankCardTokenProvider'
|
||||
$ref: '#/components/schemas/BankCardTokenProvider'
|
||||
|
@ -35,16 +35,14 @@ properties:
|
||||
format: int64
|
||||
minimum: 1
|
||||
levyCurrency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
bodyAmount:
|
||||
description: Сумма чарджбэка
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
bodyCurrency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
fee:
|
||||
description: 'Комиссия системы, в минорных денежных единицах'
|
||||
type: integer
|
||||
@ -61,11 +59,9 @@ properties:
|
||||
format: int64
|
||||
minimum: 0
|
||||
status:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/ChargebackStatus'
|
||||
$ref: '#/components/schemas/ChargebackStatus'
|
||||
stage:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/ChargebackStage'
|
||||
$ref: '#/components/schemas/ChargebackStage'
|
||||
chargebackReason:
|
||||
$ref: '#/components/schemas/ChargebackReason'
|
||||
content:
|
||||
|
@ -11,5 +11,4 @@ allOf:
|
||||
format: int64
|
||||
minimum: 0
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
@ -2,5 +2,4 @@ required:
|
||||
- cryptoCurrency
|
||||
properties:
|
||||
cryptoCurrency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/CryptoCurrency'
|
||||
$ref: '#/components/schemas/CryptoCurrency'
|
||||
|
@ -1,4 +1,3 @@
|
||||
discriminator: digitalWalletDetailsType
|
||||
required:
|
||||
- digitalWalletDetailsType
|
||||
properties:
|
||||
@ -6,3 +5,5 @@ properties:
|
||||
type: string
|
||||
enum:
|
||||
- DigitalWalletDetailsQIWI
|
||||
discriminator:
|
||||
propertyName: digitalWalletDetailsType
|
||||
|
@ -36,8 +36,7 @@ allOf:
|
||||
format: int64
|
||||
minimum: 1
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
product:
|
||||
description: Наименование предлагаемых товаров или услуг
|
||||
type: string
|
||||
|
@ -3,7 +3,6 @@ description: |
|
||||
|
||||
Указывается, только если предлагаемый товар или услуга облагается налогом.
|
||||
type: object
|
||||
discriminator: type
|
||||
required:
|
||||
- type
|
||||
properties:
|
||||
@ -12,3 +11,5 @@ properties:
|
||||
type: string
|
||||
enum:
|
||||
- InvoiceLineTaxVAT
|
||||
discriminator:
|
||||
propertyName: type
|
||||
|
@ -1,5 +1,4 @@
|
||||
type: object
|
||||
discriminator: payerType
|
||||
properties:
|
||||
payerType:
|
||||
description: Тип платежного средства
|
||||
@ -10,3 +9,5 @@ properties:
|
||||
- RecurrentPayer
|
||||
required:
|
||||
- payerType
|
||||
discriminator:
|
||||
propertyName: payerType
|
||||
|
@ -1,5 +1,4 @@
|
||||
type: object
|
||||
discriminator: type
|
||||
default:
|
||||
type: PaymentFlowInstant
|
||||
required:
|
||||
@ -11,3 +10,5 @@ properties:
|
||||
enum:
|
||||
- PaymentFlowInstant
|
||||
- PaymentFlowHold
|
||||
discriminator:
|
||||
propertyName: type
|
||||
|
@ -44,8 +44,7 @@ allOf:
|
||||
format: int64
|
||||
minimum: 0
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
payer:
|
||||
$ref: '#/components/schemas/Payer'
|
||||
flow:
|
||||
@ -60,7 +59,6 @@ allOf:
|
||||
type: string
|
||||
format: date-time
|
||||
transactionInfo:
|
||||
description: 'Информация о транзакции'
|
||||
$ref: '#/components/schemas/TransactionInfo'
|
||||
makeRecurrent:
|
||||
$ref: '#/components/schemas/PaymentMakeRecurrent'
|
||||
|
@ -2,5 +2,4 @@ required:
|
||||
- provider
|
||||
properties:
|
||||
provider:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/PaymentTerminalProvider'
|
||||
$ref: '#/components/schemas/PaymentTerminalProvider'
|
||||
|
@ -1,5 +1,4 @@
|
||||
type: object
|
||||
discriminator: detailsType
|
||||
description: Детали платежного средства
|
||||
required:
|
||||
- detailsType
|
||||
@ -7,3 +6,5 @@ properties:
|
||||
detailsType:
|
||||
description: Тип информации о платежном средстве
|
||||
type: string
|
||||
discriminator:
|
||||
propertyName: detailsType
|
@ -6,7 +6,6 @@ allOf:
|
||||
- percents
|
||||
properties:
|
||||
error:
|
||||
description: Тип ошибки
|
||||
$ref: '#/components/schemas/SubError'
|
||||
percents:
|
||||
description: Относительное колличество ошибок в процентах
|
||||
|
@ -35,8 +35,7 @@ properties:
|
||||
format: int64
|
||||
minimum: 0
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
payoutToolDetails:
|
||||
$ref: '#/components/schemas/PayoutToolDetails'
|
||||
status:
|
||||
|
@ -1,9 +1,10 @@
|
||||
description: Данные средства вывода
|
||||
type: object
|
||||
discriminator: detailsType
|
||||
properties:
|
||||
detailsType:
|
||||
description: Тип средства вывода
|
||||
type: string
|
||||
required:
|
||||
- detailsType
|
||||
discriminator:
|
||||
propertyName: detailsType
|
||||
|
@ -27,8 +27,7 @@ allOf:
|
||||
format: int64
|
||||
minimum: 1
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
reason:
|
||||
description: Причина осуществления возврата
|
||||
type: string
|
||||
|
@ -6,8 +6,7 @@ required:
|
||||
- settlementID
|
||||
properties:
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
guaranteeID:
|
||||
type: integer
|
||||
format: int64
|
||||
|
@ -1,6 +1,5 @@
|
||||
description: Местоположение магазина, по которому можно его найти
|
||||
type: object
|
||||
discriminator: locationType
|
||||
required:
|
||||
- locationType
|
||||
properties:
|
||||
@ -9,3 +8,5 @@ properties:
|
||||
type: string
|
||||
enum:
|
||||
- ShopLocationUrl
|
||||
discriminator:
|
||||
propertyName: locationType
|
||||
|
@ -5,11 +5,9 @@ required:
|
||||
- offsetAmounts
|
||||
properties:
|
||||
splitUnit:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/SplitUnit'
|
||||
$ref: '#/components/schemas/SplitUnit'
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
offsetAmounts:
|
||||
type: array
|
||||
items:
|
||||
|
@ -5,11 +5,9 @@ required:
|
||||
- splitUnit
|
||||
properties:
|
||||
splitUnit:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/SplitUnit'
|
||||
$ref: '#/components/schemas/SplitUnit'
|
||||
currency:
|
||||
x-merge-obj:
|
||||
- $ref: '#/components/schemas/Currency'
|
||||
$ref: '#/components/schemas/Currency'
|
||||
statusOffsetCounts:
|
||||
type: array
|
||||
items:
|
||||
|
@ -66,25 +66,19 @@ get:
|
||||
- $ref: '#/components/parameters/paymentInstitutionRealm'
|
||||
- $ref: '#/components/parameters/fromTime'
|
||||
- $ref: '#/components/parameters/toTime'
|
||||
- name: limit
|
||||
description: Лимит выборки
|
||||
in: query
|
||||
required: false
|
||||
type: integer
|
||||
format: int32
|
||||
minimum: 1
|
||||
maximum: 1000
|
||||
- $ref: '#/components/parameters/limit'
|
||||
- name: reportTypes
|
||||
description: Типы отчетов
|
||||
in: query
|
||||
required: true
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- provisionOfService
|
||||
- paymentRegistry
|
||||
- paymentRegistryByPayout
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- provisionOfService
|
||||
- paymentRegistry
|
||||
- paymentRegistryByPayout
|
||||
- name: continuationToken
|
||||
in: query
|
||||
required: false
|
||||
|
Loading…
Reference in New Issue
Block a user