-
Notifications
You must be signed in to change notification settings - Fork 3
/
model_create_webhook_options.go
28 lines (27 loc) · 2.45 KB
/
model_create_webhook_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* MailSlurp API
*
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* API version: 6.5.2
* Contact: contact@mailslurp.dev
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package MailSlurpClient
// CreateWebhookOptions Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the webhook's event is triggered. Webhooks are great for processing many inbound emails and responding to other events at scale. Customize the payload sent to your endpoint by setting the `requestBodyTemplate` property to a string with moustache style variables. Property names from the standard payload model for the given event are available as variables.
type CreateWebhookOptions struct {
// Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. See docs.mailslurp.com/webhooks for event payload documentation.
Url string `json:"url"`
BasicAuth *BasicAuthOptions `json:"basicAuth,omitempty"`
// Optional name for the webhook
Name *string `json:"name,omitempty"`
// Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name.
EventName *string `json:"eventName,omitempty"`
IncludeHeaders WebhookHeaders `json:"includeHeaders,omitempty"`
// Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event.
RequestBodyTemplate *string `json:"requestBodyTemplate,omitempty"`
// Use static IP range when calling webhook endpoint
UseStaticIpRange *bool `json:"useStaticIpRange,omitempty"`
// Ignore insecure SSL certificates when sending request. Useful for self-signed certs.
IgnoreInsecureSslCertificates *bool `json:"ignoreInsecureSslCertificates,omitempty"`
}