mailslurp_client 15.7.17 → 15.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/form_controller_api.rb +2 -2
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
  4. data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
  6. data/lib/mailslurp_client/configuration.rb +2 -2
  7. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
  8. data/lib/mailslurp_client/models/alias_projection.rb +33 -33
  9. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  10. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  11. data/lib/mailslurp_client/models/create_template_options.rb +3 -1
  12. data/lib/mailslurp_client/models/create_webhook_options.rb +1 -1
  13. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
  15. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
  16. data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
  17. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  18. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  19. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  20. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  21. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  23. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  25. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  30. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  38. data/lib/mailslurp_client/models/sent_email_projection.rb +26 -26
  39. data/lib/mailslurp_client/models/template_dto.rb +5 -0
  40. data/lib/mailslurp_client/models/template_variable.rb +2 -0
  41. data/lib/mailslurp_client/models/thread_projection.rb +35 -24
  42. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
  43. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  44. data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
  45. data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
  46. data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
  47. data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
  48. data/lib/mailslurp_client/version.rb +1 -1
  49. data/lib/mailslurp_client.rb +2 -0
  50. metadata +4 -2
@@ -20,28 +20,28 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
- # Content type of attachment.
24
- attr_accessor :content_type
25
-
26
- attr_accessor :created_at
27
-
28
23
  attr_accessor :user_id
29
24
 
30
25
  # Attachment ID
31
26
  attr_accessor :attachment_id
32
27
 
28
+ attr_accessor :created_at
29
+
33
30
  attr_accessor :updated_at
34
31
 
32
+ # Content type of attachment.
33
+ attr_accessor :content_type
34
+
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
- :'content_type' => :'contentType',
41
- :'created_at' => :'createdAt',
42
40
  :'user_id' => :'userId',
43
41
  :'attachment_id' => :'attachmentId',
44
- :'updated_at' => :'updatedAt'
42
+ :'created_at' => :'createdAt',
43
+ :'updated_at' => :'updatedAt',
44
+ :'content_type' => :'contentType'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
- :'content_type' => :'String',
54
- :'created_at' => :'DateTime',
55
53
  :'user_id' => :'String',
56
54
  :'attachment_id' => :'String',
57
- :'updated_at' => :'DateTime'
55
+ :'created_at' => :'DateTime',
56
+ :'updated_at' => :'DateTime',
57
+ :'content_type' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -87,14 +87,6 @@ module MailSlurpClient
87
87
  self.content_length = attributes[:'content_length']
88
88
  end
89
89
 
90
- if attributes.key?(:'content_type')
91
- self.content_type = attributes[:'content_type']
92
- end
93
-
94
- if attributes.key?(:'created_at')
95
- self.created_at = attributes[:'created_at']
96
- end
97
-
98
90
  if attributes.key?(:'user_id')
99
91
  self.user_id = attributes[:'user_id']
100
92
  end
@@ -103,19 +95,23 @@ module MailSlurpClient
103
95
  self.attachment_id = attributes[:'attachment_id']
104
96
  end
105
97
 
98
+ if attributes.key?(:'created_at')
99
+ self.created_at = attributes[:'created_at']
100
+ end
101
+
106
102
  if attributes.key?(:'updated_at')
107
103
  self.updated_at = attributes[:'updated_at']
108
104
  end
105
+
106
+ if attributes.key?(:'content_type')
107
+ self.content_type = attributes[:'content_type']
108
+ end
109
109
  end
110
110
 
111
111
  # Show invalid properties with the reasons. Usually used together with valid?
112
112
  # @return Array for valid properties with the reasons
113
113
  def list_invalid_properties
114
114
  invalid_properties = Array.new
115
- if @created_at.nil?
116
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
117
- end
118
-
119
115
  if @user_id.nil?
120
116
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
121
117
  end
@@ -124,6 +120,10 @@ module MailSlurpClient
124
120
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
125
121
  end
126
122
 
123
+ if @created_at.nil?
124
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
125
+ end
126
+
127
127
  if @updated_at.nil?
128
128
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
129
129
  end
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  # Check to see if the all the properties in the model are valid
135
135
  # @return true if the model is valid
136
136
  def valid?
137
- return false if @created_at.nil?
138
137
  return false if @user_id.nil?
139
138
  return false if @attachment_id.nil?
139
+ return false if @created_at.nil?
140
140
  return false if @updated_at.nil?
141
141
  true
142
142
  end
@@ -148,11 +148,11 @@ module MailSlurpClient
148
148
  self.class == o.class &&
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
- content_type == o.content_type &&
152
- created_at == o.created_at &&
153
151
  user_id == o.user_id &&
154
152
  attachment_id == o.attachment_id &&
155
- updated_at == o.updated_at
153
+ created_at == o.created_at &&
154
+ updated_at == o.updated_at &&
155
+ content_type == o.content_type
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, content_type, created_at, user_id, attachment_id, updated_at].hash
167
+ [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -19,8 +19,6 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :group_id
21
21
 
22
- attr_accessor :created_at
23
-
24
22
  attr_accessor :first_name
25
23
 
26
24
  attr_accessor :last_name
@@ -31,17 +29,19 @@ module MailSlurpClient
31
29
 
32
30
  attr_accessor :opt_out
33
31
 
32
+ attr_accessor :created_at
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'id' => :'id',
38
38
  :'group_id' => :'groupId',
39
- :'created_at' => :'createdAt',
40
39
  :'first_name' => :'firstName',
41
40
  :'last_name' => :'lastName',
42
41
  :'company' => :'company',
43
42
  :'email_addresses' => :'emailAddresses',
44
- :'opt_out' => :'optOut'
43
+ :'opt_out' => :'optOut',
44
+ :'created_at' => :'createdAt'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ module MailSlurpClient
50
50
  {
51
51
  :'id' => :'String',
52
52
  :'group_id' => :'String',
53
- :'created_at' => :'DateTime',
54
53
  :'first_name' => :'String',
55
54
  :'last_name' => :'String',
56
55
  :'company' => :'String',
57
56
  :'email_addresses' => :'Array<String>',
58
- :'opt_out' => :'Boolean'
57
+ :'opt_out' => :'Boolean',
58
+ :'created_at' => :'DateTime'
59
59
  }
60
60
  end
61
61
 
@@ -88,10 +88,6 @@ module MailSlurpClient
88
88
  self.group_id = attributes[:'group_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'created_at')
92
- self.created_at = attributes[:'created_at']
93
- end
94
-
95
91
  if attributes.key?(:'first_name')
96
92
  self.first_name = attributes[:'first_name']
97
93
  end
@@ -113,6 +109,10 @@ module MailSlurpClient
113
109
  if attributes.key?(:'opt_out')
114
110
  self.opt_out = attributes[:'opt_out']
115
111
  end
112
+
113
+ if attributes.key?(:'created_at')
114
+ self.created_at = attributes[:'created_at']
115
+ end
116
116
  end
117
117
 
118
118
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -145,12 +145,12 @@ module MailSlurpClient
145
145
  self.class == o.class &&
146
146
  id == o.id &&
147
147
  group_id == o.group_id &&
148
- created_at == o.created_at &&
149
148
  first_name == o.first_name &&
150
149
  last_name == o.last_name &&
151
150
  company == o.company &&
152
151
  email_addresses == o.email_addresses &&
153
- opt_out == o.opt_out
152
+ opt_out == o.opt_out &&
153
+ created_at == o.created_at
154
154
  end
155
155
 
156
156
  # @see the `==` method
@@ -162,7 +162,7 @@ module MailSlurpClient
162
162
  # Calculates hash code according to all attributes.
163
163
  # @return [Integer] Hash code
164
164
  def hash
165
- [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
165
+ [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
166
166
  end
167
167
 
168
168
  # Builds the object from hash
@@ -13,10 +13,12 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Options for creating email templates
16
+ # Create template options
17
17
  class CreateTemplateOptions
18
+ # Name of template
18
19
  attr_accessor :name
19
20
 
21
+ # Template content. Can include moustache style variables such as {{var_name}}
20
22
  attr_accessor :content
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -15,7 +15,7 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.
17
17
  class CreateWebhookOptions
18
- # Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. The default `EMAIL_RECEIVED` payload is described by `https://api.mailslurp.com/schemas/webhook-payload`. The other events, `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` are described by `https://api.mailslurp.com/schemas/webhook-new-email-payload`, `https://api.mailslurp.com/schemas/webhook-new-contact-payload`,`https://api.mailslurp.com/schemas/webhook-new-attachment-payload` respectively.
18
+ # Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. The default `EMAIL_RECEIVED` payload is described by `https://ruby.api.mailslurp.com/schemas/webhook-payload`. The other events, `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` are described by `https://ruby.api.mailslurp.com/schemas/webhook-new-email-payload`, `https://ruby.api.mailslurp.com/schemas/webhook-new-contact-payload`,`https://ruby.api.mailslurp.com/schemas/webhook-new-attachment-payload` respectively.
19
19
  attr_accessor :url
20
20
 
21
21
  attr_accessor :basic_auth
@@ -21,8 +21,6 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :created_at
25
-
26
24
  attr_accessor :inbox_id
27
25
 
28
26
  attr_accessor :attachments
@@ -33,6 +31,8 @@ module MailSlurpClient
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -47,12 +47,12 @@ module MailSlurpClient
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
- :'created_at' => :'createdAt',
51
50
  :'inbox_id' => :'inboxId',
52
51
  :'attachments' => :'attachments',
53
52
  :'to' => :'to',
54
53
  :'bcc' => :'bcc',
55
54
  :'cc' => :'cc',
55
+ :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -66,12 +66,12 @@ module MailSlurpClient
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
- :'created_at' => :'DateTime',
70
69
  :'inbox_id' => :'String',
71
70
  :'attachments' => :'Array<String>',
72
71
  :'to' => :'Array<String>',
73
72
  :'bcc' => :'Array<String>',
74
73
  :'cc' => :'Array<String>',
74
+ :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -112,10 +112,6 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
117
- end
118
-
119
115
  if attributes.key?(:'inbox_id')
120
116
  self.inbox_id = attributes[:'inbox_id']
121
117
  end
@@ -144,6 +140,10 @@ module MailSlurpClient
144
140
  end
145
141
  end
146
142
 
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -169,10 +169,6 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "id", id cannot be nil.')
170
170
  end
171
171
 
172
- if @created_at.nil?
173
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
174
- end
175
-
176
172
  if @inbox_id.nil?
177
173
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
178
174
  end
@@ -181,6 +177,10 @@ module MailSlurpClient
181
177
  invalid_properties.push('invalid value for "to", to 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
 
@@ -188,9 +188,9 @@ module MailSlurpClient
188
188
  # @return true if the model is valid
189
189
  def valid?
190
190
  return false if @id.nil?
191
- return false if @created_at.nil?
192
191
  return false if @inbox_id.nil?
193
192
  return false if @to.nil?
193
+ return false if @created_at.nil?
194
194
  true
195
195
  end
196
196
 
@@ -202,12 +202,12 @@ module MailSlurpClient
202
202
  id == o.id &&
203
203
  from == o.from &&
204
204
  subject == o.subject &&
205
- created_at == o.created_at &&
206
205
  inbox_id == o.inbox_id &&
207
206
  attachments == o.attachments &&
208
207
  to == o.to &&
209
208
  bcc == o.bcc &&
210
209
  cc == o.cc &&
210
+ created_at == o.created_at &&
211
211
  team_access == o.team_access &&
212
212
  read == o.read &&
213
213
  body_md5_hash == o.body_md5_hash &&
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [id, from, subject, created_at, inbox_id, attachments, to, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, subject, inbox_id, attachments, to, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -17,19 +17,19 @@ module MailSlurpClient
17
17
  class ExpiredInboxRecordProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :created_at
20
+ attr_accessor :email_address
21
21
 
22
22
  attr_accessor :user_id
23
23
 
24
- attr_accessor :email_address
24
+ attr_accessor :created_at
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
29
  :'id' => :'id',
30
- :'created_at' => :'createdAt',
30
+ :'email_address' => :'emailAddress',
31
31
  :'user_id' => :'userId',
32
- :'email_address' => :'emailAddress'
32
+ :'created_at' => :'createdAt'
33
33
  }
34
34
  end
35
35
 
@@ -37,9 +37,9 @@ module MailSlurpClient
37
37
  def self.openapi_types
38
38
  {
39
39
  :'id' => :'String',
40
- :'created_at' => :'DateTime',
40
+ :'email_address' => :'String',
41
41
  :'user_id' => :'String',
42
- :'email_address' => :'String'
42
+ :'created_at' => :'DateTime'
43
43
  }
44
44
  end
45
45
 
@@ -68,16 +68,16 @@ module MailSlurpClient
68
68
  self.id = attributes[:'id']
69
69
  end
70
70
 
71
- if attributes.key?(:'created_at')
72
- self.created_at = attributes[:'created_at']
71
+ if attributes.key?(:'email_address')
72
+ self.email_address = attributes[:'email_address']
73
73
  end
74
74
 
75
75
  if attributes.key?(:'user_id')
76
76
  self.user_id = attributes[:'user_id']
77
77
  end
78
78
 
79
- if attributes.key?(:'email_address')
80
- self.email_address = attributes[:'email_address']
79
+ if attributes.key?(:'created_at')
80
+ self.created_at = attributes[:'created_at']
81
81
  end
82
82
  end
83
83
 
@@ -89,16 +89,16 @@ module MailSlurpClient
89
89
  invalid_properties.push('invalid value for "id", id cannot be nil.')
90
90
  end
91
91
 
92
- if @created_at.nil?
93
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
92
+ if @email_address.nil?
93
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
94
94
  end
95
95
 
96
96
  if @user_id.nil?
97
97
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
98
98
  end
99
99
 
100
- if @email_address.nil?
101
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
100
+ if @created_at.nil?
101
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
102
102
  end
103
103
 
104
104
  invalid_properties
@@ -108,9 +108,9 @@ module MailSlurpClient
108
108
  # @return true if the model is valid
109
109
  def valid?
110
110
  return false if @id.nil?
111
- return false if @created_at.nil?
112
- return false if @user_id.nil?
113
111
  return false if @email_address.nil?
112
+ return false if @user_id.nil?
113
+ return false if @created_at.nil?
114
114
  true
115
115
  end
116
116
 
@@ -120,9 +120,9 @@ module MailSlurpClient
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
122
  id == o.id &&
123
- created_at == o.created_at &&
123
+ email_address == o.email_address &&
124
124
  user_id == o.user_id &&
125
- email_address == o.email_address
125
+ created_at == o.created_at
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [id, created_at, user_id, email_address].hash
137
+ [id, email_address, user_id, created_at].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -15,8 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Result from calling expire on any inboxes that have applicable expiration dates given current time.
17
17
  class FlushExpiredInboxesResult
18
+ # Inbox IDs affected by expiration
18
19
  attr_accessor :inbox_ids
19
20
 
21
+ # DateTime to filter inboxes so that those expiring before this time are expired
20
22
  attr_accessor :expire_before
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,18 +21,18 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :created_at
25
-
26
24
  attr_accessor :user_id
27
25
 
26
+ attr_accessor :created_at
27
+
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
33
  :'subject' => :'subject',
34
- :'created_at' => :'createdAt',
35
- :'user_id' => :'userId'
34
+ :'user_id' => :'userId',
35
+ :'created_at' => :'createdAt'
36
36
  }
37
37
  end
38
38
 
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
44
  :'subject' => :'String',
45
- :'created_at' => :'DateTime',
46
- :'user_id' => :'String'
45
+ :'user_id' => :'String',
46
+ :'created_at' => :'DateTime'
47
47
  }
48
48
  end
49
49
 
@@ -80,13 +80,13 @@ module MailSlurpClient
80
80
  self.subject = attributes[:'subject']
81
81
  end
82
82
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
83
  if attributes.key?(:'user_id')
88
84
  self.user_id = attributes[:'user_id']
89
85
  end
86
+
87
+ if attributes.key?(:'created_at')
88
+ self.created_at = attributes[:'created_at']
89
+ end
90
90
  end
91
91
 
92
92
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -120,8 +120,8 @@ module MailSlurpClient
120
120
  id == o.id &&
121
121
  from == o.from &&
122
122
  subject == o.subject &&
123
- created_at == o.created_at &&
124
- user_id == o.user_id
123
+ user_id == o.user_id &&
124
+ created_at == o.created_at
125
125
  end
126
126
 
127
127
  # @see the `==` method
@@ -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, subject, created_at, user_id].hash
136
+ [id, from, subject, user_id, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash