swag-payments/spec/definitions/InvoicesTopic.yaml
2017-11-01 16:11:48 +03:00

32 lines
952 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: string
maxLength: 40
minLength: 1
eventTypes:
description: Набор типов событий инвойсов, о которых следует оповещать
type: array
items:
type: string
enum:
- InvoiceCreated
- InvoicePaid
- InvoiceCancelled
- InvoiceFulfilled
- PaymentStarted
- PaymentProcessed
- PaymentCaptured
- PaymentCancelled
- PaymentRefunded
- PaymentFailed