mailslurp_client 11.14.0 → 12.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client.rb +1 -1
- data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +10 -10
- data/lib/mailslurp_client/api/inbox_controller_api.rb +17 -10
- data/lib/mailslurp_client/models/{attachment_entity.rb → attachment_projection.rb} +7 -18
- data/lib/mailslurp_client/models/create_domain_options.rb +2 -2
- data/lib/mailslurp_client/models/create_inbox_dto.rb +6 -6
- data/lib/mailslurp_client/models/domain_dto.rb +45 -1
- data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
- data/lib/mailslurp_client/models/forward_email_options.rb +24 -4
- data/lib/mailslurp_client/models/inbox.rb +48 -4
- data/lib/mailslurp_client/models/inbox_projection.rb +44 -1
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +47 -3
- data/lib/mailslurp_client/models/page_attachment_entity.rb +1 -1
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +6 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +14 -4
- data/lib/mailslurp_client/models/reply_to_email_options.rb +14 -4
- data/lib/mailslurp_client/models/send_email_options.rb +25 -5
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +2 -2
- data/lib/mailslurp_client/models/upload_attachment_options.rb +5 -0
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +3 -3
@@ -36,6 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Template variables if using a template
|
37
37
|
attr_accessor :template_variables
|
38
38
|
|
39
|
+
# Optionally use inbox name as display name for sender email address
|
40
|
+
attr_accessor :use_inbox_name
|
41
|
+
|
39
42
|
class EnumAttributeValidator
|
40
43
|
attr_reader :datatype
|
41
44
|
attr_reader :allowable_values
|
@@ -67,7 +70,8 @@ module MailSlurpClient
|
|
67
70
|
:'is_html' => :'isHTML',
|
68
71
|
:'send_strategy' => :'sendStrategy',
|
69
72
|
:'template' => :'template',
|
70
|
-
:'template_variables' => :'templateVariables'
|
73
|
+
:'template_variables' => :'templateVariables',
|
74
|
+
:'use_inbox_name' => :'useInboxName'
|
71
75
|
}
|
72
76
|
end
|
73
77
|
|
@@ -80,7 +84,8 @@ module MailSlurpClient
|
|
80
84
|
:'is_html' => :'Boolean',
|
81
85
|
:'send_strategy' => :'String',
|
82
86
|
:'template' => :'String',
|
83
|
-
:'template_variables' => :'Object'
|
87
|
+
:'template_variables' => :'Object',
|
88
|
+
:'use_inbox_name' => :'Boolean'
|
84
89
|
}
|
85
90
|
end
|
86
91
|
|
@@ -134,6 +139,10 @@ module MailSlurpClient
|
|
134
139
|
if attributes.key?(:'template_variables')
|
135
140
|
self.template_variables = attributes[:'template_variables']
|
136
141
|
end
|
142
|
+
|
143
|
+
if attributes.key?(:'use_inbox_name')
|
144
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
145
|
+
end
|
137
146
|
end
|
138
147
|
|
139
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -172,7 +181,8 @@ module MailSlurpClient
|
|
172
181
|
is_html == o.is_html &&
|
173
182
|
send_strategy == o.send_strategy &&
|
174
183
|
template == o.template &&
|
175
|
-
template_variables == o.template_variables
|
184
|
+
template_variables == o.template_variables &&
|
185
|
+
use_inbox_name == o.use_inbox_name
|
176
186
|
end
|
177
187
|
|
178
188
|
# @see the `==` method
|
@@ -184,7 +194,7 @@ module MailSlurpClient
|
|
184
194
|
# Calculates hash code according to all attributes.
|
185
195
|
# @return [Integer] Hash code
|
186
196
|
def hash
|
187
|
-
[attachments, body, charset, is_html, send_strategy, template, template_variables].hash
|
197
|
+
[attachments, body, charset, is_html, send_strategy, template, template_variables, use_inbox_name].hash
|
188
198
|
end
|
189
199
|
|
190
200
|
# Builds the object from hash
|
@@ -42,6 +42,9 @@ module MailSlurpClient
|
|
42
42
|
# Template variables if using a template
|
43
43
|
attr_accessor :template_variables
|
44
44
|
|
45
|
+
# Optionally use inbox name as display name for sender email address
|
46
|
+
attr_accessor :use_inbox_name
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -75,7 +78,8 @@ module MailSlurpClient
|
|
75
78
|
:'reply_to' => :'replyTo',
|
76
79
|
:'send_strategy' => :'sendStrategy',
|
77
80
|
:'template' => :'template',
|
78
|
-
:'template_variables' => :'templateVariables'
|
81
|
+
:'template_variables' => :'templateVariables',
|
82
|
+
:'use_inbox_name' => :'useInboxName'
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -90,7 +94,8 @@ module MailSlurpClient
|
|
90
94
|
:'reply_to' => :'String',
|
91
95
|
:'send_strategy' => :'String',
|
92
96
|
:'template' => :'String',
|
93
|
-
:'template_variables' => :'Object'
|
97
|
+
:'template_variables' => :'Object',
|
98
|
+
:'use_inbox_name' => :'Boolean'
|
94
99
|
}
|
95
100
|
end
|
96
101
|
|
@@ -152,6 +157,10 @@ module MailSlurpClient
|
|
152
157
|
if attributes.key?(:'template_variables')
|
153
158
|
self.template_variables = attributes[:'template_variables']
|
154
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'use_inbox_name')
|
162
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
163
|
+
end
|
155
164
|
end
|
156
165
|
|
157
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -192,7 +201,8 @@ module MailSlurpClient
|
|
192
201
|
reply_to == o.reply_to &&
|
193
202
|
send_strategy == o.send_strategy &&
|
194
203
|
template == o.template &&
|
195
|
-
template_variables == o.template_variables
|
204
|
+
template_variables == o.template_variables &&
|
205
|
+
use_inbox_name == o.use_inbox_name
|
196
206
|
end
|
197
207
|
|
198
208
|
# @see the `==` method
|
@@ -204,7 +214,7 @@ module MailSlurpClient
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Integer] Hash code
|
206
216
|
def hash
|
207
|
-
[attachments, body, charset, from, is_html, reply_to, send_strategy, template, template_variables].hash
|
217
|
+
[attachments, body, charset, from, is_html, reply_to, send_strategy, template, template_variables, use_inbox_name].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Builds the object from hash
|
@@ -30,9 +30,12 @@ module MailSlurpClient
|
|
30
30
|
# Optional charset
|
31
31
|
attr_accessor :charset
|
32
32
|
|
33
|
-
# Optional from address. If
|
33
|
+
# 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. Beware of potential spam penalties when setting this field to an address not used by the inbox. For custom email addresses use a custom domain.
|
34
34
|
attr_accessor :from
|
35
35
|
|
36
|
+
# Optional HTML flag (Deprecated: use isHTML instead)
|
37
|
+
attr_accessor :html
|
38
|
+
|
36
39
|
# 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
|
37
40
|
attr_accessor :is_html
|
38
41
|
|
@@ -60,6 +63,9 @@ module MailSlurpClient
|
|
60
63
|
# 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
|
61
64
|
attr_accessor :to_group
|
62
65
|
|
66
|
+
# Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>`
|
67
|
+
attr_accessor :use_inbox_name
|
68
|
+
|
63
69
|
class EnumAttributeValidator
|
64
70
|
attr_reader :datatype
|
65
71
|
attr_reader :allowable_values
|
@@ -91,6 +97,7 @@ module MailSlurpClient
|
|
91
97
|
:'cc' => :'cc',
|
92
98
|
:'charset' => :'charset',
|
93
99
|
:'from' => :'from',
|
100
|
+
:'html' => :'html',
|
94
101
|
:'is_html' => :'isHTML',
|
95
102
|
:'reply_to' => :'replyTo',
|
96
103
|
:'send_strategy' => :'sendStrategy',
|
@@ -99,7 +106,8 @@ module MailSlurpClient
|
|
99
106
|
:'template_variables' => :'templateVariables',
|
100
107
|
:'to' => :'to',
|
101
108
|
:'to_contacts' => :'toContacts',
|
102
|
-
:'to_group' => :'toGroup'
|
109
|
+
:'to_group' => :'toGroup',
|
110
|
+
:'use_inbox_name' => :'useInboxName'
|
103
111
|
}
|
104
112
|
end
|
105
113
|
|
@@ -112,6 +120,7 @@ module MailSlurpClient
|
|
112
120
|
:'cc' => :'Array<String>',
|
113
121
|
:'charset' => :'String',
|
114
122
|
:'from' => :'String',
|
123
|
+
:'html' => :'Boolean',
|
115
124
|
:'is_html' => :'Boolean',
|
116
125
|
:'reply_to' => :'String',
|
117
126
|
:'send_strategy' => :'String',
|
@@ -120,7 +129,8 @@ module MailSlurpClient
|
|
120
129
|
:'template_variables' => :'Object',
|
121
130
|
:'to' => :'Array<String>',
|
122
131
|
:'to_contacts' => :'Array<String>',
|
123
|
-
:'to_group' => :'String'
|
132
|
+
:'to_group' => :'String',
|
133
|
+
:'use_inbox_name' => :'Boolean'
|
124
134
|
}
|
125
135
|
end
|
126
136
|
|
@@ -175,6 +185,10 @@ module MailSlurpClient
|
|
175
185
|
self.from = attributes[:'from']
|
176
186
|
end
|
177
187
|
|
188
|
+
if attributes.key?(:'html')
|
189
|
+
self.html = attributes[:'html']
|
190
|
+
end
|
191
|
+
|
178
192
|
if attributes.key?(:'is_html')
|
179
193
|
self.is_html = attributes[:'is_html']
|
180
194
|
end
|
@@ -214,6 +228,10 @@ module MailSlurpClient
|
|
214
228
|
if attributes.key?(:'to_group')
|
215
229
|
self.to_group = attributes[:'to_group']
|
216
230
|
end
|
231
|
+
|
232
|
+
if attributes.key?(:'use_inbox_name')
|
233
|
+
self.use_inbox_name = attributes[:'use_inbox_name']
|
234
|
+
end
|
217
235
|
end
|
218
236
|
|
219
237
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -252,6 +270,7 @@ module MailSlurpClient
|
|
252
270
|
cc == o.cc &&
|
253
271
|
charset == o.charset &&
|
254
272
|
from == o.from &&
|
273
|
+
html == o.html &&
|
255
274
|
is_html == o.is_html &&
|
256
275
|
reply_to == o.reply_to &&
|
257
276
|
send_strategy == o.send_strategy &&
|
@@ -260,7 +279,8 @@ module MailSlurpClient
|
|
260
279
|
template_variables == o.template_variables &&
|
261
280
|
to == o.to &&
|
262
281
|
to_contacts == o.to_contacts &&
|
263
|
-
to_group == o.to_group
|
282
|
+
to_group == o.to_group &&
|
283
|
+
use_inbox_name == o.use_inbox_name
|
264
284
|
end
|
265
285
|
|
266
286
|
# @see the `==` method
|
@@ -272,7 +292,7 @@ module MailSlurpClient
|
|
272
292
|
# Calculates hash code according to all attributes.
|
273
293
|
# @return [Integer] Hash code
|
274
294
|
def hash
|
275
|
-
[attachments, bcc, body, cc, charset, from, is_html, reply_to, send_strategy, subject, template, template_variables, to, to_contacts, to_group].hash
|
295
|
+
[attachments, bcc, body, cc, charset, from, html, is_html, reply_to, send_strategy, subject, template, template_variables, to, to_contacts, to_group, use_inbox_name].hash
|
276
296
|
end
|
277
297
|
|
278
298
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for setting inbox favourite state
|
17
17
|
class SetInboxFavouritedOptions
|
18
|
-
# Is the inbox
|
18
|
+
# Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering
|
19
19
|
attr_accessor :state
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -21,10 +21,10 @@ module MailSlurpClient
|
|
21
21
|
# Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
|
22
22
|
attr_accessor :expires_at
|
23
23
|
|
24
|
-
# Is the inbox
|
24
|
+
# Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering
|
25
25
|
attr_accessor :favourite
|
26
26
|
|
27
|
-
# Name of the inbox.
|
27
|
+
# Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
|
28
28
|
attr_accessor :name
|
29
29
|
|
30
30
|
# Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
|
@@ -80,12 +80,17 @@ module MailSlurpClient
|
|
80
80
|
# @return Array for valid properties with the reasons
|
81
81
|
def list_invalid_properties
|
82
82
|
invalid_properties = Array.new
|
83
|
+
if @base64_contents.nil?
|
84
|
+
invalid_properties.push('invalid value for "base64_contents", base64_contents cannot be nil.')
|
85
|
+
end
|
86
|
+
|
83
87
|
invalid_properties
|
84
88
|
end
|
85
89
|
|
86
90
|
# Check to see if the all the properties in the model are valid
|
87
91
|
# @return true if the model is valid
|
88
92
|
def valid?
|
93
|
+
return false if @base64_contents.nil?
|
89
94
|
true
|
90
95
|
end
|
91
96
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|
@@ -46,8 +46,8 @@ files:
|
|
46
46
|
- lib/mailslurp_client/models/abstract_webhook_payload.rb
|
47
47
|
- lib/mailslurp_client/models/alias_dto.rb
|
48
48
|
- lib/mailslurp_client/models/alias_projection.rb
|
49
|
-
- lib/mailslurp_client/models/attachment_entity.rb
|
50
49
|
- lib/mailslurp_client/models/attachment_meta_data.rb
|
50
|
+
- lib/mailslurp_client/models/attachment_projection.rb
|
51
51
|
- lib/mailslurp_client/models/basic_auth_options.rb
|
52
52
|
- lib/mailslurp_client/models/bulk_send_email_options.rb
|
53
53
|
- lib/mailslurp_client/models/contact_dto.rb
|