mailslurp_client 17.3.0 → 17.4.0

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +5 -5
  3. data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
  4. data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
  6. data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
  7. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
  8. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  9. data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
  10. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  11. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
  13. data/lib/mailslurp_client/models/connector_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/contact_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
  16. data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
  17. data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
  18. data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
  19. data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
  20. data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
  21. data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
  22. data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
  23. data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
  24. data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
  25. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
  26. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  27. data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
  28. data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
  29. data/lib/mailslurp_client/models/group_projection.rb +14 -14
  30. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  31. data/lib/mailslurp_client/models/import_email_options.rb +269 -0
  32. data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
  33. data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
  34. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
  35. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
  36. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
  37. data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
  38. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/inline_object.rb +12 -58
  40. data/lib/mailslurp_client/models/inline_object1.rb +58 -12
  41. data/lib/mailslurp_client/models/inline_object2.rb +211 -0
  42. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
  43. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
  44. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
  45. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
  46. data/lib/mailslurp_client/models/page_alias.rb +24 -24
  47. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
  48. data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
  49. data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
  50. data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
  51. data/lib/mailslurp_client/models/page_complaint.rb +24 -24
  52. data/lib/mailslurp_client/models/page_connector.rb +24 -24
  53. data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
  54. data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
  55. data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
  56. data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
  57. data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
  58. data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
  59. data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
  60. data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
  61. data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
  62. data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
  63. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
  64. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
  65. data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
  66. data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
  67. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
  68. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
  69. data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
  70. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
  71. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
  72. data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
  73. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
  74. data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
  75. data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
  76. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
  77. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
  78. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
  79. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
  80. data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
  81. data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
  82. data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
  83. data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
  84. data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
  85. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
  86. data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
  87. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
  88. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
  89. data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
  90. data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
  91. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
  92. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
  93. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
  94. data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
  95. data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
  96. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  97. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
  98. data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
  99. data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
  100. data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
  101. data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
  102. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  103. data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
  104. data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
  105. data/lib/mailslurp_client/version.rb +1 -1
  106. data/lib/mailslurp_client.rb +11 -0
  107. metadata +13 -2
@@ -19,22 +19,22 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :size
29
29
 
30
30
  attr_accessor :number
31
31
 
32
+ attr_accessor :first
33
+
32
34
  attr_accessor :number_of_elements
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,14 +42,14 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'size' => :'size',
49
49
  :'number' => :'number',
50
+ :'first' => :'first',
50
51
  :'number_of_elements' => :'numberOfElements',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -59,14 +59,14 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<GroupProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'size' => :'Integer',
66
66
  :'number' => :'Integer',
67
+ :'first' => :'Boolean',
67
68
  :'number_of_elements' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -122,6 +122,10 @@ module MailSlurpClient
122
122
  self.number = attributes[:'number']
123
123
  end
124
124
 
125
+ if attributes.key?(:'first')
126
+ self.first = attributes[:'first']
127
+ end
128
+
125
129
  if attributes.key?(:'number_of_elements')
126
130
  self.number_of_elements = attributes[:'number_of_elements']
127
131
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
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_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  size == o.size &&
176
176
  number == o.number &&
177
+ first == o.first &&
177
178
  number_of_elements == o.number_of_elements &&
178
179
  sort == o.sort &&
179
- first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, size, number, number_of_elements, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -19,22 +19,22 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :size
29
29
 
30
30
  attr_accessor :number
31
31
 
32
+ attr_accessor :first
33
+
32
34
  attr_accessor :number_of_elements
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,14 +42,14 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'size' => :'size',
49
49
  :'number' => :'number',
50
+ :'first' => :'first',
50
51
  :'number_of_elements' => :'numberOfElements',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -59,14 +59,14 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<GuestPortalUserProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'size' => :'Integer',
66
66
  :'number' => :'Integer',
67
+ :'first' => :'Boolean',
67
68
  :'number_of_elements' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -122,6 +122,10 @@ module MailSlurpClient
122
122
  self.number = attributes[:'number']
123
123
  end
124
124
 
125
+ if attributes.key?(:'first')
126
+ self.first = attributes[:'first']
127
+ end
128
+
125
129
  if attributes.key?(:'number_of_elements')
126
130
  self.number_of_elements = attributes[:'number_of_elements']
127
131
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
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_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  size == o.size &&
176
176
  number == o.number &&
177
+ first == o.first &&
177
178
  number_of_elements == o.number_of_elements &&
178
179
  sort == o.sort &&
179
- first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, size, number, number_of_elements, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -19,22 +19,22 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :size
29
29
 
30
30
  attr_accessor :number
31
31
 
32
+ attr_accessor :first
33
+
32
34
  attr_accessor :number_of_elements
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,14 +42,14 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'size' => :'size',
49
49
  :'number' => :'number',
50
+ :'first' => :'first',
50
51
  :'number_of_elements' => :'numberOfElements',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -59,14 +59,14 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<InboxForwarderDto>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'size' => :'Integer',
66
66
  :'number' => :'Integer',
67
+ :'first' => :'Boolean',
67
68
  :'number_of_elements' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -122,6 +122,10 @@ module MailSlurpClient
122
122
  self.number = attributes[:'number']
123
123
  end
124
124
 
125
+ if attributes.key?(:'first')
126
+ self.first = attributes[:'first']
127
+ end
128
+
125
129
  if attributes.key?(:'number_of_elements')
126
130
  self.number_of_elements = attributes[:'number_of_elements']
127
131
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
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_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  size == o.size &&
176
176
  number == o.number &&
177
+ first == o.first &&
177
178
  number_of_elements == o.number_of_elements &&
178
179
  sort == o.sort &&
179
- first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, size, number, number_of_elements, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -19,22 +19,22 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :size
29
29
 
30
30
  attr_accessor :number
31
31
 
32
+ attr_accessor :first
33
+
32
34
  attr_accessor :number_of_elements
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,14 +42,14 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'size' => :'size',
49
49
  :'number' => :'number',
50
+ :'first' => :'first',
50
51
  :'number_of_elements' => :'numberOfElements',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -59,14 +59,14 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<InboxForwarderEventProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'size' => :'Integer',
66
66
  :'number' => :'Integer',
67
+ :'first' => :'Boolean',
67
68
  :'number_of_elements' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -122,6 +122,10 @@ module MailSlurpClient
122
122
  self.number = attributes[:'number']
123
123
  end
124
124
 
125
+ if attributes.key?(:'first')
126
+ self.first = attributes[:'first']
127
+ end
128
+
125
129
  if attributes.key?(:'number_of_elements')
126
130
  self.number_of_elements = attributes[:'number_of_elements']
127
131
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
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_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  size == o.size &&
176
176
  number == o.number &&
177
+ first == o.first &&
177
178
  number_of_elements == o.number_of_elements &&
178
179
  sort == o.sort &&
179
- first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, size, number, number_of_elements, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, size, number, first, number_of_elements, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash