mailslurp_client 15.5.6 → 15.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_internal_controller_api.rb +89 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +64 -0
  4. data/lib/mailslurp_client/api/email_verification_controller_api.rb +179 -0
  5. data/lib/mailslurp_client/api/mail_server_controller_api.rb +2 -2
  6. data/lib/mailslurp_client/models/alias_projection.rb +10 -10
  7. data/lib/mailslurp_client/models/bounce_recipient.rb +0 -5
  8. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +0 -5
  9. data/lib/mailslurp_client/models/email_projection.rb +12 -12
  10. data/lib/mailslurp_client/models/email_validation_request.rb +276 -0
  11. data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +213 -0
  12. data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +213 -0
  13. data/lib/mailslurp_client/models/get_or_create_saml_user_options.rb +234 -0
  14. data/lib/mailslurp_client/models/page_email_validation_request.rb +308 -0
  15. data/lib/mailslurp_client/models/send_email_options.rb +36 -4
  16. data/lib/mailslurp_client/models/sent_email_dto.rb +13 -4
  17. data/lib/mailslurp_client/models/sent_email_projection.rb +17 -17
  18. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/user_dto.rb +438 -0
  20. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +213 -0
  21. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +245 -0
  22. data/lib/mailslurp_client/version.rb +1 -1
  23. data/lib/mailslurp_client.rb +10 -0
  24. metadata +12 -2
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #MailSlurp API
3
+
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
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class GetOrCreateSamlUserOptions
17
+ attr_accessor :issuer
18
+
19
+ attr_accessor :name_id
20
+
21
+ attr_accessor :name_id_format
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'issuer' => :'issuer',
27
+ :'name_id' => :'nameId',
28
+ :'name_id_format' => :'nameIdFormat'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'issuer' => :'String',
36
+ :'name_id' => :'String',
37
+ :'name_id_format' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::GetOrCreateSamlUserOptions` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::GetOrCreateSamlUserOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'issuer')
63
+ self.issuer = attributes[:'issuer']
64
+ end
65
+
66
+ if attributes.key?(:'name_id')
67
+ self.name_id = attributes[:'name_id']
68
+ end
69
+
70
+ if attributes.key?(:'name_id_format')
71
+ self.name_id_format = attributes[:'name_id_format']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if @issuer.nil?
80
+ invalid_properties.push('invalid value for "issuer", issuer cannot be nil.')
81
+ end
82
+
83
+ if @name_id.nil?
84
+ invalid_properties.push('invalid value for "name_id", name_id cannot be nil.')
85
+ end
86
+
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ return false if @issuer.nil?
94
+ return false if @name_id.nil?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ issuer == o.issuer &&
104
+ name_id == o.name_id &&
105
+ name_id_format == o.name_id_format
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [issuer, name_id, name_id_format].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
+ end
139
+ elsif !attributes[self.class.attribute_map[key]].nil?
140
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ MailSlurpClient.const_get(type).build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+ end
234
+ end
@@ -0,0 +1,308 @@
1
+ =begin
2
+ #MailSlurp API
3
+
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
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ # Paginated email validation request records. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls.
17
+ class PageEmailValidationRequest
18
+ attr_accessor :content
19
+
20
+ attr_accessor :pageable
21
+
22
+ attr_accessor :total
23
+
24
+ attr_accessor :total_elements
25
+
26
+ attr_accessor :total_pages
27
+
28
+ attr_accessor :last
29
+
30
+ attr_accessor :size
31
+
32
+ attr_accessor :number
33
+
34
+ attr_accessor :sort
35
+
36
+ attr_accessor :number_of_elements
37
+
38
+ attr_accessor :first
39
+
40
+ attr_accessor :empty
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'content' => :'content',
46
+ :'pageable' => :'pageable',
47
+ :'total' => :'total',
48
+ :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
+ :'size' => :'size',
52
+ :'number' => :'number',
53
+ :'sort' => :'sort',
54
+ :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
+ :'empty' => :'empty'
57
+ }
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'content' => :'Array<EmailValidationRequest>',
64
+ :'pageable' => :'PageableObject',
65
+ :'total' => :'Integer',
66
+ :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
+ :'size' => :'Integer',
70
+ :'number' => :'Integer',
71
+ :'sort' => :'Sort',
72
+ :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
+ :'empty' => :'Boolean'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::PageEmailValidationRequest` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!self.class.attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::PageEmailValidationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'content')
100
+ if (value = attributes[:'content']).is_a?(Array)
101
+ self.content = value
102
+ end
103
+ end
104
+
105
+ if attributes.key?(:'pageable')
106
+ self.pageable = attributes[:'pageable']
107
+ end
108
+
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
111
+ end
112
+
113
+ if attributes.key?(:'total_elements')
114
+ self.total_elements = attributes[:'total_elements']
115
+ end
116
+
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
+ if attributes.key?(:'size')
126
+ self.size = attributes[:'size']
127
+ end
128
+
129
+ if attributes.key?(:'number')
130
+ self.number = attributes[:'number']
131
+ end
132
+
133
+ if attributes.key?(:'sort')
134
+ self.sort = attributes[:'sort']
135
+ end
136
+
137
+ if attributes.key?(:'number_of_elements')
138
+ self.number_of_elements = attributes[:'number_of_elements']
139
+ end
140
+
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
+ if attributes.key?(:'empty')
146
+ self.empty = attributes[:'empty']
147
+ end
148
+ end
149
+
150
+ # Show invalid properties with the reasons. Usually used together with valid?
151
+ # @return Array for valid properties with the reasons
152
+ def list_invalid_properties
153
+ invalid_properties = Array.new
154
+ invalid_properties
155
+ end
156
+
157
+ # Check to see if the all the properties in the model are valid
158
+ # @return true if the model is valid
159
+ def valid?
160
+ true
161
+ end
162
+
163
+ # Checks equality by comparing each attribute.
164
+ # @param [Object] Object to be compared
165
+ def ==(o)
166
+ return true if self.equal?(o)
167
+ self.class == o.class &&
168
+ content == o.content &&
169
+ pageable == o.pageable &&
170
+ total == o.total &&
171
+ total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
173
+ last == o.last &&
174
+ size == o.size &&
175
+ number == o.number &&
176
+ sort == o.sort &&
177
+ number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
+ empty == o.empty
180
+ end
181
+
182
+ # @see the `==` method
183
+ # @param [Object] Object to be compared
184
+ def eql?(o)
185
+ self == o
186
+ end
187
+
188
+ # Calculates hash code according to all attributes.
189
+ # @return [Integer] Hash code
190
+ def hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def self.build_from_hash(attributes)
198
+ new.build_from_hash(attributes)
199
+ end
200
+
201
+ # Builds the object from hash
202
+ # @param [Hash] attributes Model attributes in the form of hash
203
+ # @return [Object] Returns the model itself
204
+ def build_from_hash(attributes)
205
+ return nil unless attributes.is_a?(Hash)
206
+ self.class.openapi_types.each_pair do |key, type|
207
+ if type =~ /\AArray<(.*)>/i
208
+ # check to ensure the input is an array given that the attribute
209
+ # is documented as an array but the input is not
210
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
211
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
212
+ end
213
+ elsif !attributes[self.class.attribute_map[key]].nil?
214
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
215
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
216
+ end
217
+
218
+ self
219
+ end
220
+
221
+ # Deserializes the data based on type
222
+ # @param string type Data type
223
+ # @param string value Value to be deserialized
224
+ # @return [Object] Deserialized data
225
+ def _deserialize(type, value)
226
+ case type.to_sym
227
+ when :DateTime
228
+ DateTime.parse(value)
229
+ when :Date
230
+ Date.parse(value)
231
+ when :String
232
+ value.to_s
233
+ when :Integer
234
+ value.to_i
235
+ when :Float
236
+ value.to_f
237
+ when :Boolean
238
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
239
+ true
240
+ else
241
+ false
242
+ end
243
+ when :Object
244
+ # generic object (usually a Hash), return directly
245
+ value
246
+ when /\AArray<(?<inner_type>.+)>\z/
247
+ inner_type = Regexp.last_match[:inner_type]
248
+ value.map { |v| _deserialize(inner_type, v) }
249
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
250
+ k_type = Regexp.last_match[:k_type]
251
+ v_type = Regexp.last_match[:v_type]
252
+ {}.tap do |hash|
253
+ value.each do |k, v|
254
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
255
+ end
256
+ end
257
+ else # model
258
+ MailSlurpClient.const_get(type).build_from_hash(value)
259
+ end
260
+ end
261
+
262
+ # Returns the string representation of the object
263
+ # @return [String] String presentation of the object
264
+ def to_s
265
+ to_hash.to_s
266
+ end
267
+
268
+ # to_body is an alias to to_hash (backward compatibility)
269
+ # @return [Hash] Returns the object in the form of hash
270
+ def to_body
271
+ to_hash
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ # Outputs non-array value in the form of hash
291
+ # For object, use to_hash. Otherwise, just return the value
292
+ # @param [Object] value Any valid value
293
+ # @return [Hash] Returns the value in the form of hash
294
+ def _to_hash(value)
295
+ if value.is_a?(Array)
296
+ value.compact.map { |v| _to_hash(v) }
297
+ elsif value.is_a?(Hash)
298
+ {}.tap do |hash|
299
+ value.each { |k, v| hash[k] = _to_hash(v) }
300
+ end
301
+ elsif value.respond_to? :to_hash
302
+ value.to_hash
303
+ else
304
+ value
305
+ end
306
+ end
307
+ end
308
+ end
@@ -69,6 +69,12 @@ module MailSlurpClient
69
69
  # Add tracking pixel to email
70
70
  attr_accessor :add_tracking_pixel
71
71
 
72
+ # Filter recipients to remove any bounced recipients from to, bcc, and cc before sending
73
+ attr_accessor :filter_bounced_recipients
74
+
75
+ # Validate recipient email addresses before sending
76
+ attr_accessor :validate_email_addresses
77
+
72
78
  class EnumAttributeValidator
73
79
  attr_reader :datatype
74
80
  attr_reader :allowable_values
@@ -111,7 +117,9 @@ module MailSlurpClient
111
117
  :'template' => :'template',
112
118
  :'send_strategy' => :'sendStrategy',
113
119
  :'use_inbox_name' => :'useInboxName',
114
- :'add_tracking_pixel' => :'addTrackingPixel'
120
+ :'add_tracking_pixel' => :'addTrackingPixel',
121
+ :'filter_bounced_recipients' => :'filterBouncedRecipients',
122
+ :'validate_email_addresses' => :'validateEmailAddresses'
115
123
  }
116
124
  end
117
125
 
@@ -135,7 +143,9 @@ module MailSlurpClient
135
143
  :'template' => :'String',
136
144
  :'send_strategy' => :'String',
137
145
  :'use_inbox_name' => :'Boolean',
138
- :'add_tracking_pixel' => :'Boolean'
146
+ :'add_tracking_pixel' => :'Boolean',
147
+ :'filter_bounced_recipients' => :'Boolean',
148
+ :'validate_email_addresses' => :'String'
139
149
  }
140
150
  end
141
151
 
@@ -243,6 +253,14 @@ module MailSlurpClient
243
253
  if attributes.key?(:'add_tracking_pixel')
244
254
  self.add_tracking_pixel = attributes[:'add_tracking_pixel']
245
255
  end
256
+
257
+ if attributes.key?(:'filter_bounced_recipients')
258
+ self.filter_bounced_recipients = attributes[:'filter_bounced_recipients']
259
+ end
260
+
261
+ if attributes.key?(:'validate_email_addresses')
262
+ self.validate_email_addresses = attributes[:'validate_email_addresses']
263
+ end
246
264
  end
247
265
 
248
266
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -257,6 +275,8 @@ module MailSlurpClient
257
275
  def valid?
258
276
  send_strategy_validator = EnumAttributeValidator.new('String', ["SINGLE_MESSAGE"])
259
277
  return false unless send_strategy_validator.valid?(@send_strategy)
278
+ validate_email_addresses_validator = EnumAttributeValidator.new('String', ["VALIDATE_FILTER_REMOVE_INVALID", "VALIDATE_ERROR_IF_INVALID", "NO_VALIDATION"])
279
+ return false unless validate_email_addresses_validator.valid?(@validate_email_addresses)
260
280
  true
261
281
  end
262
282
 
@@ -270,6 +290,16 @@ module MailSlurpClient
270
290
  @send_strategy = send_strategy
271
291
  end
272
292
 
293
+ # Custom attribute writer method checking allowed values (enum).
294
+ # @param [Object] validate_email_addresses Object to be assigned
295
+ def validate_email_addresses=(validate_email_addresses)
296
+ validator = EnumAttributeValidator.new('String', ["VALIDATE_FILTER_REMOVE_INVALID", "VALIDATE_ERROR_IF_INVALID", "NO_VALIDATION"])
297
+ unless validator.valid?(validate_email_addresses)
298
+ fail ArgumentError, "invalid value for \"validate_email_addresses\", must be one of #{validator.allowable_values}."
299
+ end
300
+ @validate_email_addresses = validate_email_addresses
301
+ end
302
+
273
303
  # Checks equality by comparing each attribute.
274
304
  # @param [Object] Object to be compared
275
305
  def ==(o)
@@ -292,7 +322,9 @@ module MailSlurpClient
292
322
  template == o.template &&
293
323
  send_strategy == o.send_strategy &&
294
324
  use_inbox_name == o.use_inbox_name &&
295
- add_tracking_pixel == o.add_tracking_pixel
325
+ add_tracking_pixel == o.add_tracking_pixel &&
326
+ filter_bounced_recipients == o.filter_bounced_recipients &&
327
+ validate_email_addresses == o.validate_email_addresses
296
328
  end
297
329
 
298
330
  # @see the `==` method
@@ -304,7 +336,7 @@ module MailSlurpClient
304
336
  # Calculates hash code according to all attributes.
305
337
  # @return [Integer] Hash code
306
338
  def hash
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
339
+ [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, filter_bounced_recipients, validate_email_addresses].hash
308
340
  end
309
341
 
310
342
  # Builds the object from hash
@@ -53,6 +53,8 @@ module MailSlurpClient
53
53
 
54
54
  attr_accessor :pixel_ids
55
55
 
56
+ attr_accessor :message_id
57
+
56
58
  # Attribute mapping from ruby-style variable name to JSON key.
57
59
  def self.attribute_map
58
60
  {
@@ -71,7 +73,8 @@ module MailSlurpClient
71
73
  :'charset' => :'charset',
72
74
  :'is_html' => :'isHTML',
73
75
  :'sent_at' => :'sentAt',
74
- :'pixel_ids' => :'pixelIds'
76
+ :'pixel_ids' => :'pixelIds',
77
+ :'message_id' => :'messageId'
75
78
  }
76
79
  end
77
80
 
@@ -93,7 +96,8 @@ module MailSlurpClient
93
96
  :'charset' => :'String',
94
97
  :'is_html' => :'Boolean',
95
98
  :'sent_at' => :'DateTime',
96
- :'pixel_ids' => :'Array<String>'
99
+ :'pixel_ids' => :'Array<String>',
100
+ :'message_id' => :'String'
97
101
  }
98
102
  end
99
103
 
@@ -191,6 +195,10 @@ module MailSlurpClient
191
195
  self.pixel_ids = value
192
196
  end
193
197
  end
198
+
199
+ if attributes.key?(:'message_id')
200
+ self.message_id = attributes[:'message_id']
201
+ end
194
202
  end
195
203
 
196
204
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -246,7 +254,8 @@ module MailSlurpClient
246
254
  charset == o.charset &&
247
255
  is_html == o.is_html &&
248
256
  sent_at == o.sent_at &&
249
- pixel_ids == o.pixel_ids
257
+ pixel_ids == o.pixel_ids &&
258
+ message_id == o.message_id
250
259
  end
251
260
 
252
261
  # @see the `==` method
@@ -258,7 +267,7 @@ module MailSlurpClient
258
267
  # Calculates hash code according to all attributes.
259
268
  # @return [Integer] Hash code
260
269
  def hash
261
- [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids].hash
270
+ [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id].hash
262
271
  end
263
272
 
264
273
  # Builds the object from hash