swag-payments/spec/definitions/InvoicesTopic.yaml
Andrew Mayorov 8e5f8583c3 HOOK-1: Describe webhook resources (#55)
* HOOK-1: Describe webhook resources

* HOOK-1: Deprecate and remove callback handlers

* HOOK-1: Get rid of allOfs hacked earlier to inject descriptions
2017-04-24 17:30:38 +04:00

30 lines
902 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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