diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-27 15:08:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-27 15:08:25 -0300 |
commit | eebb85bef4bb6bba41533fa0ff343cf2f1995761 (patch) | |
tree | 08ac7d3197d662bd8fadc747a912023364a4f9c7 /packages/merchant-backoffice-ui/src/declaration.d.ts | |
parent | 1b2b5d62de5888eae895db69cf6ae51dbfddb32b (diff) |
webhook api
Diffstat (limited to 'packages/merchant-backoffice-ui/src/declaration.d.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/declaration.d.ts | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/declaration.d.ts b/packages/merchant-backoffice-ui/src/declaration.d.ts index b0621c13c..32e6b44ea 100644 --- a/packages/merchant-backoffice-ui/src/declaration.d.ts +++ b/packages/merchant-backoffice-ui/src/declaration.d.ts @@ -1360,6 +1360,82 @@ export namespace MerchantBackend { } } + namespace Webhooks { + interface WebhookAddDetails { + + // Webhook ID to use. + webhook_id: string; + + // The event of the webhook: why the webhook is used. + event_type: string; + + // URL of the webhook where the customer will be redirected. + url: string; + + // Method used by the webhook + http_method: string; + + // Header template of the webhook + header_template?: string; + + // Body template by the webhook + body_template?: string; + + } + interface WebhookPatchDetails { + + // The event of the webhook: why the webhook is used. + event_type: string; + + // URL of the webhook where the customer will be redirected. + url: string; + + // Method used by the webhook + http_method: string; + + // Header template of the webhook + header_template?: string; + + // Body template by the webhook + body_template?: string; + + } + interface WebhookSummaryResponse { + + // List of webhooks that are present in our backend. + webhooks: WebhookEntry[]; + + } + interface WebhookEntry { + + // Webhook identifier, as found in the webhook. + webhook_id: string; + + // The event of the webhook: why the webhook is used. + event_type: string; + + } + interface WebhookDetails { + + // The event of the webhook: why the webhook is used. + event_type: string; + + // URL of the webhook where the customer will be redirected. + url: string; + + // Method used by the webhook + http_method: string; + + // Header template of the webhook + header_template?: string; + + // Body template by the webhook + body_template?: string; + + } + + } + interface ContractTerms { // Human-readable description of the whole purchase summary: string; |