mailslurp_client 15.17.24 → 15.17.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/models/alias_projection.rb +19 -19
  3. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  4. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  6. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  8. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  9. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  10. data/lib/mailslurp_client/models/page_alias.rb +16 -17
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +16 -17
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +16 -17
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +16 -17
  14. data/lib/mailslurp_client/models/page_complaint.rb +16 -17
  15. data/lib/mailslurp_client/models/page_connector.rb +16 -17
  16. data/lib/mailslurp_client/models/page_connector_sync_events.rb +16 -17
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +16 -17
  18. data/lib/mailslurp_client/models/page_delivery_status.rb +16 -17
  19. data/lib/mailslurp_client/models/page_email_preview.rb +16 -17
  20. data/lib/mailslurp_client/models/page_email_projection.rb +21 -12
  21. data/lib/mailslurp_client/models/page_email_validation_request.rb +16 -17
  22. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +16 -17
  23. data/lib/mailslurp_client/models/page_group_projection.rb +16 -17
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +16 -17
  25. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +16 -17
  26. data/lib/mailslurp_client/models/page_inbox_projection.rb +16 -17
  27. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +16 -17
  28. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +16 -17
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +16 -17
  30. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +16 -17
  31. data/lib/mailslurp_client/models/page_missed_email_projection.rb +16 -17
  32. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +16 -17
  33. data/lib/mailslurp_client/models/page_phone_number_projection.rb +16 -17
  34. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +16 -17
  35. data/lib/mailslurp_client/models/page_sent_email_projection.rb +69 -34
  36. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +69 -34
  37. data/lib/mailslurp_client/models/page_sms_projection.rb +16 -17
  38. data/lib/mailslurp_client/models/page_template_projection.rb +16 -17
  39. data/lib/mailslurp_client/models/page_thread_projection.rb +16 -17
  40. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +16 -17
  41. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +16 -17
  42. data/lib/mailslurp_client/models/page_webhook_projection.rb +16 -17
  43. data/lib/mailslurp_client/models/page_webhook_result.rb +16 -17
  44. data/lib/mailslurp_client/models/send_with_queue_result.rb +1 -0
  45. data/lib/mailslurp_client/models/sent_email_projection.rb +22 -21
  46. data/lib/mailslurp_client/models/thread_projection.rb +23 -23
  47. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  49. data/lib/mailslurp_client/version.rb +1 -1
  50. metadata +2 -2
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<TrackingPixelProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<UnknownMissedEmailProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<WebhookProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<WebhookResultDto>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Collection of items
16
17
  class SendWithQueueResult
17
18
  attr_accessor :id
18
19
 
@@ -13,19 +13,20 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Collection of items
16
17
  class SentEmailProjection
17
- attr_accessor :subject
18
-
19
18
  attr_accessor :id
20
19
 
21
20
  attr_accessor :from
22
21
 
23
- attr_accessor :user_id
22
+ attr_accessor :subject
24
23
 
25
24
  attr_accessor :attachments
26
25
 
27
26
  attr_accessor :inbox_id
28
27
 
28
+ attr_accessor :user_id
29
+
29
30
  attr_accessor :to
30
31
 
31
32
  attr_accessor :bcc
@@ -41,12 +42,12 @@ module MailSlurpClient
41
42
  # Attribute mapping from ruby-style variable name to JSON key.
42
43
  def self.attribute_map
43
44
  {
44
- :'subject' => :'subject',
45
45
  :'id' => :'id',
46
46
  :'from' => :'from',
47
- :'user_id' => :'userId',
47
+ :'subject' => :'subject',
48
48
  :'attachments' => :'attachments',
49
49
  :'inbox_id' => :'inboxId',
50
+ :'user_id' => :'userId',
50
51
  :'to' => :'to',
51
52
  :'bcc' => :'bcc',
52
53
  :'cc' => :'cc',
@@ -59,12 +60,12 @@ module MailSlurpClient
59
60
  # Attribute type mapping.
60
61
  def self.openapi_types
61
62
  {
62
- :'subject' => :'String',
63
63
  :'id' => :'String',
64
64
  :'from' => :'String',
65
- :'user_id' => :'String',
65
+ :'subject' => :'String',
66
66
  :'attachments' => :'Array<String>',
67
67
  :'inbox_id' => :'String',
68
+ :'user_id' => :'String',
68
69
  :'to' => :'Array<String>',
69
70
  :'bcc' => :'Array<String>',
70
71
  :'cc' => :'Array<String>',
@@ -95,10 +96,6 @@ module MailSlurpClient
95
96
  h[k.to_sym] = v
96
97
  }
97
98
 
98
- if attributes.key?(:'subject')
99
- self.subject = attributes[:'subject']
100
- end
101
-
102
99
  if attributes.key?(:'id')
103
100
  self.id = attributes[:'id']
104
101
  end
@@ -107,8 +104,8 @@ module MailSlurpClient
107
104
  self.from = attributes[:'from']
108
105
  end
109
106
 
110
- if attributes.key?(:'user_id')
111
- self.user_id = attributes[:'user_id']
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
112
109
  end
113
110
 
114
111
  if attributes.key?(:'attachments')
@@ -121,6 +118,10 @@ module MailSlurpClient
121
118
  self.inbox_id = attributes[:'inbox_id']
122
119
  end
123
120
 
121
+ if attributes.key?(:'user_id')
122
+ self.user_id = attributes[:'user_id']
123
+ end
124
+
124
125
  if attributes.key?(:'to')
125
126
  if (value = attributes[:'to']).is_a?(Array)
126
127
  self.to = value
@@ -160,10 +161,6 @@ module MailSlurpClient
160
161
  invalid_properties.push('invalid value for "id", id cannot be nil.')
161
162
  end
162
163
 
163
- if @user_id.nil?
164
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
165
- end
166
-
167
164
  if @attachments.nil?
168
165
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
169
166
  end
@@ -172,6 +169,10 @@ module MailSlurpClient
172
169
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
173
170
  end
174
171
 
172
+ if @user_id.nil?
173
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
174
+ end
175
+
175
176
  if @to.nil?
176
177
  invalid_properties.push('invalid value for "to", to cannot be nil.')
177
178
  end
@@ -199,9 +200,9 @@ module MailSlurpClient
199
200
  # @return true if the model is valid
200
201
  def valid?
201
202
  return false if @id.nil?
202
- return false if @user_id.nil?
203
203
  return false if @attachments.nil?
204
204
  return false if @inbox_id.nil?
205
+ return false if @user_id.nil?
205
206
  return false if @to.nil?
206
207
  return false if @bcc.nil?
207
208
  return false if @cc.nil?
@@ -215,12 +216,12 @@ module MailSlurpClient
215
216
  def ==(o)
216
217
  return true if self.equal?(o)
217
218
  self.class == o.class &&
218
- subject == o.subject &&
219
219
  id == o.id &&
220
220
  from == o.from &&
221
- user_id == o.user_id &&
221
+ subject == o.subject &&
222
222
  attachments == o.attachments &&
223
223
  inbox_id == o.inbox_id &&
224
+ user_id == o.user_id &&
224
225
  to == o.to &&
225
226
  bcc == o.bcc &&
226
227
  cc == o.cc &&
@@ -238,7 +239,7 @@ module MailSlurpClient
238
239
  # Calculates hash code according to all attributes.
239
240
  # @return [Integer] Hash code
240
241
  def hash
241
- [subject, id, from, user_id, attachments, inbox_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
242
+ [id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
242
243
  end
243
244
 
244
245
  # Builds the object from hash
@@ -15,15 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A thread is a message thread created for a message received by an alias
17
17
  class ThreadProjection
18
- # Thread subject
19
- attr_accessor :subject
18
+ # Inbox ID
19
+ attr_accessor :inbox_id
20
20
 
21
21
  # User ID
22
22
  attr_accessor :user_id
23
23
 
24
- # Inbox ID
25
- attr_accessor :inbox_id
26
-
27
24
  # To recipients
28
25
  attr_accessor :to
29
26
 
@@ -42,6 +39,9 @@ module MailSlurpClient
42
39
  # Updated at DateTime
43
40
  attr_accessor :updated_at
44
41
 
42
+ # Thread subject
43
+ attr_accessor :subject
44
+
45
45
  # Name of thread
46
46
  attr_accessor :name
47
47
 
@@ -51,15 +51,15 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'subject' => :'subject',
55
- :'user_id' => :'userId',
56
54
  :'inbox_id' => :'inboxId',
55
+ :'user_id' => :'userId',
57
56
  :'to' => :'to',
58
57
  :'bcc' => :'bcc',
59
58
  :'cc' => :'cc',
60
59
  :'alias_id' => :'aliasId',
61
60
  :'created_at' => :'createdAt',
62
61
  :'updated_at' => :'updatedAt',
62
+ :'subject' => :'subject',
63
63
  :'name' => :'name',
64
64
  :'id' => :'id'
65
65
  }
@@ -68,15 +68,15 @@ module MailSlurpClient
68
68
  # Attribute type mapping.
69
69
  def self.openapi_types
70
70
  {
71
- :'subject' => :'String',
72
- :'user_id' => :'String',
73
71
  :'inbox_id' => :'String',
72
+ :'user_id' => :'String',
74
73
  :'to' => :'Array<String>',
75
74
  :'bcc' => :'Array<String>',
76
75
  :'cc' => :'Array<String>',
77
76
  :'alias_id' => :'String',
78
77
  :'created_at' => :'DateTime',
79
78
  :'updated_at' => :'DateTime',
79
+ :'subject' => :'String',
80
80
  :'name' => :'String',
81
81
  :'id' => :'String'
82
82
  }
@@ -103,18 +103,14 @@ module MailSlurpClient
103
103
  h[k.to_sym] = v
104
104
  }
105
105
 
106
- if attributes.key?(:'subject')
107
- self.subject = attributes[:'subject']
106
+ if attributes.key?(:'inbox_id')
107
+ self.inbox_id = attributes[:'inbox_id']
108
108
  end
109
109
 
110
110
  if attributes.key?(:'user_id')
111
111
  self.user_id = attributes[:'user_id']
112
112
  end
113
113
 
114
- if attributes.key?(:'inbox_id')
115
- self.inbox_id = attributes[:'inbox_id']
116
- end
117
-
118
114
  if attributes.key?(:'to')
119
115
  if (value = attributes[:'to']).is_a?(Array)
120
116
  self.to = value
@@ -145,6 +141,10 @@ module MailSlurpClient
145
141
  self.updated_at = attributes[:'updated_at']
146
142
  end
147
143
 
144
+ if attributes.key?(:'subject')
145
+ self.subject = attributes[:'subject']
146
+ end
147
+
148
148
  if attributes.key?(:'name')
149
149
  self.name = attributes[:'name']
150
150
  end
@@ -158,14 +158,14 @@ module MailSlurpClient
158
158
  # @return Array for valid properties with the reasons
159
159
  def list_invalid_properties
160
160
  invalid_properties = Array.new
161
- if @user_id.nil?
162
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
163
- end
164
-
165
161
  if @inbox_id.nil?
166
162
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
163
  end
168
164
 
165
+ if @user_id.nil?
166
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
+ end
168
+
169
169
  if @to.nil?
170
170
  invalid_properties.push('invalid value for "to", to cannot be nil.')
171
171
  end
@@ -192,8 +192,8 @@ module MailSlurpClient
192
192
  # Check to see if the all the properties in the model are valid
193
193
  # @return true if the model is valid
194
194
  def valid?
195
- return false if @user_id.nil?
196
195
  return false if @inbox_id.nil?
196
+ return false if @user_id.nil?
197
197
  return false if @to.nil?
198
198
  return false if @alias_id.nil?
199
199
  return false if @created_at.nil?
@@ -207,15 +207,15 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- subject == o.subject &&
211
- user_id == o.user_id &&
212
210
  inbox_id == o.inbox_id &&
211
+ user_id == o.user_id &&
213
212
  to == o.to &&
214
213
  bcc == o.bcc &&
215
214
  cc == o.cc &&
216
215
  alias_id == o.alias_id &&
217
216
  created_at == o.created_at &&
218
217
  updated_at == o.updated_at &&
218
+ subject == o.subject &&
219
219
  name == o.name &&
220
220
  id == o.id
221
221
  end
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [subject, user_id, inbox_id, to, bcc, cc, alias_id, created_at, updated_at, name, id].hash
232
+ [inbox_id, user_id, to, bcc, cc, alias_id, created_at, updated_at, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash