diff --git a/spec/definitions/Claim.yaml b/spec/definitions/Claim.yaml deleted file mode 100644 index e79e70a450..0000000000 --- a/spec/definitions/Claim.yaml +++ /dev/null @@ -1,30 +0,0 @@ -type: object -discriminator: status -required: - - id - - revision - - createdAt - - status - - changeset -properties: - id: - description: Идентификатор заявки - type: integer - format: int64 - revision: - description: Версия заявки - type: integer - format: int32 - createdAt: - description: Дата создания - type: string - format: date-time - updatedAt: - description: Дата изменения - type: string - format: date-time - status: - description: Статус заявки - type: string - changeset: - $ref: '#/definitions/ClaimChangeset' diff --git a/spec/definitions/ClaimAccepted.yaml b/spec/definitions/ClaimAccepted.yaml deleted file mode 100644 index 00ac5d57fa..0000000000 --- a/spec/definitions/ClaimAccepted.yaml +++ /dev/null @@ -1,3 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/Claim' diff --git a/spec/definitions/ClaimChangeset.yaml b/spec/definitions/ClaimChangeset.yaml deleted file mode 100644 index ae50fa6dda..0000000000 --- a/spec/definitions/ClaimChangeset.yaml +++ /dev/null @@ -1,4 +0,0 @@ -description: Набор изменений данных участника -type: array -items: - $ref: '#/definitions/PartyModification' diff --git a/spec/definitions/ClaimDenied.yaml b/spec/definitions/ClaimDenied.yaml deleted file mode 100644 index 48e109f9ae..0000000000 --- a/spec/definitions/ClaimDenied.yaml +++ /dev/null @@ -1,11 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/Claim' - - type: object - required: - - reason - properties: - reason: - description: Причина отклонения заявки - type: string - maxLength: 1000 diff --git a/spec/definitions/ClaimPending.yaml b/spec/definitions/ClaimPending.yaml deleted file mode 100644 index 00ac5d57fa..0000000000 --- a/spec/definitions/ClaimPending.yaml +++ /dev/null @@ -1,3 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/Claim' diff --git a/spec/definitions/ClaimRevoked.yaml b/spec/definitions/ClaimRevoked.yaml deleted file mode 100644 index e4972bd6fb..0000000000 --- a/spec/definitions/ClaimRevoked.yaml +++ /dev/null @@ -1,11 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/Claim' - - type: object - required: - - reason - properties: - reason: - description: Причина отзыва заявки - type: string - maxLength: 1000 diff --git a/spec/definitions/GeoLocationInfo.yaml b/spec/definitions/GeoLocationInfo.yaml deleted file mode 100644 index 7a4c782da2..0000000000 --- a/spec/definitions/GeoLocationInfo.yaml +++ /dev/null @@ -1,12 +0,0 @@ -description: Информация о геопозиции -type: object -required: - - cityGeoID - - countryGeoID -properties: - cityGeoID: - type: integer - format: int32 - countryGeoID: - type: integer - format: int32 diff --git a/spec/definitions/InvoiceSearchResult.yaml b/spec/definitions/InvoiceSearchResult.yaml deleted file mode 100644 index 9cdd65ddde..0000000000 --- a/spec/definitions/InvoiceSearchResult.yaml +++ /dev/null @@ -1,51 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/InvoiceStatus' - - type: object - required: - - id - - shopID - - createdAt - - dueDate - - amount - - currency - - product - - metadata - properties: - id: - description: Идентификатор инвойса - type: string - shopID: - description: Идентификатор магазина - type: string - createdAt: - description: Дата и время создания - type: string - format: date-time - dueDate: - description: Дата и время окончания действия - type: string - format: date-time - amount: - description: > - Стоимость предлагаемых товаров или услуг, в минорных денежных единицах, - например в копейках в случае указания российских рублей в качестве валюты. - type: integer - format: int64 - minimum: 1 - currency: - x-rebillyMerge: - - $ref: '#/definitions/Currency' - product: - description: Наименование предлагаемых товаров или услуг - type: string - maxLength: 100 - description: - description: Описание предлагаемых товаров или услуг - type: string - maxLength: 1000 - cart: - $ref: '#/definitions/InvoiceCart' - metadata: - description: Связанные с инвойсом метаданные - type: object diff --git a/spec/definitions/PaymentConversionStat.yaml b/spec/definitions/PaymentConversionStat.yaml deleted file mode 100644 index 266526f35e..0000000000 --- a/spec/definitions/PaymentConversionStat.yaml +++ /dev/null @@ -1,19 +0,0 @@ -type: object -required: - - offset - - successfulCount - - totalCount - - conversion -properties: - offset: - description: Смещение сегмента выборки - type: integer - successfulCount: - description: Количество успешных платежей - type: integer - totalCount: - description: Общее количество платежей - type: integer - conversion: - description: Значение конверсии - type: number diff --git a/spec/definitions/PaymentGeoStat.yaml b/spec/definitions/PaymentGeoStat.yaml deleted file mode 100644 index 75ec526521..0000000000 --- a/spec/definitions/PaymentGeoStat.yaml +++ /dev/null @@ -1,24 +0,0 @@ -type: object -required: - - offset - - geoID - - currency - - profit - - revenue -properties: - offset: - description: Смещение сегмента выборки - type: integer - geoID: - description: Идентификатор геопозиции плательщика - type: integer - format: int32 - currency: - x-rebillyMerge: - - $ref: '#/definitions/Currency' - profit: - description: Прибыль магазина - type: integer - revenue: - description: Сумма платежей в магазине - type: integer diff --git a/spec/definitions/PaymentMethodBankCardStat.yaml b/spec/definitions/PaymentMethodBankCardStat.yaml deleted file mode 100644 index c84aa6b99e..0000000000 --- a/spec/definitions/PaymentMethodBankCardStat.yaml +++ /dev/null @@ -1,26 +0,0 @@ -type: object -allOf: - - $ref: '#/definitions/PaymentMethodStat' - - type: object - required: - - offset - - totalCount - - paymentSystem - - profit - - revenue - properties: - offset: - description: Смещение сегмента выборки - type: integer - totalCount: - description: Общее количество плательщиков - type: integer - paymentSystem: - x-rebillyMerge: - - $ref: '#/definitions/BankCardPaymentSystem' - profit: - description: Прибыль магазина - type: integer - revenue: - description: Сумма платежей в магазине - type: integer diff --git a/spec/definitions/PaymentMethodStat.yaml b/spec/definitions/PaymentMethodStat.yaml deleted file mode 100644 index 741e882833..0000000000 --- a/spec/definitions/PaymentMethodStat.yaml +++ /dev/null @@ -1,8 +0,0 @@ -type: object -discriminator: statType -required: - - statType -properties: - statType: - description: Тип статистики по методу оплаты - type: string diff --git a/spec/definitions/PaymentRateStat.yaml b/spec/definitions/PaymentRateStat.yaml deleted file mode 100644 index fb9d3fa371..0000000000 --- a/spec/definitions/PaymentRateStat.yaml +++ /dev/null @@ -1,7 +0,0 @@ -type: object -required: - - uniqueCount -properties: - uniqueCount: - description: Количество уникальных плательщиков - type: integer diff --git a/spec/definitions/PaymentRevenueStat.yaml b/spec/definitions/PaymentRevenueStat.yaml deleted file mode 100644 index 01fc41c669..0000000000 --- a/spec/definitions/PaymentRevenueStat.yaml +++ /dev/null @@ -1,19 +0,0 @@ -type: object -required: - - offset - - currency - - profit - - revenue -properties: - offset: - description: Смещение сегмента выборки - type: integer - currency: - x-rebillyMerge: - - $ref: '#/definitions/Currency' - profit: - description: Прибыль магазина - type: integer - revenue: - description: Сумма платежей в магазине - type: integer diff --git a/spec/definitions/PaymentSearchResult.yaml b/spec/definitions/PaymentSearchResult.yaml index 040c7ef268..ff970a96d6 100644 --- a/spec/definitions/PaymentSearchResult.yaml +++ b/spec/definitions/PaymentSearchResult.yaml @@ -14,9 +14,6 @@ allOf: id: description: Идентификатор платежа type: string - shortID: - description: Cокращенный идентификатор платежа и инвойса (spid) - type: string invoiceID: description: 'Идентификатор инвойса, в рамках которого был создан платеж' type: string @@ -34,9 +31,9 @@ allOf: качестве валюты. type: integer format: int64 - minimum: 1 + minimum: 0 fee: - description: 'Комиссия системы, в минорных денежных единицах' + description: Комиссия системы в минорных денежных единицах type: integer format: int64 minimum: 0 @@ -47,8 +44,6 @@ allOf: $ref: '#/definitions/Payer' flow: $ref: '#/definitions/PaymentFlow' - geoLocationInfo: - $ref: '#/definitions/GeoLocationInfo' metadata: description: Связанные с платежом метаданные type: object @@ -57,13 +52,9 @@ allOf: type: string format: date-time transactionInfo: - description: 'Информация о транзакции' $ref: '#/definitions/TransactionInfo' makeRecurrent: x-rebillyMerge: - $ref: '#/definitions/PaymentMakeRecurrent' - - readOnly: true cart: $ref: '#/definitions/InvoiceCart' - allocation: - $ref: '#/definitions/Allocation' diff --git a/spec/definitions/RefundSearchResult.yaml b/spec/definitions/RefundSearchResult.yaml deleted file mode 100644 index 208a2a93fa..0000000000 --- a/spec/definitions/RefundSearchResult.yaml +++ /dev/null @@ -1,14 +0,0 @@ -type: object -allOf: - - type: object - required: - - invoiceID - - paymentID - properties: - invoiceID: - description: Идентификатор инвойса - type: string - paymentID: - description: Идентификатор платежа - type: string - - $ref: '#/definitions/Refund' diff --git a/spec/definitions/ServiceProvider.yaml b/spec/definitions/ServiceProvider.yaml deleted file mode 100644 index 6c9a271e93..0000000000 --- a/spec/definitions/ServiceProvider.yaml +++ /dev/null @@ -1,38 +0,0 @@ -description: | - Провайдер платёжных сервисов. - - Сторонняя организация, которая предоставляет платёжные услуги, например обслуживает - систему электронных кошельков или платёжных терминалов. -type: object -required: - - id -properties: - id: - description: Идентификатор провайдера в системе - type: string - maxLength: 100 - brandName: - description: Название провайдера, под которым он известен широкой публике - type: string - maxLength: 100 - example: 'Nubank' - category: - description: | - Категория провайдера. - Может использоваться для задач презентации, например для группировки - доступных методов оплаты по категории их провайдеров, если таковая известна. - type: string - maxLength: 100 - example: 'onlinebanking' - metadata: - description: | - Произвольные, разделённые по пространствам имён метаданные, дополнительно - описывающие данного провайдера для различных потребителей. - type: object - example: - dev.vality.checkout: - brandLogo: - banner: "/assets/brands/paypal.svg" - localization: - name: - 'ja_JP': 'ヱヴァンゲリヲン' diff --git a/spec/definitions/Shop.yaml b/spec/definitions/Shop.yaml index 1ec82125e1..3311a8adac 100644 --- a/spec/definitions/Shop.yaml +++ b/spec/definitions/Shop.yaml @@ -5,8 +5,8 @@ required: - createdAt - isBlocked - isSuspended - - categoryID - location + - categoryID - details - contractID properties: @@ -23,9 +23,6 @@ properties: isSuspended: description: Приостановлены ли операции в рамках магазина? type: boolean - currency: - x-rebillyMerge: - - $ref: '#/definitions/Currency' categoryID: description: | Идентификатор категории товаров и услуг, предлагаемых в этом магазине @@ -49,3 +46,5 @@ properties: description: Идентификатор расписания выводов type: integer format: int32 + account: + $ref: '#/definitions/ShopAccount' diff --git a/spec/definitions/ShopAccount.yaml b/spec/definitions/ShopAccount.yaml new file mode 100644 index 0000000000..7155fd9845 --- /dev/null +++ b/spec/definitions/ShopAccount.yaml @@ -0,0 +1,16 @@ +description: Счета магазина +type: object +required: + - currency + - guaranteeID + - settlementID +properties: + currency: + x-rebillyMerge: + - $ref: '#/definitions/Currency' + guaranteeID: + type: integer + format: int64 + settlementID: + type: integer + format: int64 diff --git a/spec/definitions/TransactionInfo.yaml b/spec/definitions/TransactionInfo.yaml index 562120f906..b91c5ba5fa 100644 --- a/spec/definitions/TransactionInfo.yaml +++ b/spec/definitions/TransactionInfo.yaml @@ -4,7 +4,7 @@ properties: rrn: description: 'Retrieval Reference Number' type: string - pattern: '^[a-zA-Z0-9]{4,20}$' + pattern: '^[a-zA-Z0-9]{12}$' approvalCode: description: 'Authorization Approval Code' type: string diff --git a/spec/paths/analytics@shops@{shopID}@customers@stats@payment_method.yaml b/spec/paths/analytics@shops@{shopID}@customers@stats@payment_method.yaml deleted file mode 100644 index 206389abec..0000000000 --- a/spec/paths/analytics@shops@{shopID}@customers@stats@payment_method.yaml +++ /dev/null @@ -1,34 +0,0 @@ -get: - description: | - Получить статистику по платежным средствам за определённое время. - tags: - - Analytics - operationId: getPaymentMethodStats - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/splitUnit' - - $ref: '#/parameters/splitSize' - - name: paymentMethod - in: query - description: Метод оплаты - type: string - required: true - enum: - - bankCard - responses: - '200': - description: Статистика по платежным средствам - schema: - type: array - items: - $ref: '#/definitions/PaymentMethodStat' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@customers@stats@rate.yaml b/spec/paths/analytics@shops@{shopID}@customers@stats@rate.yaml deleted file mode 100644 index b838973614..0000000000 --- a/spec/paths/analytics@shops@{shopID}@customers@stats@rate.yaml +++ /dev/null @@ -1,23 +0,0 @@ -get: - description: > - Получить статистику по уникальным плательщикам за определённое время. - tags: - - Analytics - operationId: getPaymentRateStats - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - responses: - '200': - description: Статистика по уникальным плательщикам - schema: - $ref: '#/definitions/PaymentRateStat' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@invoices.yaml b/spec/paths/analytics@shops@{shopID}@invoices.yaml deleted file mode 100644 index 5d03658961..0000000000 --- a/spec/paths/analytics@shops@{shopID}@invoices.yaml +++ /dev/null @@ -1,170 +0,0 @@ -get: - description: Поиск инвойсов - tags: - - Search - operationId: searchInvoices - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $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 - # - alipay - # - wechat - # - zotapay - # - qps - # - uzcard - # - rbs - - 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-rebillyMerge: - - name: bankCardTokenProvider - in: query - required: false - - $ref: '#/definitions/BankCardTokenProvider' - - x-rebillyMerge: - - 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: Последние цифры номера карты - required: false - type: string - pattern: '^\d{0,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 - - x-rebillyMerge: - - name: continuationToken - in: query - required: false - - $ref: '#/definitions/ContinuationToken' - responses: - '200': - description: Найденные инвойсы - schema: - type: object - properties: - continuationToken: - x-rebillyMerge: - - $ref: '#/definitions/ContinuationToken' - result: - type: array - items: - $ref: '#/definitions/Invoice' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@payments@stats@conversion.yaml b/spec/paths/analytics@shops@{shopID}@payments@stats@conversion.yaml deleted file mode 100644 index bbbe40190e..0000000000 --- a/spec/paths/analytics@shops@{shopID}@payments@stats@conversion.yaml +++ /dev/null @@ -1,27 +0,0 @@ -get: - description: | - Получить статистику конверсии платежей магазина за определённое время. - tags: - - Analytics - operationId: getPaymentConversionStats - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/splitUnit' - - $ref: '#/parameters/splitSize' - responses: - '200': - description: Статистика конверсии платежей - schema: - type: array - items: - $ref: '#/definitions/PaymentConversionStat' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@payments@stats@geo.yaml b/spec/paths/analytics@shops@{shopID}@payments@stats@geo.yaml deleted file mode 100644 index 62f94e338d..0000000000 --- a/spec/paths/analytics@shops@{shopID}@payments@stats@geo.yaml +++ /dev/null @@ -1,27 +0,0 @@ -get: - description: | - Получить статистику по геопозициям плательщиков за определённое время. - tags: - - Analytics - operationId: getPaymentGeoStats - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/splitUnit' - - $ref: '#/parameters/splitSize' - responses: - '200': - description: Статистика по геопозициям плательщиков - schema: - type: array - items: - $ref: '#/definitions/PaymentGeoStat' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@payments@stats@revenue.yaml b/spec/paths/analytics@shops@{shopID}@payments@stats@revenue.yaml deleted file mode 100644 index 1f04cf86d6..0000000000 --- a/spec/paths/analytics@shops@{shopID}@payments@stats@revenue.yaml +++ /dev/null @@ -1,28 +0,0 @@ -get: - description: | - Получить статистику по сумме платежей магазина за определенное время, в том - числе за вычетом комиссии системы. - tags: - - Analytics - operationId: getPaymentRevenueStats - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/splitUnit' - - $ref: '#/parameters/splitSize' - responses: - '200': - description: Статистика по сумме платежей и прибыли - schema: - type: array - items: - $ref: '#/definitions/PaymentRevenueStat' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@payouts.yaml b/spec/paths/analytics@shops@{shopID}@payouts.yaml deleted file mode 100644 index 9af80b3d35..0000000000 --- a/spec/paths/analytics@shops@{shopID}@payouts.yaml +++ /dev/null @@ -1,51 +0,0 @@ -get: - description: Поиск выплат - tags: - - Search - operationId: searchPayouts - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/limit' - - $ref: '#/parameters/offset' - - name: payoutID - in: query - description: Идентификатор выплаты - required: false - type: string - maxLength: 40 - minLength: 1 - - name: payoutToolType - in: query - required: false - type: string - enum: - - PayoutAccount - - Wallet - - PaymentInstitutionAccount - description: > - Тип выплаты для поиска - * PayoutAccount - выплата на банковский счёт - * Wallet - выплата на кошелёк - * PaymentInstitutionAccount - выплата на счёт платежной организации - responses: - '200': - description: Найденные выплаты - schema: - type: object - properties: - totalCount: - type: integer - result: - type: array - items: - $ref: '#/definitions/Payout' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/analytics@shops@{shopID}@refunds.yaml b/spec/paths/analytics@shops@{shopID}@refunds.yaml deleted file mode 100644 index 0a0d36d830..0000000000 --- a/spec/paths/analytics@shops@{shopID}@refunds.yaml +++ /dev/null @@ -1,73 +0,0 @@ -get: - description: Поиск возвратов - tags: - - Search - operationId: searchRefunds - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/limit' - - $ref: '#/parameters/offset' - - 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: refundID - in: query - description: Идентификатор возврата - required: false - type: string - maxLength: 40 - minLength: 1 - - name: rrn - in: query - description: 'Retrieval Reference Number' - required: false - type: string - pattern: '^[a-zA-Z0-9]{12}$' - - name: approvalCode - in: query - description: 'Authorization Approval Code' - required: false - type: string - maxLength: 40 - minLength: 1 - - name: refundStatus - in: query - description: Статус возврата - type: string - enum: - - pending - - succeeded - - failed - responses: - '200': - description: Найденные возвраты - schema: - type: object - properties: - totalCount: - type: integer - result: - type: array - items: - $ref: '#/definitions/RefundSearchResult' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/parties@{partyID}@shops@{shopID}@reports.yaml b/spec/paths/parties@{partyID}@shops@{shopID}@reports.yaml deleted file mode 100644 index c779373370..0000000000 --- a/spec/paths/parties@{partyID}@shops@{shopID}@reports.yaml +++ /dev/null @@ -1,87 +0,0 @@ -post: - description: Сгенерировать отчет с указанным типом по магазину за указанный промежуток времени - tags: - - Reports - operationId: createReportForParty - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/partyID' - - name: createReport - in: body - description: Параметры генерации отчета - required: true - schema: - $ref: '#/definitions/ReportParams' - responses: - '201': - description: Отчет создан - schema: - $ref: '#/definitions/Report' - '401': - $ref: '#/responses/Unauthorized' - '400': - description: Ошибочные данные для генерации - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - invalidShopID - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: "Invalid shop id" - '404': - $ref: '#/responses/NotFound' - -get: - description: Получить список отчетов по данному магазину за период - tags: - - Reports - operationId: getReportsForParty - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - - $ref: '#/parameters/partyID' - responses: - '200': - description: Найденные отчеты - schema: - type: array - items: - $ref: '#/definitions/Report' - '401': - $ref: '#/responses/Unauthorized' - '400': - description: Ошибочные данные для получения - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - limitExceeded - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: "Max limit: 1000" diff --git a/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}.yaml b/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}.yaml deleted file mode 100644 index 5d5c6af1ee..0000000000 --- a/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - description: Получить отчет по данному идентификатору - tags: - - Reports - operationId: getReportForParty - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/reportID' - - $ref: '#/parameters/partyID' - responses: - '200': - description: Найденный отчет - schema: - $ref: '#/definitions/Report' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml b/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml deleted file mode 100644 index b0e37889fe..0000000000 --- a/spec/paths/parties@{partyID}@shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml +++ /dev/null @@ -1,23 +0,0 @@ -get: - description: Скачать файл - tags: - - Reports - operationId: downloadFileForParty - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/partyID' - - $ref: '#/parameters/reportID' - - $ref: '#/parameters/fileID' - responses: - '200': - description: Download link - schema: - $ref: '#/definitions/ReportLink' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@claims.yaml b/spec/paths/processing@claims.yaml deleted file mode 100644 index 06365935d3..0000000000 --- a/spec/paths/processing@claims.yaml +++ /dev/null @@ -1,75 +0,0 @@ -get: - description: | - Получить список заявок участника, при желании отфильтрованный по значению - статуса. - operationId: getClaims - tags: - - Claims - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - name: claimStatus - description: Значение статуса для фильтрации - in: query - type: string - enum: - - pending - - accepted - - denied - - revoked - responses: - '200': - description: Список найденных заявок - schema: - type: array - items: - $ref: '#/definitions/Claim' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' - -post: - description: | - Создать новую заявку с заданным набором изменений и отправить её на - премодерацию. - operationId: createClaim - tags: - - Claims - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - name: claimChangeset - in: body - required: true - schema: - $ref: '#/definitions/ClaimChangeset' - responses: - '201': - description: Заявка создана - schema: - $ref: '#/definitions/Claim' - '401': - $ref: '#/responses/Unauthorized' - '400': - description: Ошибочные данные в заявке - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - changesetConflict - - invalidPartyStatus - - invalidChangeset - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: Changeset conflict diff --git a/spec/paths/processing@claims@{claimID}.yaml b/spec/paths/processing@claims@{claimID}.yaml deleted file mode 100644 index 2d3cd4e7d6..0000000000 --- a/spec/paths/processing@claims@{claimID}.yaml +++ /dev/null @@ -1,21 +0,0 @@ -get: - description: | - Получить заявку по её идентификатору. - operationId: getClaimByID - tags: - - Claims - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/claimID' - responses: - '200': - description: Данные заявки - schema: - $ref: '#/definitions/Claim' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@claims@{claimID}@revoke.yaml b/spec/paths/processing@claims@{claimID}@revoke.yaml deleted file mode 100644 index 832aeb747b..0000000000 --- a/spec/paths/processing@claims@{claimID}@revoke.yaml +++ /dev/null @@ -1,43 +0,0 @@ -put: - description: Отозвать заявку по её идентификатору. - operationId: revokeClaimByID - tags: - - Claims - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/claimID' - - $ref: '#/parameters/claimRevision' - - name: reason - in: body - schema: - $ref: '#/definitions/Reason' - responses: - '204': - description: Заявка отозвана - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - description: Ошибка отзыва заявки - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - invalidClaimStatus - - invalidClaimRevision - - invalidPartyStatus - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: Invalid claim status diff --git a/spec/paths/processing@customers@{customerID}@payment-methods.yaml b/spec/paths/processing@customers@{customerID}@payment-methods.yaml deleted file mode 100644 index d63dfec03d..0000000000 --- a/spec/paths/processing@customers@{customerID}@payment-methods.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - description: Получить доступные для плательщика методы оплаты. - tags: - - Customers - operationId: getCustomerPaymentMethods - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/customerID' - responses: - '200': - description: Список методов оплаты - schema: - type: array - items: - $ref: '#/definitions/PaymentMethod' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@me.yaml b/spec/paths/processing@me.yaml deleted file mode 100644 index 7bc81e076c..0000000000 --- a/spec/paths/processing@me.yaml +++ /dev/null @@ -1,16 +0,0 @@ -get: - tags: - - Parties - operationId: getMyParty - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - responses: - '200': - description: Get my party - schema: - $ref: '#/definitions/Party' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@me@activate.yaml b/spec/paths/processing@me@activate.yaml deleted file mode 100644 index 3a77eb7dbe..0000000000 --- a/spec/paths/processing@me@activate.yaml +++ /dev/null @@ -1,15 +0,0 @@ -put: - description: Activate my party - operationId: activateMyParty - tags: - - Parties - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - responses: - '204': - description: Party activated - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@me@suspend.yaml b/spec/paths/processing@me@suspend.yaml deleted file mode 100644 index 2faf46bc84..0000000000 --- a/spec/paths/processing@me@suspend.yaml +++ /dev/null @@ -1,15 +0,0 @@ -put: - description: Suspend my party - operationId: suspendMyParty - tags: - - Parties - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - responses: - '204': - description: Party suspended - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@service-providers@{serviceProviderID}.yaml b/spec/paths/processing@service-providers@{serviceProviderID}.yaml deleted file mode 100644 index 749d726ade..0000000000 --- a/spec/paths/processing@service-providers@{serviceProviderID}.yaml +++ /dev/null @@ -1,18 +0,0 @@ -get: - description: Получить данные провайдера платёжных сервисов по его ID - tags: - - PaymentInstitutions - operationId: getServiceProviderByID - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/serviceProviderID' - responses: - '200': - description: Провайдер платёжных сервисов найден - schema: - $ref: '#/definitions/ServiceProvider' - '404': - $ref: '#/responses/NotFound' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@shops.yaml b/spec/paths/processing@shops.yaml deleted file mode 100644 index b5739d224c..0000000000 --- a/spec/paths/processing@shops.yaml +++ /dev/null @@ -1,19 +0,0 @@ -get: - description: Get all shops - operationId: getShops - tags: - - Shops - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - responses: - '200': - description: List of shops - schema: - type: array - items: - $ref: '#/definitions/Shop' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@shops@{shopID}.yaml b/spec/paths/processing@shops@{shopID}.yaml deleted file mode 100644 index bc313fc701..0000000000 --- a/spec/paths/processing@shops@{shopID}.yaml +++ /dev/null @@ -1,20 +0,0 @@ -get: - description: Get shop by id - operationId: getShopByID - tags: - - Shops - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - responses: - '200': - description: Shop found - schema: - $ref: '#/definitions/Shop' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@shops@{shopID}@activate.yaml b/spec/paths/processing@shops@{shopID}@activate.yaml deleted file mode 100644 index 8974a2ba22..0000000000 --- a/spec/paths/processing@shops@{shopID}@activate.yaml +++ /dev/null @@ -1,18 +0,0 @@ -put: - description: Activate shop - operationId: activateShop - tags: - - Shops - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - responses: - '204': - description: Shop activated - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/processing@shops@{shopID}@suspend.yaml b/spec/paths/processing@shops@{shopID}@suspend.yaml deleted file mode 100644 index 267cfc53fc..0000000000 --- a/spec/paths/processing@shops@{shopID}@suspend.yaml +++ /dev/null @@ -1,20 +0,0 @@ -put: - description: | - Приостановить действие магазина. Этот тип заявок обрабатывается платформой - автоматически и исполняется сразу же после отправки. - operationId: suspendShop - tags: - - Shops - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - responses: - '204': - description: Shop suspended - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/shops@{shopID}@reports.yaml b/spec/paths/shops@{shopID}@reports.yaml deleted file mode 100644 index 9f9f3b3b1c..0000000000 --- a/spec/paths/shops@{shopID}@reports.yaml +++ /dev/null @@ -1,87 +0,0 @@ -post: - description: Сгенерировать отчет с указанным типом по магазину за указанный промежуток времени - tags: - - Reports - operationId: createReport - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - name: createReport - in: body - description: Параметры генерации отчета - required: true - schema: - $ref: '#/definitions/ReportParams' - responses: - '201': - description: Отчет создан - schema: - $ref: '#/definitions/Report' - '401': - $ref: '#/responses/Unauthorized' - '404': - $ref: '#/responses/NotFound' - '400': - description: Ошибочные данные для генерации - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - invalidShopID - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: "Invalid shop id" - -get: - description: Получить список отчетов по данному магазину за период - tags: - - Reports - operationId: getReports - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/fromTime' - - $ref: '#/parameters/toTime' - responses: - '200': - description: Найденные отчеты - schema: - type: array - items: - $ref: '#/definitions/Report' - '401': - $ref: '#/responses/Unauthorized' - '404': - $ref: '#/responses/NotFound' - '400': - description: Ошибочные данные для получения - schema: - type: object - required: - - code - - message - properties: - code: - description: | - [Код ошибки](#tag/Error-Codes) - type: string - enum: - - limitExceeded - - invalidRequest - - invalidDeadline - message: - description: Человекочитаемое описание ошибки - type: string - example: "Max limit: 1000" diff --git a/spec/paths/shops@{shopID}@reports@{reportID}.yaml b/spec/paths/shops@{shopID}@reports@{reportID}.yaml deleted file mode 100644 index 50178f050e..0000000000 --- a/spec/paths/shops@{shopID}@reports@{reportID}.yaml +++ /dev/null @@ -1,21 +0,0 @@ -get: - description: Получить отчет по данному идентификатору - tags: - - Reports - operationId: getReport - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/reportID' - responses: - '200': - description: Найденный отчет - schema: - $ref: '#/definitions/Report' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/paths/shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml b/spec/paths/shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml deleted file mode 100644 index b581353898..0000000000 --- a/spec/paths/shops@{shopID}@reports@{reportID}@files@{fileID}@download.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - description: Скачать файл - tags: - - Reports - operationId: downloadFile - parameters: - - $ref: '#/parameters/requestID' - - $ref: '#/parameters/deadline' - - $ref: '#/parameters/shopID' - - $ref: '#/parameters/reportID' - - $ref: '#/parameters/fileID' - responses: - '200': - description: Download link - schema: - $ref: '#/definitions/ReportLink' - '404': - $ref: '#/responses/NotFound' - '401': - $ref: '#/responses/Unauthorized' - '400': - $ref: '#/responses/DefaultLogicError' diff --git a/spec/swagger.yaml b/spec/swagger.yaml index 5439f0b1d6..8fc1365c0f 100644 --- a/spec/swagger.yaml +++ b/spec/swagger.yaml @@ -101,6 +101,13 @@ responses: schema: $ref: '#/definitions/ExternalIDConflictError' parameters: + accountID: + name: accountID + in: path + description: Account ID + required: true + type: integer + format: int64 requestID: name: X-Request-ID in: header @@ -109,20 +116,6 @@ parameters: type: string maxLength: 32 minLength: 1 - claimID: - name: claimID - in: path - description: Идентификатор заявки - required: true - type: integer - format: int64 - claimRevision: - name: claimRevision - in: query - description: Версия заявки - required: true - type: integer - format: int32 shopID: name: shopID in: path @@ -228,21 +221,6 @@ parameters: type: string maxLength: 40 minLength: 1 - reportID: - name: reportID - in: path - description: Идентификатор отчета - required: true - type: integer - format: int64 - fileID: - name: fileID - in: path - description: Идентификатор файла - required: true - type: string - maxLength: 40 - minLength: 1 invoiceID: name: invoiceID in: path @@ -258,14 +236,6 @@ parameters: required: true type: integer format: int32 - serviceProviderID: - name: serviceProviderID - in: path - description: Идентификатор провайдера платёжных сервисов в системе - required: true - type: string - maxLength: 100 - minLength: 1 fromTime: name: fromTime in: query @@ -280,27 +250,6 @@ parameters: required: true type: string format: date-time - splitUnit: - name: splitUnit - in: query - description: Единица времени сегмента разбиения - required: true - type: string - enum: - - minute - - hour - - day - - week - - month - - year - splitSize: - name: splitSize - in: query - description: Размер сегмента разбиения - required: true - type: integer - format: int32 - minimum: 1 limit: name: limit in: query @@ -350,18 +299,6 @@ tags: description: > Участник системы - совокупность данных о вашей организации, составе и условиях заключенных договоров, а также информация о связанных с организацией магазинах. - - name: Claims - x-displayName: Заявки - description: > - Некоторая область данных может быть изменена только после премодерации на - стороне платформы. Например, создание и активация новых магазинов, - изменение финансовых данных вашего участника и т.п. требуют ручной - проверки сотрудниками RBKmoney. Попытка изменить такие данные приводит к - автоматическому созданию заявки на изменение данных. До тех пор, пока - заявка не одобрена, вы можете добавлять изменения. После одобрения они - будут применены к набору данных. В случае отказа по заявке данные - останутся в неизменном состоянии. Ближайшим аналогом заявок можно - представить Pull Request в распределенных системах контроля версий. - name: Shops x-displayName: Магазины description: > @@ -653,28 +590,12 @@ tags: Для получения списка всех инвойсов/платежей указанного магазина необходимо вызвать соответствующий метод платформы. Имеется возможность отфильтровать выборку по определенным статусам. - - name: Analytics - x-displayName: Аналитика - description: > - Платформа предоставляет возможность получения различных аналитических - данных, полученных в рамках взаимодействия с ней. Аналитические отчеты - подготовлены заранее и не подразумевают интерактивного изменения структуры - данных. - name: PaymentInstitutions x-displayName: Платёжные организации description: > Платёжная организация - организация, осуществляющая услуги по обслуживанию финансовых операций, которые возникают в результате осуществления бизнес-процессов системой. - - name: Reports - x-displayName: Отчеты - description: > - Один раз в отчетный период платформа автоматически подготавливает и - размещает документы в формате XLSX с разбиением по магазину активной - категории. Также, каждый документ будет подписан [квалифицированной - ЭЦП](http://minsvyaz.ru/ru/appeals/faq/31/). Данная подпись является - юридически значимой и позволяет полностью отказаться от бумажного - документооборота. - name: Error Codes x-displayName: Коды ошибок description: > @@ -701,7 +622,7 @@ tags: | **invalidPartyStatus** | Ваш участник заблокирован или его операции приостановлены. В последнем случае вы можете их [возобновить](#operation/activateMyParty). | | **invalidShopStatus** | Ваш магазин заблокирован или его операции приостановлены. В последнем случае вы можете их [возобновить](#operation/activateShop). | | **invalidContractStatus** | Ваш договор более не имеет силы, по причине истечения срока действия или расторжения. | - | **invalidShopID** | Магазин с указанным идентификатором не существует или недоступен. | + | **invalidShopID** | Магазин с указанным идентификатором не существует или недоступен. | | **invalidInvoiceCost** | Стоимость инвойса не указана или неверна, в частности, не равна стоимости позиций в корзине. | | **invalidInvoiceCart** | Некорректная корзина в инвойсе, Например, пустая. | | **invalidInvoiceStatus** | Неверный [статус инвойса](#tag/Invoices). Например, при попытке [оплатить](#operation/createPayment) отменённый инвойс. | @@ -718,13 +639,11 @@ tags: | **inconsistentRefundCurrency** | Попытка возврата средств в валюте, отличной от валюты платежа. | | **changesetConflict** | Попытка внести изменения участника, конфликтующие с изменениями в других заявках, ожидающих рассмотрения. | | **invalidChangeset** | Неверные изменения участника, например, попытка создать магазин в валюте, недоступной в рамках договора. | - | **invalidClaimStatus** | Неверный статус заявки. Например, при попытке [отзыва](#operation/revokeClaimByID) уже принятой заявки. | - | **invalidClaimRevision** | Неверная ревизия заявки. Например, в случае если заявку одновременно с вами кто-то уже принял или отклонил. | | **limitExceeded** | Превышен разумный лимит выборки. В этом случае лучше запросить менее объёмный набор данных. | | **invalidDeadline** | Неверный формат времени. | | **chargebackInProgress** | Попытка возврата при открытом возвратном платеже. | | **invalidRequest** | Прочие неверные данные запроса. | - | **invalidPartyID** | Участник с указанным идентификатором не существует или недоступен. | + | **invalidPartyID** | Участник с указанным идентификатором не существует или недоступен. | | **ambiguousPartyID** | Невозможно однозначно определить идентификатор участника, укажите идентификатор в запросе явно. | | **invalidAllocation** | Некорректное распределение денежных средств, Например, больше одной транзакции в пользу одного из магазинов. | | **allocationNotPermitted** | Распределение недоступно в рамках договора. |