mailslurp_client 15.5.4 → 15.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -11
  3. data/lib/mailslurp_client/api/api_internal_controller_api.rb +89 -0
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +1 -1
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +64 -0
  6. data/lib/mailslurp_client/api/email_verification_controller_api.rb +179 -0
  7. data/lib/mailslurp_client/api/mail_server_controller_api.rb +2 -2
  8. data/lib/mailslurp_client/models/alias_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  10. data/lib/mailslurp_client/models/bounce_recipient.rb +0 -5
  11. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +0 -5
  12. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  13. data/lib/mailslurp_client/models/email_projection.rb +23 -23
  14. data/lib/mailslurp_client/models/email_validation_request.rb +276 -0
  15. data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +213 -0
  16. data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +213 -0
  17. data/lib/mailslurp_client/models/get_or_create_saml_user_options.rb +234 -0
  18. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  19. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  20. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  21. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  22. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  24. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_email_validation_request.rb +308 -0
  26. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  29. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  31. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  39. data/lib/mailslurp_client/models/send_email_options.rb +36 -4
  40. data/lib/mailslurp_client/models/sent_email_dto.rb +13 -4
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +26 -26
  42. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  43. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  46. data/lib/mailslurp_client/models/user_dto.rb +438 -0
  47. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +213 -0
  48. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +245 -0
  49. data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
  50. data/lib/mailslurp_client/version.rb +1 -1
  51. data/lib/mailslurp_client.rb +10 -0
  52. metadata +12 -2
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookResultDto>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -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
@@ -23,11 +23,9 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :attachments
27
-
28
26
  attr_accessor :inbox_id
29
27
 
30
- attr_accessor :created_at
28
+ attr_accessor :attachments
31
29
 
32
30
  attr_accessor :to
33
31
 
@@ -35,6 +33,8 @@ module MailSlurpClient
35
33
 
36
34
  attr_accessor :cc
37
35
 
36
+ attr_accessor :created_at
37
+
38
38
  attr_accessor :body_md5_hash
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -44,12 +44,12 @@ module MailSlurpClient
44
44
  :'from' => :'from',
45
45
  :'user_id' => :'userId',
46
46
  :'subject' => :'subject',
47
- :'attachments' => :'attachments',
48
47
  :'inbox_id' => :'inboxId',
49
- :'created_at' => :'createdAt',
48
+ :'attachments' => :'attachments',
50
49
  :'to' => :'to',
51
50
  :'bcc' => :'bcc',
52
51
  :'cc' => :'cc',
52
+ :'created_at' => :'createdAt',
53
53
  :'body_md5_hash' => :'bodyMD5Hash'
54
54
  }
55
55
  end
@@ -61,12 +61,12 @@ module MailSlurpClient
61
61
  :'from' => :'String',
62
62
  :'user_id' => :'String',
63
63
  :'subject' => :'String',
64
- :'attachments' => :'Array<String>',
65
64
  :'inbox_id' => :'String',
66
- :'created_at' => :'DateTime',
65
+ :'attachments' => :'Array<String>',
67
66
  :'to' => :'Array<String>',
68
67
  :'bcc' => :'Array<String>',
69
68
  :'cc' => :'Array<String>',
69
+ :'created_at' => :'DateTime',
70
70
  :'body_md5_hash' => :'String'
71
71
  }
72
72
  end
@@ -108,18 +108,14 @@ module MailSlurpClient
108
108
  self.subject = attributes[:'subject']
109
109
  end
110
110
 
111
- if attributes.key?(:'attachments')
112
- if (value = attributes[:'attachments']).is_a?(Array)
113
- self.attachments = value
114
- end
115
- end
116
-
117
111
  if attributes.key?(:'inbox_id')
118
112
  self.inbox_id = attributes[:'inbox_id']
119
113
  end
120
114
 
121
- if attributes.key?(:'created_at')
122
- self.created_at = attributes[:'created_at']
115
+ if attributes.key?(:'attachments')
116
+ if (value = attributes[:'attachments']).is_a?(Array)
117
+ self.attachments = value
118
+ end
123
119
  end
124
120
 
125
121
  if attributes.key?(:'to')
@@ -140,6 +136,10 @@ module MailSlurpClient
140
136
  end
141
137
  end
142
138
 
139
+ if attributes.key?(:'created_at')
140
+ self.created_at = attributes[:'created_at']
141
+ end
142
+
143
143
  if attributes.key?(:'body_md5_hash')
144
144
  self.body_md5_hash = attributes[:'body_md5_hash']
145
145
  end
@@ -157,16 +157,12 @@ module MailSlurpClient
157
157
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
158
158
  end
159
159
 
160
- if @attachments.nil?
161
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
162
- end
163
-
164
160
  if @inbox_id.nil?
165
161
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
166
162
  end
167
163
 
168
- if @created_at.nil?
169
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
164
+ if @attachments.nil?
165
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
170
166
  end
171
167
 
172
168
  if @to.nil?
@@ -181,6 +177,10 @@ module MailSlurpClient
181
177
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
182
178
  end
183
179
 
180
+ if @created_at.nil?
181
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
+ end
183
+
184
184
  invalid_properties
185
185
  end
186
186
 
@@ -189,12 +189,12 @@ module MailSlurpClient
189
189
  def valid?
190
190
  return false if @id.nil?
191
191
  return false if @user_id.nil?
192
- return false if @attachments.nil?
193
192
  return false if @inbox_id.nil?
194
- return false if @created_at.nil?
193
+ return false if @attachments.nil?
195
194
  return false if @to.nil?
196
195
  return false if @bcc.nil?
197
196
  return false if @cc.nil?
197
+ return false if @created_at.nil?
198
198
  true
199
199
  end
200
200
 
@@ -207,12 +207,12 @@ module MailSlurpClient
207
207
  from == o.from &&
208
208
  user_id == o.user_id &&
209
209
  subject == o.subject &&
210
- attachments == o.attachments &&
211
210
  inbox_id == o.inbox_id &&
212
- created_at == o.created_at &&
211
+ attachments == o.attachments &&
213
212
  to == o.to &&
214
213
  bcc == o.bcc &&
215
214
  cc == o.cc &&
215
+ created_at == o.created_at &&
216
216
  body_md5_hash == o.body_md5_hash
217
217
  end
218
218
 
@@ -225,7 +225,7 @@ module MailSlurpClient
225
225
  # Calculates hash code according to all attributes.
226
226
  # @return [Integer] Hash code
227
227
  def hash
228
- [id, from, user_id, subject, attachments, inbox_id, created_at, to, bcc, cc, body_md5_hash].hash
228
+ [id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -20,18 +20,18 @@ module MailSlurpClient
20
20
 
21
21
  attr_accessor :created_at
22
22
 
23
- attr_accessor :variables
24
-
25
23
  attr_accessor :updated_at
26
24
 
25
+ attr_accessor :variables
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'name' => :'name',
31
31
  :'id' => :'id',
32
32
  :'created_at' => :'createdAt',
33
- :'variables' => :'variables',
34
- :'updated_at' => :'updatedAt'
33
+ :'updated_at' => :'updatedAt',
34
+ :'variables' => :'variables'
35
35
  }
36
36
  end
37
37
 
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  :'name' => :'String',
42
42
  :'id' => :'String',
43
43
  :'created_at' => :'DateTime',
44
- :'variables' => :'Array<String>',
45
- :'updated_at' => :'DateTime'
44
+ :'updated_at' => :'DateTime',
45
+ :'variables' => :'Array<String>'
46
46
  }
47
47
  end
48
48
 
@@ -79,15 +79,15 @@ module MailSlurpClient
79
79
  self.created_at = attributes[:'created_at']
80
80
  end
81
81
 
82
+ if attributes.key?(:'updated_at')
83
+ self.updated_at = attributes[:'updated_at']
84
+ end
85
+
82
86
  if attributes.key?(:'variables')
83
87
  if (value = attributes[:'variables']).is_a?(Array)
84
88
  self.variables = value
85
89
  end
86
90
  end
87
-
88
- if attributes.key?(:'updated_at')
89
- self.updated_at = attributes[:'updated_at']
90
- end
91
91
  end
92
92
 
93
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,14 +106,14 @@ module MailSlurpClient
106
106
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
107
107
  end
108
108
 
109
- if @variables.nil?
110
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
111
- end
112
-
113
109
  if @updated_at.nil?
114
110
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
115
111
  end
116
112
 
113
+ if @variables.nil?
114
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  return false if @name.nil?
124
124
  return false if @id.nil?
125
125
  return false if @created_at.nil?
126
- return false if @variables.nil?
127
126
  return false if @updated_at.nil?
127
+ return false if @variables.nil?
128
128
  true
129
129
  end
130
130
 
@@ -136,8 +136,8 @@ module MailSlurpClient
136
136
  name == o.name &&
137
137
  id == o.id &&
138
138
  created_at == o.created_at &&
139
- variables == o.variables &&
140
- updated_at == o.updated_at
139
+ updated_at == o.updated_at &&
140
+ variables == o.variables
141
141
  end
142
142
 
143
143
  # @see the `==` method
@@ -149,7 +149,7 @@ module MailSlurpClient
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Integer] Hash code
151
151
  def hash
152
- [name, id, created_at, variables, updated_at].hash
152
+ [name, id, created_at, updated_at, variables].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash