mailslurp_client 12.0.0 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60f577d6063320652418dd98cc34b8c5eac1520c9de0502b5618b15074eb174a
4
- data.tar.gz: 8c5f529426d03525054f96133e15c367aa2eb05c9aa5035f30d9bd6870c183b9
3
+ metadata.gz: 680e803f1dded14fd5a2950806c2151fc3b3491bb6f54d34f7f6aa059698fa1b
4
+ data.tar.gz: 167978e04b87d5de123a191af703e22088637f914dcfc926bf4a8d8188d7a843
5
5
  SHA512:
6
- metadata.gz: ec20b6535a6cbc97d2d2de3d2e841a639a12a1a77a9707249f833a587e7c33bb0d988ca42697e7e81c9f22f7a055094679adf8f1bef79e07c270dddf4db16137
7
- data.tar.gz: aea00c01340e7b541c2b512c9e9850413844bcba73542ed688eec20bbbfe1a6051cac661f1adfe769c2e08916c2bc7f52eb815c37096dac94d4dc1f63faa1607
6
+ metadata.gz: 0aae09815da7765057f48b07fe81fa598668b056c392ad24bbcbe0930d601e8f273b46b393acf715487ca91a0597a412d11246565f1b4cba3e13b699fc444d7f
7
+ data.tar.gz: e06902b5725220bd679d7152d755ec013faf95714664f4d7fc8ec35a53983c5aecfd42cef7c4364410825948bb5d36fbaa7afbcfa440e8a09597dca1a21c4884
@@ -30,6 +30,9 @@ module MailSlurpClient
30
30
  # To recipients for forwarded email
31
31
  attr_accessor :to
32
32
 
33
+ # Optionally use inbox name as display name for sender email address
34
+ attr_accessor :use_inbox_name
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module MailSlurpClient
37
40
  :'cc' => :'cc',
38
41
  :'from' => :'from',
39
42
  :'subject' => :'subject',
40
- :'to' => :'to'
43
+ :'to' => :'to',
44
+ :'use_inbox_name' => :'useInboxName'
41
45
  }
42
46
  end
43
47
 
@@ -48,7 +52,8 @@ module MailSlurpClient
48
52
  :'cc' => :'Array<String>',
49
53
  :'from' => :'String',
50
54
  :'subject' => :'String',
51
- :'to' => :'Array<String>'
55
+ :'to' => :'Array<String>',
56
+ :'use_inbox_name' => :'Boolean'
52
57
  }
53
58
  end
54
59
 
@@ -98,6 +103,10 @@ module MailSlurpClient
98
103
  self.to = value
99
104
  end
100
105
  end
106
+
107
+ if attributes.key?(:'use_inbox_name')
108
+ self.use_inbox_name = attributes[:'use_inbox_name']
109
+ end
101
110
  end
102
111
 
103
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,7 +131,8 @@ module MailSlurpClient
122
131
  cc == o.cc &&
123
132
  from == o.from &&
124
133
  subject == o.subject &&
125
- to == o.to
134
+ to == o.to &&
135
+ use_inbox_name == o.use_inbox_name
126
136
  end
127
137
 
128
138
  # @see the `==` method
@@ -134,7 +144,7 @@ module MailSlurpClient
134
144
  # Calculates hash code according to all attributes.
135
145
  # @return [Integer] Hash code
136
146
  def hash
137
- [bcc, cc, from, subject, to].hash
147
+ [bcc, cc, from, subject, to, use_inbox_name].hash
138
148
  end
139
149
 
140
150
  # Builds the object from hash
@@ -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 not 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.
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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '12.0.0'
14
+ VERSION = '12.1.0'
15
15
  end
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: 12.0.0
4
+ version: 12.1.0
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-22 00:00:00.000000000 Z
11
+ date: 2021-05-29 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.