mailslurp_client 15.17.32 → 15.17.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -0
  3. data/lib/mailslurp_client/api/sms_controller_api.rb +56 -0
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +186 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
  7. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  8. data/lib/mailslurp_client/models/email.rb +13 -13
  9. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  12. data/lib/mailslurp_client/models/page_alias.rb +17 -16
  13. data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
  14. data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
  15. data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
  16. data/lib/mailslurp_client/models/page_complaint.rb +17 -16
  17. data/lib/mailslurp_client/models/page_connector.rb +17 -16
  18. data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
  19. data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
  20. data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
  21. data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
  22. data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
  23. data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
  24. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
  25. data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
  26. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
  29. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
  30. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
  31. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
  32. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
  33. data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
  34. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
  35. data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
  36. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
  37. data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
  38. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
  39. data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
  40. data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
  41. data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
  42. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
  43. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
  44. data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
  45. data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
  46. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  47. data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
  48. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
  49. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  50. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/user_info_dto.rb +2 -2
  52. data/lib/mailslurp_client/models/webhook_redrive_all_result.rb +222 -0
  53. data/lib/mailslurp_client/models/webhook_result_dto.rb +56 -16
  54. data/lib/mailslurp_client/version.rb +1 -1
  55. data/lib/mailslurp_client.rb +1 -0
  56. 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<TemplateProjection>',
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<ThreadProjection>',
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<TrackingPixelProjection>',
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<UnknownMissedEmailProjection>',
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<WebhookProjection>',
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<WebhookResultDto>',
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
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :page_size
20
20
 
21
- attr_accessor :unpaged
22
-
23
21
  attr_accessor :paged
24
22
 
23
+ attr_accessor :unpaged
24
+
25
25
  attr_accessor :offset
26
26
 
27
27
  attr_accessor :sort
@@ -31,8 +31,8 @@ module MailSlurpClient
31
31
  {
32
32
  :'page_number' => :'pageNumber',
33
33
  :'page_size' => :'pageSize',
34
- :'unpaged' => :'unpaged',
35
34
  :'paged' => :'paged',
35
+ :'unpaged' => :'unpaged',
36
36
  :'offset' => :'offset',
37
37
  :'sort' => :'sort'
38
38
  }
@@ -43,8 +43,8 @@ module MailSlurpClient
43
43
  {
44
44
  :'page_number' => :'Integer',
45
45
  :'page_size' => :'Integer',
46
- :'unpaged' => :'Boolean',
47
46
  :'paged' => :'Boolean',
47
+ :'unpaged' => :'Boolean',
48
48
  :'offset' => :'Integer',
49
49
  :'sort' => :'SortObject'
50
50
  }
@@ -79,14 +79,14 @@ module MailSlurpClient
79
79
  self.page_size = attributes[:'page_size']
80
80
  end
81
81
 
82
- if attributes.key?(:'unpaged')
83
- self.unpaged = attributes[:'unpaged']
84
- end
85
-
86
82
  if attributes.key?(:'paged')
87
83
  self.paged = attributes[:'paged']
88
84
  end
89
85
 
86
+ if attributes.key?(:'unpaged')
87
+ self.unpaged = attributes[:'unpaged']
88
+ end
89
+
90
90
  if attributes.key?(:'offset')
91
91
  self.offset = attributes[:'offset']
92
92
  end
@@ -116,8 +116,8 @@ module MailSlurpClient
116
116
  self.class == o.class &&
117
117
  page_number == o.page_number &&
118
118
  page_size == o.page_size &&
119
- unpaged == o.unpaged &&
120
119
  paged == o.paged &&
120
+ unpaged == o.unpaged &&
121
121
  offset == o.offset &&
122
122
  sort == o.sort
123
123
  end
@@ -131,7 +131,7 @@ module MailSlurpClient
131
131
  # Calculates hash code according to all attributes.
132
132
  # @return [Integer] Hash code
133
133
  def hash
134
- [page_number, page_size, unpaged, paged, offset, sort].hash
134
+ [page_number, page_size, paged, unpaged, offset, sort].hash
135
135
  end
136
136
 
137
137
  # Builds the object from hash
@@ -13,7 +13,6 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Collection of items
17
16
  class SendWithQueueResult
18
17
  attr_accessor :id
19
18