mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-07 09:58:57 +00:00
8e5f8583c3
* HOOK-1: Describe webhook resources * HOOK-1: Deprecate and remove callback handlers * HOOK-1: Get rid of allOfs hacked earlier to inject descriptions
30 lines
902 B
YAML
30 lines
902 B
YAML
description: |
|
||
Область охвата, включающая события по инвойсам в рамках определённого
|
||
магазина
|
||
allOf:
|
||
- $ref: '#/definitions/WebhookScope'
|
||
- type: object
|
||
required:
|
||
- shopID
|
||
- eventTypes
|
||
properties:
|
||
shopID:
|
||
description: Идентификатор магазина
|
||
type: integer
|
||
format: int32
|
||
eventTypes:
|
||
description: Набор типов событий инвойсов, о которых следует оповещать
|
||
type: array
|
||
items:
|
||
type: string
|
||
enum:
|
||
- InvoiceCreated
|
||
- InvoicePaid
|
||
- InvoiceCancelled
|
||
- InvoiceFulfilled
|
||
- PaymentStarted
|
||
- PaymentProcessed
|
||
- PaymentCaptured
|
||
- PaymentCancelled
|
||
- PaymentFailed
|