mailslurp_client 15.17.23 → 15.17.24

Sign up to get free protection for your applications and to get access to all the features.
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<ListUnsubscribeRecipientProjection>',
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<MissedEmailProjection>',
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<OrganizationInboxProjection>',
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<PhoneNumberProjection>',
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<ScheduledJob>',
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
@@ -15,31 +15,23 @@ 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
19
18
  attr_accessor :content
20
19
 
21
20
  attr_accessor :pageable
22
21
 
23
- attr_accessor :total
24
-
25
- # Number of items returned
26
- attr_accessor :number_of_elements
22
+ attr_accessor :total_pages
27
23
 
28
- # Total number of items available for querying
29
24
  attr_accessor :total_elements
30
25
 
31
- # Total number of pages available
32
- attr_accessor :total_pages
26
+ attr_accessor :last
33
27
 
34
- # Size of page requested
35
- attr_accessor :size
28
+ attr_accessor :number_of_elements
36
29
 
37
- # Page number starting at 0
38
- attr_accessor :number
30
+ attr_accessor :first
39
31
 
40
- attr_accessor :last
32
+ attr_accessor :size
41
33
 
42
- attr_accessor :first
34
+ attr_accessor :number
43
35
 
44
36
  attr_accessor :sort
45
37
 
@@ -50,14 +42,13 @@ module MailSlurpClient
50
42
  {
51
43
  :'content' => :'content',
52
44
  :'pageable' => :'pageable',
53
- :'total' => :'total',
54
- :'number_of_elements' => :'numberOfElements',
55
- :'total_elements' => :'totalElements',
56
45
  :'total_pages' => :'totalPages',
57
- :'size' => :'size',
58
- :'number' => :'number',
46
+ :'total_elements' => :'totalElements',
59
47
  :'last' => :'last',
48
+ :'number_of_elements' => :'numberOfElements',
60
49
  :'first' => :'first',
50
+ :'size' => :'size',
51
+ :'number' => :'number',
61
52
  :'sort' => :'sort',
62
53
  :'empty' => :'empty'
63
54
  }
@@ -68,14 +59,13 @@ module MailSlurpClient
68
59
  {
69
60
  :'content' => :'Array<SentEmailProjection>',
70
61
  :'pageable' => :'PageableObject',
71
- :'total' => :'Integer',
72
- :'number_of_elements' => :'Integer',
73
- :'total_elements' => :'Integer',
74
62
  :'total_pages' => :'Integer',
75
- :'size' => :'Integer',
76
- :'number' => :'Integer',
63
+ :'total_elements' => :'Integer',
77
64
  :'last' => :'Boolean',
65
+ :'number_of_elements' => :'Integer',
78
66
  :'first' => :'Boolean',
67
+ :'size' => :'Integer',
68
+ :'number' => :'Integer',
79
69
  :'sort' => :'SortObject',
80
70
  :'empty' => :'Boolean'
81
71
  }
@@ -112,36 +102,32 @@ module MailSlurpClient
112
102
  self.pageable = attributes[:'pageable']
113
103
  end
114
104
 
115
- if attributes.key?(:'total')
116
- self.total = attributes[:'total']
117
- end
118
-
119
- if attributes.key?(:'number_of_elements')
120
- self.number_of_elements = attributes[:'number_of_elements']
105
+ if attributes.key?(:'total_pages')
106
+ self.total_pages = attributes[:'total_pages']
121
107
  end
122
108
 
123
109
  if attributes.key?(:'total_elements')
124
110
  self.total_elements = attributes[:'total_elements']
125
111
  end
126
112
 
127
- if attributes.key?(:'total_pages')
128
- self.total_pages = attributes[:'total_pages']
113
+ if attributes.key?(:'last')
114
+ self.last = attributes[:'last']
129
115
  end
130
116
 
131
- if attributes.key?(:'size')
132
- self.size = attributes[:'size']
117
+ if attributes.key?(:'number_of_elements')
118
+ self.number_of_elements = attributes[:'number_of_elements']
133
119
  end
134
120
 
135
- if attributes.key?(:'number')
136
- self.number = attributes[:'number']
121
+ if attributes.key?(:'first')
122
+ self.first = attributes[:'first']
137
123
  end
138
124
 
139
- if attributes.key?(:'last')
140
- self.last = attributes[:'last']
125
+ if attributes.key?(:'size')
126
+ self.size = attributes[:'size']
141
127
  end
142
128
 
143
- if attributes.key?(:'first')
144
- self.first = attributes[:'first']
129
+ if attributes.key?(:'number')
130
+ self.number = attributes[:'number']
145
131
  end
146
132
 
147
133
  if attributes.key?(:'sort')
@@ -157,28 +143,12 @@ module MailSlurpClient
157
143
  # @return Array for valid properties with the reasons
158
144
  def list_invalid_properties
159
145
  invalid_properties = Array.new
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.')
166
- end
167
-
168
- if @total_elements.nil?
169
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
170
- end
171
-
172
146
  if @total_pages.nil?
173
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
174
148
  end
175
149
 
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.')
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
182
152
  end
183
153
 
184
154
  invalid_properties
@@ -187,12 +157,8 @@ module MailSlurpClient
187
157
  # Check to see if the all the properties in the model are valid
188
158
  # @return true if the model is valid
189
159
  def valid?
190
- return false if @content.nil?
191
- return false if @number_of_elements.nil?
192
- return false if @total_elements.nil?
193
160
  return false if @total_pages.nil?
194
- return false if @size.nil?
195
- return false if @number.nil?
161
+ return false if @total_elements.nil?
196
162
  true
197
163
  end
198
164
 
@@ -203,14 +169,13 @@ module MailSlurpClient
203
169
  self.class == o.class &&
204
170
  content == o.content &&
205
171
  pageable == o.pageable &&
206
- total == o.total &&
207
- number_of_elements == o.number_of_elements &&
208
- total_elements == o.total_elements &&
209
172
  total_pages == o.total_pages &&
210
- size == o.size &&
211
- number == o.number &&
173
+ total_elements == o.total_elements &&
212
174
  last == o.last &&
175
+ number_of_elements == o.number_of_elements &&
213
176
  first == o.first &&
177
+ size == o.size &&
178
+ number == o.number &&
214
179
  sort == o.sort &&
215
180
  empty == o.empty
216
181
  end
@@ -224,7 +189,7 @@ module MailSlurpClient
224
189
  # Calculates hash code according to all attributes.
225
190
  # @return [Integer] Hash code
226
191
  def hash
227
- [content, pageable, total, number_of_elements, total_elements, total_pages, size, number, last, first, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
228
193
  end
229
194
 
230
195
  # Builds the object from hash