mailslurp_client 15.12.16 → 15.12.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
  3. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
  4. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
  9. data/lib/mailslurp_client/models/email.rb +11 -1
  10. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  11. data/lib/mailslurp_client/models/email_projection.rb +40 -31
  12. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  13. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  15. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  16. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  17. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  18. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  19. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  20. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_delivery_status.rb +20 -20
  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_phone_number_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  39. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  40. data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
  42. data/lib/mailslurp_client/models/sort.rb +13 -13
  43. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +1 -1
  48. metadata +3 -3
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the email entity
19
19
  attr_accessor :id
20
20
 
21
+ # ID of the domain that received the email
22
+ attr_accessor :domain_id
23
+
21
24
  # The subject line of the email message as specified by SMTP subject header
22
25
  attr_accessor :subject
23
26
 
@@ -46,6 +49,7 @@ module MailSlurpClient
46
49
  def self.attribute_map
47
50
  {
48
51
  :'id' => :'id',
52
+ :'domain_id' => :'domainId',
49
53
  :'subject' => :'subject',
50
54
  :'to' => :'to',
51
55
  :'from' => :'from',
@@ -61,6 +65,7 @@ module MailSlurpClient
61
65
  def self.openapi_types
62
66
  {
63
67
  :'id' => :'String',
68
+ :'domain_id' => :'String',
64
69
  :'subject' => :'String',
65
70
  :'to' => :'Array<String>',
66
71
  :'from' => :'String',
@@ -103,6 +108,10 @@ module MailSlurpClient
103
108
  self.id = attributes[:'id']
104
109
  end
105
110
 
111
+ if attributes.key?(:'domain_id')
112
+ self.domain_id = attributes[:'domain_id']
113
+ end
114
+
106
115
  if attributes.key?(:'subject')
107
116
  self.subject = attributes[:'subject']
108
117
  end
@@ -178,6 +187,7 @@ module MailSlurpClient
178
187
  return true if self.equal?(o)
179
188
  self.class == o.class &&
180
189
  id == o.id &&
190
+ domain_id == o.domain_id &&
181
191
  subject == o.subject &&
182
192
  to == o.to &&
183
193
  from == o.from &&
@@ -197,7 +207,7 @@ module MailSlurpClient
197
207
  # Calculates hash code according to all attributes.
198
208
  # @return [Integer] Hash code
199
209
  def hash
200
- [id, subject, to, from, bcc, cc, created_at, read, attachments].hash
210
+ [id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments].hash
201
211
  end
202
212
 
203
213
  # Builds the object from hash
@@ -19,12 +19,16 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :inbox_id
23
-
24
22
  attr_accessor :subject
25
23
 
24
+ attr_accessor :inbox_id
25
+
26
26
  attr_accessor :attachments
27
27
 
28
+ attr_accessor :body_md5_hash
29
+
30
+ attr_accessor :body_excerpt
31
+
28
32
  attr_accessor :to
29
33
 
30
34
  attr_accessor :created_at
@@ -33,30 +37,29 @@ module MailSlurpClient
33
37
 
34
38
  attr_accessor :cc
35
39
 
40
+ attr_accessor :domain_id
41
+
36
42
  attr_accessor :team_access
37
43
 
38
44
  attr_accessor :read
39
45
 
40
- attr_accessor :body_md5_hash
41
-
42
- attr_accessor :body_excerpt
43
-
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
47
49
  :'id' => :'id',
48
50
  :'from' => :'from',
49
- :'inbox_id' => :'inboxId',
50
51
  :'subject' => :'subject',
52
+ :'inbox_id' => :'inboxId',
51
53
  :'attachments' => :'attachments',
54
+ :'body_md5_hash' => :'bodyMD5Hash',
55
+ :'body_excerpt' => :'bodyExcerpt',
52
56
  :'to' => :'to',
53
57
  :'created_at' => :'createdAt',
54
58
  :'bcc' => :'bcc',
55
59
  :'cc' => :'cc',
60
+ :'domain_id' => :'domainId',
56
61
  :'team_access' => :'teamAccess',
57
- :'read' => :'read',
58
- :'body_md5_hash' => :'bodyMD5Hash',
59
- :'body_excerpt' => :'bodyExcerpt'
62
+ :'read' => :'read'
60
63
  }
61
64
  end
62
65
 
@@ -65,17 +68,18 @@ module MailSlurpClient
65
68
  {
66
69
  :'id' => :'String',
67
70
  :'from' => :'String',
68
- :'inbox_id' => :'String',
69
71
  :'subject' => :'String',
72
+ :'inbox_id' => :'String',
70
73
  :'attachments' => :'Array<String>',
74
+ :'body_md5_hash' => :'String',
75
+ :'body_excerpt' => :'String',
71
76
  :'to' => :'Array<String>',
72
77
  :'created_at' => :'DateTime',
73
78
  :'bcc' => :'Array<String>',
74
79
  :'cc' => :'Array<String>',
80
+ :'domain_id' => :'String',
75
81
  :'team_access' => :'Boolean',
76
- :'read' => :'Boolean',
77
- :'body_md5_hash' => :'String',
78
- :'body_excerpt' => :'String'
82
+ :'read' => :'Boolean'
79
83
  }
80
84
  end
81
85
 
@@ -108,20 +112,28 @@ module MailSlurpClient
108
112
  self.from = attributes[:'from']
109
113
  end
110
114
 
111
- if attributes.key?(:'inbox_id')
112
- self.inbox_id = attributes[:'inbox_id']
113
- end
114
-
115
115
  if attributes.key?(:'subject')
116
116
  self.subject = attributes[:'subject']
117
117
  end
118
118
 
119
+ if attributes.key?(:'inbox_id')
120
+ self.inbox_id = attributes[:'inbox_id']
121
+ end
122
+
119
123
  if attributes.key?(:'attachments')
120
124
  if (value = attributes[:'attachments']).is_a?(Array)
121
125
  self.attachments = value
122
126
  end
123
127
  end
124
128
 
129
+ if attributes.key?(:'body_md5_hash')
130
+ self.body_md5_hash = attributes[:'body_md5_hash']
131
+ end
132
+
133
+ if attributes.key?(:'body_excerpt')
134
+ self.body_excerpt = attributes[:'body_excerpt']
135
+ end
136
+
125
137
  if attributes.key?(:'to')
126
138
  if (value = attributes[:'to']).is_a?(Array)
127
139
  self.to = value
@@ -144,6 +156,10 @@ module MailSlurpClient
144
156
  end
145
157
  end
146
158
 
159
+ if attributes.key?(:'domain_id')
160
+ self.domain_id = attributes[:'domain_id']
161
+ end
162
+
147
163
  if attributes.key?(:'team_access')
148
164
  self.team_access = attributes[:'team_access']
149
165
  end
@@ -151,14 +167,6 @@ module MailSlurpClient
151
167
  if attributes.key?(:'read')
152
168
  self.read = attributes[:'read']
153
169
  end
154
-
155
- if attributes.key?(:'body_md5_hash')
156
- self.body_md5_hash = attributes[:'body_md5_hash']
157
- end
158
-
159
- if attributes.key?(:'body_excerpt')
160
- self.body_excerpt = attributes[:'body_excerpt']
161
- end
162
170
  end
163
171
 
164
172
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -211,17 +219,18 @@ module MailSlurpClient
211
219
  self.class == o.class &&
212
220
  id == o.id &&
213
221
  from == o.from &&
214
- inbox_id == o.inbox_id &&
215
222
  subject == o.subject &&
223
+ inbox_id == o.inbox_id &&
216
224
  attachments == o.attachments &&
225
+ body_md5_hash == o.body_md5_hash &&
226
+ body_excerpt == o.body_excerpt &&
217
227
  to == o.to &&
218
228
  created_at == o.created_at &&
219
229
  bcc == o.bcc &&
220
230
  cc == o.cc &&
231
+ domain_id == o.domain_id &&
221
232
  team_access == o.team_access &&
222
- read == o.read &&
223
- body_md5_hash == o.body_md5_hash &&
224
- body_excerpt == o.body_excerpt
233
+ read == o.read
225
234
  end
226
235
 
227
236
  # @see the `==` method
@@ -233,7 +242,7 @@ module MailSlurpClient
233
242
  # Calculates hash code according to all attributes.
234
243
  # @return [Integer] Hash code
235
244
  def hash
236
- [id, from, inbox_id, subject, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
245
+ [id, from, subject, inbox_id, attachments, body_md5_hash, body_excerpt, to, created_at, bcc, cc, domain_id, team_access, read].hash
237
246
  end
238
247
 
239
248
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
22
25
  attr_accessor :email_address
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'email_address' => :'emailAddress',
75
79
  :'created_at' => :'createdAt',
76
80
  :'favourite' => :'favourite',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'email_address' => :'String',
91
96
  :'created_at' => :'DateTime',
92
97
  :'favourite' => :'Boolean',
@@ -129,6 +134,10 @@ module MailSlurpClient
129
134
  self.id = attributes[:'id']
130
135
  end
131
136
 
137
+ if attributes.key?(:'domain_id')
138
+ self.domain_id = attributes[:'domain_id']
139
+ end
140
+
132
141
  if attributes.key?(:'email_address')
133
142
  self.email_address = attributes[:'email_address']
134
143
  end
@@ -224,6 +233,7 @@ module MailSlurpClient
224
233
  return true if self.equal?(o)
225
234
  self.class == o.class &&
226
235
  id == o.id &&
236
+ domain_id == o.domain_id &&
227
237
  email_address == o.email_address &&
228
238
  created_at == o.created_at &&
229
239
  favourite == o.favourite &&
@@ -244,7 +254,7 @@ module MailSlurpClient
244
254
  # Calculates hash code according to all attributes.
245
255
  # @return [Integer] Hash code
246
256
  def hash
247
- [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
257
+ [id, domain_id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
248
258
  end
249
259
 
250
260
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :subject
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :created_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
- :'user_id' => :'userId',
34
33
  :'subject' => :'subject',
34
+ :'user_id' => :'userId',
35
35
  :'created_at' => :'createdAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
- :'user_id' => :'String',
45
44
  :'subject' => :'String',
45
+ :'user_id' => :'String',
46
46
  :'created_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,14 +76,14 @@ module MailSlurpClient
76
76
  self.from = attributes[:'from']
77
77
  end
78
78
 
79
- if attributes.key?(:'user_id')
80
- self.user_id = attributes[:'user_id']
81
- end
82
-
83
79
  if attributes.key?(:'subject')
84
80
  self.subject = attributes[:'subject']
85
81
  end
86
82
 
83
+ if attributes.key?(:'user_id')
84
+ self.user_id = attributes[:'user_id']
85
+ end
86
+
87
87
  if attributes.key?(:'created_at')
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  self.class == o.class &&
120
120
  id == o.id &&
121
121
  from == o.from &&
122
- user_id == o.user_id &&
123
122
  subject == o.subject &&
123
+ user_id == o.user_id &&
124
124
  created_at == o.created_at
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [id, from, user_id, subject, created_at].hash
136
+ [id, from, subject, user_id, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
22
25
  attr_accessor :created_at
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'created_at' => :'createdAt',
75
79
  :'name' => :'name',
76
80
  :'email_address' => :'emailAddress',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'created_at' => :'DateTime',
91
96
  :'name' => :'String',
92
97
  :'email_address' => :'String',
@@ -128,6 +133,10 @@ module MailSlurpClient
128
133
  self.id = attributes[:'id']
129
134
  end
130
135
 
136
+ if attributes.key?(:'domain_id')
137
+ self.domain_id = attributes[:'domain_id']
138
+ end
139
+
131
140
  if attributes.key?(:'created_at')
132
141
  self.created_at = attributes[:'created_at']
133
142
  end
@@ -228,6 +237,7 @@ module MailSlurpClient
228
237
  return true if self.equal?(o)
229
238
  self.class == o.class &&
230
239
  id == o.id &&
240
+ domain_id == o.domain_id &&
231
241
  created_at == o.created_at &&
232
242
  name == o.name &&
233
243
  email_address == o.email_address &&
@@ -248,7 +258,7 @@ module MailSlurpClient
248
258
  # Calculates hash code according to all attributes.
249
259
  # @return [Integer] Hash code
250
260
  def hash
251
- [id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
261
+ [id, domain_id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
252
262
  end
253
263
 
254
264
  # Builds the object from hash
@@ -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_pages
27
25
 
28
26
  attr_accessor :total_elements
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_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
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_pages' => :'Integer',
68
67
  :'total_elements' => :'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_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
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_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
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_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_pages, total_elements, 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_pages
27
25
 
28
26
  attr_accessor :total_elements
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_pages' => :'totalPages',
50
49
  :'total_elements' => :'totalElements',
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_pages' => :'Integer',
68
67
  :'total_elements' => :'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_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
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_pages == o.total_pages &&
173
172
  total_elements == o.total_elements &&
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_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_pages, total_elements, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash