mailslurp_client 15.7.17 → 15.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
  3. data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
  5. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
  6. data/lib/mailslurp_client/models/alias_projection.rb +33 -33
  7. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  8. data/lib/mailslurp_client/models/create_template_options.rb +3 -1
  9. data/lib/mailslurp_client/models/email_projection.rb +40 -40
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
  11. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
  12. data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
  13. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  14. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  15. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  16. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  21. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  26. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  34. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -30
  35. data/lib/mailslurp_client/models/template_dto.rb +5 -0
  36. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  37. data/lib/mailslurp_client/models/template_variable.rb +2 -0
  38. data/lib/mailslurp_client/models/thread_projection.rb +44 -33
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
  40. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  41. data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
  42. data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
  43. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  44. data/lib/mailslurp_client/version.rb +1 -1
  45. data/lib/mailslurp_client.rb +2 -0
  46. metadata +4 -2
@@ -21,18 +21,12 @@ 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
29
27
 
30
28
  attr_accessor :to
31
29
 
32
- attr_accessor :bcc
33
-
34
- attr_accessor :cc
35
-
36
30
  attr_accessor :team_access
37
31
 
38
32
  attr_accessor :read
@@ -41,22 +35,28 @@ module MailSlurpClient
41
35
 
42
36
  attr_accessor :body_excerpt
43
37
 
38
+ attr_accessor :created_at
39
+
40
+ attr_accessor :bcc
41
+
42
+ attr_accessor :cc
43
+
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
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
- :'bcc' => :'bcc',
55
- :'cc' => :'cc',
56
53
  :'team_access' => :'teamAccess',
57
54
  :'read' => :'read',
58
55
  :'body_md5_hash' => :'bodyMD5Hash',
59
- :'body_excerpt' => :'bodyExcerpt'
56
+ :'body_excerpt' => :'bodyExcerpt',
57
+ :'created_at' => :'createdAt',
58
+ :'bcc' => :'bcc',
59
+ :'cc' => :'cc'
60
60
  }
61
61
  end
62
62
 
@@ -66,16 +66,16 @@ 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
- :'bcc' => :'Array<String>',
74
- :'cc' => :'Array<String>',
75
72
  :'team_access' => :'Boolean',
76
73
  :'read' => :'Boolean',
77
74
  :'body_md5_hash' => :'String',
78
- :'body_excerpt' => :'String'
75
+ :'body_excerpt' => :'String',
76
+ :'created_at' => :'DateTime',
77
+ :'bcc' => :'Array<String>',
78
+ :'cc' => :'Array<String>'
79
79
  }
80
80
  end
81
81
 
@@ -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
@@ -132,18 +128,6 @@ module MailSlurpClient
132
128
  end
133
129
  end
134
130
 
135
- if attributes.key?(:'bcc')
136
- if (value = attributes[:'bcc']).is_a?(Array)
137
- self.bcc = value
138
- end
139
- end
140
-
141
- if attributes.key?(:'cc')
142
- if (value = attributes[:'cc']).is_a?(Array)
143
- self.cc = value
144
- end
145
- end
146
-
147
131
  if attributes.key?(:'team_access')
148
132
  self.team_access = attributes[:'team_access']
149
133
  end
@@ -159,6 +143,22 @@ module MailSlurpClient
159
143
  if attributes.key?(:'body_excerpt')
160
144
  self.body_excerpt = attributes[:'body_excerpt']
161
145
  end
146
+
147
+ if attributes.key?(:'created_at')
148
+ self.created_at = attributes[:'created_at']
149
+ end
150
+
151
+ if attributes.key?(:'bcc')
152
+ if (value = attributes[:'bcc']).is_a?(Array)
153
+ self.bcc = value
154
+ end
155
+ end
156
+
157
+ if attributes.key?(:'cc')
158
+ if (value = attributes[:'cc']).is_a?(Array)
159
+ self.cc = value
160
+ end
161
+ end
162
162
  end
163
163
 
164
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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,16 +202,16 @@ 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
- bcc == o.bcc &&
210
- cc == o.cc &&
211
208
  team_access == o.team_access &&
212
209
  read == o.read &&
213
210
  body_md5_hash == o.body_md5_hash &&
214
- body_excerpt == o.body_excerpt
211
+ body_excerpt == o.body_excerpt &&
212
+ created_at == o.created_at &&
213
+ bcc == o.bcc &&
214
+ cc == o.cc
215
215
  end
216
216
 
217
217
  # @see the `==` method
@@ -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, team_access, read, body_md5_hash, body_excerpt, created_at, bcc, cc].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
21
-
22
20
  attr_accessor :user_id
23
21
 
24
22
  attr_accessor :email_address
25
23
 
24
+ attr_accessor :created_at
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',
31
30
  :'user_id' => :'userId',
32
- :'email_address' => :'emailAddress'
31
+ :'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',
41
40
  :'user_id' => :'String',
42
- :'email_address' => :'String'
41
+ :'email_address' => :'String',
42
+ :'created_at' => :'DateTime'
43
43
  }
44
44
  end
45
45
 
@@ -68,10 +68,6 @@ 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']
73
- end
74
-
75
71
  if attributes.key?(:'user_id')
76
72
  self.user_id = attributes[:'user_id']
77
73
  end
@@ -79,6 +75,10 @@ module MailSlurpClient
79
75
  if attributes.key?(:'email_address')
80
76
  self.email_address = attributes[:'email_address']
81
77
  end
78
+
79
+ if attributes.key?(:'created_at')
80
+ self.created_at = attributes[:'created_at']
81
+ end
82
82
  end
83
83
 
84
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -89,10 +89,6 @@ 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.')
94
- end
95
-
96
92
  if @user_id.nil?
97
93
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
98
94
  end
@@ -101,6 +97,10 @@ module MailSlurpClient
101
97
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
102
98
  end
103
99
 
100
+ if @created_at.nil?
101
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
102
+ end
103
+
104
104
  invalid_properties
105
105
  end
106
106
 
@@ -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
111
  return false if @user_id.nil?
113
112
  return false if @email_address.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 &&
124
123
  user_id == o.user_id &&
125
- email_address == o.email_address
124
+ 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, user_id, email_address, 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
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<AliasProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<AttachmentProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash