mailslurp_client 15.12.16 → 15.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
  3. data/lib/mailslurp_client/api/phone_controller_api.rb +64 -0
  4. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
  5. data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
  6. data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
  7. data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
  8. data/lib/mailslurp_client/models/alias_projection.rb +19 -19
  9. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  10. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  11. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  12. data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
  13. data/lib/mailslurp_client/models/email.rb +11 -1
  14. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  15. data/lib/mailslurp_client/models/email_projection.rb +42 -33
  16. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  17. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  18. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  20. data/lib/mailslurp_client/models/page_delivery_status.rb +1 -1
  21. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  22. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  23. data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
  24. data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
  25. data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
  26. data/lib/mailslurp_client/models/sms_preview.rb +15 -1
  27. data/lib/mailslurp_client/models/sms_projection.rb +32 -18
  28. data/lib/mailslurp_client/models/sort.rb +13 -13
  29. data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
  30. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  31. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
  33. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  34. data/lib/mailslurp_client/version.rb +1 -1
  35. data/lib/mailslurp_client.rb +4 -2
  36. metadata +6 -4
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
22
25
  attr_accessor :email_address
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'email_address' => :'emailAddress',
75
79
  :'created_at' => :'createdAt',
76
80
  :'favourite' => :'favourite',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'email_address' => :'String',
91
96
  :'created_at' => :'DateTime',
92
97
  :'favourite' => :'Boolean',
@@ -129,6 +134,10 @@ module MailSlurpClient
129
134
  self.id = attributes[:'id']
130
135
  end
131
136
 
137
+ if attributes.key?(:'domain_id')
138
+ self.domain_id = attributes[:'domain_id']
139
+ end
140
+
132
141
  if attributes.key?(:'email_address')
133
142
  self.email_address = attributes[:'email_address']
134
143
  end
@@ -224,6 +233,7 @@ module MailSlurpClient
224
233
  return true if self.equal?(o)
225
234
  self.class == o.class &&
226
235
  id == o.id &&
236
+ domain_id == o.domain_id &&
227
237
  email_address == o.email_address &&
228
238
  created_at == o.created_at &&
229
239
  favourite == o.favourite &&
@@ -244,7 +254,7 @@ module MailSlurpClient
244
254
  # Calculates hash code according to all attributes.
245
255
  # @return [Integer] Hash code
246
256
  def hash
247
- [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
257
+ [id, domain_id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
248
258
  end
249
259
 
250
260
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :subject
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :created_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
- :'user_id' => :'userId',
34
33
  :'subject' => :'subject',
34
+ :'user_id' => :'userId',
35
35
  :'created_at' => :'createdAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
- :'user_id' => :'String',
45
44
  :'subject' => :'String',
45
+ :'user_id' => :'String',
46
46
  :'created_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,14 +76,14 @@ module MailSlurpClient
76
76
  self.from = attributes[:'from']
77
77
  end
78
78
 
79
- if attributes.key?(:'user_id')
80
- self.user_id = attributes[:'user_id']
81
- end
82
-
83
79
  if attributes.key?(:'subject')
84
80
  self.subject = attributes[:'subject']
85
81
  end
86
82
 
83
+ if attributes.key?(:'user_id')
84
+ self.user_id = attributes[:'user_id']
85
+ end
86
+
87
87
  if attributes.key?(:'created_at')
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  self.class == o.class &&
120
120
  id == o.id &&
121
121
  from == o.from &&
122
- user_id == o.user_id &&
123
122
  subject == o.subject &&
123
+ user_id == o.user_id &&
124
124
  created_at == o.created_at
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [id, from, user_id, subject, created_at].hash
136
+ [id, from, subject, user_id, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
22
25
  attr_accessor :created_at
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'created_at' => :'createdAt',
75
79
  :'name' => :'name',
76
80
  :'email_address' => :'emailAddress',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'created_at' => :'DateTime',
91
96
  :'name' => :'String',
92
97
  :'email_address' => :'String',
@@ -128,6 +133,10 @@ module MailSlurpClient
128
133
  self.id = attributes[:'id']
129
134
  end
130
135
 
136
+ if attributes.key?(:'domain_id')
137
+ self.domain_id = attributes[:'domain_id']
138
+ end
139
+
131
140
  if attributes.key?(:'created_at')
132
141
  self.created_at = attributes[:'created_at']
133
142
  end
@@ -228,6 +237,7 @@ module MailSlurpClient
228
237
  return true if self.equal?(o)
229
238
  self.class == o.class &&
230
239
  id == o.id &&
240
+ domain_id == o.domain_id &&
231
241
  created_at == o.created_at &&
232
242
  name == o.name &&
233
243
  email_address == o.email_address &&
@@ -248,7 +258,7 @@ module MailSlurpClient
248
258
  # Calculates hash code according to all attributes.
249
259
  # @return [Integer] Hash code
250
260
  def hash
251
- [id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
261
+ [id, domain_id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
252
262
  end
253
263
 
254
264
  # Builds the object from hash
@@ -60,7 +60,7 @@ module MailSlurpClient
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'content' => :'Array<DeliveryStatus>',
63
+ :'content' => :'Array<DeliveryStatusDto>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
@@ -28,12 +28,12 @@ module MailSlurpClient
28
28
  # Page number starting at 0
29
29
  attr_accessor :number
30
30
 
31
- # Total number of pages available
32
- attr_accessor :total_pages
33
-
34
31
  # Number of items returned
35
32
  attr_accessor :number_of_elements
36
33
 
34
+ # Total number of pages available
35
+ attr_accessor :total_pages
36
+
37
37
  # Total number of items available for querying
38
38
  attr_accessor :total_elements
39
39
 
@@ -53,8 +53,8 @@ module MailSlurpClient
53
53
  :'total' => :'total',
54
54
  :'size' => :'size',
55
55
  :'number' => :'number',
56
- :'total_pages' => :'totalPages',
57
56
  :'number_of_elements' => :'numberOfElements',
57
+ :'total_pages' => :'totalPages',
58
58
  :'total_elements' => :'totalElements',
59
59
  :'last' => :'last',
60
60
  :'sort' => :'sort',
@@ -71,8 +71,8 @@ module MailSlurpClient
71
71
  :'total' => :'Integer',
72
72
  :'size' => :'Integer',
73
73
  :'number' => :'Integer',
74
- :'total_pages' => :'Integer',
75
74
  :'number_of_elements' => :'Integer',
75
+ :'total_pages' => :'Integer',
76
76
  :'total_elements' => :'Integer',
77
77
  :'last' => :'Boolean',
78
78
  :'sort' => :'Sort',
@@ -124,14 +124,14 @@ module MailSlurpClient
124
124
  self.number = attributes[:'number']
125
125
  end
126
126
 
127
- if attributes.key?(:'total_pages')
128
- self.total_pages = attributes[:'total_pages']
129
- end
130
-
131
127
  if attributes.key?(:'number_of_elements')
132
128
  self.number_of_elements = attributes[:'number_of_elements']
133
129
  end
134
130
 
131
+ if attributes.key?(:'total_pages')
132
+ self.total_pages = attributes[:'total_pages']
133
+ end
134
+
135
135
  if attributes.key?(:'total_elements')
136
136
  self.total_elements = attributes[:'total_elements']
137
137
  end
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "number", number cannot be nil.')
170
170
  end
171
171
 
172
- if @total_pages.nil?
173
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
174
- end
175
-
176
172
  if @number_of_elements.nil?
177
173
  invalid_properties.push('invalid value for "number_of_elements", number_of_elements cannot be nil.')
178
174
  end
179
175
 
176
+ if @total_pages.nil?
177
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
178
+ end
179
+
180
180
  if @total_elements.nil?
181
181
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
182
182
  end
@@ -190,8 +190,8 @@ module MailSlurpClient
190
190
  return false if @content.nil?
191
191
  return false if @size.nil?
192
192
  return false if @number.nil?
193
- return false if @total_pages.nil?
194
193
  return false if @number_of_elements.nil?
194
+ return false if @total_pages.nil?
195
195
  return false if @total_elements.nil?
196
196
  true
197
197
  end
@@ -206,8 +206,8 @@ module MailSlurpClient
206
206
  total == o.total &&
207
207
  size == o.size &&
208
208
  number == o.number &&
209
- total_pages == o.total_pages &&
210
209
  number_of_elements == o.number_of_elements &&
210
+ total_pages == o.total_pages &&
211
211
  total_elements == o.total_elements &&
212
212
  last == o.last &&
213
213
  sort == o.sort &&
@@ -224,7 +224,7 @@ module MailSlurpClient
224
224
  # Calculates hash code according to all attributes.
225
225
  # @return [Integer] Hash code
226
226
  def hash
227
- [content, pageable, total, size, number, total_pages, number_of_elements, total_elements, last, sort, first, empty].hash
227
+ [content, pageable, total, size, number, number_of_elements, total_pages, total_elements, last, sort, first, empty].hash
228
228
  end
229
229
 
230
230
  # Builds the object from hash
@@ -28,12 +28,12 @@ module MailSlurpClient
28
28
  # Page number starting at 0
29
29
  attr_accessor :number
30
30
 
31
- # Total number of pages available
32
- attr_accessor :total_pages
33
-
34
31
  # Number of items returned
35
32
  attr_accessor :number_of_elements
36
33
 
34
+ # Total number of pages available
35
+ attr_accessor :total_pages
36
+
37
37
  # Total number of items available for querying
38
38
  attr_accessor :total_elements
39
39
 
@@ -53,8 +53,8 @@ module MailSlurpClient
53
53
  :'total' => :'total',
54
54
  :'size' => :'size',
55
55
  :'number' => :'number',
56
- :'total_pages' => :'totalPages',
57
56
  :'number_of_elements' => :'numberOfElements',
57
+ :'total_pages' => :'totalPages',
58
58
  :'total_elements' => :'totalElements',
59
59
  :'last' => :'last',
60
60
  :'sort' => :'sort',
@@ -71,8 +71,8 @@ module MailSlurpClient
71
71
  :'total' => :'Integer',
72
72
  :'size' => :'Integer',
73
73
  :'number' => :'Integer',
74
- :'total_pages' => :'Integer',
75
74
  :'number_of_elements' => :'Integer',
75
+ :'total_pages' => :'Integer',
76
76
  :'total_elements' => :'Integer',
77
77
  :'last' => :'Boolean',
78
78
  :'sort' => :'Sort',
@@ -124,14 +124,14 @@ module MailSlurpClient
124
124
  self.number = attributes[:'number']
125
125
  end
126
126
 
127
- if attributes.key?(:'total_pages')
128
- self.total_pages = attributes[:'total_pages']
129
- end
130
-
131
127
  if attributes.key?(:'number_of_elements')
132
128
  self.number_of_elements = attributes[:'number_of_elements']
133
129
  end
134
130
 
131
+ if attributes.key?(:'total_pages')
132
+ self.total_pages = attributes[:'total_pages']
133
+ end
134
+
135
135
  if attributes.key?(:'total_elements')
136
136
  self.total_elements = attributes[:'total_elements']
137
137
  end
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "number", number cannot be nil.')
170
170
  end
171
171
 
172
- if @total_pages.nil?
173
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
174
- end
175
-
176
172
  if @number_of_elements.nil?
177
173
  invalid_properties.push('invalid value for "number_of_elements", number_of_elements cannot be nil.')
178
174
  end
179
175
 
176
+ if @total_pages.nil?
177
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
178
+ end
179
+
180
180
  if @total_elements.nil?
181
181
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
182
182
  end
@@ -190,8 +190,8 @@ module MailSlurpClient
190
190
  return false if @content.nil?
191
191
  return false if @size.nil?
192
192
  return false if @number.nil?
193
- return false if @total_pages.nil?
194
193
  return false if @number_of_elements.nil?
194
+ return false if @total_pages.nil?
195
195
  return false if @total_elements.nil?
196
196
  true
197
197
  end
@@ -206,8 +206,8 @@ module MailSlurpClient
206
206
  total == o.total &&
207
207
  size == o.size &&
208
208
  number == o.number &&
209
- total_pages == o.total_pages &&
210
209
  number_of_elements == o.number_of_elements &&
210
+ total_pages == o.total_pages &&
211
211
  total_elements == o.total_elements &&
212
212
  last == o.last &&
213
213
  sort == o.sort &&
@@ -224,7 +224,7 @@ module MailSlurpClient
224
224
  # Calculates hash code according to all attributes.
225
225
  # @return [Integer] Hash code
226
226
  def hash
227
- [content, pageable, total, size, number, total_pages, number_of_elements, total_elements, last, sort, first, empty].hash
227
+ [content, pageable, total, size, number, number_of_elements, total_pages, total_elements, last, sort, first, empty].hash
228
228
  end
229
229
 
230
230
  # Builds the object from hash
@@ -24,6 +24,9 @@ module MailSlurpClient
24
24
  # Inbox ID email was sent from
25
25
  attr_accessor :inbox_id
26
26
 
27
+ # Domain ID
28
+ attr_accessor :domain_id
29
+
27
30
  # Recipients email was sent to
28
31
  attr_accessor :to
29
32
 
@@ -75,6 +78,7 @@ module MailSlurpClient
75
78
  :'id' => :'id',
76
79
  :'user_id' => :'userId',
77
80
  :'inbox_id' => :'inboxId',
81
+ :'domain_id' => :'domainId',
78
82
  :'to' => :'to',
79
83
  :'from' => :'from',
80
84
  :'reply_to' => :'replyTo',
@@ -105,6 +109,7 @@ module MailSlurpClient
105
109
  :'id' => :'String',
106
110
  :'user_id' => :'String',
107
111
  :'inbox_id' => :'String',
112
+ :'domain_id' => :'String',
108
113
  :'to' => :'Array<String>',
109
114
  :'from' => :'String',
110
115
  :'reply_to' => :'String',
@@ -162,6 +167,10 @@ module MailSlurpClient
162
167
  self.inbox_id = attributes[:'inbox_id']
163
168
  end
164
169
 
170
+ if attributes.key?(:'domain_id')
171
+ self.domain_id = attributes[:'domain_id']
172
+ end
173
+
165
174
  if attributes.key?(:'to')
166
175
  if (value = attributes[:'to']).is_a?(Array)
167
176
  self.to = value
@@ -304,6 +313,7 @@ module MailSlurpClient
304
313
  id == o.id &&
305
314
  user_id == o.user_id &&
306
315
  inbox_id == o.inbox_id &&
316
+ domain_id == o.domain_id &&
307
317
  to == o.to &&
308
318
  from == o.from &&
309
319
  reply_to == o.reply_to &&
@@ -336,7 +346,7 @@ module MailSlurpClient
336
346
  # Calculates hash code according to all attributes.
337
347
  # @return [Integer] Hash code
338
348
  def hash
339
- [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, to_contacts, to_group, charset, is_html, sent_at, pixel_ids, message_id, message_ids, virtual_send, template_id, template_variables, html].hash
349
+ [id, user_id, inbox_id, domain_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, to_contacts, to_group, charset, is_html, sent_at, pixel_ids, message_id, message_ids, virtual_send, template_id, template_variables, html].hash
340
350
  end
341
351
 
342
352
  # Builds the object from hash
@@ -25,19 +25,19 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :created_at
27
27
 
28
- attr_accessor :body_md5_hash
28
+ attr_accessor :inbox_id
29
29
 
30
- attr_accessor :bcc
30
+ attr_accessor :attachments
31
31
 
32
- attr_accessor :cc
32
+ attr_accessor :to
33
33
 
34
- attr_accessor :virtual_send
34
+ attr_accessor :bcc
35
35
 
36
- attr_accessor :inbox_id
36
+ attr_accessor :cc
37
37
 
38
- attr_accessor :attachments
38
+ attr_accessor :body_md5_hash
39
39
 
40
- attr_accessor :to
40
+ attr_accessor :virtual_send
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
@@ -47,13 +47,13 @@ module MailSlurpClient
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
49
  :'created_at' => :'createdAt',
50
- :'body_md5_hash' => :'bodyMD5Hash',
51
- :'bcc' => :'bcc',
52
- :'cc' => :'cc',
53
- :'virtual_send' => :'virtualSend',
54
50
  :'inbox_id' => :'inboxId',
55
51
  :'attachments' => :'attachments',
56
- :'to' => :'to'
52
+ :'to' => :'to',
53
+ :'bcc' => :'bcc',
54
+ :'cc' => :'cc',
55
+ :'body_md5_hash' => :'bodyMD5Hash',
56
+ :'virtual_send' => :'virtualSend'
57
57
  }
58
58
  end
59
59
 
@@ -65,13 +65,13 @@ module MailSlurpClient
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
67
  :'created_at' => :'DateTime',
68
- :'body_md5_hash' => :'String',
69
- :'bcc' => :'Array<String>',
70
- :'cc' => :'Array<String>',
71
- :'virtual_send' => :'Boolean',
72
68
  :'inbox_id' => :'String',
73
69
  :'attachments' => :'Array<String>',
74
- :'to' => :'Array<String>'
70
+ :'to' => :'Array<String>',
71
+ :'bcc' => :'Array<String>',
72
+ :'cc' => :'Array<String>',
73
+ :'body_md5_hash' => :'String',
74
+ :'virtual_send' => :'Boolean'
75
75
  }
76
76
  end
77
77
 
@@ -116,8 +116,20 @@ module MailSlurpClient
116
116
  self.created_at = attributes[:'created_at']
117
117
  end
118
118
 
119
- if attributes.key?(:'body_md5_hash')
120
- self.body_md5_hash = attributes[:'body_md5_hash']
119
+ if attributes.key?(:'inbox_id')
120
+ self.inbox_id = attributes[:'inbox_id']
121
+ end
122
+
123
+ if attributes.key?(:'attachments')
124
+ if (value = attributes[:'attachments']).is_a?(Array)
125
+ self.attachments = value
126
+ end
127
+ end
128
+
129
+ if attributes.key?(:'to')
130
+ if (value = attributes[:'to']).is_a?(Array)
131
+ self.to = value
132
+ end
121
133
  end
122
134
 
123
135
  if attributes.key?(:'bcc')
@@ -132,24 +144,12 @@ module MailSlurpClient
132
144
  end
133
145
  end
134
146
 
135
- if attributes.key?(:'virtual_send')
136
- self.virtual_send = attributes[:'virtual_send']
137
- end
138
-
139
- if attributes.key?(:'inbox_id')
140
- self.inbox_id = attributes[:'inbox_id']
141
- end
142
-
143
- if attributes.key?(:'attachments')
144
- if (value = attributes[:'attachments']).is_a?(Array)
145
- self.attachments = value
146
- end
147
+ if attributes.key?(:'body_md5_hash')
148
+ self.body_md5_hash = attributes[:'body_md5_hash']
147
149
  end
148
150
 
149
- if attributes.key?(:'to')
150
- if (value = attributes[:'to']).is_a?(Array)
151
- self.to = value
152
- end
151
+ if attributes.key?(:'virtual_send')
152
+ self.virtual_send = attributes[:'virtual_send']
153
153
  end
154
154
  end
155
155
 
@@ -169,18 +169,6 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
170
170
  end
171
171
 
172
- if @bcc.nil?
173
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
174
- end
175
-
176
- if @cc.nil?
177
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
178
- end
179
-
180
- if @virtual_send.nil?
181
- invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
182
- end
183
-
184
172
  if @inbox_id.nil?
185
173
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
186
174
  end
@@ -193,6 +181,18 @@ module MailSlurpClient
193
181
  invalid_properties.push('invalid value for "to", to cannot be nil.')
194
182
  end
195
183
 
184
+ if @bcc.nil?
185
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
186
+ end
187
+
188
+ if @cc.nil?
189
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
190
+ end
191
+
192
+ if @virtual_send.nil?
193
+ invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
194
+ end
195
+
196
196
  invalid_properties
197
197
  end
198
198
 
@@ -202,12 +202,12 @@ module MailSlurpClient
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
204
  return false if @created_at.nil?
205
- return false if @bcc.nil?
206
- return false if @cc.nil?
207
- return false if @virtual_send.nil?
208
205
  return false if @inbox_id.nil?
209
206
  return false if @attachments.nil?
210
207
  return false if @to.nil?
208
+ return false if @bcc.nil?
209
+ return false if @cc.nil?
210
+ return false if @virtual_send.nil?
211
211
  true
212
212
  end
213
213
 
@@ -221,13 +221,13 @@ module MailSlurpClient
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
223
  created_at == o.created_at &&
224
- body_md5_hash == o.body_md5_hash &&
225
- bcc == o.bcc &&
226
- cc == o.cc &&
227
- virtual_send == o.virtual_send &&
228
224
  inbox_id == o.inbox_id &&
229
225
  attachments == o.attachments &&
230
- to == o.to
226
+ to == o.to &&
227
+ bcc == o.bcc &&
228
+ cc == o.cc &&
229
+ body_md5_hash == o.body_md5_hash &&
230
+ virtual_send == o.virtual_send
231
231
  end
232
232
 
233
233
  # @see the `==` method
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, created_at, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to].hash
242
+ [id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash