-
Notifications
You must be signed in to change notification settings - Fork 3
/
model_match_options.go
18 lines (17 loc) · 1.54 KB
/
model_match_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
* 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
// MatchOptions Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController.
type MatchOptions struct {
// Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results
Matches *[]MatchOption `json:"matches,omitempty"`
// Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans.
Conditions *[]ConditionOption `json:"conditions,omitempty"`
}