mirror of
https://github.com/valitydev/swag-analytics.git
synced 2024-11-06 16:55:21 +00:00
8892c9f0e2
* CAPI-381: remove unused x-merge-properties from definitions * CAPI-381: revert x-merge-properties changes * Revert "CAPI-381: remove unused x-merge-properties from definitions" This reverts commit ae7ae9ba * CAPI-381: rename `x-merge-properties` to `x-merge-obj`
172 lines
4.4 KiB
YAML
172 lines
4.4 KiB
YAML
get:
|
||
description: Поиск инвойсов
|
||
tags:
|
||
- Search
|
||
operationId: searchInvoices
|
||
parameters:
|
||
- $ref: '#/parameters/requestID'
|
||
- $ref: '#/parameters/deadline'
|
||
- $ref: '#/parameters/shopIDQuery'
|
||
- $ref: '#/parameters/fromTime'
|
||
- $ref: '#/parameters/toTime'
|
||
- $ref: '#/parameters/limit'
|
||
- name: invoiceStatus
|
||
in: query
|
||
description: Статус инвойса для поиска
|
||
required: false
|
||
type: string
|
||
enum:
|
||
- unpaid
|
||
- cancelled
|
||
- paid
|
||
- fulfilled
|
||
- name: paymentStatus
|
||
in: query
|
||
description: Статус платежа для поиска
|
||
required: false
|
||
type: string
|
||
enum:
|
||
- pending
|
||
- processed
|
||
- captured
|
||
- cancelled
|
||
- refunded
|
||
- failed
|
||
- name: paymentFlow
|
||
in: query
|
||
description: Flow платежа
|
||
required: false
|
||
type: string
|
||
enum:
|
||
- instant
|
||
- hold
|
||
- name: paymentMethod
|
||
in: query
|
||
description: Метод оплаты
|
||
required: false
|
||
type: string
|
||
enum:
|
||
- bankCard
|
||
- paymentTerminal
|
||
- name: paymentTerminalProvider
|
||
in: query
|
||
description: Провайдер платежного терминала
|
||
required: false
|
||
type: string
|
||
enum:
|
||
- euroset
|
||
- name: invoiceID
|
||
in: query
|
||
description: Идентификатор инвойса
|
||
required: false
|
||
type: string
|
||
maxLength: 40
|
||
minLength: 1
|
||
- name: paymentID
|
||
in: query
|
||
description: Идентификатор платежа
|
||
required: false
|
||
type: string
|
||
maxLength: 40
|
||
minLength: 1
|
||
- name: payerEmail
|
||
in: query
|
||
description: 'Email, указанный при оплате'
|
||
required: false
|
||
type: string
|
||
format: email
|
||
maxLength: 100
|
||
- name: payerIP
|
||
in: query
|
||
description: IP-адрес плательщика
|
||
required: false
|
||
type: string
|
||
format: ip-address
|
||
maxLength: 45
|
||
- name: payerFingerprint
|
||
in: query
|
||
description: Уникальный отпечаток user agent'а плательщика
|
||
required: false
|
||
type: string
|
||
maxLength: 1000
|
||
- name: customerID
|
||
in: query
|
||
description: Идентификатор плательщика
|
||
required: false
|
||
type: string
|
||
maxLength: 40
|
||
minLength: 1
|
||
- x-merge-obj:
|
||
- name: bankCardTokenProvider
|
||
in: query
|
||
required: false
|
||
- $ref: '#/definitions/BankCardTokenProvider'
|
||
- x-merge-obj:
|
||
- name: bankCardPaymentSystem
|
||
in: query
|
||
required: false
|
||
- $ref: '#/definitions/BankCardPaymentSystem'
|
||
- name: first6
|
||
in: query
|
||
description: Первые 6 цифр номера карты
|
||
required: false
|
||
type: string
|
||
pattern: '^\d{6}$'
|
||
- name: last4
|
||
in: query
|
||
description: Последние 4 цифры номера карты
|
||
required: false
|
||
type: string
|
||
pattern: '^\d{4}$'
|
||
- name: rrn
|
||
in: query
|
||
description: 'Retrieval Reference Number'
|
||
required: false
|
||
type: string
|
||
pattern: '^[a-zA-Z0-9]{12}$'
|
||
- name: paymentAmount
|
||
in: query
|
||
description: Сумма платежа
|
||
required: false
|
||
type: integer
|
||
format: int64
|
||
minimum: 1
|
||
- name: invoiceAmount
|
||
in: query
|
||
description: Сумма инвойса
|
||
required: false
|
||
type: integer
|
||
format: int64
|
||
minimum: 1
|
||
- name: excludedShops
|
||
in: query
|
||
description: Идентификаторы магазинов, исключаемых из поиска
|
||
required: false
|
||
type: array
|
||
items:
|
||
type: string
|
||
- x-merge-obj:
|
||
- name: continuationToken
|
||
in: query
|
||
required: false
|
||
- $ref: '#/definitions/ContinuationToken'
|
||
responses:
|
||
'200':
|
||
description: Найденные инвойсы
|
||
schema:
|
||
type: object
|
||
properties:
|
||
continuationToken:
|
||
x-merge-obj:
|
||
- $ref: '#/definitions/ContinuationToken'
|
||
result:
|
||
type: array
|
||
items:
|
||
$ref: '#/definitions/Invoice'
|
||
'404':
|
||
$ref: '#/responses/NotFound'
|
||
'401':
|
||
$ref: '#/responses/Unauthorized'
|
||
'400':
|
||
$ref: '#/responses/DefaultLogicError'
|