mailslurp_client 15.17.23 → 15.17.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +69 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +28 -28
  4. data/lib/mailslurp_client/models/attachment_projection.rb +11 -11
  5. data/lib/mailslurp_client/models/bounce_projection.rb +17 -17
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/email_content_part_result.rb +207 -0
  11. data/lib/mailslurp_client/models/email_projection.rb +25 -25
  12. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  13. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
  14. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +27 -27
  15. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  17. data/lib/mailslurp_client/models/page_alias.rb +17 -16
  18. data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
  19. data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
  20. data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
  21. data/lib/mailslurp_client/models/page_complaint.rb +17 -16
  22. data/lib/mailslurp_client/models/page_connector.rb +17 -16
  23. data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
  24. data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
  25. data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
  26. data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
  27. data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
  28. data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
  29. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
  30. data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
  31. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
  32. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
  33. data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
  34. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
  35. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
  36. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
  37. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
  38. data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
  39. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
  40. data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
  41. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
  42. data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
  43. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
  44. data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
  45. data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
  46. data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
  47. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
  48. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
  49. data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
  50. data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
  51. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
  53. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
  54. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  55. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  56. data/lib/mailslurp_client/models/thread_projection.rb +45 -45
  57. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +24 -24
  58. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  59. data/lib/mailslurp_client/models/webhook_projection.rb +27 -27
  60. data/lib/mailslurp_client/version.rb +1 -1
  61. data/lib/mailslurp_client.rb +1 -0
  62. metadata +3 -2
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<WebhookProjection>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  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?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<WebhookResultDto>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  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?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -17,12 +17,12 @@ module MailSlurpClient
17
17
  class PhoneNumberProjection
18
18
  attr_accessor :user_id
19
19
 
20
- attr_accessor :created_at
21
-
22
20
  attr_accessor :phone_number
23
21
 
24
22
  attr_accessor :phone_country
25
23
 
24
+ attr_accessor :created_at
25
+
26
26
  attr_accessor :id
27
27
 
28
28
  class EnumAttributeValidator
@@ -51,9 +51,9 @@ module MailSlurpClient
51
51
  def self.attribute_map
52
52
  {
53
53
  :'user_id' => :'userId',
54
- :'created_at' => :'createdAt',
55
54
  :'phone_number' => :'phoneNumber',
56
55
  :'phone_country' => :'phoneCountry',
56
+ :'created_at' => :'createdAt',
57
57
  :'id' => :'id'
58
58
  }
59
59
  end
@@ -62,9 +62,9 @@ module MailSlurpClient
62
62
  def self.openapi_types
63
63
  {
64
64
  :'user_id' => :'String',
65
- :'created_at' => :'DateTime',
66
65
  :'phone_number' => :'String',
67
66
  :'phone_country' => :'String',
67
+ :'created_at' => :'DateTime',
68
68
  :'id' => :'String'
69
69
  }
70
70
  end
@@ -94,10 +94,6 @@ module MailSlurpClient
94
94
  self.user_id = attributes[:'user_id']
95
95
  end
96
96
 
97
- if attributes.key?(:'created_at')
98
- self.created_at = attributes[:'created_at']
99
- end
100
-
101
97
  if attributes.key?(:'phone_number')
102
98
  self.phone_number = attributes[:'phone_number']
103
99
  end
@@ -106,6 +102,10 @@ module MailSlurpClient
106
102
  self.phone_country = attributes[:'phone_country']
107
103
  end
108
104
 
105
+ if attributes.key?(:'created_at')
106
+ self.created_at = attributes[:'created_at']
107
+ end
108
+
109
109
  if attributes.key?(:'id')
110
110
  self.id = attributes[:'id']
111
111
  end
@@ -119,10 +119,6 @@ module MailSlurpClient
119
119
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
120
120
  end
121
121
 
122
- if @created_at.nil?
123
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
- end
125
-
126
122
  if @phone_number.nil?
127
123
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
128
124
  end
@@ -131,6 +127,10 @@ module MailSlurpClient
131
127
  invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
132
128
  end
133
129
 
130
+ if @created_at.nil?
131
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
+ end
133
+
134
134
  if @id.nil?
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
@@ -142,11 +142,11 @@ module MailSlurpClient
142
142
  # @return true if the model is valid
143
143
  def valid?
144
144
  return false if @user_id.nil?
145
- return false if @created_at.nil?
146
145
  return false if @phone_number.nil?
147
146
  return false if @phone_country.nil?
148
147
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
149
148
  return false unless phone_country_validator.valid?(@phone_country)
149
+ return false if @created_at.nil?
150
150
  return false if @id.nil?
151
151
  true
152
152
  end
@@ -167,9 +167,9 @@ module MailSlurpClient
167
167
  return true if self.equal?(o)
168
168
  self.class == o.class &&
169
169
  user_id == o.user_id &&
170
- created_at == o.created_at &&
171
170
  phone_number == o.phone_number &&
172
171
  phone_country == o.phone_country &&
172
+ created_at == o.created_at &&
173
173
  id == o.id
174
174
  end
175
175
 
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  # Calculates hash code according to all attributes.
183
183
  # @return [Integer] Hash code
184
184
  def hash
185
- [user_id, created_at, phone_number, phone_country, id].hash
185
+ [user_id, phone_number, phone_country, created_at, id].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -13,7 +13,6 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Collection of items
17
16
  class SendWithQueueResult
18
17
  attr_accessor :id
19
18
 
@@ -13,21 +13,18 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Collection of items
17
16
  class SentEmailProjection
18
- attr_accessor :inbox_id
17
+ attr_accessor :subject
19
18
 
20
19
  attr_accessor :id
21
20
 
22
21
  attr_accessor :from
23
22
 
24
- attr_accessor :subject
25
-
26
23
  attr_accessor :user_id
27
24
 
28
25
  attr_accessor :attachments
29
26
 
30
- attr_accessor :created_at
27
+ attr_accessor :inbox_id
31
28
 
32
29
  attr_accessor :to
33
30
 
@@ -35,6 +32,8 @@ module MailSlurpClient
35
32
 
36
33
  attr_accessor :cc
37
34
 
35
+ attr_accessor :created_at
36
+
38
37
  attr_accessor :body_md5_hash
39
38
 
40
39
  attr_accessor :virtual_send
@@ -42,16 +41,16 @@ module MailSlurpClient
42
41
  # Attribute mapping from ruby-style variable name to JSON key.
43
42
  def self.attribute_map
44
43
  {
45
- :'inbox_id' => :'inboxId',
44
+ :'subject' => :'subject',
46
45
  :'id' => :'id',
47
46
  :'from' => :'from',
48
- :'subject' => :'subject',
49
47
  :'user_id' => :'userId',
50
48
  :'attachments' => :'attachments',
51
- :'created_at' => :'createdAt',
49
+ :'inbox_id' => :'inboxId',
52
50
  :'to' => :'to',
53
51
  :'bcc' => :'bcc',
54
52
  :'cc' => :'cc',
53
+ :'created_at' => :'createdAt',
55
54
  :'body_md5_hash' => :'bodyMD5Hash',
56
55
  :'virtual_send' => :'virtualSend'
57
56
  }
@@ -60,16 +59,16 @@ module MailSlurpClient
60
59
  # Attribute type mapping.
61
60
  def self.openapi_types
62
61
  {
63
- :'inbox_id' => :'String',
62
+ :'subject' => :'String',
64
63
  :'id' => :'String',
65
64
  :'from' => :'String',
66
- :'subject' => :'String',
67
65
  :'user_id' => :'String',
68
66
  :'attachments' => :'Array<String>',
69
- :'created_at' => :'DateTime',
67
+ :'inbox_id' => :'String',
70
68
  :'to' => :'Array<String>',
71
69
  :'bcc' => :'Array<String>',
72
70
  :'cc' => :'Array<String>',
71
+ :'created_at' => :'DateTime',
73
72
  :'body_md5_hash' => :'String',
74
73
  :'virtual_send' => :'Boolean'
75
74
  }
@@ -96,8 +95,8 @@ module MailSlurpClient
96
95
  h[k.to_sym] = v
97
96
  }
98
97
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
98
+ if attributes.key?(:'subject')
99
+ self.subject = attributes[:'subject']
101
100
  end
102
101
 
103
102
  if attributes.key?(:'id')
@@ -108,10 +107,6 @@ module MailSlurpClient
108
107
  self.from = attributes[:'from']
109
108
  end
110
109
 
111
- if attributes.key?(:'subject')
112
- self.subject = attributes[:'subject']
113
- end
114
-
115
110
  if attributes.key?(:'user_id')
116
111
  self.user_id = attributes[:'user_id']
117
112
  end
@@ -122,8 +117,8 @@ module MailSlurpClient
122
117
  end
123
118
  end
124
119
 
125
- if attributes.key?(:'created_at')
126
- self.created_at = attributes[:'created_at']
120
+ if attributes.key?(:'inbox_id')
121
+ self.inbox_id = attributes[:'inbox_id']
127
122
  end
128
123
 
129
124
  if attributes.key?(:'to')
@@ -144,6 +139,10 @@ module MailSlurpClient
144
139
  end
145
140
  end
146
141
 
142
+ if attributes.key?(:'created_at')
143
+ self.created_at = attributes[:'created_at']
144
+ end
145
+
147
146
  if attributes.key?(:'body_md5_hash')
148
147
  self.body_md5_hash = attributes[:'body_md5_hash']
149
148
  end
@@ -157,10 +156,6 @@ module MailSlurpClient
157
156
  # @return Array for valid properties with the reasons
158
157
  def list_invalid_properties
159
158
  invalid_properties = Array.new
160
- if @inbox_id.nil?
161
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
162
- end
163
-
164
159
  if @id.nil?
165
160
  invalid_properties.push('invalid value for "id", id cannot be nil.')
166
161
  end
@@ -173,8 +168,8 @@ module MailSlurpClient
173
168
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
174
169
  end
175
170
 
176
- if @created_at.nil?
177
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
171
+ if @inbox_id.nil?
172
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
178
173
  end
179
174
 
180
175
  if @to.nil?
@@ -189,6 +184,10 @@ module MailSlurpClient
189
184
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
190
185
  end
191
186
 
187
+ if @created_at.nil?
188
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
189
+ end
190
+
192
191
  if @virtual_send.nil?
193
192
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
194
193
  end
@@ -199,14 +198,14 @@ module MailSlurpClient
199
198
  # Check to see if the all the properties in the model are valid
200
199
  # @return true if the model is valid
201
200
  def valid?
202
- return false if @inbox_id.nil?
203
201
  return false if @id.nil?
204
202
  return false if @user_id.nil?
205
203
  return false if @attachments.nil?
206
- return false if @created_at.nil?
204
+ return false if @inbox_id.nil?
207
205
  return false if @to.nil?
208
206
  return false if @bcc.nil?
209
207
  return false if @cc.nil?
208
+ return false if @created_at.nil?
210
209
  return false if @virtual_send.nil?
211
210
  true
212
211
  end
@@ -216,16 +215,16 @@ module MailSlurpClient
216
215
  def ==(o)
217
216
  return true if self.equal?(o)
218
217
  self.class == o.class &&
219
- inbox_id == o.inbox_id &&
218
+ subject == o.subject &&
220
219
  id == o.id &&
221
220
  from == o.from &&
222
- subject == o.subject &&
223
221
  user_id == o.user_id &&
224
222
  attachments == o.attachments &&
225
- created_at == o.created_at &&
223
+ inbox_id == o.inbox_id &&
226
224
  to == o.to &&
227
225
  bcc == o.bcc &&
228
226
  cc == o.cc &&
227
+ created_at == o.created_at &&
229
228
  body_md5_hash == o.body_md5_hash &&
230
229
  virtual_send == o.virtual_send
231
230
  end
@@ -239,7 +238,7 @@ module MailSlurpClient
239
238
  # Calculates hash code according to all attributes.
240
239
  # @return [Integer] Hash code
241
240
  def hash
242
- [inbox_id, id, from, subject, user_id, attachments, created_at, to, bcc, cc, body_md5_hash, virtual_send].hash
241
+ [subject, id, from, user_id, attachments, inbox_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
243
242
  end
244
243
 
245
244
  # Builds the object from hash
@@ -15,29 +15,29 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # SMS projection
17
17
  class SmsProjection
18
- attr_accessor :body
19
-
20
18
  attr_accessor :user_id
21
19
 
22
- attr_accessor :created_at
23
-
24
20
  attr_accessor :phone_number
25
21
 
26
22
  attr_accessor :from_number
27
23
 
28
24
  attr_accessor :read
29
25
 
26
+ attr_accessor :body
27
+
28
+ attr_accessor :created_at
29
+
30
30
  attr_accessor :id
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'body' => :'body',
36
35
  :'user_id' => :'userId',
37
- :'created_at' => :'createdAt',
38
36
  :'phone_number' => :'phoneNumber',
39
37
  :'from_number' => :'fromNumber',
40
38
  :'read' => :'read',
39
+ :'body' => :'body',
40
+ :'created_at' => :'createdAt',
41
41
  :'id' => :'id'
42
42
  }
43
43
  end
@@ -45,12 +45,12 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- :'body' => :'String',
49
48
  :'user_id' => :'String',
50
- :'created_at' => :'DateTime',
51
49
  :'phone_number' => :'String',
52
50
  :'from_number' => :'String',
53
51
  :'read' => :'Boolean',
52
+ :'body' => :'String',
53
+ :'created_at' => :'DateTime',
54
54
  :'id' => :'String'
55
55
  }
56
56
  end
@@ -76,18 +76,10 @@ module MailSlurpClient
76
76
  h[k.to_sym] = v
77
77
  }
78
78
 
79
- if attributes.key?(:'body')
80
- self.body = attributes[:'body']
81
- end
82
-
83
79
  if attributes.key?(:'user_id')
84
80
  self.user_id = attributes[:'user_id']
85
81
  end
86
82
 
87
- if attributes.key?(:'created_at')
88
- self.created_at = attributes[:'created_at']
89
- end
90
-
91
83
  if attributes.key?(:'phone_number')
92
84
  self.phone_number = attributes[:'phone_number']
93
85
  end
@@ -100,6 +92,14 @@ module MailSlurpClient
100
92
  self.read = attributes[:'read']
101
93
  end
102
94
 
95
+ if attributes.key?(:'body')
96
+ self.body = attributes[:'body']
97
+ end
98
+
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
+ end
102
+
103
103
  if attributes.key?(:'id')
104
104
  self.id = attributes[:'id']
105
105
  end
@@ -109,18 +109,10 @@ module MailSlurpClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
- if @body.nil?
113
- invalid_properties.push('invalid value for "body", body cannot be nil.')
114
- end
115
-
116
112
  if @user_id.nil?
117
113
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
118
114
  end
119
115
 
120
- if @created_at.nil?
121
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
- end
123
-
124
116
  if @phone_number.nil?
125
117
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
126
118
  end
@@ -133,6 +125,14 @@ module MailSlurpClient
133
125
  invalid_properties.push('invalid value for "read", read cannot be nil.')
134
126
  end
135
127
 
128
+ if @body.nil?
129
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
130
+ end
131
+
132
+ if @created_at.nil?
133
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
+ end
135
+
136
136
  if @id.nil?
137
137
  invalid_properties.push('invalid value for "id", id cannot be nil.')
138
138
  end
@@ -143,12 +143,12 @@ module MailSlurpClient
143
143
  # Check to see if the all the properties in the model are valid
144
144
  # @return true if the model is valid
145
145
  def valid?
146
- return false if @body.nil?
147
146
  return false if @user_id.nil?
148
- return false if @created_at.nil?
149
147
  return false if @phone_number.nil?
150
148
  return false if @from_number.nil?
151
149
  return false if @read.nil?
150
+ return false if @body.nil?
151
+ return false if @created_at.nil?
152
152
  return false if @id.nil?
153
153
  true
154
154
  end
@@ -158,12 +158,12 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
- body == o.body &&
162
161
  user_id == o.user_id &&
163
- created_at == o.created_at &&
164
162
  phone_number == o.phone_number &&
165
163
  from_number == o.from_number &&
166
164
  read == o.read &&
165
+ body == o.body &&
166
+ created_at == o.created_at &&
167
167
  id == o.id
168
168
  end
169
169
 
@@ -176,7 +176,7 @@ module MailSlurpClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [body, user_id, created_at, phone_number, from_number, read, id].hash
179
+ [user_id, phone_number, from_number, read, body, created_at, id].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash