mailslurp_client 15.17.24 → 15.17.25

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/models/alias_projection.rb +19 -19
  3. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  4. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  6. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  8. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  9. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  10. data/lib/mailslurp_client/models/page_alias.rb +16 -17
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +16 -17
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +16 -17
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +16 -17
  14. data/lib/mailslurp_client/models/page_complaint.rb +16 -17
  15. data/lib/mailslurp_client/models/page_connector.rb +16 -17
  16. data/lib/mailslurp_client/models/page_connector_sync_events.rb +16 -17
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +16 -17
  18. data/lib/mailslurp_client/models/page_delivery_status.rb +16 -17
  19. data/lib/mailslurp_client/models/page_email_preview.rb +16 -17
  20. data/lib/mailslurp_client/models/page_email_projection.rb +21 -12
  21. data/lib/mailslurp_client/models/page_email_validation_request.rb +16 -17
  22. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +16 -17
  23. data/lib/mailslurp_client/models/page_group_projection.rb +16 -17
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +16 -17
  25. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +16 -17
  26. data/lib/mailslurp_client/models/page_inbox_projection.rb +16 -17
  27. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +16 -17
  28. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +16 -17
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +16 -17
  30. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +16 -17
  31. data/lib/mailslurp_client/models/page_missed_email_projection.rb +16 -17
  32. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +16 -17
  33. data/lib/mailslurp_client/models/page_phone_number_projection.rb +16 -17
  34. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +16 -17
  35. data/lib/mailslurp_client/models/page_sent_email_projection.rb +69 -34
  36. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +69 -34
  37. data/lib/mailslurp_client/models/page_sms_projection.rb +16 -17
  38. data/lib/mailslurp_client/models/page_template_projection.rb +16 -17
  39. data/lib/mailslurp_client/models/page_thread_projection.rb +16 -17
  40. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +16 -17
  41. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +16 -17
  42. data/lib/mailslurp_client/models/page_webhook_projection.rb +16 -17
  43. data/lib/mailslurp_client/models/page_webhook_result.rb +16 -17
  44. data/lib/mailslurp_client/models/send_with_queue_result.rb +1 -0
  45. data/lib/mailslurp_client/models/sent_email_projection.rb +22 -21
  46. data/lib/mailslurp_client/models/thread_projection.rb +23 -23
  47. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  49. data/lib/mailslurp_client/version.rb +1 -1
  50. metadata +2 -2
@@ -15,24 +15,32 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Paginated sent email results. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls.
17
17
  class PageSentEmailProjection
18
+ # Collection of items
18
19
  attr_accessor :content
19
20
 
20
21
  attr_accessor :pageable
21
22
 
22
- attr_accessor :total_pages
23
-
24
- attr_accessor :total_elements
25
-
26
- attr_accessor :last
23
+ attr_accessor :total
27
24
 
25
+ # Number of items returned
28
26
  attr_accessor :number_of_elements
29
27
 
30
- attr_accessor :first
28
+ # Total number of items available for querying
29
+ attr_accessor :total_elements
31
30
 
31
+ # Total number of pages available
32
+ attr_accessor :total_pages
33
+
34
+ # Size of page requested
32
35
  attr_accessor :size
33
36
 
37
+ # Page number starting at 0
34
38
  attr_accessor :number
35
39
 
40
+ attr_accessor :last
41
+
42
+ attr_accessor :first
43
+
36
44
  attr_accessor :sort
37
45
 
38
46
  attr_accessor :empty
@@ -42,13 +50,14 @@ module MailSlurpClient
42
50
  {
43
51
  :'content' => :'content',
44
52
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
46
- :'total_elements' => :'totalElements',
47
- :'last' => :'last',
53
+ :'total' => :'total',
48
54
  :'number_of_elements' => :'numberOfElements',
49
- :'first' => :'first',
55
+ :'total_elements' => :'totalElements',
56
+ :'total_pages' => :'totalPages',
50
57
  :'size' => :'size',
51
58
  :'number' => :'number',
59
+ :'last' => :'last',
60
+ :'first' => :'first',
52
61
  :'sort' => :'sort',
53
62
  :'empty' => :'empty'
54
63
  }
@@ -59,13 +68,14 @@ module MailSlurpClient
59
68
  {
60
69
  :'content' => :'Array<SentEmailProjection>',
61
70
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
63
- :'total_elements' => :'Integer',
64
- :'last' => :'Boolean',
71
+ :'total' => :'Integer',
65
72
  :'number_of_elements' => :'Integer',
66
- :'first' => :'Boolean',
73
+ :'total_elements' => :'Integer',
74
+ :'total_pages' => :'Integer',
67
75
  :'size' => :'Integer',
68
76
  :'number' => :'Integer',
77
+ :'last' => :'Boolean',
78
+ :'first' => :'Boolean',
69
79
  :'sort' => :'SortObject',
70
80
  :'empty' => :'Boolean'
71
81
  }
@@ -102,24 +112,20 @@ module MailSlurpClient
102
112
  self.pageable = attributes[:'pageable']
103
113
  end
104
114
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
107
- end
108
-
109
- if attributes.key?(:'total_elements')
110
- self.total_elements = attributes[:'total_elements']
111
- end
112
-
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
+ if attributes.key?(:'total')
116
+ self.total = attributes[:'total']
115
117
  end
116
118
 
117
119
  if attributes.key?(:'number_of_elements')
118
120
  self.number_of_elements = attributes[:'number_of_elements']
119
121
  end
120
122
 
121
- if attributes.key?(:'first')
122
- self.first = attributes[:'first']
123
+ if attributes.key?(:'total_elements')
124
+ self.total_elements = attributes[:'total_elements']
125
+ end
126
+
127
+ if attributes.key?(:'total_pages')
128
+ self.total_pages = attributes[:'total_pages']
123
129
  end
124
130
 
125
131
  if attributes.key?(:'size')
@@ -130,6 +136,14 @@ module MailSlurpClient
130
136
  self.number = attributes[:'number']
131
137
  end
132
138
 
139
+ if attributes.key?(:'last')
140
+ self.last = attributes[:'last']
141
+ end
142
+
143
+ if attributes.key?(:'first')
144
+ self.first = attributes[:'first']
145
+ end
146
+
133
147
  if attributes.key?(:'sort')
134
148
  self.sort = attributes[:'sort']
135
149
  end
@@ -143,22 +157,42 @@ module MailSlurpClient
143
157
  # @return Array for valid properties with the reasons
144
158
  def list_invalid_properties
145
159
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
160
+ if @content.nil?
161
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
162
+ end
163
+
164
+ if @number_of_elements.nil?
165
+ invalid_properties.push('invalid value for "number_of_elements", number_of_elements cannot be nil.')
148
166
  end
149
167
 
150
168
  if @total_elements.nil?
151
169
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
170
  end
153
171
 
172
+ if @total_pages.nil?
173
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
174
+ end
175
+
176
+ if @size.nil?
177
+ invalid_properties.push('invalid value for "size", size cannot be nil.')
178
+ end
179
+
180
+ if @number.nil?
181
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
182
+ end
183
+
154
184
  invalid_properties
155
185
  end
156
186
 
157
187
  # Check to see if the all the properties in the model are valid
158
188
  # @return true if the model is valid
159
189
  def valid?
160
- return false if @total_pages.nil?
190
+ return false if @content.nil?
191
+ return false if @number_of_elements.nil?
161
192
  return false if @total_elements.nil?
193
+ return false if @total_pages.nil?
194
+ return false if @size.nil?
195
+ return false if @number.nil?
162
196
  true
163
197
  end
164
198
 
@@ -169,13 +203,14 @@ module MailSlurpClient
169
203
  self.class == o.class &&
170
204
  content == o.content &&
171
205
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
173
- total_elements == o.total_elements &&
174
- last == o.last &&
206
+ total == o.total &&
175
207
  number_of_elements == o.number_of_elements &&
176
- first == o.first &&
208
+ total_elements == o.total_elements &&
209
+ total_pages == o.total_pages &&
177
210
  size == o.size &&
178
211
  number == o.number &&
212
+ last == o.last &&
213
+ first == o.first &&
179
214
  sort == o.sort &&
180
215
  empty == o.empty
181
216
  end
@@ -189,7 +224,7 @@ module MailSlurpClient
189
224
  # Calculates hash code according to all attributes.
190
225
  # @return [Integer] Hash code
191
226
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
227
+ [content, pageable, total, number_of_elements, total_elements, total_pages, size, number, last, first, sort, empty].hash
193
228
  end
194
229
 
195
230
  # Builds the object from hash
@@ -15,24 +15,32 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Paginated sent email results for emails sent with queue. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls.
17
17
  class PageSentEmailWithQueueProjection
18
+ # Collection of items
18
19
  attr_accessor :content
19
20
 
20
21
  attr_accessor :pageable
21
22
 
22
- attr_accessor :total_pages
23
-
24
- attr_accessor :total_elements
25
-
26
- attr_accessor :last
23
+ attr_accessor :total
27
24
 
25
+ # Number of items returned
28
26
  attr_accessor :number_of_elements
29
27
 
30
- attr_accessor :first
28
+ # Total number of items available for querying
29
+ attr_accessor :total_elements
31
30
 
31
+ # Total number of pages available
32
+ attr_accessor :total_pages
33
+
34
+ # Size of page requested
32
35
  attr_accessor :size
33
36
 
37
+ # Page number starting at 0
34
38
  attr_accessor :number
35
39
 
40
+ attr_accessor :last
41
+
42
+ attr_accessor :first
43
+
36
44
  attr_accessor :sort
37
45
 
38
46
  attr_accessor :empty
@@ -42,13 +50,14 @@ module MailSlurpClient
42
50
  {
43
51
  :'content' => :'content',
44
52
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
46
- :'total_elements' => :'totalElements',
47
- :'last' => :'last',
53
+ :'total' => :'total',
48
54
  :'number_of_elements' => :'numberOfElements',
49
- :'first' => :'first',
55
+ :'total_elements' => :'totalElements',
56
+ :'total_pages' => :'totalPages',
50
57
  :'size' => :'size',
51
58
  :'number' => :'number',
59
+ :'last' => :'last',
60
+ :'first' => :'first',
52
61
  :'sort' => :'sort',
53
62
  :'empty' => :'empty'
54
63
  }
@@ -59,13 +68,14 @@ module MailSlurpClient
59
68
  {
60
69
  :'content' => :'Array<SendWithQueueResult>',
61
70
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
63
- :'total_elements' => :'Integer',
64
- :'last' => :'Boolean',
71
+ :'total' => :'Integer',
65
72
  :'number_of_elements' => :'Integer',
66
- :'first' => :'Boolean',
73
+ :'total_elements' => :'Integer',
74
+ :'total_pages' => :'Integer',
67
75
  :'size' => :'Integer',
68
76
  :'number' => :'Integer',
77
+ :'last' => :'Boolean',
78
+ :'first' => :'Boolean',
69
79
  :'sort' => :'SortObject',
70
80
  :'empty' => :'Boolean'
71
81
  }
@@ -102,24 +112,20 @@ module MailSlurpClient
102
112
  self.pageable = attributes[:'pageable']
103
113
  end
104
114
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
107
- end
108
-
109
- if attributes.key?(:'total_elements')
110
- self.total_elements = attributes[:'total_elements']
111
- end
112
-
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
+ if attributes.key?(:'total')
116
+ self.total = attributes[:'total']
115
117
  end
116
118
 
117
119
  if attributes.key?(:'number_of_elements')
118
120
  self.number_of_elements = attributes[:'number_of_elements']
119
121
  end
120
122
 
121
- if attributes.key?(:'first')
122
- self.first = attributes[:'first']
123
+ if attributes.key?(:'total_elements')
124
+ self.total_elements = attributes[:'total_elements']
125
+ end
126
+
127
+ if attributes.key?(:'total_pages')
128
+ self.total_pages = attributes[:'total_pages']
123
129
  end
124
130
 
125
131
  if attributes.key?(:'size')
@@ -130,6 +136,14 @@ module MailSlurpClient
130
136
  self.number = attributes[:'number']
131
137
  end
132
138
 
139
+ if attributes.key?(:'last')
140
+ self.last = attributes[:'last']
141
+ end
142
+
143
+ if attributes.key?(:'first')
144
+ self.first = attributes[:'first']
145
+ end
146
+
133
147
  if attributes.key?(:'sort')
134
148
  self.sort = attributes[:'sort']
135
149
  end
@@ -143,22 +157,42 @@ module MailSlurpClient
143
157
  # @return Array for valid properties with the reasons
144
158
  def list_invalid_properties
145
159
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
160
+ if @content.nil?
161
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
162
+ end
163
+
164
+ if @number_of_elements.nil?
165
+ invalid_properties.push('invalid value for "number_of_elements", number_of_elements cannot be nil.')
148
166
  end
149
167
 
150
168
  if @total_elements.nil?
151
169
  invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
170
  end
153
171
 
172
+ if @total_pages.nil?
173
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
174
+ end
175
+
176
+ if @size.nil?
177
+ invalid_properties.push('invalid value for "size", size cannot be nil.')
178
+ end
179
+
180
+ if @number.nil?
181
+ invalid_properties.push('invalid value for "number", number cannot be nil.')
182
+ end
183
+
154
184
  invalid_properties
155
185
  end
156
186
 
157
187
  # Check to see if the all the properties in the model are valid
158
188
  # @return true if the model is valid
159
189
  def valid?
160
- return false if @total_pages.nil?
190
+ return false if @content.nil?
191
+ return false if @number_of_elements.nil?
161
192
  return false if @total_elements.nil?
193
+ return false if @total_pages.nil?
194
+ return false if @size.nil?
195
+ return false if @number.nil?
162
196
  true
163
197
  end
164
198
 
@@ -169,13 +203,14 @@ module MailSlurpClient
169
203
  self.class == o.class &&
170
204
  content == o.content &&
171
205
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
173
- total_elements == o.total_elements &&
174
- last == o.last &&
206
+ total == o.total &&
175
207
  number_of_elements == o.number_of_elements &&
176
- first == o.first &&
208
+ total_elements == o.total_elements &&
209
+ total_pages == o.total_pages &&
177
210
  size == o.size &&
178
211
  number == o.number &&
212
+ last == o.last &&
213
+ first == o.first &&
179
214
  sort == o.sort &&
180
215
  empty == o.empty
181
216
  end
@@ -189,7 +224,7 @@ module MailSlurpClient
189
224
  # Calculates hash code according to all attributes.
190
225
  # @return [Integer] Hash code
191
226
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
227
+ [content, pageable, total, number_of_elements, total_elements, total_pages, size, number, last, first, sort, empty].hash
193
228
  end
194
229
 
195
230
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<SmsProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<TemplateProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_pages
22
+ attr_accessor :total
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
+ attr_accessor :total_pages
27
+
26
28
  attr_accessor :last
27
29
 
28
30
  attr_accessor :number_of_elements
@@ -42,8 +44,9 @@ module MailSlurpClient
42
44
  {
43
45
  :'content' => :'content',
44
46
  :'pageable' => :'pageable',
45
- :'total_pages' => :'totalPages',
47
+ :'total' => :'total',
46
48
  :'total_elements' => :'totalElements',
49
+ :'total_pages' => :'totalPages',
47
50
  :'last' => :'last',
48
51
  :'number_of_elements' => :'numberOfElements',
49
52
  :'first' => :'first',
@@ -59,8 +62,9 @@ module MailSlurpClient
59
62
  {
60
63
  :'content' => :'Array<ThreadProjection>',
61
64
  :'pageable' => :'PageableObject',
62
- :'total_pages' => :'Integer',
65
+ :'total' => :'Integer',
63
66
  :'total_elements' => :'Integer',
67
+ :'total_pages' => :'Integer',
64
68
  :'last' => :'Boolean',
65
69
  :'number_of_elements' => :'Integer',
66
70
  :'first' => :'Boolean',
@@ -102,14 +106,18 @@ module MailSlurpClient
102
106
  self.pageable = attributes[:'pageable']
103
107
  end
104
108
 
105
- if attributes.key?(:'total_pages')
106
- self.total_pages = attributes[:'total_pages']
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
107
111
  end
108
112
 
109
113
  if attributes.key?(:'total_elements')
110
114
  self.total_elements = attributes[:'total_elements']
111
115
  end
112
116
 
117
+ if attributes.key?(:'total_pages')
118
+ self.total_pages = attributes[:'total_pages']
119
+ end
120
+
113
121
  if attributes.key?(:'last')
114
122
  self.last = attributes[:'last']
115
123
  end
@@ -143,22 +151,12 @@ module MailSlurpClient
143
151
  # @return Array for valid properties with the reasons
144
152
  def list_invalid_properties
145
153
  invalid_properties = Array.new
146
- if @total_pages.nil?
147
- invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
- end
149
-
150
- if @total_elements.nil?
151
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
- end
153
-
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_pages.nil?
161
- return false if @total_elements.nil?
162
160
  true
163
161
  end
164
162
 
@@ -169,8 +167,9 @@ module MailSlurpClient
169
167
  self.class == o.class &&
170
168
  content == o.content &&
171
169
  pageable == o.pageable &&
172
- total_pages == o.total_pages &&
170
+ total == o.total &&
173
171
  total_elements == o.total_elements &&
172
+ total_pages == o.total_pages &&
174
173
  last == o.last &&
175
174
  number_of_elements == o.number_of_elements &&
176
175
  first == o.first &&
@@ -189,7 +188,7 @@ module MailSlurpClient
189
188
  # Calculates hash code according to all attributes.
190
189
  # @return [Integer] Hash code
191
190
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
193
192
  end
194
193
 
195
194
  # Builds the object from hash