mailslurp_client 15.17.23 → 15.17.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +69 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +28 -28
  4. data/lib/mailslurp_client/models/attachment_projection.rb +11 -11
  5. data/lib/mailslurp_client/models/bounce_projection.rb +17 -17
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/email_content_part_result.rb +207 -0
  11. data/lib/mailslurp_client/models/email_projection.rb +25 -25
  12. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  13. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
  14. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +27 -27
  15. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  17. data/lib/mailslurp_client/models/page_alias.rb +17 -16
  18. data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
  19. data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
  20. data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
  21. data/lib/mailslurp_client/models/page_complaint.rb +17 -16
  22. data/lib/mailslurp_client/models/page_connector.rb +17 -16
  23. data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
  24. data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
  25. data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
  26. data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
  27. data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
  28. data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
  29. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
  30. data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
  31. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
  32. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
  33. data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
  34. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
  35. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
  36. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
  37. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
  38. data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
  39. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
  40. data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
  41. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
  42. data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
  43. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
  44. data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
  45. data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
  46. data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
  47. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
  48. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
  49. data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
  50. data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
  51. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
  53. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
  54. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  55. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  56. data/lib/mailslurp_client/models/thread_projection.rb +45 -45
  57. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +24 -24
  58. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  59. data/lib/mailslurp_client/models/webhook_projection.rb +27 -27
  60. data/lib/mailslurp_client/version.rb +1 -1
  61. data/lib/mailslurp_client.rb +1 -0
  62. metadata +3 -2
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<GroupProjection>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxForwarderDto>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxForwarderEventProjection>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxPreview>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxReplierDto>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxReplierEventProjection>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash
@@ -19,12 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total
22
+ attr_accessor :total_pages
23
23
 
24
24
  attr_accessor :total_elements
25
25
 
26
- attr_accessor :total_pages
27
-
28
26
  attr_accessor :last
29
27
 
30
28
  attr_accessor :number_of_elements
@@ -44,9 +42,8 @@ module MailSlurpClient
44
42
  {
45
43
  :'content' => :'content',
46
44
  :'pageable' => :'pageable',
47
- :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
50
47
  :'last' => :'last',
51
48
  :'number_of_elements' => :'numberOfElements',
52
49
  :'first' => :'first',
@@ -62,9 +59,8 @@ module MailSlurpClient
62
59
  {
63
60
  :'content' => :'Array<InboxRulesetDto>',
64
61
  :'pageable' => :'PageableObject',
65
- :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
68
64
  :'last' => :'Boolean',
69
65
  :'number_of_elements' => :'Integer',
70
66
  :'first' => :'Boolean',
@@ -106,18 +102,14 @@ module MailSlurpClient
106
102
  self.pageable = attributes[:'pageable']
107
103
  end
108
104
 
109
- if attributes.key?(:'total')
110
- self.total = attributes[:'total']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'total_elements')
114
110
  self.total_elements = attributes[:'total_elements']
115
111
  end
116
112
 
117
- if attributes.key?(:'total_pages')
118
- self.total_pages = attributes[:'total_pages']
119
- end
120
-
121
113
  if attributes.key?(:'last')
122
114
  self.last = attributes[:'last']
123
115
  end
@@ -151,12 +143,22 @@ module MailSlurpClient
151
143
  # @return Array for valid properties with the reasons
152
144
  def list_invalid_properties
153
145
  invalid_properties = Array.new
146
+ if @total_pages.nil?
147
+ invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
148
+ end
149
+
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
+ return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
160
162
  true
161
163
  end
162
164
 
@@ -167,9 +169,8 @@ module MailSlurpClient
167
169
  self.class == o.class &&
168
170
  content == o.content &&
169
171
  pageable == o.pageable &&
170
- total == o.total &&
171
- total_elements == o.total_elements &&
172
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
173
174
  last == o.last &&
174
175
  number_of_elements == o.number_of_elements &&
175
176
  first == o.first &&
@@ -188,7 +189,7 @@ module MailSlurpClient
188
189
  # Calculates hash code according to all attributes.
189
190
  # @return [Integer] Hash code
190
191
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
193
  end
193
194
 
194
195
  # Builds the object from hash