Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 46 additions & 2 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/schemas/WebhookEndpointCreateInput.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ properties:
- jwt
- hmac
- null
name:
type: string
description: The name of the webhook.
example: EC2-production
event_types:
type:
- array
- "null"
description: A list of event types that will trigger the webhook.
items:
type: string
example: ["invoice.voided", "customer.created"]
18 changes: 16 additions & 2 deletions src/schemas/WebhookEndpointObject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,29 @@ properties:
example: '1a901a90-1a90-1a90-1a90-1a901a901a90'
webhook_url:
type: string
description: The name of the wallet.
example: 'Prepaid'
description: The URL of the webhook endpoint.
example: "https://foo.bar"
signature_algo:
type: string
description: The signature algo for the webhook.
example: 'hmac'
enum:
- jwt
- hmac
name:
type:
- string
- 'null'
description: The name of the webhook.
example: EC2-production
event_types:
type:
- array
- 'null'
description: A list of event types that will trigger the webhook.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we describe that if empty all events will be used?

items:
type: string
example: ['invoice.voided', 'customer.created']
created_at:
type: string
format: 'date-time'
Expand Down
12 changes: 12 additions & 0 deletions src/schemas/WebhookEndpointUpdateInput.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ properties:
- jwt
- hmac
- null
name:
type: string
description: The name of the webhook.
example: EC2-production
event_types:
type:
- array
- "null"
description: A list of event types that will trigger the webhook.
items:
type: string
example: ["invoice.voided", "customer.created"]