mailslurp_client 15.0.3 → 15.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
- data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
- data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
- data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
- data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
- data/lib/mailslurp_client/api/email_controller_api.rb +145 -122
- data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
- data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
- data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
- data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
- data/lib/mailslurp_client/api/inbox_controller_api.rb +198 -178
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
- data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
- data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +3 -3
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +22 -22
- data/lib/mailslurp_client/models/alias_dto.rb +64 -49
- data/lib/mailslurp_client/models/alias_projection.rb +50 -50
- data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
- data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
- data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
- data/lib/mailslurp_client/models/condition_option.rb +13 -3
- data/lib/mailslurp_client/models/contact_dto.rb +63 -63
- data/lib/mailslurp_client/models/contact_projection.rb +39 -39
- data/lib/mailslurp_client/models/content_match_options.rb +6 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
- data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
- data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
- data/lib/mailslurp_client/models/create_group_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
- data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +100 -70
- data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
- data/lib/mailslurp_client/models/domain_preview.rb +29 -28
- data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
- data/lib/mailslurp_client/models/email.rb +179 -139
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
- data/lib/mailslurp_client/models/email_links_result.rb +19 -19
- data/lib/mailslurp_client/models/email_preview.rb +63 -48
- data/lib/mailslurp_client/models/email_projection.rb +77 -77
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
- data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +2 -2
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
- data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
- data/lib/mailslurp_client/models/group_dto.rb +28 -28
- data/lib/mailslurp_client/models/group_projection.rb +29 -29
- data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
- data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +18 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +77 -77
- data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/name_server_record.rb +16 -16
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
- data/lib/mailslurp_client/models/page_alias.rb +59 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
- data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
- data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +19 -19
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
- data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
- data/lib/mailslurp_client/models/send_email_options.rb +112 -110
- data/lib/mailslurp_client/models/sender.rb +20 -19
- data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
- data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
- data/lib/mailslurp_client/models/sort.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +33 -33
- data/lib/mailslurp_client/models/template_projection.rb +37 -37
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/thread_projection.rb +71 -71
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
- data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
- data/lib/mailslurp_client/models/validation_dto.rb +11 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
- data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
- data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
- data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -3
- metadata +5 -4
@@ -4,7 +4,7 @@
|
|
4
4
|
#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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -15,33 +15,33 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for replying to email with API
|
17
17
|
class ReplyToEmailOptions
|
18
|
-
# List of uploaded attachments to send with the reply. Optional.
|
19
|
-
attr_accessor :attachments
|
20
|
-
|
21
18
|
# Body of the reply email you want to send
|
22
19
|
attr_accessor :body
|
23
20
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
21
|
+
# Is the reply HTML
|
22
|
+
attr_accessor :is_html
|
26
23
|
|
27
24
|
# The from header that should be used. Optional
|
28
25
|
attr_accessor :from
|
29
26
|
|
30
|
-
# Is the reply HTML
|
31
|
-
attr_accessor :is_html
|
32
|
-
|
33
27
|
# The replyTo header that should be used. Optional
|
34
28
|
attr_accessor :reply_to
|
35
29
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
30
|
+
# The charset that your message should be sent with. Optional. Default is UTF-8
|
31
|
+
attr_accessor :charset
|
38
32
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
33
|
+
# List of uploaded attachments to send with the reply. Optional.
|
34
|
+
attr_accessor :attachments
|
41
35
|
|
42
36
|
# Template variables if using a template
|
43
37
|
attr_accessor :template_variables
|
44
38
|
|
39
|
+
# Template ID to use instead of body. Will use template variable map to fill defined variable slots.
|
40
|
+
attr_accessor :template
|
41
|
+
|
42
|
+
# How an email should be sent based on its recipients
|
43
|
+
attr_accessor :send_strategy
|
44
|
+
|
45
45
|
# Optionally use inbox name as display name for sender email address
|
46
46
|
attr_accessor :use_inbox_name
|
47
47
|
|
@@ -70,15 +70,15 @@ module MailSlurpClient
|
|
70
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
71
|
def self.attribute_map
|
72
72
|
{
|
73
|
-
:'attachments' => :'attachments',
|
74
73
|
:'body' => :'body',
|
75
|
-
:'charset' => :'charset',
|
76
|
-
:'from' => :'from',
|
77
74
|
:'is_html' => :'isHTML',
|
75
|
+
:'from' => :'from',
|
78
76
|
:'reply_to' => :'replyTo',
|
79
|
-
:'
|
80
|
-
:'
|
77
|
+
:'charset' => :'charset',
|
78
|
+
:'attachments' => :'attachments',
|
81
79
|
:'template_variables' => :'templateVariables',
|
80
|
+
:'template' => :'template',
|
81
|
+
:'send_strategy' => :'sendStrategy',
|
82
82
|
:'use_inbox_name' => :'useInboxName'
|
83
83
|
}
|
84
84
|
end
|
@@ -86,15 +86,15 @@ module MailSlurpClient
|
|
86
86
|
# Attribute type mapping.
|
87
87
|
def self.openapi_types
|
88
88
|
{
|
89
|
-
:'attachments' => :'Array<String>',
|
90
89
|
:'body' => :'String',
|
91
|
-
:'charset' => :'String',
|
92
|
-
:'from' => :'String',
|
93
90
|
:'is_html' => :'Boolean',
|
91
|
+
:'from' => :'String',
|
94
92
|
:'reply_to' => :'String',
|
95
|
-
:'
|
93
|
+
:'charset' => :'String',
|
94
|
+
:'attachments' => :'Array<String>',
|
95
|
+
:'template_variables' => :'Hash<String, Object>',
|
96
96
|
:'template' => :'String',
|
97
|
-
:'
|
97
|
+
:'send_strategy' => :'String',
|
98
98
|
:'use_inbox_name' => :'Boolean'
|
99
99
|
}
|
100
100
|
end
|
@@ -120,42 +120,44 @@ module MailSlurpClient
|
|
120
120
|
h[k.to_sym] = v
|
121
121
|
}
|
122
122
|
|
123
|
-
if attributes.key?(:'attachments')
|
124
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
125
|
-
self.attachments = value
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
123
|
if attributes.key?(:'body')
|
130
124
|
self.body = attributes[:'body']
|
131
125
|
end
|
132
126
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
127
|
+
if attributes.key?(:'is_html')
|
128
|
+
self.is_html = attributes[:'is_html']
|
135
129
|
end
|
136
130
|
|
137
131
|
if attributes.key?(:'from')
|
138
132
|
self.from = attributes[:'from']
|
139
133
|
end
|
140
134
|
|
141
|
-
if attributes.key?(:'is_html')
|
142
|
-
self.is_html = attributes[:'is_html']
|
143
|
-
end
|
144
|
-
|
145
135
|
if attributes.key?(:'reply_to')
|
146
136
|
self.reply_to = attributes[:'reply_to']
|
147
137
|
end
|
148
138
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
139
|
+
if attributes.key?(:'charset')
|
140
|
+
self.charset = attributes[:'charset']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'attachments')
|
144
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
145
|
+
self.attachments = value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'template_variables')
|
150
|
+
if (value = attributes[:'template_variables']).is_a?(Hash)
|
151
|
+
self.template_variables = value
|
152
|
+
end
|
151
153
|
end
|
152
154
|
|
153
155
|
if attributes.key?(:'template')
|
154
156
|
self.template = attributes[:'template']
|
155
157
|
end
|
156
158
|
|
157
|
-
if attributes.key?(:'
|
158
|
-
self.
|
159
|
+
if attributes.key?(:'send_strategy')
|
160
|
+
self.send_strategy = attributes[:'send_strategy']
|
159
161
|
end
|
160
162
|
|
161
163
|
if attributes.key?(:'use_inbox_name')
|
@@ -167,12 +169,22 @@ module MailSlurpClient
|
|
167
169
|
# @return Array for valid properties with the reasons
|
168
170
|
def list_invalid_properties
|
169
171
|
invalid_properties = Array.new
|
172
|
+
if @body.nil?
|
173
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
|
+
if @is_html.nil?
|
177
|
+
invalid_properties.push('invalid value for "is_html", is_html cannot be nil.')
|
178
|
+
end
|
179
|
+
|
170
180
|
invalid_properties
|
171
181
|
end
|
172
182
|
|
173
183
|
# Check to see if the all the properties in the model are valid
|
174
184
|
# @return true if the model is valid
|
175
185
|
def valid?
|
186
|
+
return false if @body.nil?
|
187
|
+
return false if @is_html.nil?
|
176
188
|
send_strategy_validator = EnumAttributeValidator.new('String', ["SINGLE_MESSAGE"])
|
177
189
|
return false unless send_strategy_validator.valid?(@send_strategy)
|
178
190
|
true
|
@@ -193,15 +205,15 @@ module MailSlurpClient
|
|
193
205
|
def ==(o)
|
194
206
|
return true if self.equal?(o)
|
195
207
|
self.class == o.class &&
|
196
|
-
attachments == o.attachments &&
|
197
208
|
body == o.body &&
|
198
|
-
charset == o.charset &&
|
199
|
-
from == o.from &&
|
200
209
|
is_html == o.is_html &&
|
210
|
+
from == o.from &&
|
201
211
|
reply_to == o.reply_to &&
|
202
|
-
|
203
|
-
|
212
|
+
charset == o.charset &&
|
213
|
+
attachments == o.attachments &&
|
204
214
|
template_variables == o.template_variables &&
|
215
|
+
template == o.template &&
|
216
|
+
send_strategy == o.send_strategy &&
|
205
217
|
use_inbox_name == o.use_inbox_name
|
206
218
|
end
|
207
219
|
|
@@ -214,7 +226,7 @@ module MailSlurpClient
|
|
214
226
|
# Calculates hash code according to all attributes.
|
215
227
|
# @return [Integer] Hash code
|
216
228
|
def hash
|
217
|
-
[
|
229
|
+
[body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
|
218
230
|
end
|
219
231
|
|
220
232
|
# Builds the object from hash
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -13,28 +13,34 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Options for
|
16
|
+
# Options for the email to be sent
|
17
17
|
class SendEmailOptions
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.
|
19
|
+
attr_accessor :to_contacts
|
20
20
|
|
21
|
-
# Optional
|
22
|
-
attr_accessor :
|
21
|
+
# Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients
|
22
|
+
attr_accessor :to_group
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing.
|
25
|
+
attr_accessor :to
|
26
26
|
|
27
|
-
# Optional
|
28
|
-
attr_accessor :
|
27
|
+
# Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used.
|
28
|
+
attr_accessor :from
|
29
29
|
|
30
30
|
# Optional list of cc destination email addresses
|
31
31
|
attr_accessor :cc
|
32
32
|
|
33
|
-
# Optional
|
34
|
-
attr_accessor :
|
33
|
+
# Optional list of bcc destination email addresses
|
34
|
+
attr_accessor :bcc
|
35
35
|
|
36
|
-
# Optional
|
37
|
-
attr_accessor :
|
36
|
+
# Optional email subject line
|
37
|
+
attr_accessor :subject
|
38
|
+
|
39
|
+
# Optional replyTo header
|
40
|
+
attr_accessor :reply_to
|
41
|
+
|
42
|
+
# Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body.
|
43
|
+
attr_accessor :body
|
38
44
|
|
39
45
|
# Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.)
|
40
46
|
attr_accessor :html
|
@@ -42,33 +48,27 @@ module MailSlurpClient
|
|
42
48
|
# Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients
|
43
49
|
attr_accessor :is_html
|
44
50
|
|
45
|
-
# Optional
|
46
|
-
attr_accessor :
|
47
|
-
|
48
|
-
# Optional strategy to use when sending the email
|
49
|
-
attr_accessor :send_strategy
|
50
|
-
|
51
|
-
# Optional email subject line
|
52
|
-
attr_accessor :subject
|
51
|
+
# Optional charset
|
52
|
+
attr_accessor :charset
|
53
53
|
|
54
|
-
# Optional
|
55
|
-
attr_accessor :
|
54
|
+
# Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods.
|
55
|
+
attr_accessor :attachments
|
56
56
|
|
57
57
|
# Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found.
|
58
58
|
attr_accessor :template_variables
|
59
59
|
|
60
|
-
#
|
61
|
-
attr_accessor :
|
62
|
-
|
63
|
-
# Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.
|
64
|
-
attr_accessor :to_contacts
|
60
|
+
# Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard.
|
61
|
+
attr_accessor :template
|
65
62
|
|
66
|
-
#
|
67
|
-
attr_accessor :
|
63
|
+
# How an email should be sent based on its recipients
|
64
|
+
attr_accessor :send_strategy
|
68
65
|
|
69
66
|
# Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name.
|
70
67
|
attr_accessor :use_inbox_name
|
71
68
|
|
69
|
+
# Add tracking pixel to email
|
70
|
+
attr_accessor :add_tracking_pixel
|
71
|
+
|
72
72
|
class EnumAttributeValidator
|
73
73
|
attr_reader :datatype
|
74
74
|
attr_reader :allowable_values
|
@@ -94,48 +94,48 @@ module MailSlurpClient
|
|
94
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
95
95
|
def self.attribute_map
|
96
96
|
{
|
97
|
-
:'
|
98
|
-
:'
|
97
|
+
:'to_contacts' => :'toContacts',
|
98
|
+
:'to_group' => :'toGroup',
|
99
|
+
:'to' => :'to',
|
100
|
+
:'from' => :'from',
|
101
|
+
:'cc' => :'cc',
|
99
102
|
:'bcc' => :'bcc',
|
103
|
+
:'subject' => :'subject',
|
104
|
+
:'reply_to' => :'replyTo',
|
100
105
|
:'body' => :'body',
|
101
|
-
:'cc' => :'cc',
|
102
|
-
:'charset' => :'charset',
|
103
|
-
:'from' => :'from',
|
104
106
|
:'html' => :'html',
|
105
107
|
:'is_html' => :'isHTML',
|
106
|
-
:'
|
107
|
-
:'
|
108
|
-
:'subject' => :'subject',
|
109
|
-
:'template' => :'template',
|
108
|
+
:'charset' => :'charset',
|
109
|
+
:'attachments' => :'attachments',
|
110
110
|
:'template_variables' => :'templateVariables',
|
111
|
-
:'
|
112
|
-
:'
|
113
|
-
:'
|
114
|
-
:'
|
111
|
+
:'template' => :'template',
|
112
|
+
:'send_strategy' => :'sendStrategy',
|
113
|
+
:'use_inbox_name' => :'useInboxName',
|
114
|
+
:'add_tracking_pixel' => :'addTrackingPixel'
|
115
115
|
}
|
116
116
|
end
|
117
117
|
|
118
118
|
# Attribute type mapping.
|
119
119
|
def self.openapi_types
|
120
120
|
{
|
121
|
-
:'
|
122
|
-
:'
|
121
|
+
:'to_contacts' => :'Array<String>',
|
122
|
+
:'to_group' => :'String',
|
123
|
+
:'to' => :'Array<String>',
|
124
|
+
:'from' => :'String',
|
125
|
+
:'cc' => :'Array<String>',
|
123
126
|
:'bcc' => :'Array<String>',
|
127
|
+
:'subject' => :'String',
|
128
|
+
:'reply_to' => :'String',
|
124
129
|
:'body' => :'String',
|
125
|
-
:'cc' => :'Array<String>',
|
126
|
-
:'charset' => :'String',
|
127
|
-
:'from' => :'String',
|
128
130
|
:'html' => :'Boolean',
|
129
131
|
:'is_html' => :'Boolean',
|
130
|
-
:'
|
131
|
-
:'
|
132
|
-
:'
|
132
|
+
:'charset' => :'String',
|
133
|
+
:'attachments' => :'Array<String>',
|
134
|
+
:'template_variables' => :'Hash<String, Object>',
|
133
135
|
:'template' => :'String',
|
134
|
-
:'
|
135
|
-
:'
|
136
|
-
:'
|
137
|
-
:'to_group' => :'String',
|
138
|
-
:'use_inbox_name' => :'Boolean'
|
136
|
+
:'send_strategy' => :'String',
|
137
|
+
:'use_inbox_name' => :'Boolean',
|
138
|
+
:'add_tracking_pixel' => :'Boolean'
|
139
139
|
}
|
140
140
|
end
|
141
141
|
|
@@ -160,24 +160,24 @@ module MailSlurpClient
|
|
160
160
|
h[k.to_sym] = v
|
161
161
|
}
|
162
162
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
|
163
|
+
if attributes.key?(:'to_contacts')
|
164
|
+
if (value = attributes[:'to_contacts']).is_a?(Array)
|
165
|
+
self.to_contacts = value
|
166
|
+
end
|
165
167
|
end
|
166
168
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
|
169
|
-
self.attachments = value
|
170
|
-
end
|
169
|
+
if attributes.key?(:'to_group')
|
170
|
+
self.to_group = attributes[:'to_group']
|
171
171
|
end
|
172
172
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
if (value = attributes[:'
|
175
|
-
self.
|
173
|
+
if attributes.key?(:'to')
|
174
|
+
if (value = attributes[:'to']).is_a?(Array)
|
175
|
+
self.to = value
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
179
|
+
if attributes.key?(:'from')
|
180
|
+
self.from = attributes[:'from']
|
181
181
|
end
|
182
182
|
|
183
183
|
if attributes.key?(:'cc')
|
@@ -186,61 +186,63 @@ module MailSlurpClient
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
if attributes.key?(:'from')
|
194
|
-
self.from = attributes[:'from']
|
195
|
-
end
|
196
|
-
|
197
|
-
if attributes.key?(:'html')
|
198
|
-
self.html = attributes[:'html']
|
189
|
+
if attributes.key?(:'bcc')
|
190
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
191
|
+
self.bcc = value
|
192
|
+
end
|
199
193
|
end
|
200
194
|
|
201
|
-
if attributes.key?(:'
|
202
|
-
self.
|
195
|
+
if attributes.key?(:'subject')
|
196
|
+
self.subject = attributes[:'subject']
|
203
197
|
end
|
204
198
|
|
205
199
|
if attributes.key?(:'reply_to')
|
206
200
|
self.reply_to = attributes[:'reply_to']
|
207
201
|
end
|
208
202
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
203
|
+
if attributes.key?(:'body')
|
204
|
+
self.body = attributes[:'body']
|
211
205
|
end
|
212
206
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
self.
|
207
|
+
if attributes.key?(:'html')
|
208
|
+
self.html = attributes[:'html']
|
215
209
|
end
|
216
210
|
|
217
|
-
if attributes.key?(:'
|
218
|
-
self.
|
211
|
+
if attributes.key?(:'is_html')
|
212
|
+
self.is_html = attributes[:'is_html']
|
219
213
|
end
|
220
214
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
215
|
+
if attributes.key?(:'charset')
|
216
|
+
self.charset = attributes[:'charset']
|
223
217
|
end
|
224
218
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
if (value = attributes[:'
|
227
|
-
self.
|
219
|
+
if attributes.key?(:'attachments')
|
220
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
221
|
+
self.attachments = value
|
228
222
|
end
|
229
223
|
end
|
230
224
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
if (value = attributes[:'
|
233
|
-
self.
|
225
|
+
if attributes.key?(:'template_variables')
|
226
|
+
if (value = attributes[:'template_variables']).is_a?(Hash)
|
227
|
+
self.template_variables = value
|
234
228
|
end
|
235
229
|
end
|
236
230
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
231
|
+
if attributes.key?(:'template')
|
232
|
+
self.template = attributes[:'template']
|
233
|
+
end
|
234
|
+
|
235
|
+
if attributes.key?(:'send_strategy')
|
236
|
+
self.send_strategy = attributes[:'send_strategy']
|
239
237
|
end
|
240
238
|
|
241
239
|
if attributes.key?(:'use_inbox_name')
|
242
240
|
self.use_inbox_name = attributes[:'use_inbox_name']
|
243
241
|
end
|
242
|
+
|
243
|
+
if attributes.key?(:'add_tracking_pixel')
|
244
|
+
self.add_tracking_pixel = attributes[:'add_tracking_pixel']
|
245
|
+
end
|
244
246
|
end
|
245
247
|
|
246
248
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -273,24 +275,24 @@ module MailSlurpClient
|
|
273
275
|
def ==(o)
|
274
276
|
return true if self.equal?(o)
|
275
277
|
self.class == o.class &&
|
276
|
-
|
277
|
-
|
278
|
+
to_contacts == o.to_contacts &&
|
279
|
+
to_group == o.to_group &&
|
280
|
+
to == o.to &&
|
281
|
+
from == o.from &&
|
282
|
+
cc == o.cc &&
|
278
283
|
bcc == o.bcc &&
|
284
|
+
subject == o.subject &&
|
285
|
+
reply_to == o.reply_to &&
|
279
286
|
body == o.body &&
|
280
|
-
cc == o.cc &&
|
281
|
-
charset == o.charset &&
|
282
|
-
from == o.from &&
|
283
287
|
html == o.html &&
|
284
288
|
is_html == o.is_html &&
|
285
|
-
|
286
|
-
|
287
|
-
subject == o.subject &&
|
288
|
-
template == o.template &&
|
289
|
+
charset == o.charset &&
|
290
|
+
attachments == o.attachments &&
|
289
291
|
template_variables == o.template_variables &&
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
292
|
+
template == o.template &&
|
293
|
+
send_strategy == o.send_strategy &&
|
294
|
+
use_inbox_name == o.use_inbox_name &&
|
295
|
+
add_tracking_pixel == o.add_tracking_pixel
|
294
296
|
end
|
295
297
|
|
296
298
|
# @see the `==` method
|
@@ -302,7 +304,7 @@ module MailSlurpClient
|
|
302
304
|
# Calculates hash code according to all attributes.
|
303
305
|
# @return [Integer] Hash code
|
304
306
|
def hash
|
305
|
-
[
|
307
|
+
[to_contacts, to_group, to, from, cc, bcc, subject, reply_to, body, html, is_html, charset, attachments, template_variables, template, send_strategy, use_inbox_name, add_tracking_pixel].hash
|
306
308
|
end
|
307
309
|
|
308
310
|
# Builds the object from hash
|